suspenders 1.36.0 → 1.37.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: 5d921beddd38f9bd970eadbdcc901a3818eb23cc
4
- data.tar.gz: 9714376afdfe4d02c41e56358d8aeb59e2ad7129
3
+ metadata.gz: 968be501f2d79ae35eebc0e702fd06fdeb9520fd
4
+ data.tar.gz: 0f499e1c7069a7b726d6c44c3b60b2c8b2051a30
5
5
  SHA512:
6
- metadata.gz: a8e513fe32ce4e817d6e4524d1082d089e5eac7b936dd68b6ed96fadb1278bba2f25df88d7a466c00053d6693016d1821d63bc231a1c07f93d876e86d612b0b1
7
- data.tar.gz: 63a34852741cea8ae655e6be0889967e15816605b455059f3da0ee565c4d1dec1426c4b7f68831aac827f9a17cf16b11d32d09ed00591f6fb6adf3653b0ba064
6
+ metadata.gz: 1b5d767fdd1e1c98aac56ad7b25d0c61fcbd4b54a867f3cecd42c85b455ec00c304a1f5f3f3209e8c87dcef41eb6ae518a572de619b80c920f2b3bb5c2e2dbc4
7
+ data.tar.gz: f1093c609e429105deffd20e8b82c4a9beaf865f04de54bb6f5d0fd489b251b07e7577268d2f27ef47093ea5ce03267c0638c5249bdf4d513b6d06e334a46e5a
@@ -13,6 +13,9 @@ Set up your machine:
13
13
 
14
14
  ./bin/setup
15
15
 
