suspenders 1.2.1 → 1.2.2
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 +8 -8
- data/NEWS.md +6 -0
- data/lib/suspenders/app_builder.rb +2 -2
- data/lib/suspenders/version.rb +1 -1
- data/templates/Gemfile_clean +1 -1
- data/templates/factories_spec.rb +9 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YWY3NTk5YmU3NjUwMjUzYjNmNmMwZjdhYjM0NjdkNmY3MGQzN2E1ZA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
Y2ZjNzI4Y2U5YmZlOTY2YWU4NDM2ZmIxYzc1NGRlYzNiZGRkYmY0Ng==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YmMzZTBiNmU1MmQ5NzRjZTk5ZDdhNGUwMmM5YTkzZmE5NDZjYTc0MDBiY2Ni
|
|
10
|
+
ZTc5MjVjMmE1YjNjNWQ0MDdjNjYxZmJkNDc3OTNjOThjYTk1NTZjZTIxMjhk
|
|
11
|
+
NDI2Mzk0Njk0ODdmODVkMWExYmZjZmE3ODE2M2QyMTE4ZDIzNmM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
N2ZlYjRjZjA1ZTEyMjE3ZDBlMzQ1ZTFhYWQzYjQ1ZGRmZTcwMzEzMjNmZDY4
|
|
14
|
+
MzQwZDMzNGRlNjE5Y2UwMzg3YWZlZTBhYmI4ZWVmMzA2YTkwNzJjY2ZjOGIy
|
|
15
|
+
NWNmMTMxZGI1MjQ5ZGMyMDI3ZGQ1YmJkMWQ4M2Q0YTI1Nzg3M2E=
|
data/NEWS.md
CHANGED
|
@@ -37,7 +37,7 @@ module Suspenders
|
|
|
37
37
|
copy_file 'smtp.rb', 'config/initializers/smtp.rb'
|
|
38
38
|
|
|
39
39
|
prepend_file 'config/environments/production.rb',
|
|
40
|
-
"require Rails.root.join('config/initializers/smtp')"
|
|
40
|
+
"require Rails.root.join('config/initializers/smtp')\n"
|
|
41
41
|
|
|
42
42
|
config = <<-RUBY
|
|
43
43
|
config.action_mailer.delivery_method = :smtp
|
|
@@ -52,7 +52,7 @@ module Suspenders
|
|
|
52
52
|
run 'cp config/environments/production.rb config/environments/staging.rb'
|
|
53
53
|
|
|
54
54
|
prepend_file 'config/environments/staging.rb',
|
|
55
|
-
"Mail.register_interceptor RecipientInterceptor.new(ENV['EMAIL_RECIPIENTS'])"
|
|
55
|
+
"Mail.register_interceptor RecipientInterceptor.new(ENV['EMAIL_RECIPIENTS'])\n"
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
def initialize_on_precompile
|
data/lib/suspenders/version.rb
CHANGED
data/templates/Gemfile_clean
CHANGED
|
@@ -27,6 +27,7 @@ group :development do
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
group :development, :test do
|
|
30
|
+
gem 'factory_girl_rails'
|
|
30
31
|
gem 'rspec-rails'
|
|
31
32
|
gem 'sham_rack'
|
|
32
33
|
end
|
|
@@ -35,7 +36,6 @@ group :test do
|
|
|
35
36
|
gem 'bourne', require: false
|
|
36
37
|
gem 'capybara-webkit', '>= 0.14.1'
|
|
37
38
|
gem 'database_cleaner'
|
|
38
|
-
gem 'factory_girl_rails'
|
|
39
39
|
gem 'launchy'
|
|
40
40
|
gem 'shoulda-matchers'
|
|
41
41
|
gem 'simplecov', require: false
|
data/templates/factories_spec.rb
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
require 'spec_helper'
|
|
2
2
|
|
|
3
|
-
FactoryGirl
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
describe 'validate FactoryGirl factories' do
|
|
4
|
+
FactoryGirl.factories.each do |factory|
|
|
5
|
+
context "with factory for :#{factory.name}" do
|
|
6
|
+
subject { FactoryGirl.build(factory.name) }
|
|
7
|
+
|
|
8
|
+
it 'is valid' do
|
|
9
|
+
is_valid = subject.valid?
|
|
10
|
+
expect(is_valid).to be_true, subject.errors.full_messages.join(',')
|
|
11
|
+
end
|
|
7
12
|
end
|
|
8
13
|
end
|
|
9
14
|
end
|
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.2.
|
|
4
|
+
version: 1.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoughtbot
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-03-
|
|
11
|
+
date: 2013-03-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|