derailed_benchmarks 1.5.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +75 -0
  3. data/.github/workflows/check_changelog.yml +11 -8
  4. data/CHANGELOG.md +26 -1
  5. data/README.md +44 -11
  6. data/derailed_benchmarks.gemspec +7 -5
  7. data/gemfiles/rails_5_1.gemfile +3 -1
  8. data/gemfiles/rails_5_2.gemfile +3 -3
  9. data/gemfiles/rails_6_1.gemfile +13 -0
  10. data/gemfiles/rails_git.gemfile +2 -2
  11. data/lib/derailed_benchmarks.rb +4 -2
  12. data/lib/derailed_benchmarks/core_ext/kernel_require.rb +29 -24
  13. data/lib/derailed_benchmarks/git/commit.rb +36 -0
  14. data/lib/derailed_benchmarks/git/in_path.rb +59 -0
  15. data/lib/derailed_benchmarks/git/switch_project.rb +128 -0
  16. data/lib/derailed_benchmarks/git_switch_project.rb +1 -0
  17. data/lib/derailed_benchmarks/load_tasks.rb +11 -4
  18. data/lib/derailed_benchmarks/require_tree.rb +11 -1
  19. data/lib/derailed_benchmarks/{stats_in_file.rb → stats_for_file.rb} +8 -2
  20. data/lib/derailed_benchmarks/stats_from_dir.rb +53 -9
  21. data/lib/derailed_benchmarks/tasks.rb +32 -63
  22. data/lib/derailed_benchmarks/version.rb +1 -1
  23. data/test/derailed_benchmarks/core_ext/kernel_require_test.rb +70 -11
  24. data/test/derailed_benchmarks/git_switch_project_test.rb +83 -0
  25. data/test/derailed_benchmarks/require_tree_test.rb +1 -1
  26. data/test/derailed_benchmarks/stats_from_dir_test.rb +43 -10
  27. data/test/fixtures/require/autoload_child.rb +5 -0
  28. data/test/fixtures/require/autoload_parent.rb +8 -0
  29. data/test/fixtures/require/child_one.rb +1 -1
  30. data/test/fixtures/require/child_two.rb +1 -1
  31. data/test/fixtures/require/load_child.rb +3 -0
  32. data/test/fixtures/require/load_parent.rb +5 -0
  33. data/test/fixtures/require/parent_one.rb +1 -1
  34. data/test/integration/tasks_test.rb +45 -5
  35. data/test/rails_app/config/application.rb +2 -0
  36. data/test/rails_app/config/storage.yml +0 -0
  37. data/test/test_helper.rb +6 -1
  38. metadata +86 -30
  39. data/.travis.yml +0 -18
  40. data/Appraisals +0 -26
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: derailed_benchmarks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-31 00:00:00.000000000 Z
11
+ date: 2021-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: heapy
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: memory_profiler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '2'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '0'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '2'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: get_process_mem
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -104,16 +110,22 @@ dependencies:
104
110
  name: thor
105
111
  requirement: !ruby/object:Gem::Requirement
106
112
  requirements:
107
- - - "~>"
113
+ - - ">="
108
114
  - !ruby/object:Gem::Version
109
115
  version: '0.19'
116
+ - - "<"
117
+ - !ruby/object:Gem::Version
118
+ version: '2'
110
119
  type: :runtime
111
120
  prerelease: false
112
121
  version_requirements: !ruby/object:Gem::Requirement
113
122
  requirements:
114
- - - "~>"
123
+ - - ">="
115
124
  - !ruby/object:Gem::Version
116
125
  version: '0.19'
126
+ - - "<"
127
+ - !ruby/object:Gem::Version
128
+ version: '2'
117
129
  - !ruby/object:Gem::Dependency
118
130
  name: ruby-statistics
119
131
  requirement: !ruby/object:Gem::Requirement
@@ -128,6 +140,48 @@ dependencies:
128
140
  - - ">="
129
141
  - !ruby/object:Gem::Version
130
142
  version: '2.1'
143
+ - !ruby/object:Gem::Dependency
144
+ name: mini_histogram
145
+ requirement: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: 0.3.0
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: 0.3.0
157
+ - !ruby/object:Gem::Dependency
158
+ name: dead_end
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ type: :runtime
165
+ prerelease: false
166
+ version_requirements: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
171
+ - !ruby/object:Gem::Dependency
172
+ name: webrick
173
+ requirement: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - ">="
176
+ - !ruby/object:Gem::Version
177
+ version: '0'
178
+ type: :development
179
+ prerelease: false
180
+ version_requirements: !ruby/object:Gem::Requirement
181
+ requirements:
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
131
185
  - !ruby/object:Gem::Dependency
