rails_apps_composer 2.4.3 → 2.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c21a490508b96261d584126f3909e1e552b3584a
4
- data.tar.gz: 500c90885f4a9c21cb43013fb93ff1ec21aa98f6
3
+ metadata.gz: ef0729f94833244a4842114ab2cfe6a9ccf7249a
4
+ data.tar.gz: b67dc32c37eb1af9cda6465ad883bc3781117c82
5
5
  SHA512:
6
- metadata.gz: c28cd50756cb4390535e53d8f4e1d3250662af3b17a018b38f30e49ae376c51695939b6fc2c7c48b28f84bbc31f0a6a052182545367ca564c4c18ab5bf7620ad
7
- data.tar.gz: 71c9a39b69de1338b0f7f3a77a44062923a92ac1506bb67d13e9f78d71ba7d0dbe29da726b9f6357a4dbe0e633e614cdc4d970c5dc39801405c82cf4b6db3139
6
+ metadata.gz: 25cc7c0762350493935d412c99244f73a8340cf1103a1f4863375cc06c6ac7bbb4d13e74e8fb2cdfa5d364f5a8bf551ce3aecf306618274c5cf976b029759bcf
7
+ data.tar.gz: 97016745a1612270388c3fb51cda79b42925afe016c3d0a106c6fe51730a6e55cc6aa4b3f7c35548d76d6a5f15147864092ff658503922d0fae9a2337c83e7d4
data/README.textile CHANGED
@@ -45,6 +45,8 @@ This gem is for experienced Rails developers who need a tool to create and maint
45
45
 
46
46
  If you are new to Rails, try the "Rails Composer":http://railsapps.github.io/rails-composer/ tool instead. It provides an application template that is generated from the rails_apps_composer gem's core recipes. The Rails Composer tool is easier to use. Use the rails_apps_composer gem if you want a custom application template, a custom combination of recipes, or the convenience of setting a defaults file.
47
47
 
48
+ See the "CONTRIBUTING":https://github.com/RailsApps/rails_apps_composer/blob/master/CONTRIBUTING.textile file for details about how you can contribute fixes or new features.
49
+
48
50
  h2. Alternatives
49
51
 
50
52
  The rails_apps_composer gem is derived from Michael Bleigh's "RailsWizard":https://github.com/intridea/rails_wizard gem. Early versions of the rails_apps_composer gem were a close fork of Michael Bleigh's gem; rails_apps_composer 2.0 differs substantially. Other notable alternatives are Dr. Nic Williams's "App Scrolls":http://appscrolls.org/ and Daniel Davey's "app_drone":http://drone.bz/. See a list of "Rails Application Template Projects":http://railsapps.github.io/rails-application-templates.html, particularly a list of "Application template-generating gems" for similar projects.
@@ -388,6 +390,8 @@ h2. Hacking the Gem
388
390
 
389
391
  See the "Guide to the Rails Apps Composer Gem":http://railsapps.github.io/tutorial-rails-apps-composer.html to learn how to customize the gem either for your own use or to share with others.
390
392
 
393
+ See the "CONTRIBUTING":https://github.com/RailsApps/rails_apps_composer/blob/master/CONTRIBUTING.textile file for details about how you can contribute fixes or new features.
394
+
391
395
  h2. Issues
392
396
 
393
397
  Any issues? Please create an "issue":http://github.com/RailsApps/rails_apps_composer/issues on GitHub. Reporting issues (and patching!) helps everyone.
@@ -404,7 +408,7 @@ Please see the "CHANGELOG":https://github.com/RailsApps/rails_apps_composer/blob
404
408
 
405
409
  Is the gem useful to you? Follow the project on Twitter: "@rails_apps":http://twitter.com/rails_apps. I'd love to know you were helped out by the gem.
406
410
 
407
- h2. MIT License (with restriction)
411
+ h2. MIT License
408
412
 
409
413
  "MIT License":http://www.opensource.org/licenses/mit-license
410
414
 
@@ -413,15 +417,16 @@ Copyright © 2012-2013 Daniel Kehoe
413
417
  h2. Useful Links
414
418
 
415
419
  |_. Getting Started |_. Articles |_. Tutorials |
416
- | "Rails Tutorial":https://tutorials.railsapps.org/rails-tutorial | "Heroku and Rails":http://railsapps.github.io/rails-heroku-tutorial.html | "Devise with CanCan and Twitter Bootstrap":https://tutorials.railsapps.org/rails3-bootstrap-devise-cancan |
417
- | "Ruby and Rails":http://railsapps.github.io/ruby-and-rails.html | "Twitter Bootstrap and Rails":http://railsapps.github.io/twitter-bootstrap-rails.html | "Rails Membership Site with Stripe":https://tutorials.railsapps.org/rails-stripe-membership-saas |
418
- | "Installing Rails":http://railsapps.github.io/installing-rails.html | "JavaScript and Rails":http://railsapps.github.io/rails-javascript-include-external.html | "Rails Subscription Site with Recurly":https://tutorials.railsapps.org/rails-recurly-subscription-saas |
419
- | "Updating Rails":http://railsapps.github.io/updating-rails.html | "Rails Environment Variables":http://railsapps.github.io/rails-environment-variables.html | "Startup Prelaunch Signup Application":http://railsapps.github.io/tutorial-rails-prelaunch-signup.html |
420
- | "Rails Composer":http://railsapps.github.io/rails-composer/ | "Git and GitHub with Rails":http://railsapps.github.io/rails-git.html | "Devise with RSpec and Cucumber":http://railsapps.github.io/tutorial-rails-devise-rspec-cucumber.html |
421
- | "Rails Examples":http://railsapps.github.io/ | "Send Email with Rails":http://railsapps.github.io/rails-send-email.html | "Devise with Mongoid":http://railsapps.github.io/tutorial-rails-mongoid-devise.html |
422
- | "Rails Starter Apps":http://railsapps.github.io/rails-examples-tutorials.html | "Haml and Rails":http://railsapps.github.io/rails-haml.html | "OmniAuth with Mongoid":http://railsapps.github.io/tutorial-rails-mongoid-omniauth.html |
423
- | | "Rails Application Layout":http://railsapps.github.io/rails-default-application-layout.html | "Subdomains with Devise":http://railsapps.github.io/tutorial-rails-subdomains.html |
424
- | | "HTML5 Boilerplate for Rails":http://railsapps.github.io/rails-html5-boilerplate.html | |
420
+ | "Learn Rails":http://learn-rails.com/ | "Twitter Bootstrap and Rails":http://railsapps.github.io/twitter-bootstrap-rails.html | "Rails and Bootstrap":http://railsapps.github.io/rails-bootstrap/ |
421
+ | "Ruby and Rails":http://railsapps.github.io/ruby-and-rails.html | "Analytics for Rails":http://railsapps.github.io/rails-google-analytics.html | |
422
+ | "What is Ruby on Rails?":http://railsapps.github.io/what-is-ruby-rails.html | "Heroku and Rails":http://railsapps.github.io/rails-heroku-tutorial.html | "Devise with CanCan and Twitter Bootstrap":https://tutorials.railsapps.org/rails3-bootstrap-devise-cancan |
423
+ | "Rails Tutorial":https://tutorials.railsapps.org/rails-tutorial | "JavaScript and Rails":http://railsapps.github.io/rails-javascript-include-external.html | "Rails Membership Site with Stripe":https://tutorials.railsapps.org/rails-stripe-membership-saas |
424
+ | "Installing Rails":http://railsapps.github.io/installing-rails.html | "Rails Environment Variables":http://railsapps.github.io/rails-environment-variables.html | "Rails Subscription Site with Recurly":https://tutorials.railsapps.org/rails-recurly-subscription-saas |
425
+ | "Updating Rails":http://railsapps.github.io/updating-rails.html | "Git and Rails":http://railsapps.github.io/rails-git.html | "Startup Prelaunch Signup Application":http://railsapps.github.io/tutorial-rails-prelaunch-signup.html |
426
+ | "Rails Composer":http://railsapps.github.io/rails-composer/ | "Email and Rails":http://railsapps.github.io/rails-send-email.html | "Devise with RSpec and Cucumber":http://railsapps.github.io/tutorial-rails-devise-rspec-cucumber.html |
427
+ | "Rails Examples":http://railsapps.github.io/ | "Haml and Rails":http://railsapps.github.io/rails-haml.html | "Devise with Mongoid":http://railsapps.github.io/tutorial-rails-mongoid-devise.html |
428
+ | "Rails Starter Apps":http://railsapps.github.io/rails-examples-tutorials.html | "Rails Application Layout":http://railsapps.github.io/rails-default-application-layout.html | "OmniAuth with Mongoid":http://railsapps.github.io/tutorial-rails-mongoid-omniauth.html |
429
+ | | "HTML5 Boilerplate for Rails":http://railsapps.github.io/rails-html5-boilerplate.html | "Subdomains with Devise":http://railsapps.github.io/tutorial-rails-subdomains.html |
425
430
  | | "Example Gemfiles for Rails":http://railsapps.github.io/rails-3-2-example-gemfile.html | |
426
431
  | | "Rails Application Templates":http://railsapps.github.io/rails-application-templates.html | |
427
432
 
data/recipes/apps4.rb CHANGED
@@ -8,6 +8,7 @@ if prefer :apps4, 'learn-rails'
8
8
  add_gem 'activerecord-tableless'
9
9
  add_gem 'high_voltage'
10
10
  add_gem 'gibbon'
11
+ add_gem 'google_drive'
11
12
  gsub_file 'Gemfile', /gem 'sqlite3'\n/, ''
12
13
  add_gem 'sqlite3', :group => :development
13
14
  add_gem 'pg', :group => :production
data/recipes/email.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  after_bundler do
5
5
  say_wizard "recipe running after 'bundle install'"
6
6
  unless prefer :email, 'none'
7
- if Rails::VERSION::MAJOR.to_s == "4"
7
+ if rails_4?
8
8
  send_email_text = <<-TEXT
9
9
  # Send email in development mode.
10
10
  config.action_mailer.perform_deliveries = true
data/recipes/extras.rb CHANGED
@@ -114,8 +114,7 @@ case RbConfig::CONFIG['host_os']
114
114
  # was it already added for bootstrap-less?
115
115
  unless prefer :bootstrap, 'less'
116
116
  say_wizard "recipe adding 'therubyracer' JavaScript runtime gem"
117
- add_gem 'libv8'
118
- add_gem 'therubyracer', :group => :assets, :platform => :ruby, :require => 'v8'
117
+ add_gem 'therubyracer', :group => :assets, :platform => :ruby
119
118
  end
120
119
  end
121
120
  end
