suspenders 1.54.0 → 1.54.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2389cebef8ac193b9632f09376e8dd6d736a523335da8bf23a26e746fc0c208a
4
- data.tar.gz: d2f55bd0ed92869ab361f6316c7a4da22f4dc09ace0d08a8116b8cde9cfe10fd
3
+ metadata.gz: a1c3a5fd298d2c49ceed3d4b3c79d99590aae75259c0f4ec6f06bd6f244336d3
4
+ data.tar.gz: c880d208a127a68da87b63a33da39fade1abf8e6c6d6b754806771be68e23e03
5
5
  SHA512:
6
- metadata.gz: 41478b2123c847c22ce82024138a86d699985d5cb749c59caac67f5777919d05ad97f8eaca0d5054dd48afd69b3325946138102475113ec5a38c6bb7d1385220
7
- data.tar.gz: f0f6c6f77792d2857cd47e6a004f7815a994cac4015819bc14297978e2d33992c4bd68b0a20f12f83c1fb8204038da3f13ac5abfe5cbc1f5be94b24a39729499
6
+ metadata.gz: 35d40b50ca80e2248efe6cc0c5ac5b87eff319aa6638e9293bafbb798081a1143b7a2d0e5907261bf68ceece79f482471c0762782a6d4cfebc69b0871fe8ea28
7
+ data.tar.gz: d02195af5d9673603233ce092cae10b4a2e2cf49697d8129c808a378d743d008f9046787b53ec050ec9a4450433fb063a7fbc4308fb5c16efc17d3ed73de291a
data/NEWS.md CHANGED
@@ -1,5 +1,10 @@
1
1
  Unreleased
2
2
 
3
+ 1.54.1 (June 30, 2020)
4
+
5
+ * Fixed: invalid Gemfile entry for bundler-audit
6
+ * Fixed: Deprecation warning for `Bundler.with_clean_env`
7
+
3
8
  1.54.0 (June 24, 2020)
4
9
 
5
10
  * New generator: `suspenders:single_redirect` for setting up `Rack::CanonicalHost`
@@ -3,12 +3,8 @@ require_relative "base"
3
3
  module Suspenders
4
4
  class AdvisoriesGenerator < Generators::Base
5
5
  def bundler_audit_gem
6
- gem "bundler-audit",
7
- require: false,
8
- group: %i[development test],
9
- git: "https://github.com/rubysec/bundler-audit.git",
10
- branch: "0.7.0"
11
- Bundler.with_clean_env { run "bundle install" }
6
+ gem "bundler-audit", ">= 0.7.0", require: false, group: %i[development test]
7
+ Bundler.with_unbundled_env { run "bundle install" }
12
8
  end
13
9
 
14
10
  def rake_task
@@ -4,7 +4,7 @@ module Suspenders
4
4
  class CiGenerator < Generators::Base
5
5
  def simplecov_gem
6
6
  gem "simplecov", require: false, group: [:test]
7
- Bundler.with_clean_env { run "bundle install" }
7
+ Bundler.with_unbundled_env { run "bundle install" }
8
8
  end
9
9
 
10
10
  def simplecov_test_integration
@@ -4,7 +4,7 @@ module Suspenders
4
4
  class DbOptimizationsGenerator < Generators::Base
5
5
  def add_bullet
6
6
  gem "bullet", group: %i(development test)
7
- Bundler.with_clean_env { run "bundle install" }
7
+ Bundler.with_unbundled_env { run "bundle install" }
8
8
  end
9
9
 
10
10
  def configure_bullet
@@ -4,7 +4,7 @@ module Suspenders
4
4
  class FactoriesGenerator < Generators::Base
5
5
  def add_factory_bot
6
6
  gem "factory_bot_rails", group: %i(development test)
7
- Bundler.with_clean_env { run "bundle install" }
7
+ Bundler.with_unbundled_env { run "bundle install" }
8
8
  end
9
9
 
10
10
  def set_up_factory_bot_for_rspec
@@ -4,7 +4,7 @@ module Suspenders
4
4
  class FormsGenerator < Generators::Base
5
5
  def add_simple_form
6
6
  gem "simple_form"
7
- Bundler.with_clean_env { run "bundle install" }
7
+ Bundler.with_unbundled_env { run "bundle install" }
8
8
  end
9
9
 
10
10
  def configure_simple_form
@@ -4,7 +4,7 @@ module Suspenders
4
4
  class InlineSvgGenerator < Generators::Base
5
5
  def add_inline_svg
6
6
  gem "inline_svg"
7
- Bundler.with_clean_env { run "bundle install" }
7
+ Bundler.with_unbundled_env { run "bundle install" }
8
8
  end
9
9
 
10
10
  def configure_inline_svg
@@ -4,7 +4,7 @@ module Suspenders
4
4
  class JobsGenerator < Generators::Base
5
5
  def add_jobs_gem
6
6
  gem "delayed_job_active_record"
7
- Bundler.with_clean_env { run "bundle install" }
7
+ Bundler.with_unbundled_env { run "bundle install" }
8
8
  end
9
9
 
10
10
  def configure_background_jobs_for_rspec
@@ -4,7 +4,7 @@ module Suspenders
4
4
  class JsDriverGenerator < Generators::Base
5
5
  def add_gems
6
6
  gem "webdrivers", group: :test
7
- Bundler.with_clean_env { run "bundle install" }
7
+ Bundler.with_unbundled_env { run "bundle install" }
8
8
  end
