argparse 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0cb11ad769ff1b09a313a9aab003b3834788cb1f5da850ef48b286584bd7ec5b
4
- data.tar.gz: f8bf4785f883aa85b1ddb2f2258a85e2954150b35c047380e5b51ee3fe587ce9
3
+ metadata.gz: e799b6161254080e3721a25b8ee155a8b6fc886ba72dac606e4d35cee72d7e9f
4
+ data.tar.gz: 36c12eef6f29b6da6506ccba16a4fef4ec98e02e7175a10a05026cf5e449d8fc
5
5
  SHA512:
6
- metadata.gz: 0e2b30bb83cf0723745eed7ae3122aa76119402874e3bac101b7dd2d0f87414c77b42b4d44e5304a554c45733cd74d537e234c0f871806d1c6487df76d59c91a
7
- data.tar.gz: e9e3687e969265206714cf8ea110e0e26707fee3100bf1ff6c12c91b6a2740a6c1428f24c1045585d14b37780780727bde33cc17f5e1306906ea3d5bd6f7ea6e
6
+ metadata.gz: 3a7daa4fbed759fb886ee575ce39bb41a3d9b80f528f7e7b555b7f33ead01148244d0c6d651a671d3cdd7a6c92f8a1d5be2ab731c85e89f075cc08322a3b95d7
7
+ data.tar.gz: 921aee45677843f4b84f5bd8735efac1ad1b6eae892e77c59991e2bab820847ab8c02179701cfa55c6d21b81a79fd886b83169f838acdf0500090f397fddc7c0
@@ -12,7 +12,7 @@ module ArgsParser
12
12
  return @s[a.to_sym][:arg]
13
13
  end
14
14
  else
15
- return false
15
+ return nil
16
16
  end
17
17
  end
18
18
  end
@@ -12,7 +12,7 @@ module ArgsParser
12
12
  return @s[a.to_sym][:arg]
13
13
  end
14
14
  else
15
- return false
15
+ return nil
16
16
  end
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module ArgsParser
2
- Version = "0.0.3"
2
+ Version = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: argparse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Lee
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-04 00:00:00.000000000 Z
11
+ date: 2023-11-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A gem for parsing command line arguments
14
14
  email: matthias@matthiasclee.com
@@ -16,7 +16,6 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - argparse-0.0.2.gem
20
19
  - argsparser.gemspec
21
20
  - lib/argparse.rb
22
21
  - lib/argsparser.rb
@@ -26,11 +25,10 @@ files:
26
25
  - lib/argsparser/switches.rb
27
26
  - lib/argsparser/version.rb
28
27
  - readme.md
29
- - test.rb
30
28
  homepage: https://github.com/Matthiasclee/ArgParse
31
29
  licenses: []
32
30
  metadata: {}
33
- post_install_message:
31
+ post_install_message:
34
32
  rdoc_options: []
35
33
  require_paths:
36
34
  - lib
@@ -45,8 +43,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
43
  - !ruby/object:Gem::Version
46
44
  version: '0'
47
45
  requirements: []
48
- rubygems_version: 3.1.6
49
- signing_key:
46
+ rubygems_version: 3.2.3
47
+ signing_key:
50
48
  specification_version: 4
51
49
  summary: A gem for parsing command line arguments
52
50
  test_files: []
data/argparse-0.0.2.gem DELETED
Binary file
data/test.rb DELETED
@@ -1,20 +0,0 @@
1
- require "argparse"
2
-
3
- o = {
4
- asd: { has_argument: false },
5
- qwe: { has_argument: true }
6
- }
7
-
8
- s = {
9
- q: { has_argument: true },
10
- a: { }
11
- }
12
-
13
- x=ArgsParser::Args.new(options: o, switches: s)
14
-
15
- puts x.switches[:q]
16
- puts x.switches[:a]
17
- puts x.options[:asd]
18
- puts x.options[:qwe]
19
-
20
- puts x.data.to_s