rails_apps_composer 1.4.10 → 1.4.11
Sign up to get free protection for your applications and to get access to all the features.
- data/recipes/active_admin.rb +1 -1
- data/recipes/add_user.rb +3 -0
- data/recipes/mongoid.rb +1 -1
- data/recipes/omniauth.rb +31 -0
- data/recipes/rspec.rb +1 -1
- data/version.rb +1 -1
- metadata +4 -4
data/recipes/active_admin.rb
CHANGED
data/recipes/add_user.rb
CHANGED
@@ -91,6 +91,9 @@ RUBY
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
+
# patch for https://github.com/RailsApps/rails3-application-templates/issues/35
|
95
|
+
gsub_file 'app/models/user.rb', /:remember_meend/, ":remember_me\nend"
|
96
|
+
|
94
97
|
unless recipes.include? 'haml'
|
95
98
|
|
96
99
|
# Generate Devise views (unless you are using Haml)
|
data/recipes/mongoid.rb
CHANGED
@@ -5,7 +5,7 @@ if config['mongoid']
|
|
5
5
|
say_wizard "REMINDER: When creating a Rails app using Mongoid..."
|
6
6
|
say_wizard "you should add the '-O' flag to 'rails new'"
|
7
7
|
gem 'bson_ext', '>= 1.6.2'
|
8
|
-
gem 'mongoid', '>= 2.4.
|
8
|
+
gem 'mongoid', '>= 2.4.10'
|
9
9
|
else
|
10
10
|
recipes.delete('mongoid')
|
11
11
|
end
|
data/recipes/omniauth.rb
CHANGED
@@ -140,6 +140,37 @@ RUBY
|
|
140
140
|
end
|
141
141
|
|
142
142
|
end
|
143
|
+
|
144
|
+
after_everything do
|
145
|
+
|
146
|
+
say_wizard "OmniAuth recipe running 'after everything'"
|
147
|
+
|
148
|
+
if recipes.include? 'rspec'
|
149
|
+
say_wizard "Copying RSpec files from the rails3-mongoid-omniauth examples"
|
150
|
+
begin
|
151
|
+
# copy all the RSpec specs files from the rails3-mongoid-omniauth example app
|
152
|
+
# spec_helper
|
153
|
+
remove_file 'spec/spec_helper.rb'
|
154
|
+
get 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/spec/spec_helper.rb', 'spec/spec_helper.rb'
|
155
|
+
# factories
|
156
|
+
remove_file 'spec/factories/users.rb'
|
157
|
+
get 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/spec/factories/users.rb', 'spec/factories/users.rb'
|
158
|
+
# controllers
|
159
|
+
get 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/spec/controllers/sessions_controller_spec.rb', 'spec/controllers/sessions_controller_spec.rb'
|
160
|
+
remove_file 'spec/controllers/home_controller_spec.rb'
|
161
|
+
remove_file 'spec/controllers/users_controller_spec.rb'
|
162
|
+
get 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/spec/controllers/home_controller_spec.rb', 'spec/controllers/home_controller_spec.rb'
|
163
|
+
get 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/spec/controllers/users_controller_spec.rb', 'spec/controllers/users_controller_spec.rb'
|
164
|
+
# models
|
165
|
+
remove_file 'spec/models/user_spec.rb'
|
166
|
+
get 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/spec/models/user_spec.rb', 'spec/models/user_spec.rb'
|
167
|
+
rescue OpenURI::HTTPError
|
168
|
+
say_wizard "Unable to obtain RSpec example files from the repo"
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
end
|
173
|
+
|
143
174
|
end
|
144
175
|
|
145
176
|
__END__
|
data/recipes/rspec.rb
CHANGED
@@ -13,7 +13,7 @@ if config['rspec']
|
|
13
13
|
gem 'machinist', :group => :test
|
14
14
|
end
|
15
15
|
if config['factory_girl']
|
16
|
-
gem 'factory_girl_rails', '>= 3.
|
16
|
+
gem 'factory_girl_rails', '>= 3.3.0', :group => [:development, :test]
|
17
17
|
end
|
18
18
|
# add a collection of RSpec matchers and Cucumber steps to make testing email easy
|
19
19
|
gem 'email_spec', '>= 1.2.1', :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.4.
|
4
|
+
version: 1.4.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
@@ -225,7 +225,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
225
|
version: '0'
|
226
226
|
segments:
|
227
227
|
- 0
|
228
|
-
hash:
|
228
|
+
hash: 816194076222959709
|
229
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
230
|
none: false
|
231
231
|
requirements:
|
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
234
|
version: '0'
|
235
235
|
segments:
|
236
236
|
- 0
|
237
|
-
hash:
|
237
|
+
hash: 816194076222959709
|
238
238
|
requirements: []
|
239
239
|
rubyforge_project: rails_apps_composer
|
240
240
|
rubygems_version: 1.8.23
|