derailed_benchmarks 1.7.0 → 2.1.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 +24 -1
  5. data/README.md +73 -11
  6. data/derailed_benchmarks.gemspec +6 -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 +20 -9
  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 +1 -1
  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 +40 -21
  21. data/lib/derailed_benchmarks/tasks.rb +63 -66
  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 +29 -12
  27. data/test/derailed_test.rb +15 -0
  28. data/test/fixtures/require/autoload_child.rb +5 -0
  29. data/test/fixtures/require/autoload_parent.rb +8 -0
  30. data/test/fixtures/require/child_one.rb +1 -1
  31. data/test/fixtures/require/child_two.rb +1 -1
  32. data/test/fixtures/require/load_child.rb +3 -0
  33. data/test/fixtures/require/load_parent.rb +5 -0
  34. data/test/fixtures/require/parent_one.rb +1 -1
  35. data/test/integration/tasks_test.rb +36 -6
  36. data/test/rails_app/config/storage.yml +0 -0
  37. data/test/test_helper.rb +6 -1
  38. metadata +67 -37
  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.7.0
4
+ version: 2.1.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: 2020-03-25 00:00:00.000000000 Z
11
+ date: 2021-05-11 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
@@ -135,37 +141,59 @@ dependencies:
135
141
  - !ruby/object:Gem::Version
136
142
  version: '2.1'
137
143
  - !ruby/object:Gem::Dependency
138
- name: unicode_plot
144
+ name: mini_histogram
139
145
  requirement: !ruby/object:Gem::Requirement
140
146
  requirements:
141
147
  - - ">="
142
148
  - !ruby/object:Gem::Version
143
- version: 0.0.4
144
- - - "<"
145
- - !ruby/object:Gem::Version
146
- version: 1.0.0
149
+ version: 0.3.0
147
150
  type: :runtime
148
151
  prerelease: false
149
152
  version_requirements: !ruby/object:Gem::Requirement
150
153
  requirements:
151
154
  - - ">="
152
155
  - !ruby/object:Gem::Version
153
- version: 0.0.4
154
- - - "<"
156
+ version: 0.3.0
157
+ - !ruby/object:Gem::Dependency
158
+ name: dead_end
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
155
162
  - !ruby/object:Gem::Version
156
- version: 1.0.0
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'
157
171
  - !ruby/object:Gem::Dependency
158
- name: mini_histogram
172
+ name: rack-test
159
173
  requirement: !ruby/object:Gem::Requirement
160
174
  requirements:
161
- - - "~>"
175
+ - - ">="
162
176
  - !ruby/object:Gem::Version
163
177
  version: '0'
164
178
  type: :runtime
165
179
  prerelease: false
166
180
  version_requirements: !ruby/object:Gem::Requirement
167
181
  requirements:
168
- - - "~>"
182
+ - - ">="
183
+ - !ruby/object:Gem::Version
184
+ version: '0'
185
+ - !ruby/object:Gem::Dependency
186
+ name: webrick
187
+ requirement: !ruby/object:Gem::Requirement
188
+ requirements:
189
+ - - ">="
190
+ - !ruby/object:Gem::Version
191
+ version: '0'
192
+ type: :development
193
+ prerelease: false
194
+ version_requirements: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - ">="
169
197
  - !ruby/object:Gem::Version
170
198
  version: '0'
171
199
  - !ruby/object:Gem::Dependency
@@ -236,20 +264,6 @@ dependencies:
236
264
  - - "<"
237
265
  - !ruby/object:Gem::Version
238
266
  version: '6'
239
- - !ruby/object:Gem::Dependency
240
- name: appraisal
241
- requirement: !ruby/object:Gem::Requirement
242
- requirements:
243
- - - '='
244
- - !ruby/object:Gem::Version
245
- version: 2.2.0
246
- type: :development
247
- prerelease: false
248
- version_requirements: !ruby/object:Gem::Requirement
249
- requirements:
250
- - - '='
251
- - !ruby/object:Gem::Version
252
- version: 2.2.0
253
267
  description: " Go faster, off the Rails "
254
268
  email:
255
269
  - richard.schneeman+rubygems@gmail.com
@@ -258,10 +272,9 @@ executables:
258
272
  extensions: []
259
273
  extra_rdoc_files: []
260
274
  files:
275
+ - ".circleci/config.yml"
261
276
  - ".github/workflows/check_changelog.yml"
262
277
  - ".gitignore"
263
- - ".travis.yml"
264
- - Appraisals
265
278
  - CHANGELOG.md
266
279
  - Gemfile
267
280
  - README.md
@@ -272,23 +285,33 @@ files:
272
285
  - gemfiles/rails_5_1.gemfile
273
286
  - gemfiles/rails_5_2.gemfile
274
287
  - gemfiles/rails_6_0.gemfile
288
+ - gemfiles/rails_6_1.gemfile
275
289
  - gemfiles/rails_git.gemfile
276
290
  - lib/derailed_benchmarks.rb
277
291
  - lib/derailed_benchmarks/auth_helper.rb
278
292
  - lib/derailed_benchmarks/auth_helpers/devise.rb
279
293
  - lib/derailed_benchmarks/core_ext/kernel_require.rb
294
+ - lib/derailed_benchmarks/git/commit.rb
295
+ - lib/derailed_benchmarks/git/in_path.rb
296
+ - lib/derailed_benchmarks/git/switch_project.rb
297
+ - lib/derailed_benchmarks/git_switch_project.rb
280
298
  - lib/derailed_benchmarks/load_tasks.rb
281
299
  - lib/derailed_benchmarks/require_tree.rb
300
+ - lib/derailed_benchmarks/stats_for_file.rb
282
301
  - lib/derailed_benchmarks/stats_from_dir.rb
283
- - lib/derailed_benchmarks/stats_in_file.rb
284
302
  - lib/derailed_benchmarks/tasks.rb
285
303
  - lib/derailed_benchmarks/version.rb
286
304
  - test/derailed_benchmarks/core_ext/kernel_require_test.rb
305
+ - test/derailed_benchmarks/git_switch_project_test.rb
287
306
  - test/derailed_benchmarks/require_tree_test.rb
288
307
  - test/derailed_benchmarks/stats_from_dir_test.rb
289
308
  - test/derailed_test.rb
309
+ - test/fixtures/require/autoload_child.rb
310
+ - test/fixtures/require/autoload_parent.rb
290
311
  - test/fixtures/require/child_one.rb
291
312
  - test/fixtures/require/child_two.rb
313
+ - test/fixtures/require/load_child.rb
314
+ - test/fixtures/require/load_parent.rb
292
315
  - test/fixtures/require/parent_one.rb
293
316
  - test/fixtures/require/raise_child.rb
294
317
  - test/fixtures/require/relative_child.rb
@@ -327,6 +350,7 @@ files:
327
350
  - test/rails_app/config/locales/en.yml
328
351
  - test/rails_app/config/locales/es.yml
329
352
  - test/rails_app/config/routes.rb
353
+ - test/rails_app/config/storage.yml
330
354
  - test/rails_app/db/migrate/20141210070547_devise_create_users.rb
331
355
  - test/rails_app/db/schema.rb
332
356
  - test/rails_app/perf.rake
@@ -348,7 +372,7 @@ homepage: https://github.com/schneems/derailed_benchmarks
348
372
  licenses:
349
373
  - MIT
350
374
  metadata: {}
351
- post_install_message:
375
+ post_install_message:
352
376
  rdoc_options: []
353
377
  require_paths:
354
378
  - lib
@@ -356,24 +380,29 @@ required_ruby_version: !ruby/object:Gem::Requirement
356
380
  requirements:
357
381
  - - ">="
358
382
  - !ruby/object:Gem::Version
359
- version: 2.1.0
383
+ version: 2.5.0
360
384
  required_rubygems_version: !ruby/object:Gem::Requirement
361
385
  requirements:
362
386
  - - ">="
363
387
  - !ruby/object:Gem::Version
364
388
  version: '0'
365
389
  requirements: []
366
- rubygems_version: 3.1.2
367
- signing_key:
390
+ rubygems_version: 3.2.15
391
+ signing_key:
368
392
  specification_version: 4
369
393
  summary: Benchmarks designed to performance test your ENTIRE site
370
394
  test_files:
371
395
  - test/derailed_benchmarks/core_ext/kernel_require_test.rb
396
+ - test/derailed_benchmarks/git_switch_project_test.rb
372
397
  - test/derailed_benchmarks/require_tree_test.rb
373
398
  - test/derailed_benchmarks/stats_from_dir_test.rb
374
399
  - test/derailed_test.rb
400
+ - test/fixtures/require/autoload_child.rb
401
+ - test/fixtures/require/autoload_parent.rb
375
402
  - test/fixtures/require/child_one.rb
376
403
  - test/fixtures/require/child_two.rb
404
+ - test/fixtures/require/load_child.rb
405
+ - test/fixtures/require/load_parent.rb
377
406
  - test/fixtures/require/parent_one.rb
378
407
  - test/fixtures/require/raise_child.rb
379
408
  - test/fixtures/require/relative_child.rb
@@ -412,6 +441,7 @@ test_files:
412
441
  - test/rails_app/config/locales/en.yml
413
442
  - test/rails_app/config/locales/es.yml
414
443
  - test/rails_app/config/routes.rb
444
+ - test/rails_app/config/storage.yml
415
445
  - test/rails_app/db/migrate/20141210070547_devise_create_users.rb
416
446
  - test/rails_app/db/schema.rb
417
447
  - test/rails_app/perf.rake
data/.travis.yml DELETED
@@ -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