32 Commits

Author SHA1 Message Date
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
John Barton (joho)
cd1272609d Add failing test for override of empty var 2017-03-28 11:39:40 +11:00
Oenning
a42a65518c allow empty_var 2017-03-22 13:05:44 +00:00
Matias Anaya
6a1233b2f6 Fix quoted values check 2017-03-21 19:04:19 +11:00
Martin Milata
861984c215 Don't hide line parsing errors 2016-12-12 14:43:30 +01:00
Martin Milata
0ff0c0fc7a Propagate errors encountered when reading file 2016-12-12 14:41:36 +01:00
Josh Mervine
008304c688 adding Overload method 2015-09-05 08:59:08 -07:00
John Barton (joho)
8350eb932e Remove commented out code and go fmt tests. 2014-07-14 19:36:35 +10:00
David Bochenski
bdacd70f4c fixup 2014-07-10 10:14:38 +01:00
David Bochenski
ae0bc4ea3c Fix remaining failing test on windows 2014-07-09 15:35:36 +01:00
John Barton
3c13a80fe1 Merge pull request #3 from ys/feature/accept-equals-in-values
Use SplitN instead of split
2014-03-10 14:25:32 +11:00
Yannick Schutz
7e3e1e2c6c Use SplitN instead of split 2014-03-07 23:21:31 +01:00
mattn
c0dce90b3c FOO=BAR= should be "FOO" = "BAR=" 2013-11-18 18:46:24 +09:00
John Barton (joho)
6e333bd708 add godotenv.Read() which returns a map rather than calling os.Setenv 2013-09-04 12:40:57 +10:00
John Barton (joho)
9ec71cc6c8 Make sure we don't overwrite existing ENV vars. 2013-07-31 14:25:10 +10:00
John Barton (joho)
9d9f6ccb57 Make Load() without args open .env by default 2013-07-31 13:51:59 +10:00
John Barton (joho)
ac58adf673 Get the code running against all fixtures. 2013-07-31 13:39:59 +10:00
John Barton (joho)
9b4bbb98c3 Clear the env at the start of each integration test. 2013-07-31 12:57:44 +10:00
John Barton (joho)
9001b88250 Ignore comment lines and lines full o' whitespace. 2013-07-31 12:37:08 +10:00
John Barton (joho)
48ca995c3b Add some more tests. 2013-07-31 12:28:41 +10:00
John Barton (joho)
74ec3a085f Handle quoted hashes "properly"
Read: not prettily or robustly.
2013-07-31 12:24:03 +10:00
John Barton (joho)
aa6e870b57 Red, green, rinse repeat. 2013-07-31 12:10:31 +10:00
John Barton (joho)
a37b438d54 Start trying to do comments/quoting properly. 2013-07-31 11:48:10 +10:00
John Barton (joho)
b3b488372f Mark out the rest of my todo list in the test file. 2013-07-30 18:44:17 +10:00
John Barton (joho)
37c8b8e487 export keyword parsing 2013-07-30 18:38:10 +10:00
John Barton (joho)
4a2748eb3c Yaml style bro. 2013-07-30 18:34:51 +10:00
John Barton (joho)
b10c02f9b0 Move the red-green a little way down the existing parser specs. 2013-07-30 18:23:33 +10:00
John Barton (joho)
919c161945 Start porting over parser tests. 2013-07-30 18:15:58 +10:00
John Barton (joho)
d8dfdb69b3 Extract a test helper 2013-07-30 17:48:37 +10:00
John Barton (joho)
973cf53008 Get the basic tests green. 2013-07-30 17:44:28 +10:00
John Barton (joho)
78ba83b776 First failing tests extracted from dotenv 2013-07-30 11:46:52 +10:00