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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1ebe4a4d98a7ed7b267b94ef68fda1bc2d95d21
4
- data.tar.gz: c2a35b12c6f1d5a9bbf73d0a7848de38ea50b6bd
3
+ metadata.gz: c484e3bcdd101a9754109743b48f4bd1365667af
4
+ data.tar.gz: 8172832bc1d310452d31368dd98b32c5563932d5
5
5
  SHA512:
6
- metadata.gz: 8612cbfb63b2363a2292785bb91410d51183b1e3c6e365ceffcd8dbeab8185a583bd732502817af1235189512c641d0f31891d447b4dc391a11d3c1d6dc765c1
7
- data.tar.gz: 0b3c04d117d56a3149bed409f8427ea9eae743d5e1085dfc47dd99dcfccf864b66a29e003f0dce994399c14f508bf77cce469ec6884371a9097d8b9293056c75
6
+ metadata.gz: 21e949d9c811b1264ee995b4fd5238f3690f294e41adbad8ac59ee1d8d0d720f32aae3b42eb8be074f2b7ad410068179b8ee8fa196c40ca54c077af075df2e0a
7
+ data.tar.gz: ee9e71d1473f0bd77f30192dfcfd462454c0cec67fabfedf794f1fec331fa0e75d6b4e328eb062d141cb6e93e5dae00c09c64832c74eb800af66bf67917551fe
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.4.0
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
- rvm: 2.3.1
2
+ rvm: 2.4.0
3
3
  cache: bundler
4
4
  sudo: false
5
5
  before_install:
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} &> /dev/null; then
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
@@ -106,7 +106,7 @@ module Suspenders
106
106
 
107
107
  config.generators do |generate|
108
108
  generate.helper false
109
- generate.javascript_engine false
109
+ generate.javascripts false
110
110
  generate.request_specs false
111
111
  generate.routing_specs false
112
112
  generate.stylesheets false
@@ -4,5 +4,5 @@ module Suspenders
4
4
  read("#{File.dirname(__FILE__)}/../../.ruby-version").
5
5
  strip.
6
6
  freeze
7
- VERSION = "1.43.0".freeze
7
+ VERSION = "1.44.0".freeze
8
8
  end
@@ -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("heroku run rake db:migrate --exit-code "\
224
- "--app #{app_name.dasherize}-staging-pr-$1")
225
- expect(bin_setup).to include("heroku ps:scale worker=1 "\
226
- "--app #{app_name.dasherize}-staging-pr-$1")
227
- expect(bin_setup).to include("heroku restart "\
228
- "--app #{app_name.dasherize}-staging-pr-$1")
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
@@ -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.0.beta4"
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
- heroku pg:backups restore \
13
- `heroku pg:backups public-url -a <%= app_name.dasherize %>-staging` \
14
- DATABASE_URL \
15
- --confirm <%= app_name.dasherize %>-staging-pr-$1 \
16
- --app <%= app_name.dasherize %>-staging-pr-$1
17
- heroku run rake db:migrate --exit-code --app <%= app_name.dasherize %>-staging-pr-$1
18
- heroku ps:scale worker=1 --app <%= app_name.dasherize %>-staging-pr-$1
19
- heroku restart --app <%= app_name.dasherize %>-staging-pr-$1
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.43.0
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: 2016-11-08 00:00:00.000000000 Z
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.3.1
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.5.1
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.