optsparser_generator 4.5 → 5.0

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/optsparser_generator.rb +4 -5
  3. metadata +21 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7002bd5bc1ed12354e14e4db3d4d7e0ded00d2b6984fa94f72095c5ede3676b9
4
- data.tar.gz: 5cd3e2448f62f62c5f57db2f37ee1f6cdbc719281bd62262a81766592cd572ef
3
+ metadata.gz: f218149d8defc098cca00b8c115c05bb6fda886b0db374e31cb2365dd5e4a53b
4
+ data.tar.gz: d1114b0ba04af4c3a0da59d5971d02f054796d0cb3b2cd94fdb695afad3f5b20
5
5
  SHA512:
6
- metadata.gz: 1a57ebea15a0b6c8f6af4d5aa3b64c24e67135c01d81f4a926c0b3084723f833792431b1c293132c7dfbae96e5e35fdad9150409f53e9028f282b09da09b4680
7
- data.tar.gz: 72f91bfe36beec53a0cdc85c4514bc5893966d17fe5263361be287aad2038f148ca0b7cc91b35c23ce00fdcfcf8e009bd1bf5bbeed28fcdc15d0358458c18fd8
6
+ metadata.gz: 910ac9b4fce86962ae629848b104c25822be566b4aeed602cf81701c8cf856ee5799dd0f8c2e8b965844997c73adfece19d1a7f8c16998605f287dbca7113265
7
+ data.tar.gz: 4e664e174a1f7631988242eddd142a6945a7600653ac921e1541572424ccfe77c4e6794291324ad852c85da58195ac5f45859729b5c973b99713edb745f6e999
@@ -27,8 +27,6 @@ module OptionParserGenerator
27
27
  # @api private
28
28
  module OpenStructExtension
29
29
  # extracts a special value from the openstruct
30
- # @param key [String]
31
- # @param string [String]
32
30
  def special_value(key, string)
33
31
  self["#{key}__#{string}"]
34
32
  end
@@ -39,7 +37,6 @@ module OptionParserGenerator
39
37
  # @todo preprocess data here instead of doing it adhoc
40
38
  # @todo raise more exceptions
41
39
  # @api private
42
- # @param ostruct [OpenStruct]
43
40
  def self.handle_arguments(ostruct)
44
41
  unless ostruct.is_a?(OpenStruct)
45
42
  raise WrongArgumentType, 'needs an OpenStruct'
@@ -55,8 +52,10 @@ module OptionParserGenerator
55
52
  # @todo write documentation :(
56
53
  # @todo split this up
57
54
  # @param ostruct [OpenStruct] Default values with special values
58
- # @param :ignore_collisions [Boolean] ignore bool key collisions see OptionCollision
59
- # @param :generate_no_help [Boolean] when set to true donesn't generates help command
55
+ # @param options [Hash]
56
+ # @option options [Boolean]
57
+ # :ignore_collisions ignore bool key collisions see OptionCollision
58
+ # :generate_no_help when set to true donesn't generates help command
60
59
  def self.[](ostruct, **options)
61
60
  defaults = handle_arguments(ostruct)
62
61
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optsparser_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: '4.5'
4
+ version: '5.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marvin Zerulla
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-04-30 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rake
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - "<"
18
17
  - !ruby/object:Gem::Version
19
- version: '13'
18
+ version: '14'
20
19
  - - ">="
21
20
  - !ruby/object:Gem::Version
22
21
  version: 11.2.0
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - "<"
28
27
  - !ruby/object:Gem::Version
29
- version: '13'
28
+ version: '14'
30
29
  - - ">="
31
30
  - !ruby/object:Gem::Version
32
31
  version: 11.2.0
@@ -104,13 +103,25 @@ dependencies:
104
103
  - - ">="
105
104
  - !ruby/object:Gem::Version
106
105
  version: '0.8'
107
- description:
108
- email:
106
+ - !ruby/object:Gem::Dependency
107
+ name: ostruct
108
+ requirement: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ type: :runtime
114
+ prerelease: false
115
+ version_requirements: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
109
120
  executables: []
110
121
  extensions: []
111
122
  extra_rdoc_files:
112
- - README.md
113
123
  - LICENSE.md
124
+ - README.md
114
125
  files:
115
126
  - LICENSE.md
116
127
  - README.md
@@ -119,7 +130,6 @@ homepage: https://github.com/madblobfish/optionparser-generator
119
130
  licenses:
120
131
  - AGPL-1.0
121
132
  metadata: {}
122
- post_install_message:
123
133
  rdoc_options: []
124
134
  require_paths:
125
135
  - lib
@@ -127,15 +137,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
137
  requirements:
128
138
  - - ">="
129
139
  - !ruby/object:Gem::Version
130
- version: 2.0.0
140
+ version: 2.4.0
131
141
  required_rubygems_version: !ruby/object:Gem::Requirement
132
142
  requirements:
133
143
  - - ">="
134
144
  - !ruby/object:Gem::Version
135
145
  version: '0'
136
146
  requirements: []
137
- rubygems_version: 3.2.15
138
- signing_key:
147
+ rubygems_version: 3.6.9
139
148
  specification_version: 4
140
149
  summary: Generates OptionParser using an OpenStruct
141
150
  test_files: []