rails_apps_composer 1.0.23 → 1.0.24
Sign up to get free protection for your applications and to get access to all the features.
- data/recipes/cucumber.rb +1 -1
- data/recipes/mongoid.rb +1 -1
- data/recipes/omniauth.rb +19 -10
- data/recipes/rspec.rb +1 -1
- data/version.rb +1 -1
- metadata +18 -18
data/recipes/cucumber.rb
CHANGED
@@ -10,7 +10,7 @@ if config['cucumber']
|
|
10
10
|
gem 'launchy', '0.4.0', :group => :test
|
11
11
|
else
|
12
12
|
# for Rails 3.1+, use optimistic versioning for gems
|
13
|
-
gem 'cucumber-rails', '>= 1.
|
13
|
+
gem 'cucumber-rails', '>= 1.2.0', :group => :test
|
14
14
|
gem 'capybara', '>= 1.1.1', :group => :test
|
15
15
|
gem 'database_cleaner', '>= 0.6.7', :group => :test
|
16
16
|
gem 'launchy', '>= 2.0.5', :group => :test
|
data/recipes/mongoid.rb
CHANGED
data/recipes/omniauth.rb
CHANGED
@@ -7,7 +7,20 @@ if config['omniauth']
|
|
7
7
|
gem 'omniauth', '0.2.6'
|
8
8
|
else
|
9
9
|
# for Rails 3.1+, use optimistic versioning for gems
|
10
|
-
gem 'omniauth', '>= 0.
|
10
|
+
gem 'omniauth', '>= 1.0.0'
|
11
|
+
# for available gems, see https://github.com/intridea/omniauth/wiki/List-of-Strategies
|
12
|
+
case config['provider']
|
13
|
+
when 'twitter'
|
14
|
+
gem 'omniauth-twitter'
|
15
|
+
when 'facebook'
|
16
|
+
gem 'omniauth-facebook'
|
17
|
+
when 'github'
|
18
|
+
gem 'omniauth-github'
|
19
|
+
when 'linkedin'
|
20
|
+
gem 'omniauth-linkedin'
|
21
|
+
when 'provider'
|
22
|
+
say_wizard "IMPORTANT: you'll have to add a gem to your Gemfile for the provider you want"
|
23
|
+
end
|
11
24
|
end
|
12
25
|
else
|
13
26
|
recipes.delete('omniauth')
|
@@ -49,13 +62,9 @@ RUBY
|
|
49
62
|
create! do |user|
|
50
63
|
user.provider = auth['provider']
|
51
64
|
user.uid = auth['uid']
|
52
|
-
if auth['
|
53
|
-
|
54
|
-
|
55
|
-
end
|
56
|
-
if auth['extra'] && auth['extra']['user_hash']
|
57
|
-
user.name = auth['extra']['user_hash']['name'] if auth['extra']['user_hash']['name'] # Facebook
|
58
|
-
user.email = auth['extra']['user_hash']['email'] if auth['extra']['user_hash']['email'] # Facebook
|
65
|
+
if auth['info']
|
66
|
+
user.name = auth['info']['name'] || ""
|
67
|
+
user.email = auth['info']['email'] || ""
|
59
68
|
end
|
60
69
|
end
|
61
70
|
end
|
@@ -76,7 +85,7 @@ class SessionsController < ApplicationController
|
|
76
85
|
end
|
77
86
|
|
78
87
|
def destroy
|
79
|
-
|
88
|
+
reset_session
|
80
89
|
redirect_to root_url, :notice => 'Signed out!'
|
81
90
|
end
|
82
91
|
|
@@ -151,4 +160,4 @@ config:
|
|
151
160
|
- provider:
|
152
161
|
type: multiple_choice
|
153
162
|
prompt: "Which service provider will you use?"
|
154
|
-
choices: [["Twitter", twitter], ["Facebook", facebook], ["GitHub", github], ["LinkedIn",
|
163
|
+
choices: [["Twitter", twitter], ["Facebook", facebook], ["GitHub", github], ["LinkedIn", linkedin], ["Other", provider]]
|
data/recipes/rspec.rb
CHANGED
@@ -19,7 +19,7 @@ if config['rspec']
|
|
19
19
|
end
|
20
20
|
else
|
21
21
|
# for Rails 3.1+, use optimistic versioning for gems
|
22
|
-
gem 'rspec-rails', '>= 2.
|
22
|
+
gem 'rspec-rails', '>= 2.8.0.rc1', :group => [:development, :test]
|
23
23
|
if recipes.include? 'mongoid'
|
24
24
|
# use the database_cleaner gem to reset the test database
|
25
25
|
gem 'database_cleaner', '>= 0.6.7', :group => :test
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_apps_composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.24
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-11-08 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
16
|
-
requirement: &
|
16
|
+
requirement: &2157192520 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2157192520
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activesupport
|
27
|
-
requirement: &
|
27
|
+
requirement: &2157191980 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 3.0.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2157191980
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: thor
|
38
|
-
requirement: &
|
38
|
+
requirement: &2157191540 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2157191540
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &2157191000 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 2.5.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2157191000
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: mg
|
60
|
-
requirement: &
|
60
|
+
requirement: &2157190540 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2157190540
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activesupport
|
71
|
-
requirement: &
|
71
|
+
requirement: &2157189980 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: 3.0.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2157189980
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: i18n
|
82
|
-
requirement: &
|
82
|
+
requirement: &2157189520 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *2157189520
|
91
91
|
description: A gem with recipes to create Rails application templates you can use
|
92
92
|
to generate Rails starter apps.
|
93
93
|
email:
|
@@ -179,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
179
|
version: '0'
|
180
180
|
segments:
|
181
181
|
- 0
|
182
|
-
hash:
|
182
|
+
hash: 3137790853749023612
|
183
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
184
|
none: false
|
185
185
|
requirements:
|
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
188
|
version: '0'
|
189
189
|
segments:
|
190
190
|
- 0
|
191
|
-
hash:
|
191
|
+
hash: 3137790853749023612
|
192
192
|
requirements: []
|
193
193
|
rubyforge_project: rails_apps_composer
|
194
194
|
rubygems_version: 1.8.11
|