16
+ If you're having trouble installing `capybara-webkit` check their [installation
17
+ instructions](https://github.com/thoughtbot/capybara-webkit#qt-dependency-and-installation-issues).
18
+
16
19
  Make sure the tests pass:
17
20
 
18
21
  rake
data/NEWS.md CHANGED
@@ -1,3 +1,16 @@
1
+ 1.37.0 (March 13, 2016)
2
+
3
+ * Remove `RAILS_ENV` definitions
4
+ * Set development `action_mailer.delivery_method` to `:file`
5
+ so that mails are copied to `./tmp/mails/` directory for easy development
6
+ access.
7
+ * Update Bourbon to v5.0.0.beta.3
8
+ * Update Bitters to v1.3
9
+ * Update Autoprefixer config, drop support for IE 9, IE 10 and iOS 7
10
+ * Better db support in linux environments
11
+ * Replaces coffeescript with babel
12
+ * Update CSS tests to ignore transitions
13
+
1
14
  1.36.0 (February 26, 2016)
2
15
 
3
16
  * Update Bitters to v1.2
data/README.md CHANGED
@@ -129,7 +129,7 @@ This:
129
129
 
130
130
  * Creates a staging and production Heroku app
131
131
  * Sets them as `staging` and `production` Git remotes
132
- * Configures staging with `RACK_ENV` and `RAILS_ENV` environment variables set
132
+ * Configures staging with `RACK_ENV` environment variable set
133
133
  to `staging`
134
134
  * Adds the [Rails Stdout Logging][logging-gem] gem
135
135
  to configure the app to log to standard out,
@@ -25,7 +25,7 @@ module Suspenders
25
25
  end
26
26
 
27
27
  def create_staging_heroku_app(flags)
28
- rack_env = "RACK_ENV=staging RAILS_ENV=staging"
28
+ rack_env = "RACK_ENV=staging"
29
29
  app_name = heroku_app_name_for("staging")
30
30
 
31
31
  run_toolbelt_command "create #{app_name} #{flags}", "staging"
@@ -51,7 +51,7 @@ module Suspenders
51
51
  def set_test_delivery_method
52
52
  inject_into_file(
53
53
  "config/environments/development.rb",
54
- "\n config.action_mailer.delivery_method = :test",
54
+ "\n config.action_mailer.delivery_method = :file",
55
55
  after: "config.action_mailer.raise_delivery_errors = true",
56
56
  )
57
57
  end
@@ -231,6 +231,13 @@ end
231
231
  copy_file '_javascript.html.erb', 'app/views/application/_javascript.html.erb'
232
232
  end
233
233
 
234
+ def create_shared_css_overrides
235
+ copy_file(
236
+ "_css_overrides.html.erb",
237
+ "app/views/application/_css_overrides.html.erb",
238
+ )
239
+ end
240
+
234
241
  def create_application_layout
235
242
  template 'suspenders_layout.html.erb.erb',
236
243
  'app/views/layouts/application.html.erb',
@@ -133,6 +133,7 @@ module Suspenders
133
133
  build :create_partials_directory
134
134
  build :create_shared_flashes
135
135
  build :create_shared_javascripts
136
+ build :create_shared_css_overrides
136
137
  build :create_application_layout
137
138
  end
138
139
 
@@ -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.36.0"
4
+ VERSION = "1.37.0"
5
5
  end
@@ -153,7 +153,7 @@ RSpec.describe "Suspend a new project with default configuration" do
153
153
  it "configs :test email delivery method for development" do
154
154
  dev_env_file = IO.read("#{project_path}/config/environments/development.rb")
155
155
  expect(dev_env_file).
156
- to match(/^ +config.action_mailer.delivery_method = :test$/)
156
+ to match(/^ +config.action_mailer.delivery_method = :file$/)
157
157
  end
158
158
 
159
159
  it "uses APPLICATION_HOST, not HOST in the production config" do
@@ -27,9 +27,13 @@ rush to build something amazing; don't use it if you like missing deadlines.
27
27
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
28
28
  s.version = Suspenders::VERSION
29
29
 
30
- s.add_dependency 'bitters', '~> 1.2'
31
30
  s.add_dependency 'bundler', '~> 1.3'
32
31
  s.add_dependency 'rails', Suspenders::RAILS_VERSION
33
32
 
34
33
  s.add_development_dependency 'rspec', '~> 3.2'
34
+ s.add_development_dependency 'bitters', '~> 1.3'
35
+ s.add_development_dependency 'simple_form', '~> 3.2'
36
+ s.add_development_dependency 'title', '~> 0.0'
37
+ s.add_development_dependency 'quiet_assets', '~> 1.1'
38
+ s.add_development_dependency 'capybara-webkit', '~> 1.8'
35
39
  end
@@ -3,8 +3,7 @@ source "https://rubygems.org"
3
3
  ruby "<%= Suspenders::RUBY_VERSION %>"
4
4
 
5
5
  gem "autoprefixer-rails"
6
- gem "bourbon", "~> 4.2.0"
7
- gem "coffee-rails", "~> 4.1.0"
6
+ gem "bourbon", "5.0.0.beta.3"
8
7
  gem "delayed_job_active_record"
9
8
  gem "flutie"
10
9
  gem "high_voltage"
@@ -20,6 +19,8 @@ gem "rails", "<%= Suspenders::RAILS_VERSION %>"
20
19
  gem "recipient_interceptor"
21
20
  gem "sass-rails", "~> 5.0"
22
21
  gem "simple_form"
22
+ gem "sprockets", ">= 3.0.0"
23
+ gem "sprockets-es6"
23
24
  gem "title"
24
25
  gem "uglifier"
25
26
 
@@ -34,7 +35,7 @@ end
34
35
  group :development, :test do
35
36
  gem "awesome_print"
36
37
  gem "bullet"
37
- gem "bundler-audit", require: false
38
+ gem "bundler-audit", ">= 0.5.0", require: false
38
39
  gem "dotenv-rails"
39
40
  gem "factory_girl_rails"
40
41
  gem "pry-byebug"
@@ -0,0 +1,8 @@
1
+ <% if Rails.env.test? %>
2
+ <style type="text/css">
3
+ * {
4
+ transition-property: none !important;
5
+ -webkit-transition-property: none !important;
6
+ }
7
+ </style>
8
+ <% end %>
@@ -17,9 +17,6 @@
17
17
  "RACK_ENV":{
18
18
  "required":true
19
19
  },
20
- "RAILS_ENV":{
21
- "required":true
22
- },
23
20
  "SECRET_KEY_BASE":{
24
21
  "generator":"secret"
25
22
  },
@@ -1,8 +1,9 @@
1
1
  @charset "utf-8";
2
2
 
3
3
  @import "normalize-rails";
4
+
4
5
  @import "bourbon";
5
- @import "base/grid-settings";
6
6
  @import "neat";
7
+
7
8
  @import "base/base";
8
9
  @import "refills/flashes";
@@ -1,4 +1,3 @@
1
1
  Last 2 versions
2
- Explorer >= 9
3
- iOS >= 7.1
2
+ Explorer >= 11
4
3
  Android >= 4.4
@@ -3,4 +3,4 @@ database:
3
3
  - bin/setup
4
4
  test:
5
5
  override:
6
- - bin/rake
6
+ - COVERAGE=true bin/rake
@@ -1,7 +1,4 @@
1
1
  # See https://houndci.com/configuration for help.
2
- coffeescript:
3
- # config_file: .coffeescript-style.json
4
- enabled: true
5
2
  haml:
6
3
  # config_file: .haml-style.yml
7
4
  enabled: true
@@ -2,7 +2,6 @@ development: &default
2
2
  adapter: postgresql
3
3
  database: <%= app_name %>_development
4
4
  encoding: utf8
5
- host: localhost
6
5
  min_messages: warning
7
6
  pool: <%%= Integer(ENV.fetch("DB_POOL", 5)) %>
8
7
  reaping_frequency: <%%= Integer(ENV.fetch("DB_REAPING_FREQUENCY", 10)) %>
@@ -1,4 +1,4 @@
1
- ENV["RAILS_ENV"] = "test"
1
+ ENV["RACK_ENV"] = "test"
2
2
 
3
3
  require File.expand_path("../../config/environment", __FILE__)
4
4
  abort("DATABASE_URL environment variable is set") if ENV["DATABASE_URL"]
@@ -1,5 +1,11 @@
1
1
  if ENV.fetch("COVERAGE", false)
2
2
  require "simplecov"
3
+
4
+ if ENV["CIRCLE_ARTIFACTS"]
5
+ dir = File.join(ENV["CIRCLE_ARTIFACTS"], "coverage")
6
+ SimpleCov.coverage_dir(dir)
7
+ end
8
+
3
9
  SimpleCov.start "rails"
4
10
  end
5
11
 
@@ -17,5 +17,6 @@
17
17
  <%%= render "flashes" -%>
18
18
  <%%= yield %>
19
19
  <%%= render "javascript" %>
20
+ <%%= render "css_overrides" %>
20
21
  </body>
21
22
  </html>
metadata CHANGED
@@ -1,59 +1,73 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suspenders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.36.0
4
+ version: 1.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-26 00:00:00.000000000 Z
11
+ date: 2016-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bitters
14
+ name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.2'
19
+ version: '1.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.2'
26
+ version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.3'
33
+ version: 4.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.3'
40
+ version: 4.2.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: rails
42
+ name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 4.2.0
48
- type: :runtime
47
+ version: '3.2'
48
+ type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 4.2.0
54
+ version: '3.2'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rspec
56
+ name: bitters
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simple_form
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - "~>"
@@ -66,6 +80,48 @@ dependencies:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
82
  version: '3.2'
83
+ - !ruby/object:Gem::Dependency
84
+ name: title
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: quiet_assets
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.1'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: capybara-webkit
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.8'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.8'
69
125
  description: |
70
126
  Suspenders is a base Rails project that you can upgrade. It is used by
71
127
  thoughtbot to get a jump start on a working app. Use Suspenders if you're in a
@@ -113,6 +169,7 @@ files:
113
169
  - templates/Procfile
114
170
  - templates/README.md.erb
115
171
  - templates/_analytics.html.erb
172
+ - templates/_css_overrides.html.erb
116
173
  - templates/_flashes.html.erb
117
174
  - templates/_javascript.html.erb
118
175
  - templates/action_mailer.rb