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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8630aa0ab9191605af8d2c664945e3417d4c8806
4
- data.tar.gz: f0252df4217c18b074c1f0f6366798aaa8e68d51
3
+ metadata.gz: 7b5c9a1f436bfb675715cd69381f374c36bbe8af
4
+ data.tar.gz: 452c5dbeafa70ba43c4e320b75c74a7827208c82
5
5
  SHA512:
6
- metadata.gz: bbe697e294d2aa1d277a200fb5db740a2290ea0103f5e6c3a6dfde800963f18c5e74e81649ddb778e40e0d618df327b2a0469ed438743007b12e6a5de5d32821
7
- data.tar.gz: 51c5066912306b6be57cdaac826e636af62729ad1a67ce3f8068beac6b863af9b725c2a0bb27ec7c2062b9f59429633e469912f623cbba4c3e5b98ccb6c089d3
6
+ metadata.gz: 2523526b87854cd8b9136cc900b0ad6b97c73b5db802e7ba9ced1405ac9c0cd4c02511bb685bbf7ef8e4544832ec567c0db5c15ce334c899e645d259998ffaba
7
+ data.tar.gz: a82acee4b6d591536bd50a5ec8add13967938aa5de2c9c9c7fd4c19b0c77fc4aebb3b52036d2a9d07ba31cfd01ef86bb5fc1b6a06046072d60d50b0d8a5851ae
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.1
1
+ 2.2.2
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
- rvm: 2.2.1
2
+ rvm: 2.2.2
3
3
  cache: bundler
4
4
  sudo: false
5
5
  before_install:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- suspenders (1.26.0)
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.1)
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.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 'app/assets/stylesheets/application.css'
274
- copy_file 'application.css.scss',
275
- 'app/assets/stylesheets/application.css.scss'
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
@@ -103,6 +103,7 @@ module Suspenders
103
103
  build :configure_newrelic
104
104
  build :configure_smtp
105
105
  build :configure_rack_timeout
106
+ build :enable_rack_canonical_host
106
107
  build :enable_rack_deflater
107
108
  build :setup_asset_host
108
109
  end
@@ -1,5 +1,5 @@
1
1
  module Suspenders
2
2
  RAILS_VERSION = "4.2.1"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "1.27.0"
4
+ VERSION = "1.28.0"
5
5
  end
@@ -16,6 +16,7 @@ gem "neat", "~> 1.7.0"
16
16
  gem "newrelic_rpm", ">= 3.9.8"
17
17
  gem "normalize-rails", "~> 3.0.0"
18
18
  gem "pg"
19
+ gem "rack-canonical-host"
19
20
  gem "rails", "<%= Suspenders::RAILS_VERSION %>"
20
21
  gem "recipient_interceptor"
21
22
  gem "refills"
@@ -1,5 +1,5 @@
1
1
  <% if flash.any? %>
2
- <div id="flash">
2
+ <div class="flashes">
3
3
  <% user_facing_flashes.each do |key, value| -%>
4
4
  <div class="flash-<%= key %>"><%= value %></div>
5
5
  <% end -%>
@@ -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
@@ -3,3 +3,4 @@ ASSET_HOST=localhost:3000
3
3
  HOST=localhost:3000
4
4
  RACK_ENV=development
5
5
  SECRET_KEY_BASE=development_secret
6
+ EXECJS_RUNTIME=Node
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.27.0
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-04-10 00:00:00.000000000 Z
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.css.scss
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.1
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: