derailed_benchmarks 1.6.0 → 2.0.1

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 +25 -1
  5. data/README.md +32 -9
  6. data/derailed_benchmarks.gemspec +6 -3
  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 +26 -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 +31 -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 +90 -26
  39. data/.travis.yml +0 -18
  40. data/Appraisals +0 -26
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