data/recipes/gems.rb CHANGED
@@ -11,6 +11,8 @@ insert_into_file('Gemfile', "ruby '#{RUBY_VERSION}'\n", :before => /^ *gem 'rail
11
11
  gsub_file 'Gemfile', /group :doc do/, ''
12
12
  gsub_file 'Gemfile', /\s*gem 'sdoc', require: false\nend/, ''
13
13
 
14
+ assets_group = rails_4? ? nil : :assets
15
+
14
16
  ## Web Server
15
17
  if (prefs[:dev_webserver] == prefs[:prod_webserver])
16
18
  add_gem 'thin' if prefer :dev_webserver, 'thin'
@@ -26,9 +28,9 @@ else
26
28
  end
27
29
 
28
30
  ## Rails 4.0 attr_accessible Compatibility
29
- if prefer :apps4, false
30
- add_gem 'protected_attributes' if Rails::VERSION::MAJOR.to_s == "4"
31
- end
31
+ # if prefer :apps4, false
32
+ # add_gem 'protected_attributes' if rails_4?
33
+ # end
32
34
 
33
35
  ## Database Adapter
34
36
  unless prefer :database, 'default'
@@ -90,14 +92,13 @@ add_gem 'machinist', :group => :test if prefer :fixtures, 'machinist'
90
92
 
91
93
  ## Front-end Framework
92
94
  add_gem 'bootstrap-sass' if prefer :bootstrap, 'sass'
93
- add_gem 'compass-rails', :group => :assets if prefer :frontend, 'foundation'
94
- add_gem 'zurb-foundation', :group => :assets if prefer :frontend, 'foundation'
95
+ add_gem 'compass-rails', :group => assets_group if prefer :frontend, 'foundation'
96
+ add_gem 'zurb-foundation', :group => assets_group if prefer :frontend, 'foundation'
95
97
  if prefer :bootstrap, 'less'
96
- add_gem 'less-rails', :group => :assets
97
- add_gem 'twitter-bootstrap-rails', :group => :assets
98
+ add_gem 'less-rails', :group => assets_group
99
+ add_gem 'twitter-bootstrap-rails', :group => assets_group
98
100
  # install gem 'therubyracer' to use Less
99
- add_gem 'libv8'
100
- add_gem 'therubyracer', :group => :assets, :platform => :ruby, :require => 'v8'
101
+ add_gem 'therubyracer', :group => assets_group, :platform => :ruby
101
102
  end
102
103
 
103
104
  ## Email
@@ -123,7 +124,7 @@ if prefer :authorization, 'cancan'
123
124
  end
124
125
 
125
126
  ## Form Builder
126
- if Rails::VERSION::MAJOR.to_s == "4"
127
+ if rails_4?
127
128
  add_gem 'simple_form', '>= 3.0.0.rc' if prefer :form_builder, 'simple_form'
128
129
  else
129
130
  add_gem 'simple_form' if prefer :form_builder, 'simple_form'
data/recipes/init.rb CHANGED
@@ -66,7 +66,7 @@ end
66
66
  FILE
67
67
  end
68
68
  ## Fix db seed for Rails 4.0
69
- gsub_file 'db/seeds.rb', /{ :name => role }/, 'role' if Rails::VERSION::MAJOR.to_s == "4"
69
+ gsub_file 'db/seeds.rb', /{ :name => role }, :without_protection => true/, 'role' if rails_4?
70
70
  else
71
71
  append_file 'db/seeds.rb' do <<-FILE
72
72
  puts 'ROLES'
data/recipes/models.rb CHANGED
@@ -39,7 +39,7 @@ RUBY
39
39
  unless prefer :railsapps, 'rails-recurly-subscription-saas'
40
40
  generate 'migration AddNameToUsers name:string'
41
41
  end
42
- copy_from_repo 'app/models/user.rb', :repo => 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/'
42
+ copy_from_repo 'app/models/user.rb', :repo => 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/' unless rails_4?
43
43
  if (prefer :devise_modules, 'confirmable') || (prefer :devise_modules, 'invitable')
44
44
  gsub_file 'app/models/user.rb', /:registerable,/, ":registerable, :confirmable,"
45
45
  generate 'migration AddConfirmableToUsers confirmation_token:string confirmed_at:datetime confirmation_sent_at:datetime unconfirmed_email:string'
data/recipes/routes.rb CHANGED
@@ -14,7 +14,7 @@ after_bundler do
14
14
  if prefer :authentication, 'devise'
15
15
  copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-devise-rspec-cucumber/master/'
16
16
  ## Rails 4.0 doesn't allow two 'root' routes
17
- gsub_file 'config/routes.rb', /authenticated :user do\n.*\n.*\n /, '' if Rails::VERSION::MAJOR.to_s == "4"
17
+ gsub_file 'config/routes.rb', /authenticated :user do\n.*\n.*\n /, '' if rails_4?
18
18
  end
19
19
  ## OMNIAUTH
20
20
  copy_from_repo 'config/routes.rb', :repo => 'https://raw.github.com/RailsApps/rails3-mongoid-omniauth/master/' if prefer :authentication, 'omniauth'
@@ -10,6 +10,10 @@ def say_custom(tag, text); say "\033[1m\033[36m" + tag.to_s.rjust(10) + "\033[0m
10
10
  def say_recipe(name); say "\033[1m\033[36m" + "recipe".rjust(10) + "\033[0m" + " Running #{name} recipe..." end
11
11
  def say_wizard(text); say_custom(@current_recipe || 'composer', text) end
12
12
 
13
+ def rails_4?
14
+ Rails::VERSION::MAJOR.to_s == "4"
15
+ end
16
+
13
17
  def ask_wizard(question)
14
18
  ask "\033[1m\033[36m" + (@current_recipe || "prompt").rjust(10) + "\033[1m\033[36m" + " #{question}\033[0m"
15
19
  end
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.4.3"
2
+ VERSION = "2.4.4"
3
3
  end
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.3
4
+ version: 2.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Kehoe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-11 00:00:00.000000000 Z
11
+ date: 2013-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -173,7 +173,8 @@ files:
173
173
  - spec/test_recipes/test_recipe_in_file.rb
174
174
  - bin/rails_apps_composer
175
175
  homepage: http://github.com/RailsApps/rails_apps_composer
176
- licenses: []
176
+ licenses:
177
+ - MIT
177
178
  metadata: {}
178
179
  post_install_message:
179
180
  rdoc_options: []