suspenders 1.42.0 → 1.43.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: 5e05970d5749f52683a2dfdfa61a235ad491d845
4
- data.tar.gz: dc6f0b8a74087e93f439d58201403b054ac750cb
3
+ metadata.gz: d1ebe4a4d98a7ed7b267b94ef68fda1bc2d95d21
4
+ data.tar.gz: c2a35b12c6f1d5a9bbf73d0a7848de38ea50b6bd
5
5
  SHA512:
6
- metadata.gz: 4037ab32f9b62c91360f7eac64c0de6a2e9e9ad90dea32ed13f2abd5b8964c5dbde5260d4845f713880d6c4e40a65d5e5ea13187a5f99dd65aa850c535d3e97e
7
- data.tar.gz: db11125739ae1d52c4edf0be9b49baa8a531824dbc2c4510e87c0be9a8b4cf2512f1208a5641c2fb13d4091d4c34f3eba98ce499df7104478c268f61df93293b
6
+ metadata.gz: 8612cbfb63b2363a2292785bb91410d51183b1e3c6e365ceffcd8dbeab8185a583bd732502817af1235189512c641d0f31891d447b4dc391a11d3c1d6dc765c1
7
+ data.tar.gz: 0b3c04d117d56a3149bed409f8427ea9eae743d5e1085dfc47dd99dcfccf864b66a29e003f0dce994399c14f508bf77cce469ec6884371a9097d8b9293056c75
data/NEWS.md CHANGED
@@ -1,4 +1,10 @@
1
- master
1
+ 1.43.0 (November 8, 2016)
2
+
3
+ * Update Bourbon to 5.0.0.beta.7
4
+ * Update Neat to 2.0.0.beta.1
5
+ * Update Bitters to 1.5.0
6
+ * Drop sprockets-es6
7
+ * Bugfix: doesn’t generate unused `test/` directory
2
8
 
3
9
  1.42.0 (July 23, 2016)
4
10
 
@@ -6,7 +6,7 @@ module Suspenders
6
6
  end
7
7
 
8
8
  def set_heroku_remotes
9
- remotes = <<-SHELL.strip_heredoc
9
+ remotes = <<~SHELL
10
10
  #{command_to_join_heroku_app('staging')}
11
11
  #{command_to_join_heroku_app('production')}
12
12
 
@@ -85,14 +85,14 @@ module Suspenders
85
85
 
86
86
  def command_to_join_heroku_app(environment)
87
87
  heroku_app_name = heroku_app_name_for(environment)
88
- <<-SHELL
89
-
90
- if heroku join --app #{heroku_app_name} &> /dev/null; then
91
- git remote add #{environment} git@heroku.com:#{heroku_app_name}.git || true
92
- printf 'You are a collaborator on the "#{heroku_app_name}" Heroku app\n'
93
- else
94
- printf 'Ask for access to the "#{heroku_app_name}" Heroku app\n'
95
- fi
88
+ <<~SHELL
89
+
90
+ if heroku join --app #{heroku_app_name} &> /dev/null; then
91
+ git remote add #{environment} git@heroku.com:#{heroku_app_name}.git || true
92
+ printf 'You are a collaborator on the "#{heroku_app_name}" Heroku app\n'
93
+ else
94
+ printf 'Ask for access to the "#{heroku_app_name}" Heroku app\n'
95
+ fi
96
96
  SHELL
97
97
  end
98
98
 
@@ -26,6 +26,9 @@ module Suspenders
26
26
  class_option :path, type: :string, default: nil,
27
27
  desc: "Path to the gem"
28
28
 
29
+ class_option :skip_test, type: :boolean, default: true,
30
+ desc: "Skip Test Unit"
31
+
29
32
  def finish_template
30
33
  invoke :suspenders_customization
31
34
  super
@@ -7,8 +7,8 @@ module Suspenders
7
7
  File.dirname(__FILE__))
8
8
 
9
9
  def add_stylesheet_gems
10
- gem "bourbon", "5.0.0.beta.6"
11
- gem "neat", "~> 1.8.0"
10
+ gem "bourbon", "~> 5.0.0.beta.7"
11
+ gem "neat", "~> 2.0.0.beta.1"
12
12
  gem "refills", group: [:development, :test]
13
13
  Bundler.with_clean_env { run "bundle install" }
14
14
  end
@@ -4,5 +4,5 @@ module Suspenders
4
4
  read("#{File.dirname(__FILE__)}/../../.ruby-version").
5
5
  strip.
6
6
  freeze
7
- VERSION = "1.42.0".freeze
7
+ VERSION = "1.43.0".freeze
8
8
  end
@@ -31,9 +31,9 @@ RSpec.describe "Heroku" do
31
31
  bin_setup_path = "#{project_path}/bin/setup"
32
32
  bin_setup = IO.read(bin_setup_path)
33
33
 
34
- expect(bin_setup).to include("heroku join --app #{app_name}-production")
35
- expect(bin_setup).to include("heroku join --app #{app_name}-staging")
36
- expect(bin_setup).to include("git config heroku.remote staging")
34
+ expect(bin_setup).to match(/^if heroku join --app #{app_name}-production/)
35
+ expect(bin_setup).to match(/^if heroku join --app #{app_name}-staging/)
36
+ expect(bin_setup).to match(/^git config heroku.remote staging/)
37
37
  expect(File.stat(bin_setup_path)).to be_executable
38
38
 
39
39
  readme = IO.read("#{project_path}/README.md")
@@ -41,6 +41,10 @@ RSpec.describe "Suspend a new project with default configuration" do
41
41
  end
42
42
  end
43
43
 
44
+ it "doesn't generate test directory" do
45
+ expect(File).not_to exist("#{project_path}/test")
46
+ end
47
+
44
48
  it "loads secret_key_base from env" do
45
49
  secrets_file = IO.read("#{project_path}/config/secrets.yml")
46
50
 
@@ -264,7 +268,7 @@ RSpec.describe "Suspend a new project with default configuration" do
264
268
 
265
269
  it "configures bourbon, neat, and refills" do
266
270
  flashes_path = %w(app assets stylesheets refills _flashes.scss)
267
- expect(read_project_file(flashes_path)).to match(/mixin/m)
271
+ expect(read_project_file(flashes_path)).to match(/\$flashes/m)
268
272
 
269
273
  app_css = read_project_file(%w(app assets stylesheets application.scss))
270
274
  expect(app_css).to match(/normalize-rails.*bourbon.*neat.*base.*refills/m)
@@ -27,7 +27,7 @@ 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.3'
30
+ s.add_dependency 'bitters', '~> 1.5'
31
31
  s.add_dependency 'bundler', '~> 1.3'
32
32
  s.add_dependency 'rails', Suspenders::RAILS_VERSION
33
33
 
@@ -17,7 +17,6 @@ gem "sass-rails", "~> 5.0"
17
17
  gem "simple_form"
18
18
  gem "skylight"
19
19
  gem "sprockets", ">= 3.0.0"
20
- gem "sprockets-es6"
21
20
  gem "suspenders"
22
21
  gem "title"
23
22
  gem "uglifier"
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.42.0
4
+ version: 1.43.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-07-23 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bitters
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '1.5'
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.3'
26
+ version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement