welaika-suspenders 2.6.0 → 2.7.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: adc79e2386ca47469c4c8e485def10ae44d4156c
4
- data.tar.gz: 187f6b410ce7741cd6728601967cf35fb325092d
3
+ metadata.gz: 1ecf4d405edda55de70fd1f180c267d59dfa9006
4
+ data.tar.gz: 645f248b78993bd9edaf7a0727769b8ad3377994
5
5
  SHA512:
6
- metadata.gz: c4fa622f15fd26cf4918ba06d0591df4fc53e62cabd1b36c24a79ab913206d788969720394482096fa35580334f52b27bc5282a1c076bf8b631b69877eb4bac2
7
- data.tar.gz: 3c61e25a858f9c75b3005c8d56ff195aaa039c8776932dd7732dad642f2c95b4571635dc773017e505240aca1fffcb4488d7f7f1cc1958e3a95d49705c9b2f1d
6
+ metadata.gz: 2a78896ad5dbcdb5dd16cf2ecf75dbf5e7aa9a0cb398c434fc4cca68fdf2f434cf71c74713666bf9100b98bc62eb71a90627835b973da0962646f4d7b737342b
7
+ data.tar.gz: 29f40fa844f103f2c0a2c0d49826049a23f5a405f0310df35656c26a3da7c1d9f160ed39ee8a6e3b6f7144c245df1bd99e2780f6c19d29724b2ac1537364fa76
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
- welaika-suspenders (2.6.0)
4
+ welaika-suspenders (2.7.0)
5
5
  bitters (~> 0.10.0)
6
6
  bundler (~> 1.3)
7
7
  rails (= 4.2.0)
@@ -53,7 +53,7 @@ GEM
53
53
  bourbon (>= 3.2)
54
54
  sass (>= 3.2)
55
55
  thor
56
- bourbon (4.1.0)
56
+ bourbon (4.1.1)
57
57
  sass (~> 3.3)
58
58
  thor
59
59
  builder (3.2.2)
@@ -80,14 +80,14 @@ GEM
80
80
  activesupport (>= 4.1.0)
81
81
  hike (1.2.3)
82
82
  i18n (0.7.0)
83
- json (1.8.1)
83
+ json (1.8.2)
84
84
  loofah (2.0.1)
85
85
  nokogiri (>= 1.5.9)
86
86
  mail (2.6.3)
87
87
  mime-types (>= 1.16, < 3)
88
88
  mime-types (2.4.3)
89
89
  mini_portile (0.6.0)
90
- minitest (5.5.0)
90
+ minitest (5.5.1)
91
91
  multi_json (1.10.1)
92
92
  multi_test (0.1.1)
93
93
  nokogiri (1.6.2.1)
@@ -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.9)
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,24 @@
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
+
8
+ 1.23.0 (January 19, 2015)
9
+
10
+ * Use Bourbon 4.1.0.
11
+ * Use Neat 1.7.0.
12
+ * Remove [parameter wrapping] for every format, including JSON.
13
+ * Turn off TravisCI email notifications for Suspended apps.
14
+ * Run `rake dev:prime` on CI in order to test
15
+ whether `bin/setup` has any regressions.
16
+ * Fix `config.action_mailer.default_url_options`'s value.
17
+ It now correctly uses `ENV.fetch("HOST")` in staging
18
+ and production.
19
+
20
+ [parameter wrapping]: http://api.rubyonrails.org/classes/ActionController/ParamsWrapper.html
21
+
1
22
  1.22.0 (January 11, 2015)
2
23
 
3
24
  * Allow additional