9
9
 
10
10
  def configure_capybara
@@ -4,7 +4,7 @@ module Suspenders
4
4
  class JsonGenerator < Generators::Base
5
5
  def add_oj
6
6
  gem "oj"
7
- Bundler.with_clean_env { run "bundle install" }
7
+ Bundler.with_unbundled_env { run "bundle install" }
8
8
  end
9
9
  end
10
10
  end
@@ -14,7 +14,7 @@ module Suspenders
14
14
  gem "spring-watcher-listen", "~> 2.0.0"
15
15
  end
16
16
 
17
- Bundler.with_clean_env { run "bundle install" }
17
+ Bundler.with_unbundled_env { run "bundle install" }
18
18
  end
19
19
 
20
20
  def cache_classes_test
@@ -31,13 +31,13 @@ module Suspenders
31
31
  end
32
32
 
33
33
  def invoke!
34
- Bundler.with_clean_env do
34
+ Bundler.with_unbundled_env do
35
35
  @base.send(:always_run, "spring binstub --all")
36
36
  end
37
37
  end
38
38
 
39
39
  def revoke!
40
- Bundler.with_clean_env do
40
+ Bundler.with_unbundled_env do
41
41
  @base.send(:always_run, "spring binstub --remove --all")
42
42
  end
43
43
  end
@@ -5,7 +5,7 @@ module Suspenders
5
5
  class TimeoutGenerator < Generators::Base
6
6
  def add_gem
7
7
  gem "rack-timeout", group: :production
8
- Bundler.with_clean_env { run "bundle install" }
8
+ Bundler.with_unbundled_env { run "bundle install" }
9
9
  end
10
10
 
11
11
  def configure_rack_timeout
@@ -16,7 +16,7 @@ module Suspenders
16
16
 
17
17
  def add_gem
18
18
  gem "rack-mini-profiler", require: false
19
- Bundler.with_clean_env { run "bundle install" }
19
+ Bundler.with_unbundled_env { run "bundle install" }
20
20
  end
21
21
 
22
22
  def configure_rack_mini_profiler
@@ -4,7 +4,7 @@ module Suspenders
4
4
  class StaticGenerator < Generators::Base
5
5
  def add_high_voltage
6
6
  gem "high_voltage"
7
- Bundler.with_clean_env { run "bundle install" }
7
+ Bundler.with_unbundled_env { run "bundle install" }
8
8
  end
9
9
 
10
10
  def make_placeholder_directory
@@ -4,7 +4,7 @@ module Suspenders
4
4
  class StylesheetBaseGenerator < Generators::Base
5
5
  def add_stylesheet_gems
6
6
  gem "bourbon", ">= 6.0.0"
7
- Bundler.with_clean_env { run "bundle install" }
7
+ Bundler.with_unbundled_env { run "bundle install" }
8
8
  end
9
9
 
10
10
  def remove_prior_config
@@ -7,7 +7,7 @@ module Suspenders
7
7
  gem "rspec-rails", "~> 3.6", group: %i(development test)
8
8
  gem "shoulda-matchers", group: :test
9
9
 
10
- Bundler.with_clean_env { run "bundle install" }
10
+ Bundler.with_unbundled_env { run "bundle install" }
11
11
  end
12
12
 
13
13
  def generate_rspec
@@ -4,5 +4,5 @@ module Suspenders
4
4
  read("#{File.dirname(__FILE__)}/../../.ruby-version").
5
5
  strip.
6
6
  freeze
7
- VERSION = "1.54.0".freeze
7
+ VERSION = "1.54.1".freeze
8
8
  end
@@ -10,7 +10,7 @@ RSpec.describe "Suspend a new project with --api flag" do
10
10
  run_suspenders("--api")
11
11
 
12
12
  Dir.chdir(project_path) do
13
- Bundler.with_clean_env do
13
+ Bundler.with_unbundled_env do
14
14
  expect(`rake`).to include("0 failures")
15
15
  end
16
16
  end
@@ -23,7 +23,7 @@ RSpec.describe "Suspend a new project with default configuration" do
23
23
 
24
24
  it "ensures project specs pass" do
25
25
  Dir.chdir(project_path) do
26
- Bundler.with_clean_env do
26
+ Bundler.with_unbundled_env do
27
27
  expect(`rake`).to include('0 failures')
28
28
  end
29
29
  end
@@ -31,7 +31,7 @@ RSpec.describe "Suspend a new project with default configuration" do
31
31
 
32
32
  it "includes the bundle:audit task" do
33
33
  Dir.chdir(project_path) do
34
- Bundler.with_clean_env do
34
+ Bundler.with_unbundled_env do
35
35
  expect(`rails -T`).to include("rails bundle:audit")
36
36
  end
37
37
  end
@@ -161,7 +161,7 @@ module SuspendersTestHelpers
161
161
 
162
162
  def run_in_tmp
163
163
  Dir.chdir(tmp_path) do
164
- Bundler.with_clean_env do
164
+ Bundler.with_unbundled_env do
165
165
  yield
166
166
  end
167
167
  end
@@ -169,7 +169,7 @@ module SuspendersTestHelpers
169
169
 
170
170
  def run_in_project
171
171
  Dir.chdir(project_path) do
172
- Bundler.with_clean_env do
172
+ Bundler.with_unbundled_env do
173
173
  yield
174
174
  end
175
175
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suspenders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.54.0
4
+ version: 1.54.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bitters