claide 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45af4e6e8ec03d5589f197fc32431c8f97129e5f
4
- data.tar.gz: c16b476522a679273485e15b52323bef604b900f
3
+ metadata.gz: 7156facd276a37e3ea6472d696a26731707068fc
4
+ data.tar.gz: f4d4afb23eaaf49a93345fc0f4cf3afdc5347248
5
5
  SHA512:
6
- metadata.gz: 7468565a106cd8bada3afe58a23f1f9429ad496fdfd2ab30b068412043a979c70872fc50bae04e54640a727bd00391f2f6ea5a9c06c61190dfd5727cee9b6cd9
7
- data.tar.gz: 389d403a08937d47fda48ffa54167ab5d60502d50cf646940b9b37ef56b4ae3f1eb9a37b7127b6f0d03b3c149bfc858b7c12c7511b199a9642eb0d7f4bd852a1
6
+ metadata.gz: ee6f3f61074791bb401abf6ab065071425e169d17daad152361b637a631e02b0c4fa48ce7ce296c22d787c8f189cbb425346f9541921a221dde4dc30b4c8934c
7
+ data.tar.gz: 70e07c305f148c494760417f67277d4d99e1885c763fae4ca76e296e68ec476af31a15fb7462ad2e47ecaa2366a4662aeebc60c9116c1369497cc533c2b98347
data/README.markdown CHANGED
@@ -113,6 +113,6 @@ See the [example][example] for a illustration of how to define commands.
113
113
 
114
114
  [travis]: https://secure.travis-ci.org/CocoaPods/CLAide
115
115
  [travis-status]: https://secure.travis-ci.org/CocoaPods/CLAide.png
116
- [docs]: http://rubydoc.info/github/CocoaPods/CLAide/0.2.0/frames
116
+ [docs]: http://www.rubydoc.info/github/CocoaPods/CLAide/index
117
117
  [example]: https://github.com/CocoaPods/CLAide/blob/master/examples/make.rb
118
118
  [report-error]: https://github.com/CocoaPods/CocoaPods/blob/054fe5c861d932219ec40a91c0439a7cfc3a420c/lib/cocoapods/command.rb#L36
data/lib/claide.rb CHANGED
@@ -8,7 +8,7 @@ module CLAide
8
8
  #
9
9
  # CLAide’s version, following [semver](http://semver.org).
10
10
  #
11
- VERSION = '0.8.1'
11
+ VERSION = '0.8.2'
12
12
 
13
13
  require 'claide/ansi'
14
14
  require 'claide/argument'
data/lib/claide/argv.rb CHANGED
@@ -55,6 +55,20 @@ module CLAide
55
55
  end
56
56
  end
57
57
 
58
+ # @return [Array<String>] A list of the remaining unhandled parameters, in
59
+ # the same format the user specified them.
60
+ #
61
+ # @example
62
+ #
63
+ # argv = CLAide::ARGV.new(['tea', '--no-milk', '--sweetner=honey'])
64
+ # argv.shift_argument # => 'tea'
65
+ # argv.remainder! # => ['--no-milk', '--sweetner=honey']
66
+ # argv.remainder # => []
67
+ #
68
+ def remainder!
69
+ remainder.tap { @entries.clear }
70
+ end
71
+
58
72
  # @return [Hash] A hash that consists of the remaining flags and options
59
73
  # and their values.
60
74
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: claide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-25 00:00:00.000000000 Z
12
+ date: 2015-06-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email:
@@ -44,17 +44,17 @@ require_paths:
44
44
  - lib
45
45
  required_ruby_version: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
47
+ - - '>='
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  requirements: []
56
56
  rubyforge_project:
57
- rubygems_version: 2.4.5
57
+ rubygems_version: 2.4.8
58
58
  signing_key:
59
59
  specification_version: 3
60
60
  summary: A small command-line interface framework.