41 Commits

Author SHA1 Message Date
f74253844b use .is_a?() instead of .class == 2014-06-25 14:53:22 -04:00
4e18e729c3 switch to YARD for documentation 2014-06-25 14:52:39 -04:00
2099aaa6e0 update to RSpec 3.0 2014-06-25 14:11:39 -04:00
31c63790f9 rename Rakefile -> Rakefile.rb 2014-06-25 14:06:24 -04:00
5b07b4da96 version Gemfile.lock; call Bundler.setup() in Rakefile 2014-06-25 14:06:13 -04:00
c5ea73acfd remove some unnecessary stuff from spec_helper.rb 2013-05-06 13:39:28 -04:00
34ee9a1b09 close parentheses 2013-05-02 11:16:05 -04:00
5eca5e7657 fix example options in README 2013-05-02 11:12:21 -04:00
64e084b0d4 add Yawpa.parse() documentation to README.md 2013-05-02 11:11:00 -04:00
ecf5e5e891 v1.0.0 v1.0.0 2013-05-02 10:52:43 -04:00
e7164589ab document that an exception might be raised on parse() 2013-05-02 10:45:02 -04:00
0b2193b3d4 use one exception class for all argument parsing errors 2013-05-02 10:43:54 -04:00
f55fb38e05 expand documentation a bit more 2013-05-02 10:38:45 -04:00
9b19afea20 expand documentation 2013-05-02 10:14:09 -04:00
543ce97e10 add rdoc task 2013-05-02 09:56:05 -04:00
55389866ee add second example usage to README 2013-01-23 21:56:26 -05:00
96277b62d0 update usage information / example configuration 2013-01-23 21:51:03 -05:00
6ae8e62f7b implement posix_order flag 2013-01-22 18:09:44 -05:00
dd4148a3d6 refactor more common processing into _gather() 2013-01-22 14:43:26 -05:00
e5d93df4ae add more test cases for short options 2013-01-22 14:13:19 -05:00
90d2a938d5 return option value for short option also 2013-01-22 14:03:27 -05:00
cf049aed2f process configured short options 2013-01-22 13:54:22 -05:00
40ecadd056 add _massage_options() to simplify parse() 2013-01-21 22:11:57 -05:00
ef860a8eee internally convert nargs to a range if it was a Fixnum for processing 2013-01-21 21:44:16 -05:00
21d64600dc add test for strings as keys for option configuration 2013-01-21 21:21:51 -05:00
bf60247b50 add test for an option passed in twice 2013-01-21 21:19:36 -05:00
91846e741e refactor using _gather() 2013-01-21 16:45:00 -05:00
1a5de331d9 test --opt=val syntax for nargs > 1 2013-01-21 16:15:17 -05:00
704ed971ac test --opt=val syntax 2013-01-21 16:13:55 -05:00
c7c21ca97e test exception on not enough arguments to option 2013-01-21 16:12:34 -05:00
fc90798459 test option with nargs = 2 2013-01-21 16:11:29 -05:00
4a693ba1ea return argument value when nargs = 1 2013-01-21 16:10:07 -05:00
056257b8f5 return boolean options set 2013-01-20 22:54:06 -05:00
56e644e16e raise exception on unknown option 2013-01-20 22:28:36 -05:00
b2b0d90c4d update README to remove direct subcommand support 2013-01-20 22:08:12 -05:00
1a1b18b62e reformat spec to test parse() results separately 2013-01-20 20:35:34 -05:00
67e9ec2c64 start working on parse() 2013-01-20 20:34:29 -05:00
1b192e422d colorize rspec 2013-01-20 20:34:14 -05:00
c00ca806a5 set up rspec 2013-01-20 20:12:17 -05:00
2ef0aa05e1 add description information 2013-01-20 19:50:17 -05:00
a8dfa3ed8a initial bundle gem contents 2013-01-20 19:28:49 -05:00