data/README.md CHANGED
@@ -64,3 +64,4 @@ List of changes we made since [this is commit](https://github.com/thoughtbot/sus
64
64
  - create common folders like `app/queries`, `app/services`, etc.
65
65
  - use `application.css.sass` instead of `application.css.scss`
66
66
  - do not import refills/flashes
67
+ - add `quiet_assets` gem
@@ -10,8 +10,8 @@ module Suspenders
10
10
  end
11
11
 
12
12
  def action_mailer_host(rails_env, host)
13
- host_config = "config.action_mailer.default_url_options = { host: '#{host}' }"
14
- configure_environment(rails_env, host_config)
13
+ config = "config.action_mailer.default_url_options = { host: #{host} }"
14
+ configure_environment(rails_env, config)
15
15
  end
16
16
 
17
17
  def configure_environment(rails_env, config)
@@ -107,7 +107,7 @@ module Suspenders
107
107
 
108
108
  inject_into_file(
109
109
  "config/environments/production.rb",
110
- 'config.static_cache_control = "public, max-age=#{1.year.to_i}"',
110
+ ' config.static_cache_control = "public, max-age=#{1.year.to_i}"',
111
111
  after: serve_static_files_line
112
112
  )
113
113
  end
@@ -130,6 +130,10 @@ end
130
130
  template 'secrets.yml', 'config/secrets.yml', force: true
131
131
  end
132
132
 
133
+ def disallow_wrapping_parameters
134
+ remove_file "config/initializers/wrap_parameters.rb"
135
+ end
136
+
133
137
  def create_partials_directory
134
138
  empty_directory 'app/views/application'
135
139
  end
@@ -149,12 +153,6 @@ end
149
153
  force: true
150
154
  end
151
155
 
152
- def remove_turbolinks
153
- replace_in_file 'app/assets/javascripts/application.js',
154
- /\/\/= require turbolinks\n/,
155
- ''
156
- end
157
-
158
156
  def use_postgres_config_template
159
157
  template 'postgresql_database.yml.erb', 'config/database.yml',
160
158
  force: true
@@ -228,19 +226,6 @@ end
228
226
  copy_file 'action_mailer.rb', 'spec/support/action_mailer.rb'
229
227
  end
230
228
 
231
- def configure_time_zone
232
- config = <<-RUBY
233
- config.active_record.default_timezone = :utc
234
- RUBY
235
-
236
- inject_into_class 'config/application.rb', 'Application', config
237
- end
238
-
239
- def configure_time_formats
240
- remove_file "config/locales/en.yml"
241
- template "config_locales_en.yml.erb", "config/locales/en.yml"
242
- end
243
-
244
229
  def configure_rack_timeout
245
230
  copy_file 'rack_timeout.rb', 'config/initializers/rack_timeout.rb'
246
231
  end
@@ -254,8 +239,8 @@ end
254
239
  end
255
240
 
256
241
  def configure_action_mailer
257
- action_mailer_host "development", "localhost:#{port}"
258
- action_mailer_host "test", "www.example.com"
242
+ action_mailer_host "development", %{"localhost:#{port}"}
243
+ action_mailer_host "test", %{"www.example.com"}
259
244
  action_mailer_host "staging", %{ENV.fetch("HOST")}
260
245
  action_mailer_host "production", %{ENV.fetch("HOST")}
261
246
  end
@@ -329,9 +314,13 @@ end
329
314
  end
330
315
 
331
316
  def create_heroku_apps(flags)
317
+ rack_env = "RACK_ENV=staging RAILS_ENV=staging"
318
+ rails_serve_static_files = "RAILS_SERVE_STATIC_FILES=true"
319
+ staging_config = "#{rack_env} #{rails_serve_static_files}"
332
320
  run_heroku "create #{app_name}-production #{flags}", "production"
333
321
  run_heroku "create #{app_name}-staging #{flags}", "staging"
334
- run_heroku "config:add RACK_ENV=staging RAILS_ENV=staging", "staging"
322
+ run_heroku "config:add #{staging_config}", "staging"
323
+ run_heroku "config:add #{rails_serve_static_files}", "production"
335
324
  end
336
325
 
337
326
  def set_heroku_remotes
@@ -373,6 +362,7 @@ fi
373
362
  copy_file "bin_deploy", "bin/deploy"
374
363
 
375
364
  instructions = <<-MARKDOWN
365
+
376
366
  ## Deploying
377
367
 
378
368
  If you have previously run the `./bin/setup` script,
@@ -459,10 +449,6 @@ end
459
449
  run "#{path_addition} heroku #{command} --remote #{environment}"
460
450
  end
461
451
 
462
- def factories_spec_rake_task
463
- IO.read find_in_source_paths('factories_spec_rake_task.rb')
464
- end
465
-
466
452
  def generate_secret
467
453
  SecureRandom.hex(64)
468
454
  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,16 +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
- build :configure_time_formats
132
127
  build :configure_rack_timeout
133
128
  build :configure_simple_form
134
129
  build :configure_slim
@@ -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 = "2.6.0"
4
+ VERSION = "2.7.0"
5
5
  end
@@ -28,6 +28,7 @@ gem "unicorn"
28
28
 
29
29
  group :development do
30
30
  gem "letter_opener"
31
+ gem "quiet_assets"
31
32
  gem "spring"
32
33
  gem "spring-commands-rspec"
33
34
  gem "web-console"
@@ -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
@@ -1,4 +1,4 @@
1
- if Rails.env.development?
1
+ if Rails.env.development? || Rails.env.test?
2
2
  require "factory_girl"
3
3
 
4
4
  namespace :dev do
@@ -9,5 +9,6 @@
9
9
  /db/*.sqlite3
10
10
  /log/*
11
11
  /public/system
12
+ /public/assets
12
13
  /tags
13
14
  /tmp/*
@@ -5,6 +5,11 @@ html
5
5
  meta http-equiv="X-UA-Compatible" content="IE=edge"
6
6
  meta name="ROBOTS" content="NOODP"
7
7
  meta name="viewport" content="width=device-width, initial-scale=1"
8
+
9
+ / Configure default and controller-, and view-specific titles in
10
+ config/locales/en.yml. For more see:
11
+ https://github.com/calebthompson/title#usage
12
+
8
13
  title= title
9
14
  = stylesheet_link_tag :application, media: 'all'
10
15
  = csrf_meta_tags
@@ -13,8 +13,7 @@ cache:
13
13
  language:
14
14
  - ruby
15
15
  notifications:
16
- email:
17
- - false
16
+ email: false
18
17
  rvm:
19
18
  - <%= Suspenders::RUBY_VERSION %>
20
19
  addons:
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.6.0
4
+ version: 2.7.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-01-13 00:00:00.000000000 Z
12
+ date: 2015-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bitters
@@ -166,7 +166,6 @@ files:
166
166
  - templates/bin_setup.erb
167
167
  - templates/bundler_audit.rake
168
168
  - templates/config_i18n_tasks.yml
169
- - templates/config_locales_en.yml.erb
170
169
  - templates/database_cleaner_rspec.rb
171
170
  - templates/development_seeds.rb
172
171
  - templates/disable_xml_params.rb
@@ -1,19 +0,0 @@
1
- en:
2
- date:
3
- formats:
4
- default:
5
- "%m/%d/%Y"
6
- with_weekday:
7
- "%a %m/%d/%y"
8
-
9
- time:
10
- formats:
11
- default:
12
- "%a, %b %-d, %Y at %r"
13
- date:
14
- "%b %-d, %Y"
15
- short:
16
- "%B %d"
17
-
18
- titles:
19
- application: <%= app_name.humanize %>