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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +47 -23
- data/CODE_OF_CONDUCT.md +74 -25
- data/CONTRIBUTING.md +1 -3
- data/README.md +49 -17
- data/lib/gem_bench/gemfile_line_tokenizer.rb +132 -40
- data/lib/gem_bench/jersey.rb +100 -66
- data/lib/gem_bench/player.rb +2 -0
- data/lib/gem_bench/scout.rb +6 -4
- data/lib/gem_bench/strict_version_gem.rb +3 -1
- data/lib/gem_bench/strict_version_requirement.rb +2 -1
- data/lib/gem_bench/team.rb +16 -6
- data/lib/gem_bench/version.rb +2 -1
- data/lib/gem_bench.rb +34 -21
- data.tar.gz.sig +0 -0
- metadata +52 -60
- metadata.gz.sig +0 -0
data/lib/gem_bench/version.rb
CHANGED
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
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
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
|
-
|
36
|
-
|
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
|
-
|
41
|
-
|
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,
|
46
|
-
|
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
|
-
|
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.
|
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
|
-
|
15
|
+
A2NvbTAeFw0yNDA5MjAwODU4NDJaFw0yNTA5MjAwODU4NDJaMEMxFTATBgNVBAMM
|
16
16
|
DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
/
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
17
|
+
LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAjrxsKObI
|
18
|
+
rFQjBpzvVfqnT6JlF8/pkpgEEjFh7ex3zIerfuHzZvSrx+sRDGxQ8koWWG0Wjx8s
|
19
|
+
wkBZ5dIqvl0g3sWP5asa28u/09opxkQTC1Ao77iYxcBcwoCe/Dpf1m4Q/m6oH0kL
|
20
|
+
2AZVNJQL3UkqAcLS0tsj/s/jAKnVlsaZZE5gQiIIi8HtkvSsajtx+Cq2AxDvcWvV
|
21
|
+
/CliD+pmzYkTjvjwGm8yeyFGGGgrisJMryiZdZlkTwrQSjCzudIKbLeuG8Se4JTD
|
22
|
+
TAcT+rPubr27v1jwmtIjtiot3rf4nof7LHLb122a/0VR7cC7xPLnXw0Cq1BShvoq
|
23
|
+
/GKRdSwMNinTOGkFTK1gKnjN+3iD4zyXU3XO3CXoTr+Ju8fXPN1x4tpOMgbv8dme
|
24
|
+
WbcQMOH9ZjmA5w0bSVRL1c3NhRRpUzrKTNX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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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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:
|
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:
|
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.
|
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.
|
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.
|
308
|
-
changelog_uri: http://github.com/pboling/gem_bench/blob/v2.0.
|
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.
|
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
|