gem_bench 1.0.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data/{CHANGELOG → CHANGELOG.md} +50 -15
- data/CODE_OF_CONDUCT.md +84 -0
- data/CONTRIBUTING.md +46 -0
- data/LICENSE.txt +17 -18
- data/README.md +83 -51
- data/SECURITY.md +14 -0
- data/lib/gem_bench/gemfile_line_tokenizer.rb +59 -55
- data/lib/gem_bench/player.rb +38 -33
- data/lib/gem_bench/scout.rb +19 -20
- data/lib/gem_bench/strict_version_gem.rb +16 -21
- data/lib/gem_bench/strict_version_requirement.rb +26 -30
- data/lib/gem_bench/team.rb +120 -81
- data/lib/gem_bench/version.rb +3 -1
- data/lib/gem_bench.rb +21 -8
- data.tar.gz.sig +1 -0
- metadata +188 -35
- metadata.gz.sig +0 -0
- data/.byebug_history +0 -44
- data/.gitignore +0 -16
- data/.rspec +0 -2
- data/.travis.yml +0 -9
- data/Gemfile +0 -6
- data/Rakefile +0 -6
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/gem_bench.gemspec +0 -37
data/lib/gem_bench/team.rb
CHANGED
@@ -2,14 +2,37 @@ require "forwardable"
|
|
2
2
|
|
3
3
|
module GemBench
|
4
4
|
class Team
|
5
|
-
EXCLUDE = [
|
6
|
-
|
7
|
-
|
5
|
+
EXCLUDE = %w[
|
6
|
+
bundler
|
7
|
+
gem_bench
|
8
|
+
i18n-airbrake
|
9
|
+
devise-async
|
10
|
+
km
|
11
|
+
vestal_versions
|
12
|
+
omniauth-facebook
|
13
|
+
flag_shih_tzu
|
14
|
+
pry-remote
|
15
|
+
koala
|
16
|
+
simple_form
|
17
|
+
thumbs_up
|
18
|
+
memoist
|
19
|
+
cancan
|
20
|
+
friendly_id
|
21
|
+
faker
|
22
|
+
]
|
8
23
|
# A comment preceding the require: false anywhere on the line should not be considered an active require: false
|
9
24
|
extend Forwardable
|
10
25
|
def_delegators :@scout, :gem_paths, :gemfile_path, :check_gemfile?, :loaded_gems
|
11
26
|
attr_reader :scout, :look_for_regex
|
12
|
-
attr_accessor :all,
|
27
|
+
attr_accessor :all,
|
28
|
+
:excluded,
|
29
|
+
:starters,
|
30
|
+
:benchers,
|
31
|
+
:verbose,
|
32
|
+
:gemfile_lines,
|
33
|
+
:trash_lines,
|
34
|
+
:current_gemfile_suggestions,
|
35
|
+
:bad_ideas
|
13
36
|
|
14
37
|
def initialize(options = {})
|
15
38
|
@look_for_regex = options[:look_for_regex]
|
@@ -20,94 +43,104 @@ module GemBench
|
|
20
43
|
@scout = GemBench::Scout.new(check_gemfile: options[:check_gemfile] || benching?)
|
21
44
|
@exclude_file_pattern_regex_proc = options[:exclude_file_pattern_regex_proc].respond_to?(:call) ? options[:exclude_file_pattern_regex_proc] : GemBench::EXCLUDE_FILE_PATTERN_REGEX_PROC
|
22
45
|
# Among the loaded gems there may be some that did not need to be.
|
23
|
-
@excluded, @all = @scout.loaded_gems.partition {|x| EXCLUDE.include?(x[0]) }
|
24
|
-
exclusions = " + #{
|
46
|
+
@excluded, @all = @scout.loaded_gems.partition { |x| EXCLUDE.include?(x[0]) }
|
47
|
+
exclusions = " + #{excluded.length} loaded gems which GemBench is configured to ignore.\n" if @excluded.length > 0
|
25
48
|
@starters = []
|
26
49
|
@benchers = []
|
27
50
|
@current_gemfile_suggestions = []
|
28
51
|
@verbose = options[:verbose]
|
29
|
-
|
52
|
+
check_all
|
30
53
|
@bad_ideas = if benching?
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
54
|
+
if options[:bad_ideas]
|
55
|
+
true
|
56
|
+
else
|
57
|
+
check_gemfile? ? false : !(options[:bad_ideas] == false)
|
58
|
+
end
|
59
|
+
else
|
60
|
+
false
|
61
|
+
end
|
62
|
+
puts "[GemBench] Will search for gems in #{gem_paths.inspect}\n#{if benching?
|
63
|
+
@scout.check_gemfile? ? "[GemBench] Will check Gemfile at #{gemfile_path}.\n" : "[GemBench] No Gemfile found.\n"
|
64
|
+
else
|
65
|
+
""
|
66
|
+
end}#{bad_ideas ? "[GemBench] Will show bad ideas. Be Careful.\n" : ""}[GemBench] Detected #{all.length} loaded gems#{exclusions}"
|
67
|
+
compare_gemfile if benching? && @scout.check_gemfile?
|
68
|
+
self.print if verbose
|
38
69
|
end
|
39
70
|
|
40
71
|
def list_starters(format: :name)
|
41
|
-
starters.map {|starter| starter.to_s(format)}
|
72
|
+
starters.map { |starter| starter.to_s(format) }
|
42
73
|
end
|
43
74
|
|
44
75
|
def print
|
45
|
-
string =
|
46
|
-
if
|
76
|
+
string = ""
|
77
|
+
if all.empty?
|
47
78
|
string << nothing
|
48
|
-
elsif
|
79
|
+
elsif starters.empty?
|
49
80
|
string << if benching?
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
string << "\t\t#{stat[0]}:#{stat[1]}\n"
|
66
|
-
end
|
67
|
-
end
|
68
|
-
string << "[GemBench] If you want to check for false positives, the files to check for Railties and Engines are listed above.\n" if benching?
|
69
|
-
string << if benching?
|
70
|
-
"[GemBench] #{self.starters.length} out of #{self.all.length} evaluated gems actually need to be loaded at boot time. They are:\n"
|
71
|
-
else
|
72
|
-
"[GemBench] #{self.starters.length} out of #{self.all.length} evaluated gems contain #{look_for_regex}. They are:\n"
|
73
|
-
end
|
74
|
-
self.starters.each_with_index do |starter, index|
|
75
|
-
string << "#{starter.info(index + 1)}\n"
|
76
|
-
end
|
77
|
-
if extra_verbose? && !benching? && self.benchers.length > 0
|
78
|
-
string << "[GemBench] #{self.benchers.length} out of #{self.all.length} evaluated gems did not contain #{look_for_regex}. They are:\n"
|
79
|
-
self.benchers.each_with_index do |bencher, index|
|
80
|
-
string << "#{bencher.info(index + 1)}\n"
|
81
|
-
end
|
81
|
+
"[GemBench] Found no gems that need to load at boot time.\n"
|
82
|
+
else
|
83
|
+
"[GemBench] Found no gems containing #{look_for_regex} in Ruby code.\n"
|
84
|
+
end
|
85
|
+
elsif starters.length > 0
|
86
|
+
string << "\n#{GemBench::USAGE}" unless check_gemfile?
|
87
|
+
string << if benching?
|
88
|
+
"[GemBench] We found a Rails::Railtie or Rails::Engine in the following files. However, it is possible that there are false positives, so you may want to verify that this is the case.\n\n"
|
89
|
+
else
|
90
|
+
"[GemBench] We found #{look_for_regex} in the following files.\n\n"
|
91
|
+
end
|
92
|
+
starters.each do |starter|
|
93
|
+
string << "\t#{starter}:\n"
|
94
|
+
starter.stats.each do |stat|
|
95
|
+
string << "\t\t#{stat[0]}:#{stat[1]}\n"
|
82
96
|
end
|
97
|
+
end
|
98
|
+
if benching?
|
99
|
+
string << "[GemBench] If you want to check for false positives, the files to check for Railties and Engines are listed above.\n"
|
100
|
+
end
|
101
|
+
string << if benching?
|
102
|
+
"[GemBench] #{starters.length} out of #{all.length} evaluated gems actually need to be loaded at boot time. They are:\n"
|
83
103
|
else
|
84
|
-
|
85
|
-
|
104
|
+
"[GemBench] #{starters.length} out of #{all.length} evaluated gems contain #{look_for_regex}. They are:\n"
|
105
|
+
end
|
106
|
+
starters.each_with_index do |starter, index|
|
107
|
+
string << "#{starter.info(index + 1)}\n"
|
86
108
|
end
|
109
|
+
if extra_verbose? && !benching? && benchers.length > 0
|
110
|
+
string << "[GemBench] #{benchers.length} out of #{all.length} evaluated gems did not contain #{look_for_regex}. They are:\n"
|
111
|
+
benchers.each_with_index do |bencher, index|
|
112
|
+
string << "#{bencher.info(index + 1)}\n"
|
113
|
+
end
|
114
|
+
end
|
115
|
+
else
|
116
|
+
string << "[GemBench] Congrats! All gems appear clean.\n"
|
117
|
+
string << "\n#{GemBench::USAGE}" unless check_gemfile?
|
87
118
|
end
|
88
119
|
if check_gemfile? && benching?
|
89
|
-
if
|
90
|
-
string << "[GemBench] Evaluated #{
|
91
|
-
|
120
|
+
if current_gemfile_suggestions.length > 0
|
121
|
+
string << "[GemBench] Evaluated #{all.length} gems and Gemfile at #{gemfile_path}.\n[GemBench] Here are #{current_gemfile_suggestions.length} suggestions for improvement:\n"
|
122
|
+
current_gemfile_suggestions.each_with_index do |player, index|
|
92
123
|
string << "#{player.suggest(index + 1)}\n"
|
93
124
|
end
|
94
125
|
else
|
95
|
-
string <<
|
126
|
+
string << strike_out
|
96
127
|
end
|
97
128
|
end
|
98
129
|
|
99
|
-
if benching? &&
|
130
|
+
if benching? && bad_ideas
|
100
131
|
# Only bad ideas if you are evaluating an actual Gemfile. If just evaluating loaded gems, then info is fine.
|
101
|
-
string <<
|
132
|
+
string << prepare_bad_ideas
|
102
133
|
end
|
103
134
|
|
104
135
|
puts string
|
105
136
|
end
|
106
137
|
|
107
138
|
def strike_out
|
108
|
-
check_gemfile?
|
109
|
-
"[GemBench] Evaluated #{
|
110
|
-
|
139
|
+
if check_gemfile?
|
140
|
+
"[GemBench] Evaluated #{all.length} gems against your Gemfile but found no primary dependencies which can safely skip require on boot (require: false).\n"
|
141
|
+
else
|
142
|
+
"[GemBench] Evaluated #{all.length} gems but found none which can safely skip require on boot (require: false).\n"
|
143
|
+
end
|
111
144
|
end
|
112
145
|
|
113
146
|
def nothing
|
@@ -115,40 +148,46 @@ module GemBench
|
|
115
148
|
end
|
116
149
|
|
117
150
|
def prepare_bad_ideas
|
118
|
-
string =
|
119
|
-
if
|
120
|
-
gemfile_instruction = check_gemfile? ?
|
121
|
-
string << "[GemBench] Evaluated #{
|
122
|
-
|
151
|
+
string = ""
|
152
|
+
if benchers.length > 0
|
153
|
+
gemfile_instruction = check_gemfile? ? "" : "To safely evaluate a Gemfile:\n\t1. Make sure you are in the root of a project with a Gemfile\n\t2. Make sure the gem is actually a dependency in the Gemfile\n"
|
154
|
+
string << "[GemBench] Evaluated #{all.length} loaded gems and found #{benchers.length} which may be able to skip boot loading (require: false).\n*** => WARNING <= ***: Be careful adding non-primary dependencies to your Gemfile as it is generally a bad idea.\n#{gemfile_instruction}"
|
155
|
+
benchers.each_with_index do |player, index|
|
123
156
|
string << "#{player.careful(index + 1)}\n"
|
124
157
|
end
|
125
158
|
else
|
126
|
-
string <<
|
159
|
+
string << strike_out
|
127
160
|
end
|
128
161
|
string
|
129
162
|
end
|
130
163
|
|
131
164
|
def compare_gemfile
|
132
|
-
|
165
|
+
benchers.each do |player|
|
133
166
|
scout.gemfile_lines.each do |line|
|
134
167
|
found = (line =~ player.gemfile_regex)
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
168
|
+
next unless found
|
169
|
+
|
170
|
+
# remove the found line from the array, because no sane person has more than one gem dependency per line... right?
|
171
|
+
line = scout.gemfile_lines.delete_at(scout.gemfile_lines.index(line))
|
172
|
+
# does the line already have require: false?
|
173
|
+
unless line =~ GemBench::REQUIRE_FALSE_REGEX
|
174
|
+
current_gemfile_suggestions << benchers.delete_at(benchers.index(player))
|
141
175
|
end
|
176
|
+
break # outside of the inner loop
|
142
177
|
end
|
143
178
|
end
|
144
179
|
end
|
145
180
|
|
146
181
|
def check_all
|
147
|
-
|
182
|
+
all.each do |player_data|
|
148
183
|
exclude_file_pattern = @exclude_file_pattern_regex_proc.call(player_data[0])
|
149
|
-
player = GemBench::Player.new({
|
150
|
-
|
151
|
-
|
184
|
+
player = GemBench::Player.new({
|
185
|
+
name: player_data[0],
|
186
|
+
version: player_data[1],
|
187
|
+
exclude_file_pattern: exclude_file_pattern,
|
188
|
+
})
|
189
|
+
check(player)
|
190
|
+
add_to_roster(player)
|
152
191
|
end
|
153
192
|
end
|
154
193
|
|
@@ -166,16 +205,16 @@ module GemBench
|
|
166
205
|
|
167
206
|
def add_to_roster(player)
|
168
207
|
if player.starter?
|
169
|
-
|
208
|
+
starters << player
|
170
209
|
else
|
171
|
-
|
210
|
+
benchers << player
|
172
211
|
end
|
173
212
|
end
|
174
213
|
|
175
214
|
private
|
176
215
|
|
177
216
|
def extra_verbose?
|
178
|
-
|
217
|
+
verbose == "extra"
|
179
218
|
end
|
180
219
|
|
181
220
|
def benching?
|
data/lib/gem_bench/version.rb
CHANGED
data/lib/gem_bench.rb
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
-
|
1
|
+
# external gems
|
2
|
+
require "version_gem"
|
2
3
|
require "bundler" # This gem utilizes bundler as a tool.
|
4
|
+
|
5
|
+
require "gem_bench/version"
|
3
6
|
require "gem_bench/scout"
|
4
7
|
require "gem_bench/player"
|
5
8
|
require "gem_bench/team"
|
@@ -10,19 +13,20 @@ require "gem_bench/strict_version_requirement"
|
|
10
13
|
module GemBench
|
11
14
|
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"
|
12
15
|
RAILTIE_REGEX = /Rails::Engine|Rails::Railtie/
|
13
|
-
TRASH_REGEX = /^(\s*)(
|
14
|
-
REQUIRE_FALSE_REGEX = /^[^#]+require((
|
16
|
+
TRASH_REGEX = /^(\s*)(\#+.*)?$/
|
17
|
+
REQUIRE_FALSE_REGEX = /^[^#]+require((:\s*)|(\s*=>\s*))false.*/
|
15
18
|
DEPENDENCY_REGEX_PROC = ->(name) { /^\s*[^#]*\s*gem\s+['"]{1}#{name}['"]{1}/ }
|
16
19
|
PATH_GLOB = ->(name) { "#{name}*/lib/**/*.rb" }
|
17
|
-
EXCLUDE_FILE_PATTERN_REGEX_PROC = ->(name) {
|
20
|
+
EXCLUDE_FILE_PATTERN_REGEX_PROC = ->(name) { %r{#{name}/test|features|spec|bin|exe} }
|
18
21
|
DO_NOT_SCAN = []
|
19
22
|
PLAYER_STATES = {
|
20
|
-
starter:
|
21
|
-
bench:
|
23
|
+
starter: :starter,
|
24
|
+
bench: :bench,
|
22
25
|
}
|
23
26
|
|
24
27
|
class << self
|
25
28
|
attr_accessor :roster
|
29
|
+
|
26
30
|
def check(verbose: false)
|
27
31
|
@roster = GemBench::Team.new({verbose: verbose})
|
28
32
|
end
|
@@ -37,8 +41,17 @@ module GemBench
|
|
37
41
|
@roster.list_missing_version_constraints
|
38
42
|
end
|
39
43
|
|
40
|
-
def find(look_for_regex: GemBench::RAILTIE_REGEX,
|
41
|
-
|
44
|
+
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({
|
47
|
+
look_for_regex: look_for_regex,
|
48
|
+
exclude_file_pattern_regex_proc: exclude_file_pattern_regex_proc,
|
49
|
+
verbose: verbose,
|
50
|
+
})
|
42
51
|
end
|
43
52
|
end
|
44
53
|
end
|
54
|
+
|
55
|
+
GemBench::Version.class_eval do
|
56
|
+
extend VersionGem::Basic
|
57
|
+
end
|
data.tar.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
����蘄���,Wë��(�����E�����=I��4�����S�l߂��Y�'L!����Wd�k�i�0O��"����*�}i�7I�Є�vˡ2"�.�;�,ܣ&l/�K&~������?��9��g��6�{koZ������]�:��9��Z�=����|��k�o\��GM�'�!\�^�`�*��٤H�r�� C>\���M[F��s�*,��)�q2n]�>p>���8�@q�, ��H��<DZ)/\Ֆ
|
metadata
CHANGED
@@ -1,78 +1,213 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_bench
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
|
14
|
+
ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
|
15
|
+
A2NvbTAeFw0yMzA5MjAxNzMwMjhaFw0yNDA5MTkxNzMwMjhaMEMxFTATBgNVBAMM
|
16
|
+
DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
|
17
|
+
LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA+a9UvHo3
|
18
|
+
84k96WgU5Kk5HB+cLZs/modjorsTfqY67MJF5nNvAoqcKTUBW4uG+Zpfnm3jaDO5
|
19
|
+
GxhJEIZWfndYzycHT2KMVQ1uTP82ba8ZaKrPlPIafkbui3mdds47qsmqHiblKERg
|
20
|
+
U532lkwfqHDlJwE7OBZQ59EwWWLynlT/yAUHpOBbqIuHKUxdpmBI+sIjrZcD1e05
|
21
|
+
WmjkO6fwIdC5oM757aoPxIgXD587VOViH11Vkm2doskj4T8yONtwVHlcrrhJ9Bzd
|
22
|
+
/zdp6vEn7GZQrABvpOlqwWxQ72ZnFhJe/RJZf6CXOPOh69Ai0QKYl2a1sYuCJKS3
|
23
|
+
nsBnxXJINEEznjR7rZjNUmYD+CZqfjzgPqedRxTlASe7iA4w7xZOqMDzcuhNwcUQ
|
24
|
+
tMEH6BTktxKP3jXZPXRfHCf6s+HRVb6vezAonTBVyydf5Xp5VwWkd6cwm+2BzHl5
|
25
|
+
7kc/3lLxKMcsyEUprAsk8LdHohwZdC267l+RS++AP6Cz6x+nB3oGob19AgMBAAGj
|
26
|
+
fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQCSSas60GqqMjt
|
27
|
+
xR7LoY1gucEvtzAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
|
28
|
+
A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
|
29
|
+
ggGBAMl9ifcw5p+PdvB7dCPoNKoVdp/2LbC9ztETHuYL2gUMJB6UoS3o9c/piSuR
|
30
|
+
V3ZMQaijmNu6ms1bWAtJ66LjmYrVflJtf9yp31Kierr9LpisMSUx2qbMOHGa8d2Z
|
31
|
+
vCUWPF8E9Cg0mP3GAyZ6qql8jDh/anUKeksPXqJvNxNPDu2DVYsa/IWdl96whzS4
|
32
|
+
Bl7SwB1E7agps40UcshCSKaVDOU0M+XN6SrnJMElnBic+KSAkBkVFbzS0BE4ODZM
|
33
|
+
BgE6nYzQ05qhuvbE+oGdACTlemNtDDWCh0uw+7x0q2PocGIDU5zsPn/WNTkCXPmB
|
34
|
+
CHGvqDNWq4M7ncTKAaS2XExgyb7uPdq9fKiOW8nmH+zCiGzJXzBWwZlKf7L4Ht9E
|
35
|
+
a3f0e5C+zvee9Z5Ng9ciyfav9/fcXgYt5MjoBv27THr5XfBhgOCIHSYW2tqJmWKi
|
36
|
+
KuxrfYrN+9HvMdm+nZ6TypmKftHY3Gj+/uu+g8Icm/zrvTWAEE0mcJOkfrIoNPJb
|
37
|
+
pF8dMA==
|
38
|
+
-----END CERTIFICATE-----
|
39
|
+
date: 2023-09-25 00:00:00.000000000 Z
|
12
40
|
dependencies:
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: bundler
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
16
44
|
requirements:
|
17
|
-
- - "
|
45
|
+
- - ">="
|
18
46
|
- !ruby/object:Gem::Version
|
19
47
|
version: '1.14'
|
20
48
|
type: :runtime
|
21
49
|
prerelease: false
|
22
50
|
version_requirements: !ruby/object:Gem::Requirement
|
23
51
|
requirements:
|
24
|
-
- - "
|
52
|
+
- - ">="
|
25
53
|
- !ruby/object:Gem::Version
|
26
54
|
version: '1.14'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
56
|
+
name: version_gem
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
30
58
|
requirements:
|
31
59
|
- - "~>"
|
32
60
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
-
|
61
|
+
version: '1.1'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 1.1.3
|
65
|
+
type: :runtime
|
35
66
|
prerelease: false
|
36
67
|
version_requirements: !ruby/object:Gem::Requirement
|
37
68
|
requirements:
|
38
69
|
- - "~>"
|
39
70
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
71
|
+
version: '1.1'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.1.3
|
41
75
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
76
|
+
name: redcarpet
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: yard
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: yard-junk
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: awesome_print
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: gem-release
|
43
133
|
requirement: !ruby/object:Gem::Requirement
|
44
134
|
requirements:
|
45
135
|
- - "~>"
|
46
136
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
137
|
+
version: '2.0'
|
48
138
|
type: :development
|
49
139
|
prerelease: false
|
50
140
|
version_requirements: !ruby/object:Gem::Requirement
|
51
141
|
requirements:
|
52
142
|
- - "~>"
|
53
143
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
144
|
+
version: '2.0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: rake
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: rspec
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
55
173
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
174
|
+
name: rspec-block_is_expected
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: rubocop-lts
|
57
189
|
requirement: !ruby/object:Gem::Requirement
|
58
190
|
requirements:
|
59
191
|
- - "~>"
|
60
192
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
193
|
+
version: '10.1'
|
62
194
|
type: :development
|
63
195
|
prerelease: false
|
64
196
|
version_requirements: !ruby/object:Gem::Requirement
|
65
197
|
requirements:
|
66
198
|
- - "~>"
|
67
199
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
200
|
+
version: '10.1'
|
69
201
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
202
|
+
name: rubocop-packaging
|
71
203
|
requirement: !ruby/object:Gem::Requirement
|
72
204
|
requirements:
|
73
205
|
- - "~>"
|
74
206
|
- !ruby/object:Gem::Version
|
75
207
|
version: '0.5'
|
208
|
+
- - ">="
|
209
|
+
- !ruby/object:Gem::Version
|
210
|
+
version: 0.5.2
|
76
211
|
type: :development
|
77
212
|
prerelease: false
|
78
213
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -80,8 +215,25 @@ dependencies:
|
|
80
215
|
- - "~>"
|
81
216
|
- !ruby/object:Gem::Version
|
82
217
|
version: '0.5'
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: 0.5.2
|
83
221
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
222
|
+
name: rubocop-rspec
|
223
|
+
requirement: !ruby/object:Gem::Requirement
|
224
|
+
requirements:
|
225
|
+
- - ">="
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
version: '0'
|
228
|
+
type: :development
|
229
|
+
prerelease: false
|
230
|
+
version_requirements: !ruby/object:Gem::Requirement
|
231
|
+
requirements:
|
232
|
+
- - ">="
|
233
|
+
- !ruby/object:Gem::Version
|
234
|
+
version: '0'
|
235
|
+
- !ruby/object:Gem::Dependency
|
236
|
+
name: simplecov
|
85
237
|
requirement: !ruby/object:Gem::Requirement
|
86
238
|
requirements:
|
87
239
|
- - ">="
|
@@ -104,18 +256,12 @@ executables: []
|
|
104
256
|
extensions: []
|
105
257
|
extra_rdoc_files: []
|
106
258
|
files:
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
- ".travis.yml"
|
111
|
-
- CHANGELOG
|
112
|
-
- Gemfile
|
259
|
+
- CHANGELOG.md
|
260
|
+
- CODE_OF_CONDUCT.md
|
261
|
+
- CONTRIBUTING.md
|
113
262
|
- LICENSE.txt
|
114
263
|
- README.md
|
115
|
-
-
|
116
|
-
- bin/console
|
117
|
-
- bin/setup
|
118
|
-
- gem_bench.gemspec
|
264
|
+
- SECURITY.md
|
119
265
|
- lib/gem_bench.rb
|
120
266
|
- lib/gem_bench/gemfile_line_tokenizer.rb
|
121
267
|
- lib/gem_bench/player.rb
|
@@ -124,11 +270,19 @@ files:
|
|
124
270
|
- lib/gem_bench/strict_version_requirement.rb
|
125
271
|
- lib/gem_bench/team.rb
|
126
272
|
- lib/gem_bench/version.rb
|
127
|
-
homepage: http://github.com/
|
273
|
+
homepage: http://github.com/pboling/gem_bench
|
128
274
|
licenses:
|
129
275
|
- MIT
|
130
|
-
metadata:
|
131
|
-
|
276
|
+
metadata:
|
277
|
+
homepage_uri: https://railsbling.com/tags/gem_bench/
|
278
|
+
source_code_uri: http://github.com/pboling/gem_bench/tree/v2.0.0
|
279
|
+
changelog_uri: http://github.com/pboling/gem_bench/blob/v2.0.0/CHANGELOG.md
|
280
|
+
bug_tracker_uri: http://github.com/pboling/gem_bench/issues
|
281
|
+
documentation_uri: https://www.rubydoc.info/gems/gem_bench/2.0.0
|
282
|
+
wiki_uri: http://github.com/pboling/gem_bench/wiki
|
283
|
+
funding_uri: https://liberapay.com/pboling
|
284
|
+
rubygems_mfa_required: 'true'
|
285
|
+
post_install_message:
|
132
286
|
rdoc_options: []
|
133
287
|
require_paths:
|
134
288
|
- lib
|
@@ -136,16 +290,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
290
|
requirements:
|
137
291
|
- - ">="
|
138
292
|
- !ruby/object:Gem::Version
|
139
|
-
version: 2.
|
293
|
+
version: '2.3'
|
140
294
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
295
|
requirements:
|
142
296
|
- - ">="
|
143
297
|
- !ruby/object:Gem::Version
|
144
298
|
version: '0'
|
145
299
|
requirements: []
|
146
|
-
|
147
|
-
|
148
|
-
signing_key:
|
300
|
+
rubygems_version: 3.4.19
|
301
|
+
signing_key:
|
149
302
|
specification_version: 4
|
150
303
|
summary: Static Gemfile and installed gem library source code analysis
|
151
304
|
test_files: []
|