rails_apps_composer 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -1,8 +1,11 @@
1
1
  h1. !http://railsapps.github.com/images/rails-36x36.jpg(Rails Apps Composer Gem)! Rails Apps Composer Gem
2
2
 
3
- A gem with recipes to create Rails application templates you can use to generate Rails starter apps. Creates ready-to-run Rails web applications. Makes it easy to create and maintain a starter app.
3
+ What you can do with the rails_apps_composer gem:
4
4
 
5
- We use the rails_apps_composer gem to create the "Rails Example Apps":http://railsapps.github.com/ for the "Rails Apps project":https://github.com/RailsApps.
5
+ * Create and maintain a starter app.
6
+ * Make an application template that generates a complex Rails app in seconds.
7
+
8
+ We use the rails_apps_composer gem to create the "Rails Example Apps":http://railsapps.github.com/ for the "RailsApps project":https://github.com/RailsApps.
6
9
 
7
10
  Any issues? Please create a "GitHub issue":http://github.com/RailsApps/rails_apps_composer/issues.
8
11
 
@@ -12,27 +15,28 @@ The rails_apps_composer gem is a fork of "Michael Bleigh's RailsWizard gem":http
12
15
 
13
16
  h4. Alternatives
14
17
 
15
- See a list of "Rails Application Template Projects":http://railsapps.github.com/rails-application-templates.html, particularly a list of "Application template-generating gems."
16
-
17
18
  Notable alternatives are Dr. Nic Williams's "App Scrolls":http://appscrolls.org/ and Daniel Davey's "app_drone":http://drone.bz/.
18
19
 
20
+ See a list of "Rails Application Template Projects":http://railsapps.github.com/rails-application-templates.html, particularly a list of "Application template-generating gems."
21
+
19
22
  h2. !http://twitter-badges.s3.amazonaws.com/t_logo-a.png(Follow on Twitter)!:http://www.twitter.com/rails_apps Follow on Twitter
20
23
 
21
24
  Follow the project on Twitter: "@rails_apps":http://twitter.com/rails_apps. Tweet some praise if you like what you've found.
22
25
 
23
- h2. Suggested Uses
24
-
25
- * Create a starter app.
26
- * Make an application template that generates a new Rails app in seconds.
26
+ h2. Purpose
27
27
 
28
28
  Any developer can quickly generate a Rails web application using the @rails new@ command. In practice, experienced Rails developers typically add an assortment of useful additional packages (gems) before beginning development of any web application. A developer often uses the same set of packages to get started and may create a "starter app" that can be copied and reused for any new project.
29
29
 
30
30
  It can be a hassle to integrate some of the most commonly used gems, particularly when new versions are released and there are minor "gotchas" that interfere with gems working together. Despite the apparent convenience of creating a starter app, it can be time consuming to maintain and update a starter app as component packages evolve. This project aims to simplify the process of building and maintaining a starter app by providing mix-and-match recipes to assemble the most commonly used Rails packages.
31
31
 
32
- If you use this gem to create your Rails starter app, you can expect the pieces to work together. If they don't, you can report problems and look for identified "issues":http://github.com/RailsApps/rails_apps_composer/issues (and perhaps contributed fixes).
32
+ h2. Issues
33
33
 
34
34
  Hundreds of developers are using this gem to build starter apps. As you can see from the commit log, the gem is actively maintained and the collection of recipes is growing.
35
35
 
36
+ There is problem with all this activity, however. No developer who uses the rails_apps_composer gem uses all the recipes. And it would be very difficult to test a recipe in every possible combination. Consequently, combining some recipes may not work. We've provided some examples from the "RailsApps project":https://github.com/RailsApps that are known to work together (see "Examples"). If you're combining recipes, you'll have to experiment. Add recipes one-by-one and realize that some recipes may not be compatible.
37
+
38
+ Have you found problems? Please create a "GitHub issue":http://github.com/RailsApps/rails_apps_composer/issues.
39
+
36
40
  h2. Dependencies
37
41
 
38
42
  Before generating a new Rails app, you will need:
