rails_apps_composer 3.0.10 → 3.0.11
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 +4 -4
- data/recipes/tests.rb +26 -14
- data/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc3730ba9bf6ebb1a96ee6ee4b64124bce0272c0
|
|
4
|
+
data.tar.gz: e4cf16dcb541cc029707b2cd3e91f5aa6410815d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a49e178121a214c6c2880b60f09766d9dc3c49e2f8c7432657ee1bf0a258d08f510e7704231c1ec15ccc90c0732ab7619ed9d194d11bd8193f15614d1e5f36d3
|
|
7
|
+
data.tar.gz: 9367bf95c685c00e8fa03be100efcd51fef84656452d98cdfd863dbcd7307cf941753511eb685949f3ea4131e114ddbf1d0f9138f0eafa031b895feccfb653ca
|
data/recipes/tests.rb
CHANGED
|
@@ -17,21 +17,33 @@ end
|
|
|
17
17
|
|
|
18
18
|
stage_three do
|
|
19
19
|
say_wizard "recipe stage three"
|
|
20
|
-
if
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
if prefer :tests, 'rspec'
|
|
21
|
+
if prefer :authentication, 'devise'
|
|
22
|
+
generate 'testing:configure devise -f'
|
|
23
|
+
if (prefer :devise_modules, 'confirmable') || (prefer :devise_modules, 'invitable')
|
|
24
|
+
inject_into_file 'spec/factories/users.rb', " confirmed_at Time.now\n", :after => "factory :user do\n"
|
|
25
|
+
default_url = ' config.action_mailer.default_url_options = { :host => Rails.application.secrets.domain_name }'
|
|
26
|
+
inject_into_file 'config/environments/test.rb', default_url, :after => "delivery_method = :test\n"
|
|
27
|
+
gsub_file 'spec/features/users/user_edit_spec.rb', /successfully./, 'successfully,'
|
|
28
|
+
gsub_file 'spec/features/visitors/sign_up_spec.rb', /Welcome! You have signed up successfully./, 'A message with a confirmation'
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
if prefer :authentication, 'omniauth'
|
|
32
|
+
generate 'testing:configure omniauth -f'
|
|
33
|
+
end
|
|
34
|
+
if prefer :authorization, 'pundit'
|
|
35
|
+
generate 'testing:configure pundit -f'
|
|
36
|
+
remove_file 'spec/policies/user_policy_spec.rb' unless %w(users about+users).include?(prefs[:pages])
|
|
37
|
+
|
|
38
|
+
if (prefer :authentication, 'devise') &&\
|
|
39
|
+
((prefer :devise_modules, 'confirmable') || (prefer :devise_modules, 'invitable'))
|
|
40
|
+
inject_into_file 'spec/factories/users.rb', " confirmed_at Time.now\n", :after => "factory :user do\n"
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
unless %w(users about+users).include?(prefs[:pages])
|
|
44
|
+
remove_file 'spec/features/users/user_index_spec.rb'
|
|
45
|
+
remove_file 'spec/features/users/user_show_spec.rb'
|
|
28
46
|
end
|
|
29
|
-
end
|
|
30
|
-
if (prefer :authentication, 'omniauth') && (prefer :tests, 'rspec')
|
|
31
|
-
generate 'testing:configure omniauth -f'
|
|
32
|
-
end
|
|
33
|
-
if (prefer :authorization, 'pundit') && (prefer :tests, 'rspec')
|
|
34
|
-
generate 'testing:configure pundit -f'
|
|
35
47
|
end
|
|
36
48
|
end
|
|
37
49
|
|
data/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_apps_composer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Kehoe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: i18n
|