welaika-suspenders 2.9.0 → 2.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -5
- data/Gemfile.lock +1 -1
- data/NEWS.md +10 -1
- data/lib/suspenders/app_builder.rb +5 -20
- data/lib/suspenders/generators/app_generator.rb +2 -2
- data/lib/suspenders/version.rb +1 -1
- data/templates/Gemfile.erb +2 -2
- data/templates/spec_helper.rb +8 -0
- metadata +13 -5
- data/templates/rack_timeout.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fa421b7f2b691cf0f48ba0b6b307bfbb1a3e786
|
4
|
+
data.tar.gz: 4ff783ef52f18b91768a8bcfcf227d89b5235356
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ab52fec0c42edf72e7fcf8aee7abc8c7649c5b0f8909c3ecc67910c12654455b1aed8443faa57ed89c13df17c81afe8e81f41f977ae4643c89958e0ebaff36a
|
7
|
+
data.tar.gz: b94bfbc6e7f5620406ebb78bf67fcc9a38728c3ddd261ea8fad08716bd9374ceb54c348cf511b91e70234c6f6bb4a95f84b5b64f738e59cfdbd40633d3b9b3d0
|
data/.travis.yml
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
language: ruby
|
2
|
-
rvm:
|
3
|
-
|
2
|
+
rvm: 2.2.1
|
3
|
+
cache: bundler
|
4
|
+
sudo: false
|
4
5
|
before_install:
|
5
6
|
- "echo '--colour' > ~/.rspec"
|
6
7
|
- git config --global user.name 'Travis CI'
|
7
8
|
- git config --global user.email 'travis-ci@example.com'
|
8
|
-
install:
|
9
|
-
- bundle install
|
9
|
+
install: bundle install
|
10
10
|
notifications:
|
11
11
|
email: false
|
12
|
-
sudo: false
|
data/Gemfile.lock
CHANGED
data/NEWS.md
CHANGED
@@ -1,7 +1,16 @@
|
|
1
|
+
1.26.0 (March 23, 2015)
|
2
|
+
|
3
|
+
* Update Rails to 4.2.1
|
4
|
+
* Update Bitters to 1.0
|
5
|
+
* Fix .ruby-version (should have been 2.1.1)
|
6
|
+
* Enable `verify_partial_doubles`
|
7
|
+
* Renames Segment.io to Segment
|
8
|
+
* Removes New Relic unnecessary configuration setting
|
9
|
+
|
1
10
|
1.25.0 (March 7, 2015)
|
2
11
|
|
3
12
|
* Configure Active Job queue adapter for test env
|
4
|
-
* Use Ruby 2.2.1
|
13
|
+
* Use Ruby 2.2.1 (bug: `.ruby-version` wasn’t updated in the package)
|
5
14
|
* Dasherize heroku app names
|
6
15
|
* Update Bourbon to 4.2.0
|
7
16
|
* Add ASSET_HOST to sample.env (defaults to HOST)
|
@@ -221,19 +221,6 @@ end
|
|
221
221
|
copy_file 'action_mailer.rb', 'spec/support/action_mailer.rb'
|
222
222
|
end
|
223
223
|
|
224
|
-
def configure_simplecov
|
225
|
-
simplecov_configuration = <<-RUBY
|
226
|
-
require "simplecov"
|
227
|
-
SimpleCov.start "rails" do
|
228
|
-
add_group "Queries", "app/queries"
|
229
|
-
add_group "Services", "app/services"
|
230
|
-
add_group "Validators", "app/validators"
|
231
|
-
add_group "Presenter", "app/presenters"
|
232
|
-
end
|
233
|
-
RUBY
|
234
|
-
prepend_to_file "spec/spec_helper.rb", simplecov_configuration
|
235
|
-
end
|
236
|
-
|
237
224
|
def configure_locales
|
238
225
|
remove_file "config/locales/en.yml"
|
239
226
|
template "config_locales_it.yml.erb", "config/locales/it.yml"
|
@@ -248,7 +235,11 @@ RUBY
|
|
248
235
|
end
|
249
236
|
|
250
237
|
def configure_rack_timeout
|
251
|
-
|
238
|
+
rack_timeout_config = <<-RUBY
|
239
|
+
Rack::Timeout.timeout = (ENV["RACK_TIMEOUT"] || 10).to_i
|
240
|
+
RUBY
|
241
|
+
|
242
|
+
append_file "config/environments/production.rb", rack_timeout_config
|
252
243
|
end
|
253
244
|
|
254
245
|
def configure_slim
|
@@ -389,12 +380,6 @@ fi
|
|
389
380
|
end
|
390
381
|
end
|
391
382
|
|
392
|
-
def set_heroku_memory_management_variable
|
393
|
-
%w(staging production).each do |environment|
|
394
|
-
run_heroku "config:add NEW_RELIC_AGGRESSIVE_KEEPALIVE=1", environment
|
395
|
-
end
|
396
|
-
end
|
397
|
-
|
398
383
|
def set_heroku_serve_static_files
|
399
384
|
%w(staging production).each do |environment|
|
400
385
|
run_heroku "config:add RAILS_SERVE_STATIC_FILES=true", environment
|
@@ -96,13 +96,13 @@ module Suspenders
|
|
96
96
|
build :configure_i18n_for_test_environment
|
97
97
|
build :configure_i18n_tasks
|
98
98
|
build :configure_action_mailer_in_specs
|
99
|
-
build :configure_simplecov
|
100
99
|
end
|
101
100
|
|
102
101
|
def setup_production_environment
|
103
102
|
say 'Setting up the production environment'
|
104
103
|
build :configure_newrelic
|
105
104
|
build :configure_smtp
|
105
|
+
build :configure_rack_timeout
|
106
106
|
build :enable_rack_deflater
|
107
107
|
build :setup_asset_host
|
108
108
|
end
|
@@ -131,6 +131,7 @@ module Suspenders
|
|
131
131
|
build :configure_locales
|
132
132
|
build :configure_active_job
|
133
133
|
build :configure_rack_timeout
|
134
|
+
build :configure_time_formats
|
134
135
|
build :configure_simple_form
|
135
136
|
build :configure_slim
|
136
137
|
build :disable_xml_params
|
@@ -166,7 +167,6 @@ module Suspenders
|
|
166
167
|
build :set_heroku_serve_static_files
|
167
168
|
build :set_heroku_remotes
|
168
169
|
build :set_heroku_rails_secrets
|
169
|
-
build :set_heroku_memory_management_variable
|
170
170
|
build :provide_deploy_script
|
171
171
|
end
|
172
172
|
end
|
data/lib/suspenders/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
@@ -12,10 +12,9 @@ gem "high_voltage"
|
|
12
12
|
gem "i18n-tasks"
|
13
13
|
gem "jquery-rails"
|
14
14
|
gem "neat", "~> 1.7.0"
|
15
|
-
gem "newrelic_rpm"
|
15
|
+
gem "newrelic_rpm", ">= 3.9.8"
|
16
16
|
gem "normalize-rails", "~> 3.0.0"
|
17
17
|
gem "pg"
|
18
|
-
gem "rack-timeout"
|
19
18
|
gem "rails", "<%= Suspenders::RAILS_VERSION %>"
|
20
19
|
gem "rails-i18n"
|
21
20
|
gem "recipient_interceptor"
|
@@ -60,4 +59,5 @@ group :test do
|
|
60
59
|
end
|
61
60
|
|
62
61
|
group :staging, :production do
|
62
|
+
gem "rack-timeout"
|
63
63
|
end
|
data/templates/spec_helper.rb
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
require "simplecov"
|
2
|
+
SimpleCov.start "rails" do
|
3
|
+
add_group "Queries", "app/queries"
|
4
|
+
add_group "Services", "app/services"
|
5
|
+
add_group "Validators", "app/validators"
|
6
|
+
add_group "Presenter", "app/presenters"
|
7
|
+
end
|
8
|
+
|
1
9
|
require "webmock/rspec"
|
2
10
|
|
3
11
|
# http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: welaika-suspenders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thoughtbot
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-03-
|
12
|
+
date: 2015-03-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bitters
|
@@ -161,7 +161,6 @@ files:
|
|
161
161
|
- templates/json_encoding.rb
|
162
162
|
- templates/newrelic.yml.erb
|
163
163
|
- templates/postgresql_database.yml.erb
|
164
|
-
- templates/rack_timeout.rb
|
165
164
|
- templates/rails_helper.rb
|
166
165
|
- templates/sample.env
|
167
166
|
- templates/secrets.yml
|
@@ -194,8 +193,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
193
|
version: '0'
|
195
194
|
requirements: []
|
196
195
|
rubyforge_project:
|
197
|
-
rubygems_version: 2.4.
|
196
|
+
rubygems_version: 2.4.6
|
198
197
|
signing_key:
|
199
198
|
specification_version: 4
|
200
199
|
summary: Generate a Rails app using thoughtbot's best practices.
|
201
|
-
test_files:
|
200
|
+
test_files:
|
201
|
+
- spec/fakes/bin/heroku
|
202
|
+
- spec/fakes/bin/hub
|
203
|
+
- spec/features/github_spec.rb
|
204
|
+
- spec/features/heroku_spec.rb
|
205
|
+
- spec/features/new_project_spec.rb
|
206
|
+
- spec/spec_helper.rb
|
207
|
+
- spec/support/fake_github.rb
|
208
|
+
- spec/support/fake_heroku.rb
|
209
|
+
- spec/support/suspenders.rb
|
data/templates/rack_timeout.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Rack::Timeout.timeout = (ENV["RACK_TIMEOUT"] || 10).to_i
|