suspenders 1.23.0 → 1.24.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee470f34802ff56e8032e5725872fad57a194042
4
- data.tar.gz: e338267ebc0642374ef45e0cb116d731a6212eee
3
+ metadata.gz: 82e9404c65c3c4824d2db3c7e102887e023e1692
4
+ data.tar.gz: b238f1099fbade65f4af8f56c2662c0e08aa0781
5
5
  SHA512:
6
- metadata.gz: 102c9097b4426c642bdbcf77a9f80847f8cc64c7f2e960b194a566e689fb9c8002d48e3339d332dce4547e0004e02daad4bee341ac097fc60b6597872e9dc752
7
- data.tar.gz: 458864e6ae2402201df699e16180e05f1d1b47ecd07f6cef2f0ebc7aa31772b156e978958b90652285e60f5288acc1141320389c3d090ec5b938ac79273fa65a
6
+ metadata.gz: fe08b5239f80727c9ce77dbf75a4267d23ced284224d60a2ac02a2059909105cc3e6d453560c8aba5cd780f6f8205c1b7ca98ca6eb849b72470d28b3296a4115
7
+ data.tar.gz: ad48f708d6073459abd9df2e88ddc0be91783f96f0aa8f0572b7d685e5c03cbeeb3a8e42cae98ade713cb51a12e2271f630b454959e132790185e0d2c2631762
data/CONTRIBUTING.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # Contributing
2
2
 
3
- We love pull requests. Here's a quick guide.
4
-
5
3
  Fork the repo:
6
4
 
7
5
  git clone git@github.com:thoughtbot/suspenders.git
@@ -14,23 +12,32 @@ Make sure the tests pass:
14
12
 
15
13
  rake
16
14
 
17
- Make your change. Add tests for your change. Make the tests pass:
15
+ Make your change.
16
+ Write tests.
17
+ Follow our [style guide][style].
18
+ Make the tests pass:
19
+
20
+ [style]: https://github.com/thoughtbot/guides/tree/master/style
18
21
 
19
22
  rake
20
23
 
21
- Push to your fork and [submit a pull request][pr].
24
+ Write a [good commit message][commit].
25
+ Push to your fork.
26
+ [Submit a pull request][pr].
22
27
 
