rails_apps_composer 2.4.4 → 2.4.5
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/controllers.rb +7 -0
- data/recipes/routes.rb +2 -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: a0b78cbb2b0aaf25d2504ad546a9b6aef6d291a4
|
|
4
|
+
data.tar.gz: f9f0be56ed436fe84f196b17eb9f9149131482c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e2d89bad9e85e2cd9f8beb0ef8c12bf2925ed073b0eb45f10e79a1a40bd1f4f4cf8a78649198fa1f342ded8c800b6195fdf4349b22cdf5d85a691ce4db63ae6e
|
|
7
|
+
data.tar.gz: a0114b8a6749ce753c5801897c5b3008d9b405812138a234a5c1faa43d432b51d68e698f8bea6221606bf14b468970fbdc2145a863903c543db23355735c3295
|
data/recipes/controllers.rb
CHANGED
|
@@ -41,6 +41,13 @@ RUBY
|
|
|
41
41
|
when 'subdomains_app'
|
|
42
42
|
copy_from_repo 'app/controllers/users_controller.rb', :repo => 'https://raw.github.com/RailsApps/rails3-subdomains/master/'
|
|
43
43
|
end
|
|
44
|
+
### REGISTRATIONS_CONTROLLER ###
|
|
45
|
+
if rails_4?
|
|
46
|
+
if ['users_app','admin_app','subdomains_app'].include? prefs[:starter_app]
|
|
47
|
+
## accommodate strong parameters in Rails 4
|
|
48
|
+
copy_from_repo 'app/controllers/registrations_controller-devise.rb', :prefs => 'devise'
|
|
49
|
+
end
|
|
50
|
+
end
|
|
44
51
|
### SESSIONS_CONTROLLER ###
|
|
45
52
|
if prefer :authentication, 'omniauth'
|
|
46
53
|
filename = 'app/controllers/sessions_controller.rb'
|
data/recipes/routes.rb
CHANGED
|
@@ -15,6 +15,8 @@ after_bundler do
|
|
|
15
15
|
copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/'
|
|
16
16
|
## Rails 4.0 doesn't allow two 'root' routes
|
|
17
17
|
gsub_file 'config/routes.rb', /authenticated :user do\n.*\n.*\n /, '' if rails_4?
|
|
18
|
+
## accommodate strong parameters in Rails 4
|
|
19
|
+
gsub_file 'config/routes.rb', /devise_for :users/, 'devise_for :users, :controllers => {:registrations => "registrations"}' if rails_4?
|
|
18
20
|
end
|
|
19
21
|
## OMNIAUTH
|
|
20
22
|
copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/' if prefer :authentication, 'omniauth'
|
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.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Kehoe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-07-
|
|
11
|
+
date: 2013-07-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: i18n
|