Skip to content

Commit

Permalink
Merge pull request #13 from aosasona/updates-for-v1
Browse files Browse the repository at this point in the history
Updates for Gleam V1
  • Loading branch information
aosasona authored Feb 19, 2024
2 parents 83fe1bb + d5b32cf commit 522217d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "0.33.0"
gleam-version: "0.34.1"
rebar3-version: "3"
- run: gleam publish --yes
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "0.33.0"
gleam-version: "0.34.1"
rebar3-version: "3"
- run: gleam format --check src test
- run: gleam deps download
Expand Down
6 changes: 3 additions & 3 deletions gleam.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "dot_env"
version = "0.2.3"
version = "0.2.4"

description = "Load environment variables from files"
description = "Load and use environment variables from files"
licences = ["Apache-2.0"]
repository = { type = "github", user = "aosasona", repo = "dotenv" }

Expand All @@ -13,7 +13,7 @@ gleam = ">= 0.33.0"

[dependencies]
simplifile = "~> 1.0"
gleam_stdlib = "~> 0.34"
gleam_stdlib = "~> 0.34 or ~> 1.0"

[dev-dependencies]
gleeunit = "~> 1.0"
2 changes: 1 addition & 1 deletion manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ packages = [
]

[requirements]
gleam_stdlib = { version = "~> 0.34" }
gleam_stdlib = { version = "~> 0.34 or ~> 1.0" }
gleeunit = { version = "~> 1.0" }
simplifile = { version = "~> 1.0" }
4 changes: 3 additions & 1 deletion src/dot_env/internal/parser.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ fn replace(
with with: String,
) -> String {
case
regex.compile(regex, regex.Options(case_insensitive: True, multi_line: True),
regex.compile(
regex,
regex.Options(case_insensitive: True, multi_line: True),
)
{
Ok(re) ->
Expand Down
5 changes: 4 additions & 1 deletion test/dot_env_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ pub fn load_default_test() {
}

pub fn load_normal_test() {
dot_env.load_with_opts(Opts(path: ".env.normal", debug: True, capitalize: True,
dot_env.load_with_opts(Opts(
path: ".env.normal",
debug: True,
capitalize: True,
))

env.get("BASIC")
Expand Down

0 comments on commit 522217d

Please sign in to comment.