@@ -76,7 +80,7 @@ Use the @~/.rac@ file to specify a list of recipes and recipe preferences. See d
76
80
 
77
81
  h4. Generate a Template
78
82
 
79
- You may want a template to customize or share with others. See various "application templates":https://github.com/RailsApps/rails3-application-templates from the "Rails Apps project":https://github.com/RailsApps.
83
+ You may want a template to customize or share with others. See various "application templates":https://github.com/RailsApps/rails3-application-templates from the "RailsApps project":https://github.com/RailsApps.
80
84
 
81
85
  <pre>
82
86
  $ rails_apps_composer template ~/Desktop/template.txt -r haml home_page html5
@@ -199,7 +203,7 @@ The maintainers and contributors to the project can't test every combination of
199
203
 
200
204
  h2. Examples
201
205
 
202
- We use the rails_apps_composer gem to create the "Rails Example Apps":http://railsapps.github.com/ for the "Rails Apps project":https://github.com/RailsApps. These example apps have been used by thousands of Rails developers. The recipes used for the Rails Apps examples are well-integrated and known to work in the specific combinations listed below.
206
+ We use the rails_apps_composer gem to create the "Rails Example Apps":http://railsapps.github.com/ for the "RailsApps project":https://github.com/RailsApps. These example apps have been used by thousands of Rails developers. The recipes used for the RailsApps examples are well-integrated and known to work in the specific combinations listed below.
203
207
 
204
208
  h4. Template for Rails 3 + Haml + HTML5
205
209
 
@@ -336,13 +340,9 @@ h4. About Rails Application Templates
336
340
  "Railscasts: App Templates in Rails 2.3 (9 Feb 2009) by Ryan Bates":http://railscasts.com/episodes/148-app-templates-in-rails-2-3
337
341
  "Rails templates (4 Dec 2008) by Pratik Naik":http://m.onkey.org/rails-templates
338
342
 
339
- h2. Issues
340
-
341
- Any issues? Please create a "GitHub issue":http://github.com/RailsApps/rails_apps_composer/issues.
342
-
343
343
  h2. Credits
344
344
 
345
- Daniel Kehoe maintains this gem as part of the "Rails Apps Project":http://railsapps.github.com/.
345
+ Daniel Kehoe maintains this gem as part of the "RailsApps Project":http://railsapps.github.com/.
346
346
 
347
347
  This gem is based on "Michael Bleigh's RailsWizard gem":https://github.com/intridea/rails_wizard. The original idea for a RailsWizard and the innovative implementation is the work of Michael Bleigh.
348
348
 
data/recipes/add_user.rb CHANGED
@@ -7,7 +7,7 @@ after_bundler do
7
7
 
8
8
  if recipes.include? 'omniauth'
9
9
  generate(:model, "user provider:string uid:string name:string email:string")
10
- gsub_file 'app/models/user.rb', /end/ do
10
+ gsub_file 'app/models/user.rb', /\bend\s*\Z/ do
11
11
  <<-RUBY
12
12
  attr_accessible :provider, :uid, :name, :email
13
13
  end
@@ -37,7 +37,7 @@ RUBY
37
37
  # Add a 'name' attribute to the User model
38
38
  if recipes.include? 'mongoid'
39
39
  # for mongoid
40
- gsub_file 'app/models/user.rb', /end/ do
40
+ gsub_file 'app/models/user.rb', /\bend\s*\Z/ do
41
41
  <<-RUBY
42
42
  # run 'rake db:mongoid:create_indexes' to create indexes
43
43
  index :email, :unique => true
@@ -76,7 +76,7 @@ RUBY
76
76
  end
77
77
  if recipes.include? 'devise-invitable'
78
78
  if recipes.include? 'mongoid'
79
- gsub_file 'app/models/user.rb', /end/ do
79
+ gsub_file 'app/models/user.rb', /\bend\s*\Z/ do
80
80
  <<-RUBY
81
81
  #invitable
82
82
  field :invitation_token, :type => String
data/recipes/backbone.rb CHANGED
@@ -18,6 +18,6 @@ category: assets
18
18
  tags: [javascript, framework]
