Commit Graph

162 Commits (cc9e9b7de7cabb89c4619f757a44883860c285c2)

Author SHA1 Message Date
John Barton c0b86d615e
Merge pull request #60 from coolaj86/precedence
explicitly state env precedence and convention
2018-09-27 15:32:03 +10:00
AJ ONeal 3896766f7d explicitly state env precedence and convention 2018-09-24 21:35:43 -06:00
John Barton 23d116af35
Merge pull request #58 from lucastetreault/master
feat(Expand Variables): Custom variable expansion instead of Go's os.Expand
2018-09-11 18:04:31 +10:00
Lucas Tétreault 2d8b3aab88 feat(Expand Variables): Custom variable expansion instead of Go's os.Expand
Copy over the tests from https://github.com/bkeepers/dotenv/blob/master/spec/dotenv/parser_spec.rb
related to expanding variables and implement the required changes. I also realized as part of this
that this implementation was not handling values in single quotes properly (e.g.: not the same was
as the ruby package mentionned) so that has been fixed as well along with the related tests.

Fixes: #52
2018-09-11 00:55:10 -06:00
John Barton 1709ab122c
Merge pull request #54 from egorse/master
The value expand fallback to actual ENV values
2018-04-05 15:36:34 +10:00
egorse 8ad714e304 The value expand fallback to actual ENV values 2018-03-31 23:18:36 +03:00
John Barton 6bb0851667
Merge pull request #47 from sachaos/feature-expand-variables-on-value
Support variable substitution in dotenv files
2018-01-15 13:49:21 +11:00
John Barton 06e67b5ef3
Update my homepage link 2017-12-23 10:35:39 +11:00
Takumasa Sakao 2707e9ff66 Fix test, `$` should not be escaped 2017-11-20 23:41:46 +09:00
Takumasa Sakao 50c29652a0 Expand variables on parseValue 2017-11-20 23:20:38 +09:00
Takumasa Sakao 33977c2d8d Add test for substitutions 2017-11-20 23:20:19 +09:00
Takumasa Sakao 9be76b3741 Pass envMap to parseLine & parseValue 2017-11-20 22:21:39 +09:00
John Barton 6d367c18ed
Merge pull request #46 from joho/fix_quoting_parser_bug
WIP Parsing bug with nested quotes
2017-11-10 12:03:15 +11:00
John Barton (joho) 05be8ccbf7 Try and replicate reported bug #45 2017-11-10 10:38:18 +11:00
John Barton 0f92a24bb0
Merge pull request #44 from dvrkps/patch-1
travis: update go version
2017-11-02 13:11:18 +11:00
Davor Kapsa b7bbb3624e
travis: update go version 2017-11-01 07:18:32 +01:00
John Barton a79fa1e548 Merge pull request #41 from alexquick/document-write-dotenv
Document Marshal, Unmarshal, and Write
2017-09-18 16:32:59 +10:00
John Barton 144189c1ed Merge pull request #42 from alexquick/feature-sorted-output
Sort output of Marshal/Write
2017-09-18 16:32:10 +10:00
Alex Quick 3dd2dbe832 sort output of Write/Marshal 2017-09-16 18:02:27 -04:00
Alex Quick 9f04f40640 Be more careful with TestRoundtrip 2017-09-16 17:55:04 -04:00
Alex Quick e6264cf869 document Marshal, Unmarshal, and Write 2017-09-16 17:12:55 -04:00
John Barton 9739509bea Merge pull request #35 from alexquick/feature-write-dotenv
support for writing envs out in dotenv format
2017-09-13 22:32:30 -07:00
Alex Quick b1bb9d9fc3 rename WriteString/ReadString to Marshal/Unmarshal 2017-09-14 00:24:22 -04:00
Alex Quick 5d289f4405 escape some other bash-y special chars ($!) 2017-09-13 23:13:08 -04:00
Alex Quick 88e7c8bd35 support for writing envs out in dotenv format 2017-09-13 23:13:08 -04:00
John Barton c9360df4d1 Merge pull request #34 from alexquick/fix-parsing-issues
Fix some small parsing bugs
2017-08-22 14:21:26 +10:00
John Barton 59f20222da Merge pull request #33 from crash7/go-report-card
Add Go Report Card badge and fix spelling error
2017-08-22 14:17:51 +10:00
John Barton 9d9ddadf44 Merge pull request #36 from pda/parse-from-reader
Parse(reader) as alternative to Read(filenames)
2017-08-06 18:28:30 +10:00
Paul Annesley 390de3704e README.md mentions Parse(io.Reader) 2017-08-06 17:34:10 +10:00
Paul Annesley ebf1036af6 Parse(io.Reader) => map[string]string 2017-08-06 17:34:10 +10:00
Alex Quick a905e99577 fix panic with `"` as the value 2017-07-16 18:43:49 -04:00
Alex Quick 6f30f0c011 support for equals in yaml-style lines 2017-07-16 17:25:28 -04:00
Alex Quick 84bf91f40e rudimentry support for nested quotes 2017-07-16 17:24:36 -04:00
Alex Quick b9324c6f3c handle escaping more comprehensively 2017-07-16 17:15:29 -04:00
Christian Musa 12b7e03247 Add Go Report Card badge and fix spelling error 2017-07-14 21:33:04 -03:00
John Barton 3ddb2792f3 README housekeeping 2017-07-05 14:31:29 +10:00
John Barton 325433c502 Merge pull request #29 from joho/respect_empty_external_env_vars
Respect preset empty external env vars
2017-03-29 07:01:54 +11:00
John Barton (joho) 034acc2190 Change check of existing env to respect empty (but set) vars. 2017-03-28 11:54:56 +11:00
John Barton (joho) cd1272609d Add failing test for override of empty var 2017-03-28 11:39:40 +11:00
John Barton eaf676fc03 Merge pull request #27 from goenning/empty_var
allow usage of empty var on .env
2017-03-23 07:07:31 +11:00
Oenning a42a65518c allow empty_var 2017-03-22 13:05:44 +00:00
John Barton b01826f956 Merge pull request #25 from matiasanaya/master
Fix quoted values check
2017-03-21 20:56:48 +11:00
Matias Anaya 6a1233b2f6 Fix quoted values check 2017-03-21 19:04:19 +11:00
John Barton d10b3fbe00 Merge pull request #24 from joho/setup_travis
Move CI
2017-02-22 08:49:41 +11:00
John Barton (joho) 0a959c8d8f Add a badge for the windows build too. 2017-02-22 08:43:40 +11:00
John Barton (joho) bcaccd4f68 Apparently this file is meant to be hidden? 2017-02-22 08:29:43 +11:00
John Barton (joho) 22e45bfff4 Switch build badge over to travis 2017-02-22 08:27:57 +11:00
John Barton (joho) 2fc79dff51 Replace wercker.yml with travis.yml 2017-02-22 08:23:25 +11:00
John Barton 726cc8b906 Merge pull request #22 from mmilata/dont-swallow-errors
Improve error handling
2016-12-17 10:05:37 +11:00
Martin Milata 861984c215 Don't hide line parsing errors 2016-12-12 14:43:30 +01:00