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 +4 -4
- data/NEWS.md +5 -0
- data/lib/suspenders/generators/advisories_generator.rb +2 -6
- data/lib/suspenders/generators/ci_generator.rb +1 -1
- data/lib/suspenders/generators/db_optimizations_generator.rb +1 -1
- data/lib/suspenders/generators/factories_generator.rb +1 -1
- data/lib/suspenders/generators/forms_generator.rb +1 -1
- data/lib/suspenders/generators/inline_svg_generator.rb +1 -1
- data/lib/suspenders/generators/jobs_generator.rb +1 -1
- data/lib/suspenders/generators/js_driver_generator.rb +1 -1
- data/lib/suspenders/generators/json_generator.rb +1 -1
- data/lib/suspenders/generators/preloader_generator.rb +3 -3
- data/lib/suspenders/generators/production/timeout_generator.rb +1 -1
- data/lib/suspenders/generators/profiler_generator.rb +1 -1
- data/lib/suspenders/generators/static_generator.rb +1 -1
- data/lib/suspenders/generators/stylesheet_base_generator.rb +1 -1
- data/lib/suspenders/generators/testing_generator.rb +1 -1
- data/lib/suspenders/version.rb +1 -1
- data/spec/features/api_spec.rb +1 -1
- data/spec/features/new_project_spec.rb +2 -2
- data/spec/support/suspenders.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1c3a5fd298d2c49ceed3d4b3c79d99590aae75259c0f4ec6f06bd6f244336d3
|
4
|
+
data.tar.gz: c880d208a127a68da87b63a33da39fade1abf8e6c6d6b754806771be68e23e03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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 FactoriesGenerator < Generators::Base
|
5
5
|
def add_factory_bot
|
6
6
|
gem "factory_bot_rails", group: %i(development test)
|
7
|
-
Bundler.
|
7
|
+
Bundler.with_unbundled_env { run "bundle install" }
|
8
8
|
end
|
9
9
|
|
10
10
|
def set_up_factory_bot_for_rspec
|
@@ -14,7 +14,7 @@ module Suspenders
|
|
14
14
|
gem "spring-watcher-listen", "~> 2.0.0"
|
15
15
|
end
|
16
16
|
|
17
|
-
Bundler.
|
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.
|
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.
|
40
|
+
Bundler.with_unbundled_env do
|
41
41
|
@base.send(:always_run, "spring binstub --remove --all")
|
42
42
|
end
|
43
43
|
end
|
data/lib/suspenders/version.rb
CHANGED
data/spec/features/api_spec.rb
CHANGED
@@ -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.
|
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.
|
34
|
+
Bundler.with_unbundled_env do
|
35
35
|
expect(`rails -T`).to include("rails bundle:audit")
|
36
36
|
end
|
37
37
|
end
|
data/spec/support/suspenders.rb
CHANGED
@@ -161,7 +161,7 @@ module SuspendersTestHelpers
|
|
161
161
|
|
162
162
|
def run_in_tmp
|
163
163
|
Dir.chdir(tmp_path) do
|
164
|
-
Bundler.
|
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.
|
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.
|
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-
|
11
|
+
date: 2020-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitters
|