argv 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +0 -13
- data/VERSION +1 -1
- data/argv.gemspec +2 -0
- data/exsample/is_nil.rb +13 -0
- data/{sample → exsample}/test.rb +0 -0
- data/lib/argv/ext.rb +3 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b116f21bd831b039d26501cb7d02b0e0829fd40
|
4
|
+
data.tar.gz: 9aba04ed33004f747b5d7659cd5e001dcc04edd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 101c45711c3388f4de7b207a7c36bc2f0c10fee3bff3316f3b710a5cb156b9876c4289ca43c41ca8549f7f9fa3318fc54646b831defc97a2b19c3ce5186569c6
|
7
|
+
data.tar.gz: d1437ce61e3560a01d564cba0ea7ef9f4722aea4420ce631de6b1a2cadd65b321b3966e34ece6730857310549706b7b5bbd6155202261ad4e05b7f94d20fd2de
|
data/LICENSE
CHANGED
@@ -1,21 +1,8 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
1
|
Copyright (c) 2014 Adam Luzsi
|
4
2
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
3
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
4
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
5
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
6
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
7
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
8
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.1
|
data/argv.gemspec
CHANGED
@@ -6,9 +6,11 @@ Gem::Specification.new do |spec|
|
|
6
6
|
spec.version = File.open(File.join(File.dirname(__FILE__),"VERSION")).read.split("\n")[0].chomp.gsub(' ','')
|
7
7
|
spec.authors = ["Adam Luzsi"]
|
8
8
|
spec.email = ["adamluzsi@gmail.com"]
|
9
|
+
|
9
10
|
spec.description = %q{ ARGV object extension for parsing flags, inputs, so you can have easy hash objects that contain tag value, and so on :) }
|
10
11
|
spec.summary = %q{ argv object extension for parsing flags, inputs }
|
11
12
|
|
13
|
+
spec.homepage = "https://github.com/adamluzsi/#{__FILE__.split(File::Separator).last.split('.').first}"
|
12
14
|
spec.files = `git ls-files`.split($/)
|
13
15
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
14
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
data/exsample/is_nil.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require "argv"
|
2
|
+
|
3
|
+
ARGV.push('-asd')
|
4
|
+
|
5
|
+
puts ARGV.sym_flags(s:true)[:asd].inspect
|
6
|
+
puts ARGV.to_hash(s:true)[:asd].inspect
|
7
|
+
puts ARGV.to_hash(s:true)[:asd].nil?
|
8
|
+
|
9
|
+
ARGV.push('hmm')
|
10
|
+
|
11
|
+
puts ARGV.to_hash(s:true)[:asd].inspect
|
12
|
+
puts ARGV.to_hash(s:true)[:asd].inspect
|
13
|
+
puts ARGV.to_hash(s:true)[:asd].nil?
|
data/{sample → exsample}/test.rb
RENAMED
File without changes
|
data/lib/argv/ext.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: argv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -54,11 +54,12 @@ files:
|
|
54
54
|
- Rakefile
|
55
55
|
- VERSION
|
56
56
|
- argv.gemspec
|
57
|
+
- exsample/is_nil.rb
|
58
|
+
- exsample/test.rb
|
57
59
|
- lib/argv.rb
|
58
60
|
- lib/argv/cms.rb
|
59
61
|
- lib/argv/ext.rb
|
60
|
-
|
61
|
-
homepage:
|
62
|
+
homepage: https://github.com/adamluzsi/argv
|
62
63
|
licenses: []
|
63
64
|
metadata: {}
|
64
65
|
post_install_message:
|