suspenders 1.27.0 → 1.28.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/Gemfile.lock +3 -3
- data/NEWS.md +11 -0
- data/README.md +3 -0
- data/lib/suspenders/app_builder.rb +17 -3
- data/lib/suspenders/generators/app_generator.rb +1 -0
- data/lib/suspenders/version.rb +1 -1
- data/templates/Gemfile.erb +1 -0
- data/templates/_flashes.html.erb +1 -1
- data/templates/{application.css.scss → application.scss} +0 -0
- data/templates/rails_helper.rb +1 -1
- data/templates/sample.env +1 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b5c9a1f436bfb675715cd69381f374c36bbe8af
|
4
|
+
data.tar.gz: 452c5dbeafa70ba43c4e320b75c74a7827208c82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2523526b87854cd8b9136cc900b0ad6b97c73b5db802e7ba9ced1405ac9c0cd4c02511bb685bbf7ef8e4544832ec567c0db5c15ce334c899e645d259998ffaba
|
7
|
+
data.tar.gz: a82acee4b6d591536bd50a5ec8add13967938aa5de2c9c9c7fd4c19b0c77fc4aebb3b52036d2a9d07ba31cfd01ef86bb5fc1b6a06046072d60d50b0d8a5851ae
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.2
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
suspenders (1.
|
4
|
+
suspenders (1.27.0)
|
5
5
|
bitters (~> 1.0.0)
|
6
6
|
bundler (~> 1.3)
|
7
7
|
rails (= 4.2.1)
|
@@ -49,7 +49,7 @@ GEM
|
|
49
49
|
bourbon (>= 3.2)
|
50
50
|
sass (>= 3.2)
|
51
51
|
thor
|
52
|
-
bourbon (4.2.
|
52
|
+
bourbon (4.2.2)
|
53
53
|
sass (~> 3.4)
|
54
54
|
thor
|
55
55
|
builder (3.2.2)
|
@@ -61,7 +61,7 @@ GEM
|
|
61
61
|
xpath (~> 2.0)
|
62
62
|
diff-lcs (1.2.5)
|
63
63
|
erubis (2.7.0)
|
64
|
-
globalid (0.3.
|
64
|
+
globalid (0.3.5)
|
65
65
|
activesupport (>= 4.1.0)
|
66
66
|
hike (1.2.3)
|
67
67
|
i18n (0.7.0)
|
data/NEWS.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
1.28.0 (May 9, 2015)
|
2
|
+
|
3
|
+
* Require spec/support files in a certain order
|
4
|
+
* Use rack-canonical-host
|
5
|
+
* Swap `id="flash"` for `class="flashes"` in `_flashes.html.erb`
|
6
|
+
* Provide EXECJS_RUNTIME env variable (Node, as in Heroku)
|
7
|
+
* Removes .css file suffix from application stylesheet
|
8
|
+
* Add mention of Autoprefixer Rails gem to readme
|
9
|
+
* Use ruby 2.2.2
|
10
|
+
* Update gems
|
11
|
+
|
1
12
|
1.27.0 (April 10, 2015)
|
2
13
|
|
3
14
|
* Add Autoprefixer and browserslist config file
|
data/README.md
CHANGED
@@ -26,6 +26,7 @@ generated projectname/Gemfile.
|
|
26
26
|
It includes application gems like:
|
27
27
|
|
28
28
|
* [Airbrake](https://github.com/airbrake/airbrake) for exception notification
|
29
|
+
* [Autoprefixer Rails](https://github.com/ai/autoprefixer-rails) for CSS vendor prefixes
|
29
30
|
* [Bourbon](https://github.com/thoughtbot/bourbon) for Sass mixins
|
30
31
|
* [Bitters](https://github.com/thoughtbot/bitters) for scaffold application styles
|
31
32
|
* [Delayed Job](https://github.com/collectiveidea/delayed_job) for background
|
@@ -40,6 +41,8 @@ It includes application gems like:
|
|
40
41
|
* [New Relic RPM](https://github.com/newrelic/rpm) for monitoring performance
|
41
42
|
* [Normalize](https://necolas.github.io/normalize.css/) for resetting browser styles
|
42
43
|
* [Postgres](https://github.com/ged/ruby-pg) for access to the Postgres database
|
44
|
+
* [Rack Canonical Host](https://github.com/tylerhunt/rack-canonical-host) to
|
45
|
+
ensure all requests are served from the same domain
|
43
46
|
* [Rack Timeout](https://github.com/kch/rack-timeout) to abort requests that are
|
44
47
|
taking too long
|
45
48
|
* [Recipient Interceptor](https://github.com/croaky/recipient_interceptor) to
|
@@ -78,6 +78,20 @@ module Suspenders
|
|
78
78
|
:after => 'config.action_mailer.raise_delivery_errors = false'
|
79
79
|
end
|
80
80
|
|
81
|
+
def enable_rack_canonical_host
|
82
|
+
config = <<-RUBY
|
83
|
+
|
84
|
+
# Ensure requests are only served from one, canonical host name
|
85
|
+
config.middleware.use Rack::CanonicalHost, ENV.fetch("HOST")
|
86
|
+
RUBY
|
87
|
+
|
88
|
+
inject_into_file(
|
89
|
+
"config/environments/production.rb",
|
90
|
+
config,
|
91
|
+
after: serve_static_files_line
|
92
|
+
)
|
93
|
+
end
|
94
|
+
|
81
95
|
def enable_rack_deflater
|
82
96
|
config = <<-RUBY
|
83
97
|
|
@@ -270,9 +284,9 @@ Rack::Timeout.timeout = (ENV["RACK_TIMEOUT"] || 10).to_i
|
|
270
284
|
end
|
271
285
|
|
272
286
|
def setup_stylesheets
|
273
|
-
remove_file
|
274
|
-
copy_file
|
275
|
-
|
287
|
+
remove_file "app/assets/stylesheets/application.css"
|
288
|
+
copy_file "application.scss",
|
289
|
+
"app/assets/stylesheets/application.scss"
|
276
290
|
end
|
277
291
|
|
278
292
|
def install_bitters
|
data/lib/suspenders/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
data/templates/_flashes.html.erb
CHANGED
File without changes
|
data/templates/rails_helper.rb
CHANGED
@@ -5,7 +5,7 @@ require File.expand_path("../../config/environment", __FILE__)
|
|
5
5
|
require "rspec/rails"
|
6
6
|
require "shoulda/matchers"
|
7
7
|
|
8
|
-
Dir[Rails.root.join("spec/support/**/*.rb")].each { |file| require file }
|
8
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].sort.each { |file| require file }
|
9
9
|
|
10
10
|
module Features
|
11
11
|
# Extend this module in spec/support/features/*.rb
|
data/templates/sample.env
CHANGED
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.28.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-
|
11
|
+
date: 2015-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bitters
|
@@ -134,7 +134,7 @@ files:
|
|
134
134
|
- templates/_flashes.html.erb
|
135
135
|
- templates/_javascript.html.erb
|
136
136
|
- templates/action_mailer.rb
|
137
|
-
- templates/application.
|
137
|
+
- templates/application.scss
|
138
138
|
- templates/bin_deploy
|
139
139
|
- templates/bin_setup.erb
|
140
140
|
- templates/browserslist
|
@@ -174,7 +174,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
174
|
requirements:
|
175
175
|
- - ">="
|
176
176
|
- !ruby/object:Gem::Version
|
177
|
-
version: 2.2.
|
177
|
+
version: 2.2.2
|
178
178
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
179
|
requirements:
|
180
180
|
- - ">="
|
@@ -196,3 +196,4 @@ test_files:
|
|
196
196
|
- spec/support/fake_github.rb
|
197
197
|
- spec/support/fake_heroku.rb
|
198
198
|
- spec/support/suspenders.rb
|
199
|
+
has_rdoc:
|