suspenders 1.32.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/NEWS.md +10 -0
- data/README.md +2 -0
- data/lib/suspenders/app_builder.rb +13 -1
- data/lib/suspenders/generators/app_generator.rb +2 -0
- data/lib/suspenders/version.rb +1 -1
- data/spec/features/new_project_spec.rb +12 -0
- data/templates/Gemfile.erb +3 -2
- data/templates/factories.rb +2 -0
- data/templates/puma.rb +11 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d6a20dec07018fe46123f7b675d965ae1a881b0
|
|
4
|
+
data.tar.gz: dba4e0a227258cd6bc27b924483bbf9bf342a783
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0eb45b0d80513b307c17a9a8ed3e47a5ca144d3ec7d7001e7fca89fa87c3e41a0cb6c2a5d48ee938ab4ffe421c3dfa7b7c00f2be215d4e28cc9821c9fdbc9376
|
|
7
|
+
data.tar.gz: d539afa8127fa691fda3eee2c93b332dfc1477f40aabc5caeb72ec325031b18118f5038cdae367b483d5ca0e6157eea705d6d468191840a8a0d51d442e31c7bd
|
data/NEWS.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
1.33.0 (October 23, 2015)
|
|
2
|
+
|
|
3
|
+
* Add `quiet_assets` as development dependency
|
|
4
|
+
* Reduce number of Puma processes and threads to reduce memory usage
|
|
5
|
+
* Move non-runtime-dependency i18n-tasks to development and test Gemfile groups
|
|
6
|
+
* Move non-runtime-dependency refills to the development Gemfile group
|
|
7
|
+
* Generate empty `spec/factories.rb` file in accordance with thoughtbot’s
|
|
8
|
+
styleguide
|
|
9
|
+
* Shoulda Matchers 3.0 configuration
|
|
10
|
+
|
|
1
11
|
1.32.0 (October 9, 2015)
|
|
2
12
|
|
|
3
13
|
* Install Foreman automatically during setup script
|
data/README.md
CHANGED
|
@@ -68,6 +68,8 @@ And development gems like:
|
|
|
68
68
|
pre-loading
|
|
69
69
|
* [Web Console](https://github.com/rails/web-console) for better debugging via
|
|
70
70
|
in-browser IRB consoles.
|
|
71
|
+
* [Quiet Assets](https://github.com/evrone/quiet_assets) for muting assets
|
|
72
|
+
pipeline log messages
|
|
71
73
|
|
|
72
74
|
And testing gems like:
|
|
73
75
|
|
|
@@ -27,6 +27,14 @@ module Suspenders
|
|
|
27
27
|
inject_into_class "config/application.rb", "Application", config
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
def configure_quiet_assets
|
|
31
|
+
config = <<-RUBY
|
|
32
|
+
config.quiet_assets = true
|
|
33
|
+
RUBY
|
|
34
|
+
|
|
35
|
+
inject_into_class "config/application.rb", "Application", config
|
|
36
|
+
end
|
|
37
|
+
|
|
30
38
|
def provide_setup_script
|
|
31
39
|
template "bin_setup.erb", "bin/setup", force: true
|
|
32
40
|
run "chmod a+x bin/setup"
|
|
@@ -58,6 +66,10 @@ module Suspenders
|
|
|
58
66
|
copy_file 'factory_girl_rspec.rb', 'spec/support/factory_girl.rb'
|
|
59
67
|
end
|
|
60
68
|
|
|
69
|
+
def generate_factories_file
|
|
70
|
+
copy_file "factories.rb", "spec/factories.rb"
|
|
71
|
+
end
|
|
72
|
+
|
|
61
73
|
def set_up_hound
|
|
62
74
|
copy_file "hound.yml", ".hound.yml"
|
|
63
75
|
end
|
|
@@ -200,7 +212,7 @@ end
|
|
|
200
212
|
def provide_shoulda_matchers_config
|
|
201
213
|
copy_file(
|
|
202
214
|
"shoulda_matchers_config_rspec.rb",
|
|
203
|
-
"spec/support/
|
|
215
|
+
"spec/support/shoulda_matchers.rb"
|
|
204
216
|
)
|
|
205
217
|
end
|
|
206
218
|
|
|
@@ -86,11 +86,13 @@ module Suspenders
|
|
|
86
86
|
build :provide_dev_prime_task
|
|
87
87
|
build :configure_generators
|
|
88
88
|
build :configure_i18n_for_missing_translations
|
|
89
|
+
build :configure_quiet_assets
|
|
89
90
|
end
|
|
90
91
|
|
|
91
92
|
def setup_test_environment
|
|
92
93
|
say 'Setting up the test environment'
|
|
93
94
|
build :set_up_factory_girl_for_rspec
|
|
95
|
+
build :generate_factories_file
|
|
94
96
|
build :set_up_hound
|
|
95
97
|
build :generate_rspec
|
|
96
98
|
build :configure_rspec
|
data/lib/suspenders/version.rb
CHANGED
|
@@ -76,6 +76,14 @@ RSpec.describe "Suspend a new project with default configuration" do
|
|
|
76
76
|
)
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
+
it "adds explicit quiet_assets configuration" do
|
|
80
|
+
result = IO.read("#{project_path}/config/application.rb")
|
|
81
|
+
|
|
82
|
+
expect(result).to match(
|
|
83
|
+
/^ +config.quiet_assets = true$/
|
|
84
|
+
)
|
|
85
|
+
end
|
|
86
|
+
|
|
79
87
|
it "raises on missing translations in development and test" do
|
|
80
88
|
%w[development test].each do |environment|
|
|
81
89
|
environment_file =
|
|
@@ -154,6 +162,10 @@ RSpec.describe "Suspend a new project with default configuration" do
|
|
|
154
162
|
end
|
|
155
163
|
end
|
|
156
164
|
|
|
165
|
+
it "copies factories.rb" do
|
|
166
|
+
expect(File).to exist("#{project_path}/spec/factories.rb")
|
|
167
|
+
end
|
|
168
|
+
|
|
157
169
|
def analytics_partial
|
|
158
170
|
IO.read("#{project_path}/app/views/application/_analytics.html.erb")
|
|
159
171
|
end
|
data/templates/Gemfile.erb
CHANGED
|
@@ -10,7 +10,6 @@ gem "delayed_job_active_record"
|
|
|
10
10
|
gem "email_validator"
|
|
11
11
|
gem "flutie"
|
|
12
12
|
gem "high_voltage"
|
|
13
|
-
gem "i18n-tasks"
|
|
14
13
|
gem "jquery-rails"
|
|
15
14
|
gem "neat", "~> 1.7.0"
|
|
16
15
|
gem "newrelic_rpm", ">= 3.9.8"
|
|
@@ -20,13 +19,14 @@ gem "puma"
|
|
|
20
19
|
gem "rack-canonical-host"
|
|
21
20
|
gem "rails", "<%= Suspenders::RAILS_VERSION %>"
|
|
22
21
|
gem "recipient_interceptor"
|
|
23
|
-
gem "refills"
|
|
24
22
|
gem "sass-rails", "~> 5.0"
|
|
25
23
|
gem "simple_form"
|
|
26
24
|
gem "title"
|
|
27
25
|
gem "uglifier"
|
|
28
26
|
|
|
29
27
|
group :development do
|
|
28
|
+
gem "quiet_assets"
|
|
29
|
+
gem "refills"
|
|
30
30
|
gem "spring"
|
|
31
31
|
gem "spring-commands-rspec"
|
|
32
32
|
gem "web-console"
|
|
@@ -38,6 +38,7 @@ group :development, :test do
|
|
|
38
38
|
gem "byebug"
|
|
39
39
|
gem "dotenv-rails"
|
|
40
40
|
gem "factory_girl_rails"
|
|
41
|
+
gem "i18n-tasks"
|
|
41
42
|
gem "pry-rails"
|
|
42
43
|
gem "rspec-rails", "~> 3.3.0"
|
|
43
44
|
end
|
data/templates/puma.rb
CHANGED
|
@@ -3,8 +3,17 @@
|
|
|
3
3
|
# The environment variable WEB_CONCURRENCY may be set to a default value based
|
|
4
4
|
# on dyno size. To manually configure this value use heroku config:set
|
|
5
5
|
# WEB_CONCURRENCY.
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
#
|
|
7
|
+
# Increasing the number of workers will increase the amount of resting memory
|
|
8
|
+
# your dynos use. Increasing the number of threads will increase the amount of
|
|
9
|
+
# potential bloat added to your dynos when they are responding to heavy
|
|
10
|
+
# requests.
|
|
11
|
+
#
|
|
12
|
+
# Starting with a low number of workers and threads provides adequate
|
|
13
|
+
# performance for most applications, even under load, while maintaining a low
|
|
14
|
+
# risk of overusing memory.
|
|
15
|
+
workers Integer(ENV.fetch("WEB_CONCURRENCY", 2))
|
|
16
|
+
threads_count = Integer(ENV.fetch("MAX_THREADS", 2))
|
|
8
17
|
threads(threads_count, threads_count)
|
|
9
18
|
|
|
10
19
|
preload_app!
|
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.33.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoughtbot
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bitters
|
|
@@ -126,6 +126,7 @@ files:
|
|
|
126
126
|
- templates/disable_xml_params.rb
|
|
127
127
|
- templates/dotfiles/.ctags
|
|
128
128
|
- templates/errors.rb
|
|
129
|
+
- templates/factories.rb
|
|
129
130
|
- templates/factory_girl_rspec.rb
|
|
130
131
|
- templates/flashes_helper.rb
|
|
131
132
|
- templates/hound.yml
|