rails_apps_composer 2.2.33 → 2.2.34

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -392,4 +392,19 @@ The rails_apps_composer program is licensed under the terms of the "MIT License"
392
392
 
393
393
  Copyright © 2012 Daniel Kehoe
394
394
 
395
+ h2. Useful Links
396
+
397
+ |_. Getting Started |_. Articles |_. Tutorials |
398
+ | "Rails Tutorial":https://tutorials.railsapps.org/rails-tutorial (recommendations) | "Heroku and Rails":http://railsapps.github.com/rails-heroku-tutorial.html | "Devise with CanCan and Twitter Bootstrap":https://tutorials.railsapps.org/rails3-bootstrap-devise-cancan |
399
+ | "Rails":http://railsapps.github.com/rails.html (resources)| "Twitter Bootstrap and Rails":http://railsapps.github.com/twitter-bootstrap-rails.html | "Rails Membership Site with Stripe":https://tutorials.railsapps.org/rails-stripe-membership-saas |
400
+ | "Installing Rails":http://railsapps.github.com/installing-rails.html | "JavaScript and Rails":http://railsapps.github.com/rails-javascript-include-external.html | "Rails Subscription Site with Recurly":https://tutorials.railsapps.org/rails-recurly-subscription-saas |
401
+ | "Updating Rails":http://railsapps.github.com/updating-rails.html | "Rails Environment Variables":http://railsapps.github.com/rails-environment-variables.html | "Startup Prelaunch Signup Application":http://railsapps.github.com/tutorial-rails-prelaunch-signup.html |
402
+ | "Rails Composer":http://railsapps.github.com/rails-composer/ | "Git and GitHub with Rails":http://railsapps.github.com/rails-git.html | "Devise with RSpec and Cucumber":http://railsapps.github.com/tutorial-rails-devise-rspec-cucumber.html |
403
+ | "Rails Examples":http://railsapps.github.com/ | "Send Email with Rails":http://railsapps.github.com/rails-send-email.html | "Devise with Mongoid":http://railsapps.github.com/tutorial-rails-mongoid-devise.html |
404
+ | "Rails Starter Apps":http://railsapps.github.com/rails-examples-tutorials.html | "Haml and Rails":http://railsapps.github.com/rails-haml.html | "OmniAuth with Mongoid":http://railsapps.github.com/tutorial-rails-mongoid-omniauth.html |
405
+ | | "Rails Application Layout":http://railsapps.github.com/rails-default-application-layout.html | "Subdomains with Devise":http://railsapps.github.com/tutorial-rails-subdomains.html |
406
+ | | "HTML5 Boilerplate for Rails":http://railsapps.github.com/rails-html5-boilerplate.html | |
407
+ | | "Example Gemfiles for Rails":http://railsapps.github.com/rails-3-2-example-gemfile.html | |
408
+ | | "Rails Application Templates":http://railsapps.github.com/rails-application-templates.html | |
409
+
395
410
  !https://cruel-carlota.pagodabox.com/1f4f51c551cd90489a558e5fe4d91fff(githalytics.com alpha)!
data/recipes/extras.rb CHANGED
@@ -1,6 +1,59 @@
1
1
  # Application template recipe for the rails_apps_composer. Change the recipe here:
2
2
  # https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/extras.rb
3
3
 
4
+ ## RVMRC
5
+ rvmrc_detected = false
6
+ if File.exist?('.rvmrc')
7
+ rvmrc_file = File.read('.rvmrc')
8
+ rvmrc_detected = rvmrc_file.include? app_name
9
+ end
10
+ unless rvmrc_detected
11
+ prefs[:rvmrc] = yes_wizard? "Create a project-specific rvm gemset and .rvmrc?"
12
+ end
13
+ if prefs[:rvmrc]
14
+ if which("rvm")
15
+ say_wizard "recipe creating project-specific rvm gemset and .rvmrc"
16
+ # using the rvm Ruby API, see:
17
+ # http://blog.thefrontiergroup.com.au/2010/12/a-brief-introduction-to-the-rvm-ruby-api/
18
+ # https://rvm.io/integration/passenger
19
+ if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm')
20
+ begin
21
+ gems_path = ENV['MY_RUBY_HOME'].split(/@/)[0].sub(/rubies/,'gems')
22
+ ENV['GEM_PATH'] = "#{gems_path}:#{gems_path}@global"
23
+ require 'rvm'
24
+ RVM.use_from_path! File.dirname(File.dirname(__FILE__))
25
+ rescue LoadError
26
+ raise "RVM gem is currently unavailable."
27
+ end
28
+ end
29
+ say_wizard "creating RVM gemset '#{app_name}'"
30
+ RVM.gemset_create app_name
31
+ say_wizard "switching to gemset '#{app_name}'"
32
+ # RVM.gemset_use! requires rvm version 1.11.3.5 or newer
33
+ rvm_spec =
34
+ if Gem::Specification.respond_to?(:find_by_name)
35
+ Gem::Specification.find_by_name("rvm")
36
+ else
37
+ Gem.source_index.find_name("rvm").last
38
+ end
39
+ unless rvm_spec.version > Gem::Version.create('1.11.3.4')
40
+ say_wizard "rvm gem version: #{rvm_spec.version}"
41
+ raise "Please update rvm gem to 1.11.3.5 or newer"
42
+ end
43
+ begin
44
+ RVM.gemset_use! app_name
45
+ rescue => e
46
+ say_wizard "rvm failure: unable to use gemset #{app_name}, reason: #{e}"
47
+ raise
48
+ end
49
+ run "rvm gemset list"
50
+ copy_from_repo '.rvmrc'
51
+ gsub_file '.rvmrc', /App_Name/, "#{app_name}"
52
+ else
53
+ say_wizard "WARNING! RVM does not appear to be available."
54
+ end
55
+ end
56
+
4
57
  ## QUIET ASSETS