132
186
  name: capybara
133
187
  requirement: !ruby/object:Gem::Requirement
@@ -165,7 +219,7 @@ dependencies:
165
219
  version: '3'
166
220
  - - "<="
167
221
  - !ruby/object:Gem::Version
168
- version: '6'
222
+ version: '7'
169
223
  type: :development
170
224
  prerelease: false
171
225
  version_requirements: !ruby/object:Gem::Requirement
@@ -175,7 +229,7 @@ dependencies:
175
229
  version: '3'
176
230
  - - "<="
177
231
  - !ruby/object:Gem::Version
178
- version: '6'
232
+ version: '7'
179
233
  - !ruby/object:Gem::Dependency
180
234
  name: devise
181
235
  requirement: !ruby/object:Gem::Requirement
@@ -196,20 +250,6 @@ dependencies:
196
250
  - - "<"
197
251
  - !ruby/object:Gem::Version
198
252
  version: '6'
199
- - !ruby/object:Gem::Dependency
200
- name: appraisal
201
- requirement: !ruby/object:Gem::Requirement
202
- requirements:
203
- - - '='
204
- - !ruby/object:Gem::Version
205
- version: 2.2.0
206
- type: :development
207
- prerelease: false
208
- version_requirements: !ruby/object:Gem::Requirement
209
- requirements:
210
- - - '='
211
- - !ruby/object:Gem::Version
212
- version: 2.2.0
213
253
  description: " Go faster, off the Rails "
214
254
  email:
215
255
  - richard.schneeman+rubygems@gmail.com
@@ -218,10 +258,9 @@ executables:
218
258
  extensions: []
219
259
  extra_rdoc_files: []
220
260
  files:
261
+ - ".circleci/config.yml"
221
262
  - ".github/workflows/check_changelog.yml"
222
263
  - ".gitignore"
223
- - ".travis.yml"
224
- - Appraisals
225
264
  - CHANGELOG.md
226
265
  - Gemfile
227
266
  - README.md
@@ -232,23 +271,33 @@ files:
232
271
  - gemfiles/rails_5_1.gemfile
233
272
  - gemfiles/rails_5_2.gemfile
234
273
  - gemfiles/rails_6_0.gemfile
274
+ - gemfiles/rails_6_1.gemfile
235
275
  - gemfiles/rails_git.gemfile
236
276
  - lib/derailed_benchmarks.rb
237
277
  - lib/derailed_benchmarks/auth_helper.rb
238
278
  - lib/derailed_benchmarks/auth_helpers/devise.rb
239
279
  - lib/derailed_benchmarks/core_ext/kernel_require.rb
280
+ - lib/derailed_benchmarks/git/commit.rb
281
+ - lib/derailed_benchmarks/git/in_path.rb
282
+ - lib/derailed_benchmarks/git/switch_project.rb
283
+ - lib/derailed_benchmarks/git_switch_project.rb
240
284
  - lib/derailed_benchmarks/load_tasks.rb
241
285
  - lib/derailed_benchmarks/require_tree.rb
286
+ - lib/derailed_benchmarks/stats_for_file.rb
242
287
  - lib/derailed_benchmarks/stats_from_dir.rb
243
- - lib/derailed_benchmarks/stats_in_file.rb
244
288
  - lib/derailed_benchmarks/tasks.rb
245
289
  - lib/derailed_benchmarks/version.rb
246
290
  - test/derailed_benchmarks/core_ext/kernel_require_test.rb
291
+ - test/derailed_benchmarks/git_switch_project_test.rb
247
292
  - test/derailed_benchmarks/require_tree_test.rb
248
293
  - test/derailed_benchmarks/stats_from_dir_test.rb
249
294
  - test/derailed_test.rb
295
+ - test/fixtures/require/autoload_child.rb
296
+ - test/fixtures/require/autoload_parent.rb
250
297
  - test/fixtures/require/child_one.rb
251
298
  - test/fixtures/require/child_two.rb
299
+ - test/fixtures/require/load_child.rb
300
+ - test/fixtures/require/load_parent.rb
252
301
  - test/fixtures/require/parent_one.rb
