Skip to content

Commit 28a0028

Browse files
committed
Update to latest Gleam
1 parent 0a9ba2c commit 28a0028

9 files changed

+33
-32
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
- uses: actions/[email protected]
1414
- uses: gleam-lang/[email protected]
1515
with:
16-
otp-version: 22.2
16+
otp-version: 22.1
1717
- uses: gleam-lang/[email protected]
1818
with:
19-
gleam-version: 0.6.0
19+
gleam-version: 0.8.0-rc1
2020
- run: rebar3 install_deps
2121
- run: rebar3 eunit

README.md

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
# gleam_experimental_pgo
1+
# gleam_pgo
22

3-
[![](https://github.com/gleam-experiments/pgo/workflows/test/badge.svg)](https://github.com/gleam-experiments/pgo/actions)
4-
5-
6-
Experimental bindings to the Erlang [pgo][pgo] Postgresql database client.
7-
8-
[pgo]: https://github.com/erleans/pgo
3+
A Gleam program
94

105

116
## Quick start
@@ -20,3 +15,15 @@ rebar3 eunit
2015
# Run the Erlang REPL
2116
rebar3 shell
2217
```
18+
19+
20+
## Installation
21+
22+
If [available in Hex](https://www.rebar3.org/docs/dependencies#section-declaring-dependencies)
23+
this package can be installed by adding `gleam_pgo` to your `rebar.config` dependencies:
24+
25+
```erlang
26+
{deps, [
27+
gleam_pgo
28+
]}.
29+
```

gleam.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
name = "gleam_experimental_pgo"
1+
name = "gleam_pgo"

rebar.config

+4-10
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@
22
{src_dirs, ["src", "gen/src"]}.
33

44
{profiles, [
5-
{test, [
6-
{pre_hooks, [{compile, "gleam build ."}]},
7-
{src_dirs, ["src", "test", "gen/src", "gen/test"]}
8-
]},
9-
10-
{dev, [
11-
{pre_hooks, [{compile, "gleam build ."}]}
12-
]}
5+
{test, [{src_dirs, ["src", "test", "gen/src", "gen/test"]}]}
136
]}.
147

8+
{project_plugins, [rebar_gleam]}.
9+
1510
{deps, [
16-
gleam_stdlib,
17-
pgo
11+
{gleam_stdlib, "0.7.0"}
1812
]}.

src/gleam_experimental_pgo.gleam

-3
This file was deleted.

src/gleam_experimental_pgo.app.src src/gleam_pgo.app.src

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{application, gleam_experimental_pgo,
1+
{application, gleam_pgo,
22
[{description, "A Gleam program"},
3-
{vsn, "0.1.0"},
3+
{vsn, "1.0.0"},
44
{registered, []},
55
{applications,
66
[kernel,

src/gleam_pgo.gleam

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pub fn hello_world() -> String {
2+
"Hello, from gleam_pgo!"
3+
}

test/gleam_experimental_pgo_test.gleam

-7
This file was deleted.

test/gleam_pgo_test.gleam

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import gleam_pgo
2+
import gleam/expect
3+
4+
pub fn hello_world_test() {
5+
gleam_pgo.hello_world()
6+
|> expect.equal("Hello, from gleam_pgo!")
7+
}

0 commit comments

Comments
 (0)