19
19
 
20
20
  config:
21
- - haml:
21
+ - backbone:
22
22
  type: boolean
23
23
  prompt: Would you like to use the Backbone.js MVC framework?
data/recipes/cucumber.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  if config['cucumber']
5
5
  gem 'cucumber-rails', '>= 1.3.0', :group => :test, :require => false
6
6
  gem 'capybara', '>= 1.1.2', :group => :test
7
- gem 'database_cleaner', '>= 0.7.2', :group => :test
7
+ gem 'database_cleaner', '>= 0.8.0', :group => :test
8
8
  gem 'launchy', '>= 2.1.0', :group => :test
9
9
  else
10
10
  recipes.delete('cucumber')
data/recipes/devise.rb CHANGED
@@ -12,7 +12,7 @@ case config['devise']
12
12
  recipes << 'devise-confirmable'
13
13
  when 'invitable'
14
14
  gem 'devise', '>= 2.1.0'
15
- gem 'devise_invitable', '>= 1.0.1'
15
+ gem 'devise_invitable', '>= 1.0.2'
16
16
  recipes << 'devise-confirmable'
17
17
  recipes << 'devise-invitable'
18
18
  else
@@ -22,7 +22,11 @@ end
22
22
 
23
23
  if config['authorization']
24
24
  gem 'cancan', '>= 1.6.7'
25
- gem 'rolify', '>= 3.1.0'
25
+ if recipes.include? 'mongoid'
26
+ gem 'rolify', '>= 3.2.0.beta4'
27
+ else
28
+ gem 'rolify', '>= 3.1.0'
29
+ end
26
30
  recipes << 'authorization'
27
31
  end
28
32
 
data/recipes/mongoid.rb CHANGED
@@ -4,8 +4,8 @@
4
4
  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
- gem 'bson_ext', '>= 1.6.2'
8
- gem 'mongoid', '>= 2.4.10'
7
+ gem 'bson_ext', '>= 1.6.4'
8
+ gem 'mongoid', '>= 2.4.11'
9
9
  else
10
10
  recipes.delete('mongoid')
11
11
  end
data/recipes/omniauth.rb CHANGED
@@ -45,7 +45,7 @@ RUBY
45
45
  # add a user model (unless another recipe did so already)
46
46
  unless recipes.include? 'add_user'
47
47
  generate(:model, "user provider:string uid:string name:string email:string")
48
- gsub_file 'app/models/user.rb', /end/ do
48
+ gsub_file 'app/models/user.rb', /\bend\s*\Z/ do
49
49
  <<-RUBY
50
50
  attr_accessible :provider, :uid, :name, :email
51
51
  end
data/recipes/rspec.rb CHANGED
@@ -5,7 +5,7 @@ if config['rspec']
5
5
  gem 'rspec-rails', '>= 2.10.1', :group => [:development, :test]
6
6
  if recipes.include? 'mongoid'
7
7
  # use the database_cleaner gem to reset the test database
8
- gem 'database_cleaner', '>= 0.7.2', :group => :test
8
+ gem 'database_cleaner', '>= 0.8.0', :group => :test
9
9
  # include RSpec matchers from the mongoid-rspec gem
10
10
  gem 'mongoid-rspec', '>= 1.4.4', :group => :test
11
11
  end
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
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.0
4
+ version: 1.5.1
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-22 00:00:00.000000000 Z
12
+ date: 2012-06-08 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: -4382997307668927100
228
+ hash: 4139162252636043341
229
229
  required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  none: false
231
231
  requirements:
@@ -234,10 +234,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  version: '0'
235
235
  segments:
236
236
  - 0
237
- hash: -4382997307668927100
237
+ hash: 4139162252636043341
238
238
  requirements: []
239
239
  rubyforge_project: rails_apps_composer
240
- rubygems_version: 1.8.23
240
+ rubygems_version: 1.8.24
241
241
  signing_key:
242
242
  specification_version: 3
243
243
  summary: A version of the RailsWizard gem with custom recipes for Rails starter apps.