gem_bench 2.0.2 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  module GemBench
2
+ # Version is enhanced by VersionGem::Basic once the gem is loaded.
2
3
  module Version
3
- VERSION = "2.0.2"
4
+ VERSION = "2.0.4"
4
5
  end
5
6
  end
data/lib/gem_bench.rb CHANGED
@@ -2,13 +2,14 @@
2
2
  require "version_gem"
3
3
  require "bundler" # This gem utilizes bundler as a tool.
4
4
 
5
- require "gem_bench/version"
6
- require "gem_bench/scout"
7
- require "gem_bench/player"
8
- require "gem_bench/team"
9
- require "gem_bench/gemfile_line_tokenizer"
10
- require "gem_bench/strict_version_gem"
11
- require "gem_bench/strict_version_requirement"
5
+ # this library
6
+ require_relative "gem_bench/version"
7
+ require_relative "gem_bench/scout"
8
+ require_relative "gem_bench/player"
9
+ require_relative "gem_bench/team"
10
+ require_relative "gem_bench/gemfile_line_tokenizer"
11
+ require_relative "gem_bench/strict_version_gem"
12
+ require_relative "gem_bench/strict_version_requirement"
12
13
 
13
14
  module GemBench
14
15
  USAGE = "[GemBench] Usage: Require another gem in this session to evaluate it.\n\tExample:\n\t\trequire 'rails'\n\t\tGemBench.check({verbose: true})\n"
@@ -25,29 +26,41 @@ module GemBench
25
26
  }
26
27
 
27
28
  class << self
28
- attr_accessor :roster
29
-
30
- def check(verbose: false)
31
- @roster = GemBench::Team.new({verbose: verbose})
29
+ def check(verbose: false, gemfile_path: nil)
30
+ options = {
31
+ verbose: verbose,
32
+ }
33
+ options[:gemfile_path] = gemfile_path if gemfile_path
34
+ GemBench::Team.new(**options)
32
35
  end
33
36
 
34
- def versions_present?(verbose: false)
35
- @roster = GemBench::StrictVersionRequirement.new({verbose: verbose})
36
- @roster.versions_present?
37
+ def versions_present?(verbose: false, gemfile_path: nil)
38
+ options = {
39
+ verbose: verbose,
40
+ }
41
+ options[:gemfile_path] = gemfile_path if gemfile_path
42
+ GemBench::StrictVersionRequirement.new(**options).versions_present?
37
43
  end
38
44
 
39
- def list_missing_version_constraints(verbose: false)
40
- @roster = GemBench::StrictVersionRequirement.new({verbose: verbose})
41
- @roster.list_missing_version_constraints
45
+ def list_missing_version_constraints(verbose: false, gemfile_path: nil)
46
+ options = {
47
+ verbose: verbose,
48
+ }
49
+ options[:gemfile_path] = gemfile_path if gemfile_path
50
+ GemBench::StrictVersionRequirement.new(**options).list_missing_version_constraints
42
51
  end
43
52
 
44
53
  def find(look_for_regex: GemBench::RAILTIE_REGEX,
45
- exclude_file_pattern_regex_proc: GemBench::EXCLUDE_FILE_PATTERN_REGEX_PROC, verbose: false)
46
- @roster = GemBench::Team.new({
54
+ exclude_file_pattern_regex_proc: GemBench::EXCLUDE_FILE_PATTERN_REGEX_PROC,
55
+ verbose: false,
56
+ gemfile_path: nil)
57
+ options = {
58
+ verbose: verbose,
47
59
  look_for_regex: look_for_regex,
48
60
  exclude_file_pattern_regex_proc: exclude_file_pattern_regex_proc,
49
- verbose: verbose,
50
- })
61
+ }
62
+ options[:gemfile_path] = gemfile_path if gemfile_path
63
+ GemBench::Team.new(**options)
51
64
  end
52
65
  end
53
66
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_bench
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -12,31 +12,31 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
14
14
  ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
15
- A2NvbTAeFw0yMzA5MjAxNzMwMjhaFw0yNDA5MTkxNzMwMjhaMEMxFTATBgNVBAMM
15
+ A2NvbTAeFw0yNDA5MjAwODU4NDJaFw0yNTA5MjAwODU4NDJaM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xrfYrN+9HvMdm+nZ6TypmKftHY3Gj+/uu+g8Icm/zrvTWAEE0mcJOkfrIoNPJb
37
- pF8dMA==
29
+ ggGBAA4fLU2+mQ++jBhVM2IeyvQdw1nm+0thkH4Ldv8ZOBm5ZxCPGIMoYliDDzg4
30
+ 4JDFxZR1wR4sdrz/K5tWtEkN23SKzopwbNb1NIQRSLQ7nOoc+4bkuz9xwKinmIvF
31
+ D+5qsl2S27WLKFreMDtGoh0CREIMBUxU4rGTh0gtzmweGR+fnOShg4Jo0kxrjU5h
32
+ uYk/uVE+bn/jOEGs43GvKXZLyshpBrZjQ+ArbvxDht5t35zbSxerbUxUPZUbXUCW
33
+ tTyh38a9UYjAAHvnh6Y4Fi9wd4/pGNsektrzB3z/zlVj4YF2TMLX9XfNJWEGRGpO
34
+ sSkLYdtEX1WQAmuZtActVW2cL3HdQaRbiv7VbfpA0eSk0ZdZHvBCl516ZZu10uX6
35
+ 82W1mg6fuezdpeBOiXwrEbZSt/oGiF4V511F6nd55p0okwHc/6nS10F/3aKJ4gwC
36
+ I5o+DRfXQHqKucx1ldFHvI2rE/kSCWqGTHN2eyu1sqCPeOoIMxrltJhaejKPkxqj
37
+ zaF9Og==
38
38
  -----END CERTIFICATE-----
