welaika-suspenders 2.10.0 → 2.11.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: 5fa421b7f2b691cf0f48ba0b6b307bfbb1a3e786
4
- data.tar.gz: 4ff783ef52f18b91768a8bcfcf227d89b5235356
3
+ metadata.gz: 377a4431fc849249a46167d160727edc654bc32b
4
+ data.tar.gz: f4fdbab0bd63319eabdddb3d014ed9a9936dbda7
5
5
  SHA512:
6
- metadata.gz: 8ab52fec0c42edf72e7fcf8aee7abc8c7649c5b0f8909c3ecc67910c12654455b1aed8443faa57ed89c13df17c81afe8e81f41f977ae4643c89958e0ebaff36a
7
- data.tar.gz: b94bfbc6e7f5620406ebb78bf67fcc9a38728c3ddd261ea8fad08716bd9374ceb54c348cf511b91e70234c6f6bb4a95f84b5b64f738e59cfdbd40633d3b9b3d0
6
+ metadata.gz: 9739979380d7267b209bf5075f38502f9455d7b370d72571adad3ce3c1f3d3c3f80132a2c043cd5d266832405a06ca9c0a90ad85fba48b195e97c37625f0c46d
7
+ data.tar.gz: 58ca10cb9c05d8b7ecab3a36ed0ed2cfaf46eb5cdd45140ee9f6ffa05f06a51764678a8031a3ff499f05531b49be5f8209d51ab81618ddb76f58cec4ea294147
@@ -1 +1 @@
1
- 2.2.1
1
+ 2.2.2
@@ -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:
@@ -1,5 +1,10 @@
1
1
  # Contributing
2
2
 
3
+ We love pull requests from everyone. By participating in this project, you agree
4
+ to abide by the thoughtbot [code of conduct].
5
+
6
+ [code of conduct]: https://thoughtbot.com/open-source-code-of-conduct
7
+
3
8
  Fork the repo:
4
9
 
5
10
  git clone git@github.com:thoughtbot/suspenders.git
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- welaika-suspenders (2.10.0)
4
+ welaika-suspenders (2.11.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.3)
53
53
  sass (~> 3.4)
54
54
  thor
55
55
  builder (3.2.2)
@@ -68,20 +68,18 @@ GEM
68
68
  debugger-linecache (1.2.0)
69
69
  diff-lcs (1.2.5)
70
70
  erubis (2.7.0)
71
- globalid (0.3.3)
71
+ globalid (0.3.5)
72
72
  activesupport (>= 4.1.0)
73
- hike (1.2.3)
74
73
  i18n (0.7.0)
75
74
  json (1.8.2)
76
- loofah (2.0.1)
75
+ loofah (2.0.2)
77
76
  nokogiri (>= 1.5.9)
78
77
  mail (2.6.3)
79
78
  mime-types (>= 1.16, < 3)
80
79
  method_source (0.8.2)
81
80
  mime-types (2.4.3)
82
81
  mini_portile (0.6.0)
83
- minitest (5.5.1)
84
- multi_json (1.11.0)
82
+ minitest (5.6.1)
85
83
  nokogiri (1.6.2.1)
86
84
  mini_portile (= 0.6.0)
87
85
  pry (0.10.1)
@@ -129,18 +127,14 @@ GEM
129
127
  rspec-mocks (2.99.0)
130
128
  sass (3.4.13)
131
129
  slop (3.6.0)
132
- sprockets (2.12.3)
133
- hike (~> 1.2)
134
- multi_json (~> 1.0)
130
+ sprockets (3.1.0)
135
131
  rack (~> 1.0)
136
- tilt (~> 1.1, != 1.3.0)
137
- sprockets-rails (2.2.4)
132
+ sprockets-rails (2.3.1)
138
133
  actionpack (>= 3.0)
139
134
  activesupport (>= 3.0)
140
135
  sprockets (>= 2.8, < 4.0)
141
136
  thor (0.19.1)
142
137
  thread_safe (0.3.5)
143
- tilt (1.4.1)
144
138
  tzinfo (1.2.2)
145
139
  thread_safe (~> 0.1)
146
140
  xpath (2.0.0)
