rails_apps_composer 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -219,6 +219,20 @@ Then generate the application:
219
219
  $ rails new myapp -m ~/Desktop/template.txt
220
220
  </pre>
221
221
 
222
+ h4. Template for Prelaunch Signup App
223
+
224
+ To build an application template for the "rails-prelaunch-signup":http://github.com/RailsApps/rails-prelaunch-signup/ example application, run the command:
225
+
226
+ <pre>
227
+ $ rails_apps_composer template ~/Desktop/template.txt -r prelaunch_signup
228
+ </pre>
229
+
230
+ Then generate the application using the @-T@ flag.
231
+
232
+ <pre>
233
+ $ rails new rails-prelaunch-signup -m ~/Desktop/template.txt -T
234
+ </pre>
235
+
222
236
  h4. Template for Rails 3 + Devise + RSpec + Cucumber
223
237
 
224
238
  To build an application template for the "rails3-devise-rspec-cucumber":http://github.com/RailsApps/rails3-devise-rspec-cucumber/ example application, run the command:
@@ -275,6 +289,28 @@ Then generate the application using the @-T -O@ flags.
275
289
  $ rails new rails3-subdomains -m ~/Desktop/template.txt -T -O
276
290
  </pre>
277
291
 
292
+ h2. Changing the Gem
293
+
294
+ Your patches and improvements are welcome. Fork the repository and clone the project locally.
295
+
296
+ You'll need to install the gems that are dependencies for development:
297
+
298
+ <pre>
299
+ $ gem install activesupport i18n thor mg
300
+ </pre>
301
+
302
+ Add or modify recipes as needed.
303
+
304
+ To build and install the modified gem locally:
305
+
306
+ <pre>
307
+ $ gem uninstall rails_apps_composer
308
+ $ rake gem
309
+ $ rake gem:install
310
+ </pre>
311
+
312
+ When you are happy with your changes, "submit a pull request":https://help.github.com/articles/using-pull-requests and I will review your contribution and publish an updated version of the gem for everyone to use.
313
+
278
314
  h2. Writing New Recipes
279
315
 
280
316
  You can find the rails_apps_composer recipe collection in the GitHub repository's "recipes directory":https://github.com/RailsApps/rails_apps_composer/tree/master/recipes. If you find errors or improve a recipe you can contribute to the project by submitting a pull request or creating a "Github issue":http://github.com/RailsApps/rails_apps_composer/issues.
@@ -1,6 +1,6 @@
1
1
  if config['compass']
2
- gem 'compass', :version => '~> 0.12.1', :group => [:assets]
3
- gem 'compass-rails', :version => '~> 1.0.0', :group => [:assets]
2
+ gem 'compass', :version => '~> 0.12.2', :group => [:assets]
3
+ gem 'compass-rails', :version => '~> 1.0.2', :group => [:assets]
4
4
  after_bundler do
5
5
  remove_file 'app/assets/stylesheets/application.css'
6
6
 
@@ -6,12 +6,12 @@ case config['devise']
6
6
  recipes.delete('devise')
7
7
  say_wizard "Devise recipe skipped."
8
8
  when 'standard'
9
- gem 'devise', '>= 2.1.0'
9
+ gem 'devise', '>= 2.1.2'
10
10
  when 'confirmable'
11
- gem 'devise', '>= 2.1.0'
11
+ gem 'devise', '>= 2.1.2'
12
12
  recipes << 'devise-confirmable'
13
13
  when 'invitable'
14
- gem 'devise', '>= 2.1.0'
14
+ gem 'devise', '>= 2.1.2'
15
15
  gem 'devise_invitable', '>= 1.0.2'
16
16
  recipes << 'devise-confirmable'
17
17
  recipes << 'devise-invitable'
@@ -21,7 +21,7 @@ case config['devise']
21
21
  end
22
22
 
23
23
  if config['authorization']
24
- gem 'cancan', '>= 1.6.7'
24
+ gem 'cancan', '>= 1.6.8'
25
25
  gem 'rolify', '>= 3.1.0'
26
26
  recipes << 'authorization'
27
27
  end
@@ -19,7 +19,7 @@ gem 'haml-rails', '>= 0.3.4', :group => :development
19
19
  # >---------------------------------[ RSpec ]---------------------------------<
20
20
 
21
21
  gem 'rspec-rails', '>= 2.10.1', :group => [:development, :test]
22
- gem 'factory_girl_rails', '>= 3.3.0', :group => [:development, :test]
22
+ gem 'factory_girl_rails', '>= 3.5.0', :group => [:development, :test]
23
23
  # add a collection of RSpec matchers and Cucumber steps to make testing email easy
24
24
  gem 'email_spec', '>= 1.2.1', :group => :test
25
25
  create_file 'features/support/email_spec.rb' do <<-RUBY
@@ -224,11 +224,11 @@ TEXT
224
224
  end
225
225
 
226
226
  # >--------------------------------[ Devise ]---------------------------------<
227
- gem 'devise', '>= 2.1.0'
227
+ gem 'devise', '>= 2.1.2'
228
228
  gem 'devise_invitable', '>= 1.0.2'
229
229
  recipes << 'devise-confirmable'
230
230
  recipes << 'devise-invitable'
231
- gem 'cancan', '>= 1.6.7'
231
+ gem 'cancan', '>= 1.6.8'
232
232
  gem 'rolify', '>= 3.1.0'
233
233
  recipes << 'authorization'
234
234
 
@@ -310,6 +310,11 @@ HAML
310
310
  end
311
311
  end
312
312
 
313
+ # >------------------------------[ Migrations ]-------------------------------<
314
+ after_bundler do
315
+ generate 'migration AddOptinToUsers opt_in:boolean'
316
+ end
317
+
313
318
  # >-----------------------------[ SeedDatabase ]------------------------------<
314
319
  after_bundler do
315
320
  say_wizard "SeedDatabase recipe running 'after bundler'"
@@ -7,13 +7,13 @@ if config['rspec']
7
7
  # use the database_cleaner gem to reset the test database
8
8
  gem 'database_cleaner', '>= 0.8.0', :group => :test
9
9
  # include RSpec matchers from the mongoid-rspec gem
10
- gem 'mongoid-rspec', '>= 1.4.4', :group => :test
10
+ gem 'mongoid-rspec', '>= 1.4.6', :group => :test
11
11
  end
12
12
  if config['machinist']
13
13
  gem 'machinist', :group => :test
14
14
  end
15
15
  if config['factory_girl']
16
- gem 'factory_girl_rails', '>= 3.3.0', :group => [:development, :test]
16
+ gem 'factory_girl_rails', '>= 3.5.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
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "1.5.2"
2
+ VERSION = "1.5.3"
3
3
  end
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.5.2
4
+ version: 1.5.3
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-06-11 00:00:00.000000000 Z
12
+ date: 2012-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -226,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  segments:
228
228
  - 0
229
- hash: -3880127851018975913
229
+ hash: -260435814497186721
230
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  none: false
232
232
  requirements:
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  version: '0'
236
236
  segments:
237
237
  - 0
238
- hash: -3880127851018975913
238
+ hash: -260435814497186721
239
239
  requirements: []
240
240
  rubyforge_project: rails_apps_composer
241
241
  rubygems_version: 1.8.24