derailed_benchmarks 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +2 -0
- data/CHANGELOG.md +5 -0
- data/README.md +4 -2
- data/bin/derailed +3 -2
- data/derailed_benchmarks.gemspec +1 -1
- data/gemfiles/rails_git.gemfile +1 -1
- data/lib/derailed_benchmarks/load_tasks.rb +2 -2
- data/lib/derailed_benchmarks/version.rb +1 -1
- data/test/derailed_test.rb +3 -2
- data/test/test_helper.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 812e6f5e721e4baf5dd1911b6d4a21d00e3502d5a9c2c882c825026f174f0df7
|
4
|
+
data.tar.gz: ba3f9978aebf3652f767835edbbb0805d75c127e1a1df247057a04f7f0dde228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f422494ba5fd286bf36531b1c8bf1a8dc28cd6366f1d3ff9f2e81215307969eb1c8f60a6e3f6e27588f95cd7e5ad3c10ba963dfd820769a6f76656ae35d11ae9
|
7
|
+
data.tar.gz: ecbd77956660e6d0f5ca957fe718d564b2f7463f2197eaf84bad1b0c3ae1e3a42bf7bb58ed46bffc9153c819dd32f13335728556704da9bf9191f82bf95ce467
|
data/.circleci/config.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
## HEAD
|
2
2
|
|
3
|
+
## 2.1.2
|
4
|
+
|
5
|
+
- Support rails 7 for bundle exec derailed exec mem (https://github.com/zombocom/derailed_benchmarks/pull/212)
|
6
|
+
- Update the gemspec's homepage to the current repo URL (https://github.com/zombocom/derailed_benchmarks/pull/212)
|
7
|
+
|
3
8
|
## 2.1.1
|
4
9
|
|
5
10
|
- Fix Thor's deprecation warning by implementing `exit_on_failure?` (https://github.com/schneems/derailed_benchmarks/pull/195)
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ A series of things you can use to benchmark a Rails or Ruby app.
|
|
4
4
|
|
5
5
|
![](http://media.giphy.com/media/lfbxexWy71b6U/giphy.gif)
|
6
6
|
|
7
|
-
[![
|
7
|
+
[![CircleCI](https://circleci.com/gh/zombocom/derailed_benchmarks/tree/main.svg?style=svg)](https://circleci.com/gh/zombocom/derailed_benchmarks/tree/main)
|
8
8
|
[![Help Contribute to Open Source](https://www.codetriage.com/schneems/derailed_benchmarks/badges/users.svg)](https://www.codetriage.com/schneems/derailed_benchmarks)
|
9
9
|
|
10
10
|
## Compatibility/Requirements
|
@@ -595,12 +595,14 @@ Note: this plugs in the given webserver directly into rack, it doesn't use any `
|
|
595
595
|
|
596
596
|
### Excluding ActiveRecord
|
597
597
|
|
598
|
-
By default, derailed will load ActiveRecord if the gem is included as a dependency. It is included by default, if you just include the `rails` gem. If you are using a different ORM, you will either need to only include the `railties` gem, or set the `DERAILED_SKIP_ACTIVE_RECORD`
|
598
|
+
By default, derailed will load ActiveRecord if the gem is included as a dependency. It is included by default, if you just include the `rails` gem. If you are using a different ORM, you will either need to only include the `railties` gem, or set the `DERAILED_SKIP_ACTIVE_RECORD` environment variable.
|
599
599
|
|
600
600
|
```
|
601
601
|
$ DERAILED_SKIP_ACTIVE_RECORD=true
|
602
602
|
```
|
603
603
|
|
604
|
+
Alternatively, use the `DERAILED_SKIP_RAILS_REQUIRES` environment variable to have derailed not require any Rails gems. Your app will then need to require them as part of its boot sequence.
|
605
|
+
|
604
606
|
### Running in a different environment
|
605
607
|
|
606
608
|
Tests run against the production environment by default, but it's easy to
|
data/bin/derailed
CHANGED
@@ -80,9 +80,10 @@ class DerailedBenchmarkCLI < Thor
|
|
80
80
|
require 'bundler/setup'
|
81
81
|
|
82
82
|
begin
|
83
|
-
if ENV["
|
83
|
+
if ENV["DERAILED_SKIP_RAILS_REQUIRES"]
|
84
|
+
# do nothing. your app will handle requiring Rails for booting.
|
85
|
+
elsif ENV["DERAILED_SKIP_ACTIVE_RECORD"]
|
84
86
|
require "action_controller/railtie"
|
85
|
-
require "action_mailer/railtie"
|
86
87
|
require "sprockets/railtie"
|
87
88
|
require "rails/test_unit/railtie"
|
88
89
|
else
|
data/derailed_benchmarks.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.email = ["richard.schneeman+rubygems@gmail.com"]
|
13
13
|
gem.description = %q{ Go faster, off the Rails }
|
14
14
|
gem.summary = %q{ Benchmarks designed to performance test your ENTIRE site }
|
15
|
-
gem.homepage = "https://github.com/
|
15
|
+
gem.homepage = "https://github.com/zombocom/derailed_benchmarks"
|
16
16
|
gem.license = "MIT"
|
17
17
|
|
18
18
|
gem.files = `git ls-files`.split($/)
|
data/gemfiles/rails_git.gemfile
CHANGED
@@ -6,7 +6,7 @@ source "https://rubygems.org"
|
|
6
6
|
|
7
7
|
gem "rails", github: "rails/rails", ref: "12bb9d32f56883914abcd98fd72e3c68c444808d"
|
8
8
|
|
9
|
-
gem 'devise', github: "plataformatec/devise"
|
9
|
+
gem 'devise', github: "plataformatec/devise", ref: "6d32d2447cc0f3739d9732246b5a5bde98d9e032"
|
10
10
|
|
11
11
|
group :development, :test do
|
12
12
|
gem "sqlite3", platform: [:ruby, :mswin, :mingw]
|
@@ -40,9 +40,9 @@ namespace :perf do
|
|
40
40
|
ActiveRecord::Migrator.migrations_paths = DERAILED_APP.paths['db/migrate'].to_a
|
41
41
|
ActiveRecord::Migration.verbose = true
|
42
42
|
|
43
|
-
if Rails.version
|
43
|
+
if Rails.version >= "6.0"
|
44
44
|
ActiveRecord::MigrationContext.new(ActiveRecord::Migrator.migrations_paths, ActiveRecord::SchemaMigration).migrate
|
45
|
-
elsif Rails.version.start_with?
|
45
|
+
elsif Rails.version.start_with?("5.2")
|
46
46
|
ActiveRecord::MigrationContext.new(ActiveRecord::Migrator.migrations_paths).migrate
|
47
47
|
else
|
48
48
|
ActiveRecord::Migrator.migrate(ActiveRecord::Migrator.migrations_paths, nil)
|
data/test/derailed_test.rb
CHANGED
@@ -19,10 +19,11 @@ class DerailedBenchmarksTest < ActiveSupport::TestCase
|
|
19
19
|
expected = lines.lazy.drop_while { |line|
|
20
20
|
lineno += 1
|
21
21
|
line != "$ bundle exec derailed exec --help\n"
|
22
|
-
}.drop(1).take_while { |line| line != "```\n" }.force.join
|
22
|
+
}.drop(1).take_while { |line| line != "```\n" }.force.join.split("\n").sort
|
23
|
+
actual = `bundle exec derailed exec --help`.split("\n").sort
|
23
24
|
assert_equal(
|
24
25
|
expected,
|
25
|
-
|
26
|
+
actual,
|
26
27
|
"Please update README.md:#{lineno}"
|
27
28
|
)
|
28
29
|
end
|
data/test/test_helper.rb
CHANGED
@@ -32,9 +32,9 @@ require_relative "rails_app/config/environment"
|
|
32
32
|
|
33
33
|
# https://github.com/plataformatec/devise/blob/master/test/orm/active_record.rb
|
34
34
|
migrate_path = File.expand_path("../rails_app/db/migrate", __FILE__)
|
35
|
-
if Rails.version
|
35
|
+
if Rails.version >= "6.0"
|
36
36
|
ActiveRecord::MigrationContext.new(migrate_path, ActiveRecord::SchemaMigration).migrate
|
37
|
-
elsif Rails.version.start_with?
|
37
|
+
elsif Rails.version.start_with? "5.2"
|
38
38
|
ActiveRecord::MigrationContext.new(migrate_path).migrate
|
39
39
|
else
|
40
40
|
ActiveRecord::Migrator.migrate(migrate_path)
|
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: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Schneeman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: heapy
|
@@ -368,7 +368,7 @@ files:
|
|
368
368
|
- test/rails_app/script/rails
|
369
369
|
- test/support/integration_case.rb
|
370
370
|
- test/test_helper.rb
|
371
|
-
homepage: https://github.com/
|
371
|
+
homepage: https://github.com/zombocom/derailed_benchmarks
|
372
372
|
licenses:
|
373
373
|
- MIT
|
374
374
|
metadata: {}
|
@@ -387,7 +387,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
387
387
|
- !ruby/object:Gem::Version
|
388
388
|
version: '0'
|
389
389
|
requirements: []
|
390
|
-
rubygems_version: 3.
|
390
|
+
rubygems_version: 3.3.7
|
391
391
|
signing_key:
|
392
392
|
specification_version: 4
|
393
393
|
summary: Benchmarks designed to performance test your ENTIRE site
|