ruby-fire 0.1.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8b0011117e3fb41be4cd38774995a65e8465d089f5765ad7449c6bf03bb7583c
4
+ data.tar.gz: e29908fce178ce22ddf08b54cf7e6c71344f31ec0899a9a40addcd83b7cc9324
5
+ SHA512:
6
+ metadata.gz: f58ddc9cc964457011bd9de1f433921fd51e7a00c57c0a94515c60973e887a88b7cafbda0fa71df70cba896893c8008075237f2256803616dddaa7d4629424c5
7
+ data.tar.gz: 73759f767b26ccc4217b1407b17bb3c7b071764dd6cdef3225e379b6dc33083640bad02508204157de48b59cd06f8ec219ae0973a2b7f895aa08550f9fb9a7da
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,46 @@
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
+ - examples/**/*
14
+ - test/**/*
15
+
16
+ Metrics/BlockLength:
17
+ Enabled: false
18
+
19
+ Metrics/ClassLength:
20
+ Enabled: false
21
+
22
+ Metrics/ParameterLists:
23
+ Exclude:
24
+ - test/**/*
25
+
26
+ Metrics/MethodLength:
27
+ Enabled: false
28
+
29
+ Naming/MethodParameterName:
30
+ Exclude:
31
+ - examples/**/*
32
+ - test/**/*
33
+
34
+ Style/Documentation:
35
+ Enabled: false
36
+
37
+ Style/FrozenStringLiteralComment:
38
+ Safe: true
39
+
40
+ Style/OptionalArguments:
41
+ Exclude:
42
+ - test/**/*
43
+
44
+ Style/SpecialGlobalVars:
45
+ Exclude:
46
+ - examples/**/*
@@ -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 ruby-fire.gemspec
8
+ gemspec
@@ -0,0 +1,64 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ruby-fire (0.1.0)
5
+ xoptparse (~> 0.5.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ ansi (1.5.0)
11
+ ast (2.4.1)
12
+ builder (3.2.4)
13
+ docile (1.3.2)
14
+ minitest (5.14.1)
15
+ minitest-power_assert (0.3.1)
16
+ minitest
17
+ power_assert (>= 1.1)
18
+ minitest-reporters (1.4.2)
19
+ ansi
20
+ builder
21
+ minitest (>= 5.0)
22
+ ruby-progressbar
23
+ parallel (1.19.2)
24
+ parser (2.7.1.4)
25
+ ast (~> 2.4.1)
26
+ power_assert (1.2.0)
27
+ rainbow (3.0.0)
28
+ rake (12.3.3)
29
+ regexp_parser (1.7.1)
30
+ rexml (3.2.4)
31
+ rubocop (0.88.0)
32
+ parallel (~> 1.10)
33
+ parser (>= 2.7.1.1)
34
+ rainbow (>= 2.2.2, < 4.0)
35
+ regexp_parser (>= 1.7)
36
+ rexml
37
+ rubocop-ast (>= 0.1.0, < 1.0)
38
+ ruby-progressbar (~> 1.7)
39
+ unicode-display_width (>= 1.4.0, < 2.0)
40
+ rubocop-ast (0.1.0)
41
+ parser (>= 2.7.0.1)
42
+ ruby-progressbar (1.10.1)
43
+ simplecov (0.18.5)
44
+ docile (~> 1.1)
45
+ simplecov-html (~> 0.11)
46
+ simplecov-html (0.12.2)
47
+ unicode-display_width (1.7.0)
48
+ xoptparse (0.5.0)
49
+
50
+ PLATFORMS
51
+ ruby
52
+
53
+ DEPENDENCIES
54
+ bundler (~> 1.17)
55
+ ruby-fire!
56
+ minitest (~> 5.0)
57
+ minitest-power_assert
58
+ minitest-reporters
59
+ rake (~> 12.3.3)
60
+ rubocop
61
+ simplecov
62
+
63
+ BUNDLED WITH
64
+ 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
+ # Fire
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/ruby-fire`. 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 'ruby-fire'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install ruby-fire
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/ruby-fire.
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 'ruby-fire'
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,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ruby-fire'
4
+
5
+ class Calculator
6
+ def double(number)
7
+ 2 * number.to_i
8
+ end
9
+ end
10
+
11
+ Fire.fire(Calculator) if __FILE__ == $0
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ruby-fire'
4
+
5
+ def caesar_encode(n = 0, text = '')
6
+ text.chars.map { |char| _caesar_shift_char(n, char) } * ''
7
+ end
8
+
9
+ def caesar_decode(n = 0, text = '')
10
+ caesar_encode(-n, text)
11
+ end
12
+
13
+ def rot13(text)
14
+ caesar_encode(13, text)
15
+ end
16
+
17
+ def _caesar_shift_char(n = 0, char = ' ')
18
+ return char unless /^[A-Za-z]$/ =~ char
19
+ return ((char.ord - 'A'.ord + n) % 26 + 'A'.ord).chr if /^[A-Z]$/ =~ char
20
+
21
+ ((char.ord - 'a'.ord + n) % 26 + 'a'.ord).chr
22
+ end
23
+
24
+ # puts rot13('Hello world!') == 'Uryyb jbeyq!'
25
+ # puts rot13('Uryyb jbeyq!') == 'Hello world!'
26
+ # puts caesar_encode(1, 'Hello world!') == 'Ifmmp xpsme!'
27
+ # puts caesar_decode(1, 'Ifmmp xpsme!') == 'Hello world!'
28
+
29
+ Fire.fire(program_name: 'cipher') if __FILE__ == $0
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ruby-fire'
4
+
5
+ def hello(name = 'World')
6
+ "Hello #{name}!"
7
+ end
8
+
9
+ Fire.fire(:hello) if __FILE__ == $0
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'ruby-fire'
@@ -0,0 +1,243 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ruby-fire/version'
4
+ require 'xoptparse'
5
+ require 'pp'
6
+
7
+ class Fire
8
+ METHODS_CODE = 'public_methods(false)+private_methods(false)'
9
+ TOPLEVEL_METHODS = TOPLEVEL_BINDING.eval(METHODS_CODE)
10
+
11
+ class << self
12
+ def fire(*args, **kwargs, &block)
13
+ res = new(*args, **kwargs, &block).run
14
+ puts res.is_a?(String) ? res : res.pretty_inspect unless res.nil?
15
+ end
16
+
17
+ def parameters_call(func, func_parameters, params, error = true)
18
+ args, kwargs = method_arguments(func_parameters, params)
19
+ raise ArgumentError, "unknown keywords: #{params.keys.join(', ')}" if error && !params.empty?
20
+
21
+ if kwargs
22
+ func.call(*args, **kwargs)
23
+ else
24
+ func.call(*args)
25
+ end
26
+ end
27
+
28
+ def method_arguments(func_parameters, params) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
29
+ args = []
30
+ kwargs = nil
31
+ skip_opts = []
32
+ func_parameters.each do |type, name, default|
33
+ case type
34
+ when :req
35
+ args << params.delete(name) if params.include?(name)
36
+ when :opt
37
+ if params.include?(name)
38
+ args << skip_opts.shift until skip_opts.empty?
39
+ args << params.delete(name)
40
+ else
41
+ skip_opts << default
42
+ end
43
+ when :rest
44
+ args.push(*(params.delete(name) || []))
45
+ when :keyreq, :key
46
+ (kwargs ||= {})[name] = params.delete(name) if params.include?(name)
47
+ when :keyrest
48
+ params.each_key do |key|
49
+ (kwargs ||= {})[key] = params.delete(key)
50
+ end
51
+ end
52
+ end
53
+ [args, kwargs]
54
+ end
55
+ private :method_arguments
56
+
57
+ def new_method?(func)
58
+ func.is_a?(Method) && func.owner.is_a?(Class) && func.name == :new
59
+ end
60
+
61
+ def trace_parameters(trace_func) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
62
+ is_proc = trace_func.is_a?(Proc)
63
+ func = new_method?(trace_func) ? trace_func.receiver.instance_method(:initialize) : trace_func
64
+
65
+ mock_kwargs = nil
66
+ func.parameters.each do |type, name|
67
+ (mock_kwargs ||= {})[name] = nil if type == :keyreq
68
+ end
69
+ mock_arg_size = (func.arity.negative? ? ~func.arity : func.arity) - (mock_kwargs ? 1 : 0)
70
+ mock_args = Array.new(mock_arg_size)
71
+
72
+ [].tap do |results|
73
+ counts = { call: 0, b_call: -1, c_call: -1 }
74
+ trace = TracePoint.new(:call, :b_call, :c_call) do |tp|
75
+ # :nocov:
76
+ count = counts[tp.event] += 1
77
+ next unless count.positive?
78
+
79
+ if is_proc
80
+ next unless tp.event == :b_call
81
+
82
+ # It is difficult to skip extra block...
83
+ vars = tp.binding.local_variables
84
+ next unless func.parameters.all? { |_type, name| vars.include?(name) }
85
+ else
86
+ next if tp.event == :b_call
87
+ next unless tp.defined_class == func.owner && tp.callee_id == func.name
88
+ end
89
+
90
+ func.parameters.each do |type, name|
91
+ opt = %i[opt key].include?(type)
92
+ results << [type, name, opt && name ? tp.binding.local_variable_get(name) : nil]
93
+ end
94
+ raise TracePointTerminate
95
+ # :nocov:
96
+ end
97
+ trace.enable do
98
+ if mock_kwargs
99
+ trace_func.call(*mock_args, **mock_kwargs)
100
+ else
101
+ trace_func.call(*mock_args)
102
+ end
103
+ end
104
+ rescue TracePointTerminate # rubocop:disable Lint/SuppressedException
105
+ end
106
+ end
107
+ end
108
+
109
+ def initialize(rec = nil, program_name: nil, &block)
110
+ if rec.is_a?(Symbol)
111
+ main = TOPLEVEL_BINDING.receiver
112
+ rec = (main.method(rec) if main.private_methods.include?(rec) || main.methods.include?(rec))
113
+ end
114
+ @rec = rec || block || TOPLEVEL_BINDING
115
+ @program_name = program_name
116
+ @current_run_params = nil
117
+ end
118
+
119
+ def parser
120
+ XOptionParser.new do |opt|
121
+ opt.program_name = @program_name if @program_name
122
+ define_options(opt, [], @rec)
123
+ end
124
+ end
125
+
126
+ def define_options(opt, keys, rec) # rubocop:disable Metrics/AbcSize
127
+ case rec
128
+ when Proc, Method, UnboundMethod
129
+ @current_run_params = [*define_method_options(opt, rec), keys]
130
+ when Binding
131
+ methods = rec.eval(METHODS_CODE)
132
+ methods -= TOPLEVEL_METHODS if rec == TOPLEVEL_BINDING
133
+ define_commands(opt, keys, methods) do |name|
134
+ rec.eval("method(#{name.inspect})")
135
+ end
136
+ when Module
137
+ define_commands(opt, keys, rec.methods(false)) do |name|
138
+ rec.method(name)
139
+ end
140
+
141
+ if rec.respond_to?(:new)
142
+ define_options(opt, keys, rec.method(:new))
143
+ define_commands(opt, keys, rec.instance_methods(false)) do |name|
144
+ current_run(false).method(name)
145
+ end
146
+ end
147
+ else
148
+ define_commands(opt, keys, rec.public_methods(false)) do |name|
149
+ rec.method(name)
150
+ end
151
+ end
152
+ end
153
+ private :define_options
154
+
155
+ def define_method_options(opt, func) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
156
+ convert_classes = [].tap do |a|
157
+ opt.send(:visit, :tap) do |el|
158
+ el.atype.each do |key, _val|
159
+ a << key if key.is_a?(Class) && ![Object, NilClass].include?(key)
160
+ end
161
+ end
162
+ end
163
+
164
+ func_parameters = self.class.trace_parameters(func)
165
+ if func_parameters.any? { |type, *_args| %i[req opt rest keyreq key].include?(type) }
166
+ opt.separator ''
167
+ opt.separator 'Options:'
168
+ end
169
+ func_parameters.each do |type, name, default|
170
+ conv_class = convert_classes.find { |kl| default.is_a?(kl) }
171
+ klass = conv_class || Object
172
+ desc = %i[opt key].include?(type) ? "(default #{default})" : ''
173
+ case type
174
+ when :req
175
+ opt.on(name.to_s, klass, desc, &:itself)
176
+ when :opt
177
+ opt.on("[#{name}]", klass, desc, &:itself)
178
+ when :rest
179
+ opt.on("[#{name}...]", klass, desc, &:itself)
180
+ when :keyreq, :key
181
+ long = if [TrueClass, FalseClass].include?(conv_class)
182
+ "--[no-]#{name} [FLAG]"
183
+ else
184
+ "--#{name} #{(conv_class || String).to_s.upcase}"
185
+ end
186
+ opt.on(long, klass, desc, &:itself)
187
+ end
188
+ end
189
+
190
+ [func, func_parameters]
191
+ end
192
+ private :define_method_options
193
+
194
+ def define_commands(opt, keys, method_names)
195
+ return if method_names.empty?
196
+
197
+ opt.separator ''
198
+ opt.separator 'Commands:'
199
+ method_names.each do |name|
200
+ opt.command(name) do |sub_opt|
201
+ sub_rec = yield name
202
+ define_options(sub_opt, keys + [name], sub_rec)
203
+ end
204
+ end
205
+ end
206
+ private :define_commands
207
+
208
+ def parse!(argv = ARGV) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity
209
+ @opt = parser
210
+ @params = {}
211
+ args = @opt.parse!(argv, into: @params)
212
+ if !args.empty? || @current_run_params.nil? || self.class.new_method?(@current_run_params.first)
213
+ raise XOptionParser::InvalidArgument
214
+ end
215
+ rescue XOptionParser::ParseError => e
216
+ @current_run_params&.last&.each do |key|
217
+ @opt = @opt.instance_variable_get(:@commands)[key.to_s].block.call
218
+ end
219
+ raise e
220
+ end
221
+
222
+ def current_run(error = true)
223
+ func, func_parameters, keys = @current_run_params
224
+ params = keys.empty? ? @params : @params.dig(*keys)
225
+ self.class.parameters_call(func, func_parameters, params, error)
226
+ end
227
+ private :current_run
228
+
229
+ def run!(*args)
230
+ parse!(*args)
231
+ current_run
232
+ end
233
+
234
+ def run(*args)
235
+ run!(*args)
236
+ rescue XOptionParser::ParseError
237
+ puts @opt.help
238
+ exit
239
+ end
240
+
241
+ class TracePointTerminate < StandardError
242
+ end
243
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Fire
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,35 @@
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 'ruby-fire/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'ruby-fire'
9
+ spec.version = Fire::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/ruby-fire'
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_dependency 'xoptparse', '~> 0.5.0'
28
+ spec.add_development_dependency 'bundler', '~> 1.17'
29
+ spec.add_development_dependency 'minitest', '~> 5.0'
30
+ spec.add_development_dependency 'minitest-power_assert'
31
+ spec.add_development_dependency 'minitest-reporters'
32
+ spec.add_development_dependency 'rake', '~> 12.3.3'
33
+ spec.add_development_dependency 'rubocop'
34
+ spec.add_development_dependency 'simplecov'
35
+ end
metadata ADDED
@@ -0,0 +1,173 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby-fire
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-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: xoptparse
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.5.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.5.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.17'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.17'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest-power_assert
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: minitest-reporters
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 12.3.3
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 12.3.3
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
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
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: ''
126
+ email:
127
+ - ofkjpn+github@gmail.com
128
+ executables:
129
+ - fire
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - ".gitignore"
134
+ - ".rubocop.yml"
135
+ - ".travis.yml"
136
+ - Gemfile
137
+ - Gemfile.lock
138
+ - LICENSE.txt
139
+ - README.md
140
+ - Rakefile
141
+ - bin/console
142
+ - bin/setup
143
+ - examples/calculator.rb
144
+ - examples/cipher.rb
145
+ - examples/hello.rb
146
+ - exe/fire
147
+ - lib/ruby-fire.rb
148
+ - lib/ruby-fire/version.rb
149
+ - ruby-fire.gemspec
150
+ homepage: https://github.com/ofk/ruby-fire
151
+ licenses:
152
+ - MIT
153
+ metadata: {}
154
+ post_install_message:
155
+ rdoc_options: []
156
+ require_paths:
157
+ - lib
158
+ required_ruby_version: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
163
+ required_rubygems_version: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ">="
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ requirements: []
169
+ rubygems_version: 3.0.3
170
+ signing_key:
171
+ specification_version: 4
172
+ summary: ''
173
+ test_files: []