14 Commits

Author SHA1 Message Date
f238c65da1 chore: format with dart format 2024-10-14 18:48:38 +13:00
7ded2fa7b2 feat: Get variable values as int, double and bool (#65)
Allowes to get the variable values casted to the specific type. If the variable does not exist the `fallback` is used. However when also no `fallback` is provided an `AssertionError` is thrown. Furthermore a `FormatException` is thrown when the variable exists but the value can not be casted to the specific type.
2024-10-13 21:51:48 +13:00
6bb8789356 feat: explicit flutter sdk 3.x+ support (#112) 2024-10-13 21:40:14 +13:00
cc8e64bf14 fix(test): make the testLoad method signature synchronous to match the body
Also updated README and added some tests
2021-08-11 14:21:20 +12:00
bdd9bf8677 feat: Wrapping dotenv methods within class #32 (#34)
BREAKING CHANGE: Access dotenv methods from the DotEnv class instead of globally.
2021-05-20 13:10:47 +12:00
106bd1dd58 fix: change regex lookbehind to group (#29)
fixes runtime errors in safari
2021-04-28 08:54:12 +12:00
5edfa2e981 feat: migrate to null-safety (#24) 2021-03-04 16:56:17 +13:00
55eae6e3c1 flutter compatibility 2.0.0 2018-12-12 13:13:11 +13:00
8df48ae1b4 fix warning: deprecated package
See <https://github.com/dart-lang/collection/blob/master/CHANGELOG.md#140>.
2018-07-12 13:46:45 -04:00
49d5430ce0 check process environment for variable definitions
If `$var` is encountered when parsing the `.env` file, and
has not been defined, check `Platform.environment`.

Closes #6.
2015-05-12 02:53:34 -04:00
e1764c2240 parser 2015-05-08 01:16:17 -04:00
20f5b1d210 deps
- `unittest` -> `test`
    - <https://pub.dartlang.org/packages/test>
- `dartformat` -> `dartfmt`
    - <https://github.com/dart-lang/dart_style>

Looks like Travis builds will break until `test_runner` moves off `unittest`.

<https://github.com/google/test_runner.dart/blob/master/pubspec.yaml>
2015-05-06 01:27:42 -04:00
074f630c5c tests 2015-02-05 18:16:05 -05:00
5ddaea059e cleanup 2015-02-05 18:05:16 -05:00