rails_apps_composer 2.4.37 → 2.4.38
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/email.rb +2 -2
- data/recipes/init.rb +5 -1
- data/recipes/models.rb +4 -0
- 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: e93e93dcdf466092caf1289b94c084a1bc51feaf
|
4
|
+
data.tar.gz: 7c50e9f26232ed0c9e25331af4b19ac1d35e8568
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c9147740b855010c9943ed16980b0b6cadbe8b639060b4143842f2ec4534402868a3ad69ca15375a68f5fc03afc8bc7da94bcaa6342f4590528732247a3ca83
|
7
|
+
data.tar.gz: 6d612f89e38e4c16c69d619a4542c579cec8c1b232070a1efade394ebe7a6eb76ddf96d7dcc836cc8fc660ba69a5ceba59d1e8683c046f0d69ddee7b56ab6158
|
data/recipes/email.rb
CHANGED
@@ -10,8 +10,8 @@ after_bundler do
|
|
10
10
|
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
11
11
|
config.action_mailer.delivery_method = :smtp
|
12
12
|
config.action_mailer.raise_delivery_errors = true
|
13
|
-
# Send email in development mode
|
14
|
-
config.action_mailer.perform_deliveries =
|
13
|
+
# Send email in development mode?
|
14
|
+
config.action_mailer.perform_deliveries = true
|
15
15
|
TEXT
|
16
16
|
prod_email_text = <<-TEXT
|
17
17
|
# ActionMailer Config
|
data/recipes/init.rb
CHANGED
@@ -126,7 +126,11 @@ FILE
|
|
126
126
|
end
|
127
127
|
## DEVISE-CONFIRMABLE
|
128
128
|
if (prefer :devise_modules, 'confirmable') || (prefer :devise_modules, 'invitable')
|
129
|
-
|
129
|
+
if rails_4_1?
|
130
|
+
inject_into_file 'app/services/create_admin_service.rb', " user.confirm!\n", :after => "user.password_confirmation = Rails.application.secrets.admin_password\n"
|
131
|
+
else
|
132
|
+
append_file 'db/seeds.rb', "user.confirm!\n"
|
133
|
+
end
|
130
134
|
end
|
131
135
|
if (prefer :authorization, 'cancan') && !(prefer :authentication, 'omniauth')
|
132
136
|
append_file 'db/seeds.rb', 'user.add_role :admin'
|
data/recipes/models.rb
CHANGED
@@ -74,6 +74,10 @@ RUBY
|
|
74
74
|
if prefer :authorization, 'pundit'
|
75
75
|
generate 'migration AddRoleToUsers role:integer'
|
76
76
|
copy_from_repo 'app/models/user.rb', :repo => 'https://raw.github.com/RailsApps/rails-devise-pundit/master/'
|
77
|
+
if (prefer :devise_modules, 'confirmable') || (prefer :devise_modules, 'invitable')
|
78
|
+
gsub_file 'app/models/user.rb', /:registerable,/, ":registerable, :confirmable,"
|
79
|
+
generate 'migration AddConfirmableToUsers confirmation_token:string confirmed_at:datetime confirmation_sent_at:datetime unconfirmed_email:string'
|
80
|
+
end
|
77
81
|
end
|
78
82
|
if prefer :authorization, 'cancan'
|
79
83
|
generate 'cancan:ability'
|
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: 2.4.
|
4
|
+
version: 2.4.38
|
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-03-
|
11
|
+
date: 2014-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|