derailed_benchmarks 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1004e69d7a94d86e514586324fc21ce1871ca9f8690c989eafcf5283fc69e293
4
- data.tar.gz: 0bfbb09013d068279ee58e1361ef44f122c944662cc590941299b12d80151a80
3
+ metadata.gz: 812e6f5e721e4baf5dd1911b6d4a21d00e3502d5a9c2c882c825026f174f0df7
4
+ data.tar.gz: ba3f9978aebf3652f767835edbbb0805d75c127e1a1df247057a04f7f0dde228
5
5
  SHA512:
6
- metadata.gz: 48dee96d301b69c53f17467bd19918c9ea788568b5d630fe3888e2c0659345dfdef66be0b911ed2624af1cc11c9507a3700760b40f261d846f092b5e49743b79
7
- data.tar.gz: d69df370bb2cd4aebc48d1b077eb0d81b9da5dc659209da091d15b49df76af196f32c3b4daa0d402db2fa1aaf968067fc8eb9e3c690a9fce1c2c4458087256aa
6
+ metadata.gz: f422494ba5fd286bf36531b1c8bf1a8dc28cd6366f1d3ff9f2e81215307969eb1c8f60a6e3f6e27588f95cd7e5ad3c10ba963dfd820769a6f76656ae35d11ae9
7
+ data.tar.gz: ecbd77956660e6d0f5ca957fe718d564b2f7463f2197eaf84bad1b0c3ae1e3a42bf7bb58ed46bffc9153c819dd32f13335728556704da9bf9191f82bf95ce467
data/.circleci/config.yml CHANGED
@@ -72,4 +72,6 @@ workflows:
72
72
  exclude:
73
73
  - ruby_version: "3.0.0"
74
74
  gemfile: rails_5_2.gemfile
75
+ - ruby_version: "2.5.8"
76
+ gemfile: rails_git.gemfile
75
77
  name: test-ruby-<<matrix.ruby_version>>-<<matrix.gemfile>>
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
- [![Build Status](https://travis-ci.org/schneems/derailed_benchmarks.svg)](https://travis-ci.org/schneems/derailed_benchmarks)
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` flag.
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["DERAILED_SKIP_ACTIVE_RECORD"]
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
@@ -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/schneems/derailed_benchmarks"
15
+ gem.homepage = "https://github.com/zombocom/derailed_benchmarks"
16
16
  gem.license = "MIT"
17
17
 
18
18
  gem.files = `git ls-files`.split($/)
@@ -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.start_with? '6'
43
+ if Rails.version >= "6.0"
44
44
  ActiveRecord::MigrationContext.new(ActiveRecord::Migrator.migrations_paths, ActiveRecord::SchemaMigration).migrate
45
- elsif Rails.version.start_with? '5.2'
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DerailedBenchmarks
4
- VERSION = "2.1.1"
4
+ VERSION = "2.1.2"
5
5
  end
@@ -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
- `bundle exec derailed exec --help`,
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.start_with? '6'
35
+ if Rails.version >= "6.0"
36
36
  ActiveRecord::MigrationContext.new(migrate_path, ActiveRecord::SchemaMigration).migrate
37
- elsif Rails.version.start_with? '5.2'
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.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: 2021-07-09 00:00:00.000000000 Z
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/schneems/derailed_benchmarks
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.2.22
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