253
302
  - test/fixtures/require/raise_child.rb
254
303
  - test/fixtures/require/relative_child.rb
@@ -287,6 +336,7 @@ files:
287
336
  - test/rails_app/config/locales/en.yml
288
337
  - test/rails_app/config/locales/es.yml
289
338
  - test/rails_app/config/routes.rb
339
+ - test/rails_app/config/storage.yml
290
340
  - test/rails_app/db/migrate/20141210070547_devise_create_users.rb
291
341
  - test/rails_app/db/schema.rb
292
342
  - test/rails_app/perf.rake
@@ -308,7 +358,7 @@ homepage: https://github.com/schneems/derailed_benchmarks
308
358
  licenses:
309
359
  - MIT
310
360
  metadata: {}
311
- post_install_message:
361
+ post_install_message:
312
362
  rdoc_options: []
313
363
  require_paths:
314
364
  - lib
@@ -316,24 +366,29 @@ required_ruby_version: !ruby/object:Gem::Requirement
316
366
  requirements:
317
367
  - - ">="
318
368
  - !ruby/object:Gem::Version
319
- version: 2.1.0
369
+ version: 2.5.0
320
370
  required_rubygems_version: !ruby/object:Gem::Requirement
321
371
  requirements:
322
372
  - - ">="
323
373
  - !ruby/object:Gem::Version
324
374
  version: '0'
325
375
  requirements: []
326
- rubygems_version: 3.1.2
327
- signing_key:
376
+ rubygems_version: 3.2.3
377
+ signing_key:
328
378
  specification_version: 4
329
379
  summary: Benchmarks designed to performance test your ENTIRE site
330
380
  test_files:
331
381
  - test/derailed_benchmarks/core_ext/kernel_require_test.rb
382
+ - test/derailed_benchmarks/git_switch_project_test.rb
332
383
  - test/derailed_benchmarks/require_tree_test.rb
333
384
  - test/derailed_benchmarks/stats_from_dir_test.rb
334
385
  - test/derailed_test.rb
386
+ - test/fixtures/require/autoload_child.rb
387
+ - test/fixtures/require/autoload_parent.rb
335
388
  - test/fixtures/require/child_one.rb
336
389
  - test/fixtures/require/child_two.rb
390
+ - test/fixtures/require/load_child.rb
391
+ - test/fixtures/require/load_parent.rb
337
392
  - test/fixtures/require/parent_one.rb
338
393
  - test/fixtures/require/raise_child.rb
339
394
  - test/fixtures/require/relative_child.rb
@@ -372,6 +427,7 @@ test_files:
372
427
  - test/rails_app/config/locales/en.yml
373
428
  - test/rails_app/config/locales/es.yml
374
429
  - test/rails_app/config/routes.rb
430
+ - test/rails_app/config/storage.yml
375
431
  - test/rails_app/db/migrate/20141210070547_devise_create_users.rb
376
432
  - test/rails_app/db/schema.rb
377
433
  - test/rails_app/perf.rake
@@ -1,18 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.5.5
4
- - 2.6.3
5
- - ruby-head
6
-
7
- gemfile:
8
- - gemfiles/rails_5_1.gemfile
9
- - gemfiles/rails_5_2.gemfile
10
- - gemfiles/rails_6_0.gemfile
11
- - gemfiles/rails_git.gemfile
12
-
13
- before_install:
14
- - gem install bundler
15
-
16
- matrix:
17
- allow_failures:
18
- - rvm: ruby-head
data/Appraisals DELETED
@@ -1,26 +0,0 @@
1
- # -*- mode: ruby -*-
2
- # vi: set ft=ruby :
3
-
4
- appraise "rails-3-2" do
5
- gem "rails", "~> 3.2.0"
6
- end
7
-
8
- appraise "rails-4-0" do
9
- gem "rails", "~> 4.0.0"
10
- end
11
-
12
- appraise "rails-4-1" do
13
- gem "rails", "~> 4.1.0"
14
- end
15
-
16
- appraise "rails-4-2" do
17
- gem "rails", "~> 4.2.0"
18
- end
19
-
20
- appraise "rails-5-0" do
21
- gem "rails", "~> 5.0.0"
22
- end
23
-
24
- appraise "rails-5-1" do
25
- gem "rails", "~> 5.1.0"
26
- end