Skip to content

Commit

Permalink
Merge pull request #4 from elm-fluent/elm-018
Browse files Browse the repository at this point in the history
Elm 0.18 compatibility
  • Loading branch information
vanwagonet authored Aug 20, 2018
2 parents 5aec116 + 17c65cb commit 8dfc0cf
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ node_js:
- lts/*
- stable
install:
- npm install -g standard elm@0.17 elm-test@0.17
- npm install -g standard elm@0.18 elm-test@0.18
- elm-package install -y
- pushd tests && elm-package install -y && popd
script:
Expand Down
6 changes: 3 additions & 3 deletions elm-package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.0",
"version": "2.0.0",
"summary": "Bindings to JavaScript Internationalization API",
"repository": "https://github.com/vanwagonet/elm-intl.git",
"license": "BSD3",
Expand All @@ -16,7 +16,7 @@
],
"native-modules": true,
"dependencies": {
"elm-lang/core": "4.0.5 <= v < 5.0.0"
"elm-lang/core": "5.1.1 <= v < 6.0.0"
},
"elm-version": "0.17.1 <= v < 0.18.0"
"elm-version": "0.18.0 <= v < 0.19.0"
}
4 changes: 0 additions & 4 deletions src/Native/Intl/DateTimeFormat.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ var _thetalecrafter$elm_intl$Native_Intl_DateTimeFormat = function () {
return 'long'
case _thetalecrafter$elm_intl$Intl_DateTimeFormat$OmitName:
default:
return
}
}

Expand All @@ -79,7 +78,6 @@ var _thetalecrafter$elm_intl$Native_Intl_DateTimeFormat = function () {
return '2-digit'
case _thetalecrafter$elm_intl$Intl_DateTimeFormat$OmitNumber:
default:
return
}
}

Expand Down Expand Up @@ -114,7 +112,6 @@ var _thetalecrafter$elm_intl$Native_Intl_DateTimeFormat = function () {
return '2-digit'
case _thetalecrafter$elm_intl$Intl_DateTimeFormat$OmitMonth:
default:
return
}
}

Expand All @@ -137,7 +134,6 @@ var _thetalecrafter$elm_intl$Native_Intl_DateTimeFormat = function () {
return 'long'
case _thetalecrafter$elm_intl$Intl_DateTimeFormat$OmitTimeZone:
default:
return
}
}

Expand Down
13 changes: 0 additions & 13 deletions tests/Main.elm

This file was deleted.

2 changes: 1 addition & 1 deletion tests/Test/Collator.elm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ all =
describe "fromOptions and resolvedOptions"
(map
(\options ->
test "options" <|
test ("options " ++ toString options) <|
\() ->
let
resolved =
Expand Down
2 changes: 1 addition & 1 deletion tests/Test/DateTimeFormat.elm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ all =
describe "fromOptions and resolvedOptions"
(map
(\options ->
test "options" <|
test ("options " ++ toString options) <|
\() ->
let
resolved =
Expand Down
4 changes: 2 additions & 2 deletions tests/Test/NumberFormat.elm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ all =
resolved =
NumberFormat.resolvedOptions (NumberFormat.fromOptions options)
in
describe "percent"
describe "percent maximumSignificantDigits"
[ test "format" <|
\() -> Expect.equal (format 0.12345) "12.3%"
, test "resolvedOptions" <|
Expand All @@ -60,7 +60,7 @@ all =
resolved =
NumberFormat.resolvedOptions (NumberFormat.fromOptions options)
in
describe "percent"
describe "percent minimumFractionDigits"
[ test "format" <|
\() -> Expect.equal (format 1) "100.00%"
, test "resolvedOptions" <|
Expand Down
21 changes: 0 additions & 21 deletions tests/Tests.elm

This file was deleted.

7 changes: 3 additions & 4 deletions tests/elm-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
"exposed-modules": [],
"native-modules": true,
"dependencies": {
"elm-lang/core": "4.0.0 <= v < 5.0.0",
"elm-community/elm-test": "2.0.0 <= v < 3.0.0",
"rtfeldman/node-test-runner": "2.0.0 <= v < 3.0.0"
"elm-lang/core": "5.0.0 <= v < 6.0.0",
"elm-community/elm-test": "4.0.0 <= v < 5.0.0"
},
"elm-version": "0.17.0 <= v < 0.18.0"
"elm-version": "0.18.0 <= v < 0.19.0"
}

0 comments on commit 8dfc0cf

Please sign in to comment.