Kenny Jones
2933ea1684
Merge pull request #33 from kenjones-cisco/bugfix/acceptance
...
Bugfix: Resolve failing acceptance test
2017-09-23 00:00:48 -04:00
kenjones
cf2f23d747
Bugfix: Resolve failing acceptance test
2017-09-22 23:58:50 -04:00
Kenny Jones
45e9ad870f
Merge pull request #30 from kenjones-cisco/task/refactor-add-tests
...
Task: Increase test coverage, includes refactor
2017-09-22 23:09:04 -04:00
kenjones
53b2c64747
Task: Increase test coverage, includes refactor
...
Adds test cases to increase test coverage.
Refactors code to enable adding tests by reducing the number of
locations where `os.Exit()` is called from.
2017-09-22 23:01:46 -04:00
Mike Farah
359ca5a117
Merge branch 'kenjones-cisco-bugfix/nonstring-keys'
2017-09-23 08:56:55 +10:00
Mike Farah
79baa49eaa
Merge branch 'bugfix/nonstring-keys' of git://github.com/kenjones-cisco/yaml into kenjones-cisco-bugfix/nonstring-keys
2017-09-23 08:54:08 +10:00
Mike Farah
2cda78ce0b
Vendor shas
2017-09-23 08:47:18 +10:00
Mike Farah
6d1e61c410
Merge branch 'master' into bugfix/nonstring-keys
2017-09-23 08:38:37 +10:00
kenjones
86639acf70
Task: Simplify development
...
The base directory has all shell scripts in scripts/
and all example/test files in examples/.
A Makefile provides all the commands with helpful information.
If a developer simply types `make` then vendor is properly updated,
the code is formatted, linted, tested, built, acceptance test run,
and installed.
Linting errors resolved.
Ignored test case (`TestParsePath`) updated to work as expected.
2017-09-23 08:37:34 +10:00
kenjones
3beee3f804
Bugfix: Panic on non-string keys
...
Adds check if the key is an `int` or `bool`, and converts to a string
as part of the `toJSON` function.
Test cases added.
Resolves : #28
2017-09-21 12:01:03 -04:00
Mike Farah
1ed8e7017e
Can create arrays
2017-08-08 17:04:30 +10:00
Mike Farah
5514d2300b
Can update arrays
2017-08-08 16:55:57 +10:00
Mike Farah
5bb0934710
Handle arrays and strings when reading
2017-08-08 16:42:11 +10:00
Mike Farah
cdd78af4bc
Fixed bug #11 : Inability to set field to empty string
2017-06-06 10:19:32 +10:00
Mike Farah
d07e436065
Update docs re using values that look like flags
2017-05-03 10:42:53 +10:00
Mike Farah
b2a0964de2
switched from godeps to govendor, now supports new 'vendor' folder
2017-05-03 09:19:55 +10:00
Mike Farah
69e6bb354d
Added doco regarding values starting with hyphens
2017-05-03 08:11:26 +10:00
Mike Farah
ec25886528
Removed redundant code, updated doc w.r.t reading json files
2017-04-19 15:45:45 +10:00
Mike Farah
c2000a446b
Fixed writeCommands to maintain the same execution as was read in
2017-04-18 15:55:43 +10:00
Mike Farah
08ba0083be
formatting
2017-04-18 09:14:06 +10:00
Mike Farah
909b62be54
Fixed ability to grow arrays
2017-04-18 08:53:27 +10:00
Mike Farah
0facf35d60
Fixed test flakeyness with using printf
2017-04-14 12:56:50 +10:00
Mike Farah
a7c4813703
Updated doco
2017-04-14 12:40:03 +10:00
Mike Farah
373e0a5eb7
More tests
2017-04-14 12:39:55 +10:00
Mike Farah
124c57f9d9
README now links to doco
2017-04-13 15:44:31 +10:00
Mike Farah
fb73a793bd
Added doco
2017-04-13 15:36:59 +10:00
Mike Farah
c22394b540
Updated readme
2017-04-12 21:30:29 +10:00
Mike Farah
b1ff47022b
Updated readme
2017-04-12 21:20:43 +10:00
Mike Farah
82f1230db8
Added "new" command for creating new yaml
2017-04-12 21:10:00 +10:00
Mike Farah
a3190f1504
Refactor write to allow new entries
2017-04-12 20:25:13 +10:00
Mike Farah
44ee869e47
Maintain order
2017-02-27 09:09:29 +11:00
Mike Farah
5d2d37a5f8
Fixed travis script, added Travis banner to readme
2017-02-13 07:55:06 +11:00
Mike Farah
e3fc944709
Added travis config
2017-02-13 07:28:48 +11:00
Mike Farah
6ee9db9a70
Added License (MIT)
2017-02-10 16:00:25 +11:00
Mike Farah
0d75edfb67
Fixed updating array bug (Issue 3 in git)
2017-02-09 13:58:47 +11:00
Mike Farah
037314af8a
Merge pull request #2 from chaos95/master
...
Handle 'index out of range' errors more gracefully
2016-03-19 13:05:57 +11:00
Morgan Larosa
2a283b4ef7
Fix #1
2016-03-16 16:11:06 +11:00
Mike Farah
7ef556f22b
Update README.md
2015-11-20 21:42:45 +11:00
Mike Farah
6b566fd983
Refactored code
2015-10-13 21:42:36 +11:00
Mike Farah
001925a4d4
Release task now clears build directory first
2015-10-13 21:34:40 +11:00
Mike Farah
3dee7b89d2
Updated README
2015-10-13 21:34:26 +11:00
Mike Farah
c955815aab
Added json input functionality
2015-10-11 17:06:52 +11:00
Mike Farah
3720bf8211
Added json output functionality
2015-10-11 10:00:22 +11:00
Mike Farah
5f09aabf4c
Extracted out common test code
2015-10-10 19:18:54 +11:00
Mike Farah
98751cf607
Using godeps
2015-10-10 12:57:11 +11:00
Mike Farah
2ec3b59da2
Added more help info about using write with an update script
2015-10-09 21:30:15 +11:00
Mike Farah
56c923228d
Fixed bug when using write command
...
Added more tests to avoid bugs ;)
2015-10-09 21:24:42 +11:00
Mike Farah
c122b9a843
Fixed example in README
2015-10-08 20:07:27 +11:00
mfarah
15f51d4bf0
Can update a yaml file from an instruction yaml file
2015-10-08 10:31:31 +11:00
mfarah
219105f999
Test result order no longer matters
2015-10-07 13:36:39 +11:00