rails_apps_composer 2.4.31 → 2.4.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/recipes/controllers.rb +1 -1
- data/recipes/models.rb +7 -5
- data/recipes/railsapps.rb +5 -6
- data/recipes/saas.rb +2 -2
- 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: 8fc331aeda41521005c16af92dc7583f30cdb23a
|
4
|
+
data.tar.gz: 79f48f7700b3ef71ca2619af6fca2cff8d2aecb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb875131cad98f7a4e58bc95ab598641bc081c8dd628018c196185b88f291fbcaf971b428b032bafcc357fdba2854a0718b322a5088b9a5704dcee0e7944cd0f
|
7
|
+
data.tar.gz: 86fdf15bd8b9efc1e02c46b7b2606e5760448e13a0947ffaedfac56211be4a37355b0fca361dd7be0357dbcdc17ca2f09453a3beff50ba8f924927fb008d8f1c
|
data/recipes/controllers.rb
CHANGED
@@ -18,7 +18,7 @@ RUBY
|
|
18
18
|
end
|
19
19
|
### HOME_CONTROLLER ###
|
20
20
|
if ['home_app','users_app','admin_app','subdomains_app'].include? prefs[:starter_app]
|
21
|
-
generate
|
21
|
+
generate 'controller home --skip-assets --skip-helper'
|
22
22
|
end
|
23
23
|
### USERS_CONTROLLER ###
|
24
24
|
case prefs[:starter_app]
|
data/recipes/models.rb
CHANGED
@@ -54,16 +54,18 @@ RUBY
|
|
54
54
|
end
|
55
55
|
### OMNIAUTH ###
|
56
56
|
if prefer :authentication, 'omniauth'
|
57
|
-
|
58
|
-
|
57
|
+
if rails_4_1?
|
58
|
+
copy_from_repo 'config/initializers/omniauth.rb', :repo => 'https://raw.github.com/RailsApps/rails-omniauth/master/'
|
59
|
+
else
|
60
|
+
copy_from_repo 'config/initializers/omniauth.rb', :repo => 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/'
|
61
|
+
end
|
59
62
|
gsub_file 'config/initializers/omniauth.rb', /twitter/, prefs[:omniauth_provider] unless prefer :omniauth_provider, 'twitter'
|
60
63
|
if prefer :orm, 'mongoid'
|
61
|
-
repo
|
62
|
-
copy_from_repo 'app/models/user.rb', :repo => repo
|
64
|
+
copy_from_repo 'app/models/user.rb', :repo => 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/'
|
63
65
|
else
|
64
66
|
generate 'model User name:string email:string provider:string uid:string'
|
65
67
|
run 'bundle exec rake db:migrate'
|
66
|
-
copy_from_repo 'app/models/user.rb', :repo =>
|
68
|
+
copy_from_repo 'app/models/user.rb', :repo => 'https://raw.github.com/RailsApps/rails-omniauth/master/'
|
67
69
|
end
|
68
70
|
end
|
69
71
|
### SUBDOMAINS ###
|
data/recipes/railsapps.rb
CHANGED
@@ -29,13 +29,13 @@ when "4"
|
|
29
29
|
when 'railsapps'
|
30
30
|
if rails_4_1?
|
31
31
|
prefs[:apps4] = multiple_choice "Starter apps for Rails 4.1. More to come.",
|
32
|
-
[["rails-devise", "rails-devise"]
|
32
|
+
[["rails-devise", "rails-devise"],
|
33
|
+
["rails-omniauth", "rails-omniauth"]]
|
33
34
|
else
|
34
|
-
prefs[:apps4] = multiple_choice "Starter apps for Rails 4.0.
|
35
|
+
prefs[:apps4] = multiple_choice "Starter apps for Rails 4.0. Use Rails 4.1 for more.",
|
35
36
|
[["learn-rails", "learn-rails"],
|
36
37
|
["rails-bootstrap", "rails-bootstrap"],
|
37
|
-
["rails-foundation", "rails-foundation"]
|
38
|
-
["rails-omniauth", "rails-omniauth"]]
|
38
|
+
["rails-foundation", "rails-foundation"]]
|
39
39
|
end
|
40
40
|
when 'contributed_app'
|
41
41
|
prefs[:apps4] = multiple_choice "No contributed applications are available.",
|
@@ -133,9 +133,8 @@ case prefs[:apps4]
|
|
133
133
|
prefs[:authentication] = 'omniauth'
|
134
134
|
prefs[:authorization] = 'none'
|
135
135
|
prefs[:starter_app] = false
|
136
|
-
prefs[:form_builder] = 'none'
|
137
136
|
prefs[:quiet_assets] = true
|
138
|
-
prefs[:local_env_file] =
|
137
|
+
prefs[:local_env_file] = false
|
139
138
|
prefs[:better_errors] = true
|
140
139
|
end
|
141
140
|
|
data/recipes/saas.rb
CHANGED
@@ -43,7 +43,7 @@ if prefer :railsapps, 'rails-stripe-membership-saas'
|
|
43
43
|
|
44
44
|
# >-------------------------------[ Controllers ]--------------------------------<
|
45
45
|
copy_from_repo 'app/controllers/home_controller.rb', :repo => repo
|
46
|
-
generate 'controller content silver gold platinum --skip-
|
46
|
+
generate 'controller content silver gold platinum --skip-assets --skip-helper'
|
47
47
|
copy_from_repo 'app/controllers/content_controller.rb', :repo => repo
|
48
48
|
copy_from_repo 'app/controllers/registrations_controller.rb', :repo => repo
|
49
49
|
copy_from_repo 'app/controllers/application_controller.rb', :repo => repo
|
@@ -145,7 +145,7 @@ if prefer :railsapps, 'rails-recurly-subscription-saas'
|
|
145
145
|
|
146
146
|
# >-------------------------------[ Controllers ]--------------------------------<
|
147
147
|
copy_from_repo 'app/controllers/home_controller.rb', :repo => repo
|
148
|
-
generate 'controller content silver gold platinum --skip-
|
148
|
+
generate 'controller content silver gold platinum --skip-assets --skip-helper'
|
149
149
|
copy_from_repo 'app/controllers/content_controller.rb', :repo => repo
|
150
150
|
copy_from_repo 'app/controllers/registrations_controller.rb', :repo => repo
|
151
151
|
copy_from_repo 'app/controllers/application_controller.rb', :repo => repo
|
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.32
|
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-02-
|
11
|
+
date: 2014-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|