39
- date: 2024-09-18 00:00:00.000000000 Z
39
+ date: 2024-09-20 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
@@ -130,16 +130,16 @@ dependencies:
130
130
  name: awesome_print
131
131
  requirement: !ruby/object:Gem::Requirement
132
132
  requirements:
133
- - - ">="
133
+ - - "~>"
134
134
  - !ruby/object:Gem::Version
135
- version: '0'
135
+ version: '1.9'
136
136
  type: :development
137
137
  prerelease: false
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
- - - ">="
140
+ - - "~>"
141
141
  - !ruby/object:Gem::Version
142
- version: '0'
142
+ version: '1.9'
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: method_source
145
145
  requirement: !ruby/object:Gem::Requirement
@@ -160,42 +160,48 @@ dependencies:
160
160
  requirements:
161
161
  - - ">="
162
162
  - !ruby/object:Gem::Version
163
- version: '0'
163
+ version: '10'
164
164
  type: :development
165
165
  prerelease: false
166
166
  version_requirements: !ruby/object:Gem::Requirement
167
167
  requirements:
168
168
  - - ">="
169
169
  - !ruby/object:Gem::Version
170
- version: '0'
170
+ version: '10'
171
171
  - !ruby/object:Gem::Dependency
172
172
  name: rspec
173
173
  requirement: !ruby/object:Gem::Requirement
174
174
  requirements:
175
- - - ">="
175
+ - - "~>"
176
176
  - !ruby/object:Gem::Version
177
- version: '0'
177
+ version: '3.13'
178
178
  type: :development
179
179
  prerelease: false
180
180
  version_requirements: !ruby/object:Gem::Requirement
181
181
  requirements:
182
- - - ">="
182
+ - - "~>"
183
183
  - !ruby/object:Gem::Version
184
- version: '0'
184
+ version: '3.13'
185
185
  - !ruby/object:Gem::Dependency
186
186
  name: rspec-block_is_expected
187
187
  requirement: !ruby/object:Gem::Requirement
188
188
  requirements:
189
+ - - "~>"
190
+ - !ruby/object:Gem::Version
191
+ version: '1.0'
189
192
  - - ">="
190
193
  - !ruby/object:Gem::Version
191
- version: '0'
194
+ version: 1.0.6
192
195
  type: :development
193
196
  prerelease: false
194
197
  version_requirements: !ruby/object:Gem::Requirement
195
198
  requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '1.0'
196
202
  - - ">="
197
203
  - !ruby/object:Gem::Version
198
- version: '0'
204
+ version: 1.0.6
199
205
  - !ruby/object:Gem::Dependency
200
206
  name: rubocop-lts
201
207
  requirement: !ruby/object:Gem::Requirement
@@ -234,44 +240,30 @@ dependencies:
234
240
  name: rubocop-rspec
235
241
  requirement: !ruby/object:Gem::Requirement
236
242
  requirements:
237
- - - ">="
238
- - !ruby/object:Gem::Version
239
- version: '0'
240
- type: :development
241
- prerelease: false
242
- version_requirements: !ruby/object:Gem::Requirement
243
- requirements:
244
- - - ">="
245
- - !ruby/object:Gem::Version
246
- version: '0'
247
- - !ruby/object:Gem::Dependency
248
- name: simplecov
249
- requirement: !ruby/object:Gem::Requirement
250
- requirements:
251
- - - ">="
243
+ - - "~>"
252
244
  - !ruby/object:Gem::Version
253
- version: '0'
245
+ version: '3.0'
254
246
  type: :development
255
247
  prerelease: false
256
248
  version_requirements: !ruby/object:Gem::Requirement
257
249
  requirements:
258
- - - ">="
250
+ - - "~>"
259
251
  - !ruby/object:Gem::Version
260
- version: '0'
252
+ version: '3.0'
261
253
  - !ruby/object:Gem::Dependency
262
254
  name: standard
263
255
  requirement: !ruby/object:Gem::Requirement
264
256
  requirements:
265
- - - ">="
257
+ - - "~>"
266
258
  - !ruby/object:Gem::Version
267
- version: 1.35.1
259
+ version: '1.40'
268
260
  type: :development
269
261
  prerelease: false
270
262
  version_requirements: !ruby/object:Gem::Requirement
271
263
  requirements:
272
- - - ">="
264
+ - - "~>"
273
265
  - !ruby/object:Gem::Version
274
- version: 1.35.1
266
+ version: '1.40'
275
267
  description: |-
276
268
  * Benchmark different versions of same or similar gems
277
269
  * Copy & Re-namespace any gem to benchmark side-by-side with `benchmarks-ips`
@@ -304,10 +296,10 @@ licenses:
304
296
  - MIT
305
297
  metadata:
306
298
  homepage_uri: https://railsbling.com/tags/gem_bench/
307
- source_code_uri: http://github.com/pboling/gem_bench/tree/v2.0.2
308
- changelog_uri: http://github.com/pboling/gem_bench/blob/v2.0.2/CHANGELOG.md
299
+ source_code_uri: http://github.com/pboling/gem_bench/tree/v2.0.4
300
+ changelog_uri: http://github.com/pboling/gem_bench/blob/v2.0.4/CHANGELOG.md
309
301
  bug_tracker_uri: http://github.com/pboling/gem_bench/issues
310
- documentation_uri: https://www.rubydoc.info/gems/gem_bench/2.0.2
302
+ documentation_uri: https://www.rubydoc.info/gems/gem_bench/2.0.4
311
303
  wiki_uri: http://github.com/pboling/gem_bench/wiki
312
304
  funding_uri: https://liberapay.com/pboling
313
305
  rubygems_mfa_required: 'true'
metadata.gz.sig CHANGED
Binary file