rails_apps_composer 2.4.4 → 2.4.5

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: ef0729f94833244a4842114ab2cfe6a9ccf7249a
4
- data.tar.gz: b67dc32c37eb1af9cda6465ad883bc3781117c82
3
+ metadata.gz: a0b78cbb2b0aaf25d2504ad546a9b6aef6d291a4
4
+ data.tar.gz: f9f0be56ed436fe84f196b17eb9f9149131482c8
5
5
  SHA512:
6
- metadata.gz: 25cc7c0762350493935d412c99244f73a8340cf1103a1f4863375cc06c6ac7bbb4d13e74e8fb2cdfa5d364f5a8bf551ce3aecf306618274c5cf976b029759bcf
7
- data.tar.gz: 97016745a1612270388c3fb51cda79b42925afe016c3d0a106c6fe51730a6e55cc6aa4b3f7c35548d76d6a5f15147864092ff658503922d0fae9a2337c83e7d4
6
+ metadata.gz: e2d89bad9e85e2cd9f8beb0ef8c12bf2925ed073b0eb45f10e79a1a40bd1f4f4cf8a78649198fa1f342ded8c800b6195fdf4349b22cdf5d85a691ce4db63ae6e
7
+ data.tar.gz: a0114b8a6749ce753c5801897c5b3008d9b405812138a234a5c1faa43d432b51d68e698f8bea6221606bf14b468970fbdc2145a863903c543db23355735c3295
@@ -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
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.4.4"
2
+ VERSION = "2.4.5"
3
3
  end
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
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-25 00:00:00.000000000 Z
11
+ date: 2013-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n