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 +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/CONTRIBUTING.md +5 -0
- data/Gemfile.lock +7 -13
- data/NEWS.md +22 -0
- data/README.md +2 -0
- data/lib/suspenders/app_builder.rb +16 -0
- data/lib/suspenders/generators/app_generator.rb +1 -0
- data/lib/suspenders/version.rb +1 -1
- data/templates/Gemfile.erb +2 -0
- data/templates/_flashes.html.slim +3 -3
- data/templates/browserslist +4 -0
- data/templates/flashes_helper.rb +5 -0
- data/templates/rails_helper.rb +1 -1
- data/templates/sample.env +1 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 377a4431fc849249a46167d160727edc654bc32b
|
4
|
+
data.tar.gz: f4fdbab0bd63319eabdddb3d014ed9a9936dbda7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9739979380d7267b209bf5075f38502f9455d7b370d72571adad3ce3c1f3d3c3f80132a2c043cd5d266832405a06ca9c0a90ad85fba48b195e97c37625f0c46d
|
7
|
+
data.tar.gz: 58ca10cb9c05d8b7ecab3a36ed0ed2cfaf46eb5cdd45140ee9f6ffa05f06a51764678a8031a3ff499f05531b49be5f8209d51ab81618ddb76f58cec4ea294147
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.2
|
data/.travis.yml
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -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
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
welaika-suspenders (2.
|
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.
|
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.
|
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.
|
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.
|
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 (
|
133
|
-
hike (~> 1.2)
|
134
|
-
multi_json (~> 1.0)
|
130
|
+
sprockets (3.1.0)
|
135
131
|
rack (~> 1.0)
|
136
|
-
|
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
@@ -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
|
data/lib/suspenders/version.rb
CHANGED
data/templates/Gemfile.erb
CHANGED
@@ -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
|
-
|
3
|
-
-
|
4
|
-
div
|
2
|
+
.flashes
|
3
|
+
- user_facing_flashes.each do |key, value|
|
4
|
+
div(class="flash-#{key}")= value
|
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,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.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-
|
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.
|
190
|
+
version: 2.2.2
|
189
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
192
|
requirements:
|
191
193
|
- - ">="
|