5
58
  if config['quiet_assets']
6
59
  prefs[:quiet_assets] = true
@@ -26,7 +79,7 @@ end
26
79
  if prefs[:better_errors]
27
80
  say_wizard "recipe adding better_errors gem"
28
81
  gem 'better_errors', '>= 0.6.0', :group => :development
29
- gem 'binding_of_caller', '>= 0.6.9', :group => :development
82
+ gem 'binding_of_caller', '>= 0.7.1', :group => :development, :platforms => [:mri_19, :rbx]
30
83
  end
31
84
 
32
85
  ## BAN SPIDERS
@@ -55,54 +108,6 @@ case RbConfig::CONFIG['host_os']
55
108
  end
56
109
  end
57
110
 
58
- ## RVMRC
59
- if config['rvmrc']
60
- prefs[:rvmrc] = true
61
- end
62
- if prefs[:rvmrc]
63
- if which("rvm")
64
- say_wizard "recipe creating project-specific rvm gemset and .rvmrc"
65
- # using the rvm Ruby API, see:
66
- # http://blog.thefrontiergroup.com.au/2010/12/a-brief-introduction-to-the-rvm-ruby-api/
67
- # https://rvm.io/integration/passenger
68
- if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm')
69
- begin
70
- gems_path = ENV['MY_RUBY_HOME'].split(/@/)[0].sub(/rubies/,'gems')
71
- ENV['GEM_PATH'] = "#{gems_path}:#{gems_path}@global"
72
- require 'rvm'
73
- RVM.use_from_path! File.dirname(File.dirname(__FILE__))
74
- rescue LoadError
75
- raise "RVM gem is currently unavailable."
76
- end
77
- end
78
- say_wizard "creating RVM gemset '#{app_name}'"
79
- RVM.gemset_create app_name
80
- say_wizard "switching to gemset '#{app_name}'"
81
- # RVM.gemset_use! requires rvm version 1.11.3.5 or newer
82
- rvm_spec =
83
- if Gem::Specification.respond_to?(:find_by_name)
84
- Gem::Specification.find_by_name("rvm")
85
- else
86
- Gem.source_index.find_name("rvm").last
87
- end
88
- unless rvm_spec.version > Gem::Version.create('1.11.3.4')
89
- say_wizard "rvm gem version: #{rvm_spec.version}"
90
- raise "Please update rvm gem to 1.11.3.5 or newer"
91
- end
92
- begin
93
- RVM.gemset_use! app_name
94
- rescue => e
95
- say_wizard "rvm failure: unable to use gemset #{app_name}, reason: #{e}"
96
- raise
97
- end
98
- run "rvm gemset list"
99
- copy_from_repo '.rvmrc'
100
- gsub_file '.rvmrc', /App_Name/, "#{app_name}"
101
- else
102
- say_wizard "WARNING! RVM does not appear to be available."
103
- end
104
- end
105
-
106
111
  ## AFTER_EVERYTHING
107
112
  after_everything do
108
113
  say_wizard "recipe removing unnecessary files and whitespace"
@@ -157,21 +162,18 @@ run_after: [gems, init, prelaunch]
157
162
  category: other
158
163
 
159
164
  config:
160
- - quiet_assets:
165
+ - ban_spiders:
161
166
  type: boolean
162
- prompt: Reduce assets logger noise during development?
167
+ prompt: Set a robots.txt file to ban spiders?
168
+ - github:
169
+ type: boolean
170
+ prompt: Create a GitHub repository?
163
171
  - local_env_file:
164
172
  type: boolean
165
173
  prompt: Use application.yml file for environment variables?
174
+ - quiet_assets:
175
+ type: boolean
176
+ prompt: Reduce assets logger noise during development?
166
177
  - better_errors:
167
178
  type: boolean
168
179
  prompt: Improve error reporting with 'better_errors' during development?
169
- - ban_spiders:
170
- type: boolean
171
- prompt: Set a robots.txt file to ban spiders?
172
- - rvmrc:
173
- type: boolean
174
- prompt: Create a project-specific rvm gemset and .rvmrc?
175
- - github:
176
- type: boolean
177
- prompt: Create a GitHub repository?
data/recipes/gems.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  ### GEMFILE ###
5
5
 
6
6
  ## Ruby on Rails
7
- insert_into_file 'Gemfile', "ruby '1.9.3'\n", :before => "gem 'rails', '3.2.6'" if prefer :deploy, 'heroku'
7
+ insert_into_file('Gemfile', "ruby '1.9.3'\n", before: /^ *gem 'rails'/, force: false) if prefer :deploy, 'heroku'
8
8
 
9
9
  ## Web Server
10
10
  if (prefs[:dev_webserver] == prefs[:prod_webserver])
@@ -22,7 +22,7 @@ end
22
22
 
23
23
  ## Database Adapter
24
24
  gsub_file 'Gemfile', /gem 'sqlite3'\n/, '' unless prefer :database, 'sqlite'
25
- gem 'mongoid', '>= 3.1.0' if prefer :orm, 'mongoid'
25
+ gem 'mongoid', '>= 3.1.1' if prefer :orm, 'mongoid'
26
26
  unless File.open('Gemfile').lines.any?{|line| line.include?('pg')}
27
27
  gem 'pg', '>= 0.14.1' if prefer :database, 'postgresql'
28
28
  end
@@ -33,14 +33,14 @@ end
33
33
  ## Template Engine
34
34
  if prefer :templates, 'haml'
35
35
  gem 'haml-rails', '>= 0.4'
36
- gem 'html2haml', '>= 1.0.0', :group => :development
36
+ gem 'html2haml', '>= 1.0.1', :group => :development
37
37
  end
38
38
  if prefer :templates, 'slim'
39
39
  gem 'slim', '>= 2.0.0.pre.6'
40
40
  gem 'haml2slim', '>= 0.4.6', :group => :development
41
41
  # Haml is needed for conversion of HTML to Slim
42
42
  gem 'haml-rails', '>= 0.4', :group => :development
43
- gem 'html2haml', '>= 1.0.0', :group => :development
43
+ gem 'html2haml', '>= 1.0.1', :group => :development
44
44
  end
45
45
 
46
46
  ## Testing Framework
@@ -75,7 +75,7 @@ gem 'compass-rails', '>= 1.0.3', :group => :assets if prefer :frontend, 'foundat
75
75
  gem 'zurb-foundation', '>= 3.2.5', :group => :assets if prefer :frontend, 'foundation'
76
76
  if prefer :bootstrap, 'less'
77
77
  gem 'less-rails', '>= 2.2.6', :group => :assets
78
- gem 'twitter-bootstrap-rails', '>= 2.2.3', :group => :assets
78
+ gem 'twitter-bootstrap-rails', '>= 2.2.4', :group => :assets
79
79
  # install gem 'therubyracer' to use Less
80
80
  gem 'libv8', '>= 3.11.8'
81
81
  gem 'therubyracer', '>= 0.11.3', :group => :assets, :platform => :ruby, :require => 'v8'
data/recipes/init.rb CHANGED
@@ -73,7 +73,7 @@ FILE
73
73
  end
74
74
  end
75
75
  ## DEVISE-DEFAULT
76
- unless prefer :authentication, 'omniauth'
76
+ if prefer :authentication, 'devise'
77
77
  append_file 'db/seeds.rb' do <<-FILE
78
78
  puts 'DEFAULT USERS'
79
79
  user = User.find_or_create_by_email :name => ENV['ADMIN_NAME'].dup, :email => ENV['ADMIN_EMAIL'].dup, :password => ENV['ADMIN_PASSWORD'].dup, :password_confirmation => ENV['ADMIN_PASSWORD'].dup
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.2.33"
2
+ VERSION = "2.2.34"
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: 2.2.33
4
+ version: 2.2.34
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: 2013-02-16 00:00:00.000000000 Z
12
+ date: 2013-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -202,7 +202,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
202
202
  version: '0'
203
203
  segments:
204
204
  - 0
205
- hash: -2885590873741171090
205
+ hash: -161628024965057512
206
206
  required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  none: false
208
208
  requirements:
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  version: '0'
212
212
  segments:
213
213
  - 0
214
- hash: -2885590873741171090
214
+ hash: -161628024965057512
215
215
  requirements: []
216
216
  rubyforge_project: rails_apps_composer
217
217
  rubygems_version: 1.8.25