claide 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +1 -1
- data/lib/claide.rb +1 -1
- data/lib/claide/argv.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7156facd276a37e3ea6472d696a26731707068fc
|
4
|
+
data.tar.gz: f4d4afb23eaaf49a93345fc0f4cf3afdc5347248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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
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.
|
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-
|
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.
|
57
|
+
rubygems_version: 2.4.8
|
58
58
|
signing_key:
|
59
59
|
specification_version: 3
|
60
60
|
summary: A small command-line interface framework.
|