28
+ [commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
23
29
  [pr]: https://github.com/thoughtbot/suspenders/compare/
24
30
 
25
- At this point you're waiting on us. We like to at least comment on pull requests
26
- within three business days (and, typically, one business day). We may suggest
27
- some changes or improvements or alternatives.
31
+ If [Hound] catches style violations,
32
+ fix them.
28
33
 
29
- Some things that will increase the chance that your pull request is accepted:
34
+ [hound]: https://houndci.com
30
35
 
31
- * Write tests.
32
- * Follow our [style guide][style].
33
- * Write a [good commit message][commit].
36
+ Wait for us.
37
+ We try to at least comment on pull requests within one business day.
38
+ We may suggest changes.
34
39
 
35
- [style]: https://github.com/thoughtbot/guides/tree/master/style
36
- [commit]: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
40
+ ## Versions
41
+
42
+ To update the Ruby version,
43
+ change `.ruby-version` and `.travis.yml`.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- suspenders (1.23.0)
4
+ suspenders (1.24.0)
5
5
  bitters (~> 0.10.0)
6
6
  bundler (~> 1.3)
7
7
  rails (= 4.2.0)
@@ -128,13 +128,13 @@ GEM
128
128
  rspec-expectations (2.99.0)
129
129
  diff-lcs (>= 1.1.3, < 2.0)
130
130
  rspec-mocks (2.99.0)
131
- sass (3.4.10)
131
+ sass (3.4.11)
132
132
  sprockets (2.12.3)
133
133
  hike (~> 1.2)
134
134
  multi_json (~> 1.0)
135
135
  rack (~> 1.0)
136
136
  tilt (~> 1.1, != 1.3.0)
137
- sprockets-rails (2.2.2)
137
+ sprockets-rails (2.2.4)
138
138
  actionpack (>= 3.0)
139
139
  activesupport (>= 3.0)
140
140
  sprockets (>= 2.8, < 4.0)
data/NEWS.md CHANGED
@@ -1,3 +1,10 @@
1
+ 1.24.0 (February 3, 2015)
2
+
3
+ * Remove things in Suspenders that Rails does for us now.
4
+ * Document how to use the `title` view helper.
5
+ * Improve speed of bundling in `bin/setup` script.
6
+ * Set ENV variable to make out-of-the-box Heroku static asset experience better.
7
+
1
8
  1.23.0 (January 19, 2015)
2
9
 
3
10
  * Use Bourbon 4.1.0.
data/README.md CHANGED
@@ -181,9 +181,7 @@ If you have problems, please create a
181
181
 
182
182
  ## Contributing
183
183
 
184
- To update Suspenders' Ruby version, change `.ruby-version` and `.travis.yml`.
185
-
186
- Please see [CONTRIBUTING.md](CONTRIBUTING.md) for further details.
184
+ See [CONTRIBUTING.md](CONTRIBUTING.md).
187
185
 
188
186
  ## Credits
189
187
 
@@ -140,12 +140,6 @@ end
140
140
  force: true
141
141
  end
142
142
 
143
- def remove_turbolinks
144
- replace_in_file 'app/assets/javascripts/application.js',
145
- /\/\/= require turbolinks\n/,
146
- ''
147
- end
148
-
149
143
  def use_postgres_config_template
150
144
  template 'postgresql_database.yml.erb', 'config/database.yml',
151
145
  force: true
@@ -215,14 +209,6 @@ end
215
209
  copy_file 'action_mailer.rb', 'spec/support/action_mailer.rb'
216
210
  end
217
211
 
218
- def configure_time_zone
219
- config = <<-RUBY
220
- config.active_record.default_timezone = :utc
221
- RUBY
222
-
223
- inject_into_class 'config/application.rb', 'Application', config
224
- end
225
-
226
212
  def configure_time_formats
227
213
  remove_file "config/locales/en.yml"
228
214
  template "config_locales_en.yml.erb", "config/locales/en.yml"
@@ -300,9 +286,13 @@ end
300
286
  end
301
287
 
302
288
  def create_heroku_apps(flags)
289
+ rack_env = "RACK_ENV=staging RAILS_ENV=staging"
290
+ rails_serve_static_files = "RAILS_SERVE_STATIC_FILES=true"
291
+ staging_config = "#{rack_env} #{rails_serve_static_files}"
303
292
  run_heroku "create #{app_name}-production #{flags}", "production"
304
293
  run_heroku "create #{app_name}-staging #{flags}", "staging"
305
- run_heroku "config:add RACK_ENV=staging RAILS_ENV=staging", "staging"
294
+ run_heroku "config:add #{staging_config}", "staging"
295
+ run_heroku "config:add #{rails_serve_static_files}", "production"
306
296
  end
307
297
 
308
298
  def set_heroku_remotes
@@ -436,10 +426,6 @@ end
436
426
  run "#{path_addition} heroku #{command} --remote #{environment}"
437
427
  end
438
428
 
439
- def factories_spec_rake_task
440
- IO.read find_in_source_paths('factories_spec_rake_task.rb')
441
- end
442
-
443
429
  def generate_secret
444
430
  SecureRandom.hex(64)
445
431
  end
@@ -18,6 +18,9 @@ module Suspenders
18
18
  class_option :skip_test_unit, type: :boolean, aliases: "-T", default: true,
19
19
  desc: "Skip Test::Unit files"
20
20
 
21
+ class_option :skip_turbolinks, type: :boolean, default: true,
22
+ desc: "Skip turbolinks gem"
23
+
21
24
  def finish_template
22
25
  invoke :suspenders_customization
23
26
  super
@@ -31,7 +34,6 @@ module Suspenders
31
34
  invoke :setup_staging_environment
32
35
  invoke :setup_secret_token
33
36
  invoke :create_suspenders_views
34
- invoke :setup_coffeescript
35
37
  invoke :configure_app
36
38
  invoke :setup_stylesheets
37
39
  invoke :install_bitters
@@ -119,15 +121,9 @@ module Suspenders
119
121
  build :create_application_layout
120
122
  end
121
123
 
122
- def setup_coffeescript
123
- say 'Setting up CoffeeScript defaults'
124
- build :remove_turbolinks
125
- end
126
-
127
124
  def configure_app
128
125
  say 'Configuring app'
129
126
  build :configure_action_mailer
130
- build :configure_time_zone
131
127
  build :configure_time_formats
132
128
  build :configure_rack_timeout
133
129
  build :configure_simple_form
@@ -1,5 +1,5 @@
1
1
  module Suspenders
2
2
  RAILS_VERSION = "4.2.0"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "1.23.0"
4
+ VERSION = "1.24.0"
5
5
  end
@@ -7,8 +7,8 @@
7
7
  set -e
8
8
 
9
9
  # Set up Ruby dependencies via Bundler
10
- gem list bundler --installed > /dev/null || gem install bundler
11
- bundle install
10
+ gem install bundler --conservative
11
+ bundle check || bundle install
12
12
 
13
13
  # Set up configurable environment variables
14
14
  if [ ! -f .env ]; then
@@ -4,6 +4,11 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta name="ROBOTS" content="NOODP" />
6
6
  <meta name="viewport" content="initial-scale=1" />
7
+ <%%#
8
+ Configure default and controller-, and view-specific titles in
9
+ config/locales/en.yml. For more see:
10
+ https://github.com/calebthompson/title#usage
11
+ %>
7
12
  <title><%%= title %></title>
8
13
  <%%= stylesheet_link_tag :application, media: "all" %>
9
14
  <%%= csrf_meta_tags %>
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.23.0
4
+ version: 1.24.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-01-19 00:00:00.000000000 Z
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bitters