argparse 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/argparse-0.0.2.gem +0 -0
- data/lib/argsparser/parser.rb +3 -1
- data/lib/argsparser/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cb11ad769ff1b09a313a9aab003b3834788cb1f5da850ef48b286584bd7ec5b
|
4
|
+
data.tar.gz: f8bf4785f883aa85b1ddb2f2258a85e2954150b35c047380e5b51ee3fe587ce9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e2b30bb83cf0723745eed7ae3122aa76119402874e3bac101b7dd2d0f87414c77b42b4d44e5304a554c45733cd74d537e234c0f871806d1c6487df76d59c91a
|
7
|
+
data.tar.gz: e9e3687e969265206714cf8ea110e0e26707fee3100bf1ff6c12c91b6a2740a6c1428f24c1045585d14b37780780727bde33cc17f5e1306906ea3d5bd6f7ea6e
|
data/argparse-0.0.2.gem
ADDED
Binary file
|
data/lib/argsparser/parser.rb
CHANGED
@@ -29,8 +29,10 @@ module ArgsParser
|
|
29
29
|
a = b[0].split("")
|
30
30
|
|
31
31
|
rmode = :new_switch
|
32
|
+
c = 0
|
32
33
|
a.each do |x|
|
33
34
|
x = x.to_sym
|
35
|
+
c = c + 1
|
34
36
|
|
35
37
|
if rmode == :new_switch
|
36
38
|
if expected_switches.keys.include?(x)
|
@@ -46,7 +48,7 @@ module ArgsParser
|
|
46
48
|
end
|
47
49
|
end
|
48
50
|
elsif rmode[:arg_for_switch]
|
49
|
-
@@switches[rmode[:arg_for_switch]][:arg] =
|
51
|
+
@@switches[rmode[:arg_for_switch]][:arg] = arg[c..arg.length-1]
|
50
52
|
rmode = :new_switch
|
51
53
|
end
|
52
54
|
end
|
data/lib/argsparser/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: argparse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthias Lee
|
@@ -16,6 +16,7 @@ executables: []
|
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
|
+
- argparse-0.0.2.gem
|
19
20
|
- argsparser.gemspec
|
20
21
|
- lib/argparse.rb
|
21
22
|
- lib/argsparser.rb
|