suspenders 1.43.0 → 1.44.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/NEWS.md +8 -0
- data/README.md +0 -5
- data/lib/suspenders/adapters/heroku.rb +1 -1
- data/lib/suspenders/app_builder.rb +1 -1
- data/lib/suspenders/version.rb +1 -1
- data/spec/features/new_project_spec.rb +6 -13
- data/templates/Gemfile.erb +1 -2
- data/templates/bin_setup_review_app.erb +8 -8
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c484e3bcdd101a9754109743b48f4bd1365667af
|
4
|
+
data.tar.gz: 8172832bc1d310452d31368dd98b32c5563932d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21e949d9c811b1264ee995b4fd5238f3690f294e41adbad8ac59ee1d8d0d720f32aae3b42eb8be074f2b7ad410068179b8ee8fa196c40ca54c077af075df2e0a
|
7
|
+
data.tar.gz: ee9e71d1473f0bd77f30192dfcfd462454c0cec67fabfedf794f1fec331fa0e75d6b4e328eb062d141cb6e93e5dae00c09c64832c74eb800af66bf67917551fe
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4.0
|
data/.travis.yml
CHANGED
data/NEWS.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
1.44.0 (January 25, 2017)
|
2
|
+
|
3
|
+
* Improve readability of `bin/setup-review-app` (#819)
|
4
|
+
* Update scripts to be `sh`-compatible (#820)
|
5
|
+
* Remove `rails_stdout_logging` gem (#818)
|
6
|
+
* Remove `12factor` gem (#817)
|
7
|
+
* Update Ruby to 2.4.0 (#814)
|
8
|
+
|
1
9
|
1.43.0 (November 8, 2016)
|
2
10
|
|
3
11
|
* Update Bourbon to 5.0.0.beta.7
|
data/README.md
CHANGED
@@ -129,13 +129,8 @@ This:
|
|
129
129
|
* Sets them as `staging` and `production` Git remotes
|
130
130
|
* Configures staging with `RACK_ENV` environment variable set
|
131
131
|
to `staging`
|
132
|
-
* Adds the [Rails Stdout Logging][logging-gem] gem
|
133
|
-
to configure the app to log to standard out,
|
134
|
-
which is how [Heroku's logging][heroku-logging] works.
|
135
132
|
* Creates a [Heroku Pipeline] for review apps
|
136
133
|
|
137
|
-
[logging-gem]: https://github.com/heroku/rails_stdout_logging
|
138
|
-
[heroku-logging]: https://devcenter.heroku.com/articles/logging#writing-to-your-log
|
139
134
|
[Heroku Pipeline]: https://devcenter.heroku.com/articles/pipelines
|
140
135
|
|
141
136
|
You can optionally specify alternate Heroku flags:
|
@@ -87,7 +87,7 @@ module Suspenders
|
|
87
87
|
heroku_app_name = heroku_app_name_for(environment)
|
88
88
|
<<~SHELL
|
89
89
|
|
90
|
-
if heroku join --app #{heroku_app_name}
|
90
|
+
if heroku join --app #{heroku_app_name} > /dev/null 2>&1; then
|
91
91
|
git remote add #{environment} git@heroku.com:#{heroku_app_name}.git || true
|
92
92
|
printf 'You are a collaborator on the "#{heroku_app_name}" Heroku app\n'
|
93
93
|
else
|
data/lib/suspenders/version.rb
CHANGED
@@ -119,7 +119,6 @@ RSpec.describe "Suspend a new project with default configuration" do
|
|
119
119
|
end
|
120
120
|
|
121
121
|
it "configures public_file_server.headers in production" do
|
122
|
-
IO.write("production_config.rb", production_config)
|
123
122
|
expect(production_config).to match(
|
124
123
|
/^ +config.public_file_server.headers = {\n +"Cache-Control" => "public,/,
|
125
124
|
)
|
@@ -220,12 +219,12 @@ RSpec.describe "Suspend a new project with default configuration" do
|
|
220
219
|
bin_setup_path = "#{project_path}/bin/setup_review_app"
|
221
220
|
bin_setup = IO.read(bin_setup_path)
|
222
221
|
|
223
|
-
expect(bin_setup).to include("
|
224
|
-
|
225
|
-
expect(bin_setup).to include("heroku
|
226
|
-
|
227
|
-
expect(bin_setup).to include("heroku restart "
|
228
|
-
|
222
|
+
expect(bin_setup).to include("PARENT_APP_NAME=#{app_name.dasherize}-staging")
|
223
|
+
expect(bin_setup).to include("APP_NAME=#{app_name.dasherize}-staging-pr-$1")
|
224
|
+
expect(bin_setup).to include("heroku run rake db:migrate --exit-code --app $APP_NAME")
|
225
|
+
expect(bin_setup).to include("heroku ps:scale worker=1 --app $APP_NAME")
|
226
|
+
expect(bin_setup).to include("heroku restart --app $APP_NAME")
|
227
|
+
|
229
228
|
expect(File.stat(bin_setup_path)).to be_executable
|
230
229
|
end
|
231
230
|
|
@@ -243,12 +242,6 @@ RSpec.describe "Suspend a new project with default configuration" do
|
|
243
242
|
expect(app_json_file).to match(/"name":"#{app_name.dasherize}"/)
|
244
243
|
end
|
245
244
|
|
246
|
-
it "sets up heroku specific gems" do
|
247
|
-
gemfile_file = IO.read("#{project_path}/Gemfile")
|
248
|
-
|
249
|
-
expect(gemfile_file).to include %{gem "rails_stdout_logging"}
|
250
|
-
end
|
251
|
-
|
252
245
|
def app_name
|
253
246
|
SuspendersTestHelpers::APP_NAME
|
254
247
|
end
|
data/templates/Gemfile.erb
CHANGED
@@ -36,7 +36,7 @@ group :development, :test do
|
|
36
36
|
gem "factory_girl_rails"
|
37
37
|
gem "pry-byebug"
|
38
38
|
gem "pry-rails"
|
39
|
-
gem "rspec-rails", "~> 3.5
|
39
|
+
gem "rspec-rails", "~> 3.5"
|
40
40
|
end
|
41
41
|
|
42
42
|
group :development, :staging do
|
@@ -56,5 +56,4 @@ end
|
|
56
56
|
|
57
57
|
group :staging, :production do
|
58
58
|
gem "rack-timeout"
|
59
|
-
gem "rails_stdout_logging"
|
60
59
|
end
|
@@ -9,11 +9,11 @@ if [ -z "$1" ]; then
|
|
9
9
|
exit 64
|
10
10
|
fi
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
heroku run rake db:migrate --exit-code --app
|
18
|
-
heroku ps:scale worker=1 --app
|
19
|
-
heroku restart --app
|
12
|
+
PARENT_APP_NAME=<%= app_name.dasherize %>-staging
|
13
|
+
APP_NAME=<%= app_name.dasherize %>-staging-pr-$1
|
14
|
+
URL=`heroku pg:backups public-url -a $PARENT_APP_NAME`
|
15
|
+
|
16
|
+
heroku pg:backups restore $URL DATABASE_URL --confirm $APP_NAME --app $APP_NAME
|
17
|
+
heroku run rake db:migrate --exit-code --app $APP_NAME
|
18
|
+
heroku ps:scale worker=1 --app $APP_NAME
|
19
|
+
heroku restart --app $APP_NAME
|
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.
|
4
|
+
version: 1.44.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thoughtbot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitters
|
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
165
|
requirements:
|
166
166
|
- - ">="
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
version: 2.
|
168
|
+
version: 2.4.0
|
169
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
175
|
rubyforge_project:
|
176
|
-
rubygems_version: 2.
|
176
|
+
rubygems_version: 2.6.8
|
177
177
|
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: Generate a Rails app using thoughtbot's best practices.
|