xoptparse 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d4581fc5af988d4643c8cadc47f9d685c11bfc93c9c7e467136eb521d4926338
4
+ data.tar.gz: 7a126c2f9f468d61fc7bc72cdc62d6694f78b8505c0d937a54c9731340c6b5cb
5
+ SHA512:
6
+ metadata.gz: b3e8e688e2e5499d38dbecd687526d9b8fd9b0f47ce2b2dd2244518f8bd0917a8dfb22a4f49e02b42de7e8bc613d9b8add4dbd77738491b48ae792fb82bfa655
7
+ data.tar.gz: 12a596b13d62628cca1b31fcb92eef894673a0bb2487dd2624075ae498fe597f3d62e8094cce5149b91a02a3b12036aabf107c5d69eb408f2e3e5d1344a7892e
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,22 @@
1
+ ---
2
+ AllCops:
3
+ NewCops: enable
4
+ TargetRubyVersion: '2.6'
5
+
6
+ Layout/LineLength:
7
+ Max: 100
8
+ Exclude:
9
+ - test/**/*
10
+
11
+ Metrics/AbcSize:
12
+ Exclude:
13
+ - test/**/*
14
+
15
+ Metrics/ClassLength:
16
+ Enabled: false
17
+
18
+ Metrics/MethodLength:
19
+ Enabled: false
20
+
21
+ Style/Documentation:
22
+ Enabled: false
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.5
7
+ before_install: gem install bundler -v 1.17.2
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in xoptparse.gemspec
8
+ gemspec
@@ -0,0 +1,60 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ xoptparse (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ansi (1.5.0)
10
+ ast (2.4.1)
11
+ builder (3.2.4)
12
+ docile (1.3.2)
13
+ minitest (5.14.1)
14
+ minitest-power_assert (0.3.1)
15
+ minitest
16
+ power_assert (>= 1.1)
17
+ minitest-reporters (1.4.2)
18
+ ansi
19
+ builder
20
+ minitest (>= 5.0)
21
+ ruby-progressbar
22
+ parallel (1.19.2)
23
+ parser (2.7.1.4)
24
+ ast (~> 2.4.1)
25
+ power_assert (1.2.0)
26
+ rainbow (3.0.0)
27
+ rake (12.3.3)
28
+ rexml (3.2.4)
29
+ rubocop (0.84.0)
30
+ parallel (~> 1.10)
31
+ parser (>= 2.7.0.1)
32
+ rainbow (>= 2.2.2, < 4.0)
33
+ rexml
34
+ rubocop-ast (>= 0.0.3)
35
+ ruby-progressbar (~> 1.7)
36
+ unicode-display_width (>= 1.4.0, < 2.0)
37
+ rubocop-ast (0.1.0)
38
+ parser (>= 2.7.0.1)
39
+ ruby-progressbar (1.10.1)
40
+ simplecov (0.18.5)
41
+ docile (~> 1.1)
42
+ simplecov-html (~> 0.11)
43
+ simplecov-html (0.12.2)
44
+ unicode-display_width (1.7.0)
45
+
46
+ PLATFORMS
47
+ ruby
48
+
49
+ DEPENDENCIES
50
+ bundler (~> 1.17)
51
+ minitest (~> 5.0)
52
+ minitest-power_assert
53
+ minitest-reporters
54
+ rake (~> 12.3.3)
55
+ rubocop (= 0.84.0)
56
+ simplecov
57
+ xoptparse!
58
+
59
+ BUNDLED WITH
60
+ 1.17.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 ofk
4
+
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
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,39 @@
1
+ # XOptionParser
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/xoptparse`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'xoptparse'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install xoptparse
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/ofk/xoptparse.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rake/testtask'
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << 'test'
8
+ t.libs << 'lib'
9
+ t.test_files = FileList['test/**/*_test.rb']
10
+ end
11
+
12
+ task default: :test
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'xoptparse'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'xoptparse'
@@ -0,0 +1,267 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'xoptparse/version'
4
+ require 'optparse'
5
+
6
+ class XOptionParser < ::OptionParser
7
+ class << self
8
+ def valid_arg_switch_ranges?(ranges)
9
+ ranges.inject(0) do |pt, r| # prev_type = req: 0, opt: 1, rest: 2, after_req: 3
10
+ t = r.end.nil? ? 2 : 1 - r.begin
11
+ next pt.zero? ? 0 : 3 if t.zero?
12
+ next t if pt < 2 && pt <= t
13
+
14
+ return false
15
+ end
16
+ true
17
+ end
18
+
19
+ def calc_arg_switch_ranges_counts(ranges)
20
+ req_count = 0
21
+ opt_count = 0
22
+ rest_req_count = nil
23
+ last_req_count = 0
24
+ ranges.each do |r|
25
+ if r.end.nil?
26
+ rest_req_count = r.begin
27
+ elsif r.begin.zero?
28
+ opt_count += 1
29
+ elsif opt_count.positive? || rest_req_count
30
+ last_req_count += 1
31
+ else
32
+ req_count += 1
33
+ end
34
+ end
35
+ [req_count, opt_count, rest_req_count, last_req_count]
36
+ end
37
+ end
38
+
39
+ attr_reader :description
40
+
41
+ def initialize(description = nil, *args)
42
+ @commands = {}
43
+ @arg_stack = [[], []]
44
+ @description = description
45
+ @banner_usage = 'Usage: '
46
+ @banner_options = '[options]'
47
+ @banner_command = '<command>'
48
+ super(nil, *args)
49
+ end
50
+
51
+ def no_options
52
+ visit(:summarize, {}, {}) { return false }
53
+ true
54
+ end
55
+ private :no_options
56
+
57
+ def banner # rubocop:disable Metrics/AbcSize
58
+ return @banner if @banner
59
+
60
+ banner = +"#{@banner_usage}#{program_name}"
61
+ banner << " #{@banner_options}" unless no_options
62
+ visit(:add_banner, banner)
63
+ banner << " #{@banner_command}" unless @commands.empty?
64
+ @arg_stack.flatten(1).each do |sw|
65
+ banner << " #{sw.short.first}"
66
+ end
67
+ banner << "\n\n#{description}" if description
68
+
69
+ banner
70
+ end
71
+
72
+ def summarize(to = [], width = @summary_width, max = width - 1, indent = @summary_indent, &blk) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
73
+ nl = "\n"
74
+ blk ||= proc { |l| to << (l.index(nl, -1) ? l : l + nl) }
75
+
76
+ no_opt = @arg_stack.flatten(1).empty? && no_options
77
+ blk.call("\nOptions:") if to.is_a?(String) && !no_opt
78
+
79
+ res = super(to, width, max, indent, &blk)
80
+ @arg_stack.flatten(1).each do |sw|
81
+ sw.summarize({}, {}, width, max, indent, &blk)
82
+ end
83
+
84
+ unless @commands.empty?
85
+ blk.call("\nCommands:") if to.is_a?(String)
86
+ @commands.each do |name, command|
87
+ sw = Switch::NoArgument.new(nil, nil, [name], nil, nil, command[1] ? [command[1]] : [], nil)
88
+ sw.summarize({}, {}, width, max, indent, &blk)
89
+ end
90
+ end
91
+
92
+ res
93
+ end
94
+
95
+ def define_opt_switch_values(target, swvs)
96
+ case target
97
+ when :tail
98
+ base.append(*swvs)
99
+ when :head
100
+ top.prepend(*swvs)
101
+ else
102
+ top.append(*swvs)
103
+ end
104
+ end
105
+ private :define_opt_switch_values
106
+
107
+ def search_arg_switch_atype(sw0)
108
+ @stack.reverse_each do |el|
109
+ el.atype.each do |klass, atype|
110
+ next unless atype[1] == sw0.conv
111
+ return [nil, nil] if klass == Object
112
+
113
+ return atype
114
+ end
115
+ end
116
+
117
+ [nil, nil]
118
+ end
119
+ private :search_arg_switch_atype
120
+
121
+ def fix_arg_switch(sw0) # rubocop:disable Metrics/AbcSize
122
+ pattern, conv = search_arg_switch_atype(sw0)
123
+ sw0.instance_variable_set(:@pattern, pattern)
124
+ sw0.instance_variable_set(:@conv, conv)
125
+ sw0.instance_variable_set(:@short, [sw0.desc.shift])
126
+
127
+ # arg pattern example:
128
+ # * req req => 1..1, 1..1
129
+ # * req [opt] => 1..1, 0..1
130
+ # * req... => 1..nil
131
+ # * [opt...] => 0..nil
132
+ # * req [opt] req... => 1..1, 0..1, 1..nil
133
+ # * req [opt...] => 1..1, 0..nil
134
+ # * req [opt...] req => 1..1, 0..nil, 1..1
135
+ ranges = sw0.short.first.scan(/(?:\[\s*(.*?)\s*\]|(\S+))/).map do |opt, req|
136
+ (opt ? 0 : 1)..((opt || req).end_with?('...') ? nil : 1)
137
+ end
138
+ unless self.class.valid_arg_switch_ranges?(ranges)
139
+ raise ArgumentError, "unsupported argument format: #{sw0.short.first.inspect}"
140
+ end
141
+
142
+ sw0.instance_variable_set(:@ranges, ranges)
143
+ sw0.define_singleton_method(:ranges) { @ranges }
144
+ sw0
145
+ end
146
+ private :fix_arg_switch
147
+
148
+ def valid_arg_switch(sw0)
149
+ ranges = @arg_stack.flatten(1).map(&:ranges).flatten(1)
150
+ unless self.class.valid_arg_switch_ranges?(ranges)
151
+ raise ArgumentError, "unsupported argument format: #{sw0.short.first.inspect}"
152
+ end
153
+
154
+ sw0
155
+ end
156
+ private :valid_arg_switch
157
+
158
+ def define_arg_switch(target, sw0)
159
+ case target
160
+ when :tail
161
+ @arg_stack[1].append(sw0)
162
+ when :head
163
+ @arg_stack[0].prepend(sw0)
164
+ else
165
+ @arg_stack[0].append(sw0)
166
+ end
167
+
168
+ valid_arg_switch(sw0)
169
+ end
170
+ private :define_arg_switch
171
+
172
+ def define_at(target, *opts, &block)
173
+ sw = make_switch(opts, block || proc {})
174
+ sw0 = sw[0]
175
+ if sw0.short || sw0.long
176
+ define_opt_switch_values(target, sw)
177
+ else
178
+ sw0 = fix_arg_switch(sw0)
179
+ define_arg_switch(target, sw0)
180
+ end
181
+ sw0
182
+ end
183
+ private :define_at
184
+
185
+ def define(*args, &block)
186
+ define_at(:body, *args, &block)
187
+ end
188
+ alias def_option define
189
+
190
+ def define_head(*args, &block)
191
+ define_at(:head, *args, &block)
192
+ end
193
+ alias def_head_option define_head
194
+
195
+ def define_tail(*args, &block)
196
+ define_at(:tail, *args, &block)
197
+ end
198
+ alias def_tail_option define_tail
199
+
200
+ def parse_arguments(original_argv) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
201
+ arg_sws = @arg_stack.flatten(1)
202
+ return original_argv if arg_sws.empty?
203
+
204
+ req_count, opt_count, rest_req_count, last_req_count =
205
+ self.class.calc_arg_switch_ranges_counts(arg_sws.map(&:ranges).flatten(1))
206
+
207
+ argv_min = req_count + last_req_count + (rest_req_count || 0)
208
+ raise MissingArgument, original_argv.join(' ').to_s if original_argv.size < argv_min
209
+
210
+ argv_max = rest_req_count ? nil : argv_min + opt_count
211
+ argv = original_argv.slice!(0...argv_max)
212
+
213
+ opt_size = [argv.size - argv_min, opt_count].min
214
+ req_argv = argv[0...req_count] + argv[(argv.size - last_req_count)...argv.size]
215
+ opt_argv = argv[req_count...(req_count + opt_size)] # + ([nil] * (opt_count - opt_size))
216
+ rest_argv = argv[(req_count + opt_size)...(argv.size - last_req_count)]
217
+
218
+ arg_sws.each do |sw|
219
+ conv = proc { |v| sw.send(:conv_arg, *sw.send(:parse_arg, v))[2] }
220
+ a = sw.ranges.map do |r|
221
+ if r.end.nil?
222
+ rest_argv.map(&conv)
223
+ elsif r.begin.zero?
224
+ conv.call(opt_argv.shift)
225
+ else
226
+ conv.call(req_argv.shift)
227
+ end
228
+ end
229
+ sw.block.call(*a)
230
+ end
231
+
232
+ original_argv
233
+ end
234
+ private :parse_arguments
235
+
236
+ def order!(*args, **kwargs) # rubocop:disable Metrics/AbcSize
237
+ if @commands.empty?
238
+ argv = super(*args, **kwargs)
239
+ return block_given? ? argv : parse_arguments(argv)
240
+ end
241
+
242
+ argv = super(*args, **kwargs) { |a| throw :terminate, a }
243
+ return argv if argv.empty?
244
+
245
+ name = argv.shift
246
+ cmd = @commands[name]
247
+ return cmd.first.call.send(block_given? ? :permute! : :order!, *args, **kwargs) if cmd
248
+
249
+ puts "#{program_name}:" \
250
+ "'#{name}' is not a #{program_name} command. See '#{program_name} --help'."
251
+ exit
252
+ end
253
+
254
+ def permute!(*args, **kwargs)
255
+ parse_arguments(super(*args, **kwargs))
256
+ end
257
+
258
+ def command(name, desc = nil, *args, &block)
259
+ @commands[name.to_s] = [proc do
260
+ self.class.new(desc, *args) do |opt|
261
+ opt.program_name = "#{program_name} #{name}"
262
+ block.call(opt) if block
263
+ end
264
+ end, desc]
265
+ nil
266
+ end
267
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'optparse'
4
+
5
+ class XOptionParser < ::OptionParser
6
+ VERSION = '0.1.0'
7
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'xoptparse/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'xoptparse'
9
+ spec.version = XOptionParser::VERSION
10
+ spec.authors = ['ofk']
11
+ spec.email = ['ofkjpn+github@gmail.com']
12
+
13
+ spec.summary = ''
14
+ spec.description = ''
15
+ spec.homepage = 'https://github.com/ofk/xoptparse'
16
+ spec.license = 'MIT'
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+ spec.bindir = 'exe'
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ['lib']
26
+
27
+ spec.add_development_dependency 'bundler', '~> 1.17'
28
+ spec.add_development_dependency 'minitest', '~> 5.0'
29
+ spec.add_development_dependency 'minitest-power_assert'
30
+ spec.add_development_dependency 'minitest-reporters'
31
+ spec.add_development_dependency 'rake', '~> 12.3.3'
32
+ spec.add_development_dependency 'rubocop', '0.84.0'
33
+ spec.add_development_dependency 'simplecov'
34
+ end
metadata ADDED
@@ -0,0 +1,156 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: xoptparse
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - ofk
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-07-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.17'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.17'
27
+ - !ruby/object:Gem::Dependency
28
+ name: minitest
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest-power_assert
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest-reporters
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 12.3.3
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 12.3.3
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '='
88
+ - !ruby/object:Gem::Version
89
+ version: 0.84.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '='
95
+ - !ruby/object:Gem::Version
96
+ version: 0.84.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: ''
112
+ email:
113
+ - ofkjpn+github@gmail.com
114
+ executables:
115
+ - xoptparse
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - ".gitignore"
120
+ - ".rubocop.yml"
121
+ - ".travis.yml"
122
+ - Gemfile
123
+ - Gemfile.lock
124
+ - LICENSE.txt
125
+ - README.md
126
+ - Rakefile
127
+ - bin/console
128
+ - bin/setup
129
+ - exe/xoptparse
130
+ - lib/xoptparse.rb
131
+ - lib/xoptparse/version.rb
132
+ - xoptparse.gemspec
133
+ homepage: https://github.com/ofk/xoptparse
134
+ licenses:
135
+ - MIT
136
+ metadata: {}
137
+ post_install_message:
138
+ rdoc_options: []
139
+ require_paths:
140
+ - lib
141
+ required_ruby_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ requirements: []
152
+ rubygems_version: 3.0.3
153
+ signing_key:
154
+ specification_version: 4
155
+ summary: ''
156
+ test_files: []