data/NEWS.md CHANGED
@@ -1,3 +1,25 @@
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
+
12
+ 1.27.0 (April 10, 2015)
13
+
14
+ * Add Autoprefixer and browserslist config file
15
+ * Only display user-facing flashes
16
+ * Add code of conduct to CONTRIBUTING document
17
+ * Only use rack-timeout in staging and production
18
+ * Add SimpleCov
19
+ * Avoid generation of extra _flashes view
20
+ * Fix Travis CI install step
21
+ * Cache bundle in Travis CI runs
22
+
1
23
  1.26.0 (March 23, 2015)
2
24
 
3
25
  * Update Rails to 4.2.1
data/README.md CHANGED
@@ -22,6 +22,8 @@ Then run:
22
22
 
23
23
  welaika-suspenders projectname
24
24
 
25
+ This will create a Rails app in `projectname` using the latest version of Rails.
26
+
25
27
  You can optionally specify alternate Heroku flags:
26
28
 
27
29
  welaika-suspenders projectname \
@@ -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
 
@@ -136,6 +150,7 @@ end
136
150
 
137
151
  def create_shared_flashes
138
152
  copy_file '_flashes.html.slim', 'app/views/application/_flashes.html.slim'
153
+ copy_file "flashes_helper.rb", "app/helpers/flashes_helper.rb"
139
154
  end
140
155
 
141
156
  def create_shared_javascripts
@@ -415,6 +430,7 @@ you can deploy to staging and production with:
415
430
  end
416
431
 
417
432
  def copy_miscellaneous_files
433
+ copy_file "browserslist", "browserslist"
418
434
  copy_file "errors.rb", "config/initializers/errors.rb"
419
435
  copy_file "json_encoding.rb", "config/initializers/json_encoding.rb"
420
436
  end
@@ -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 = "2.10.0"
4
+ VERSION = "2.11.0"
5
5
  end
@@ -3,6 +3,7 @@ source "https://rubygems.org"
3
3
  ruby "<%= Suspenders::RUBY_VERSION %>"
4
4
 
5
5
  gem "airbrake"
6
+ gem "autoprefixer-rails"
6
7
  gem "bourbon", "~> 4.2.0"
7
8
  gem "coffee-rails", "~> 4.1.0"
8
9
  gem "delayed_job_active_record"
@@ -15,6 +16,7 @@ gem "neat", "~> 1.7.0"
15
16
  gem "newrelic_rpm", ">= 3.9.8"
16
17
  gem "normalize-rails", "~> 3.0.0"
17
18
  gem "pg"
19
+ gem "rack-canonical-host"
18
20
  gem "rails", "<%= Suspenders::RAILS_VERSION %>"
19
21
  gem "rails-i18n"
20
22
  gem "recipient_interceptor"
@@ -1,4 +1,4 @@
1
1
  - if flash.any?
2
- #flash
3
- - flash.each do |key, value|
4
- div class="flash-#{key}"= value
2
+ .flashes
3
+ - user_facing_flashes.each do |key, value|
4
+ div(class="flash-#{key}")= value
@@ -0,0 +1,4 @@
1
+ Last 2 versions
2
+ Explorer >= 9
3
+ iOS >= 7.1
4
+ Android >= 4.4
@@ -0,0 +1,5 @@
1
+ module FlashesHelper
2
+ def user_facing_flashes
3
+ flash.to_hash.slice("alert", "error", "notice", "success")
4
+ end
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
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: welaika-suspenders
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.0
4
+ version: 2.11.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-28 00:00:00.000000000 Z
12
+ date: 2015-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bitters
@@ -149,6 +149,7 @@ files:
149
149
  - templates/application.css.sass
150
150
  - templates/bin_deploy
151
151
  - templates/bin_setup.erb
152
+ - templates/browserslist
152
153
  - templates/bundler_audit.rake
153
154
  - templates/config_i18n_tasks.yml
154
155
  - templates/config_locales_it.yml.erb
@@ -157,6 +158,7 @@ files:
157
158
  - templates/disable_xml_params.rb
158
159
  - templates/errors.rb
159
160
  - templates/factory_girl_rspec.rb
161
+ - templates/flashes_helper.rb
160
162
  - templates/i18n.rb
161
163
  - templates/json_encoding.rb
162
164
  - templates/newrelic.yml.erb
@@ -185,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
187
  requirements:
186
188
  - - ">="
187
189
  - !ruby/object:Gem::Version
188
- version: 2.2.1
190
+ version: 2.2.2
189
191
  required_rubygems_version: !ruby/object:Gem::Requirement
190
192
  requirements:
191
193
  - - ">="