rails_apps_composer 2.3.2 → 2.4.0

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: 00a0c74d9603462a9ad2da976aba6ecf894e1d9b
4
- data.tar.gz: 2cd272a7a88382cd4824e6bd1f1e158ad9012d7a
3
+ metadata.gz: 703f1e12b7cfe4cf6d49748ba045d22573ec9b80
4
+ data.tar.gz: 3cb586ef0b76e4fe8b5ab0bd5f6bcb27c055f4f3
5
5
  SHA512:
6
- metadata.gz: b807db8f0b4c6b1ccd4eb2eca534b28acb5352b90c5ca05c8964c8bbf47003269d1b53bdf986d6005494c404e733d79655c8a9c96a081c331b2a366b038b0a73
7
- data.tar.gz: ae00741e66fcdf9bdb2abb96edd210f6eaa35770384de4ca11d3e300a57c22c3a6389dc7aa40c60fe2cd7bf2a1c6c93d22f760621f1a2681d99df93b4f14b21d
6
+ metadata.gz: 961e8aeef87c3190ead0d24aa6bdb17ec9b32e1f54b403c3c59a9e63af8054a49f7d45ec92506cfb6d5d6c64bcaaff03b5eaea16965de64367c851b8288964ff
7
+ data.tar.gz: 0439cbed49d83a38c75d670bd8ae5d79d4668e483745bc176db812f5ead8de035b85a59dfabc2e5278847763d169016de7538d2e03870651b22f34149dd007ca
data/README.textile CHANGED
@@ -54,9 +54,7 @@ h2. Dependencies
54
54
  Before using the rails_apps_composer gem, you will need:
55
55
 
56
56
  * The Ruby language (version 2.0.0)
57
- * Rails 3.2
58
-
59
- Rails 4.0.0 will not work due to an unresolved "issue involving a minitest gem version conflict":https://github.com/RailsApps/rails_apps_composer/issues/220.
57
+ * Rails 3.2 or Rails 4.0
60
58
 
61
59
  The rails_apps_composer program uses the version of Rails that is currently installed when you launch the program. If you want to use the newest Rails version, upgrade before running rails_apps_composer.
62
60
 
@@ -70,7 +68,7 @@ h2. Installation and Usage
70
68
 
71
69
  I recommend installing and using RVM, the "Ruby Version Manager":https://rvm.io/, to create a new gemset for rails_apps_composer. Using an RVM gemset will make it easier to identify and isolate incompatibilities among gems. RVM will install Ruby and set up a global gemset with a minimal set of gems.
72
70
 
73
- Here's how to generate a new Rails application using the Rails Composer tool and RVM:
71
+ Here's how to generate a new Rails application using rails_apps_composer and RVM:
74
72
 
75
73
  <pre>
76
74
  $ mkdir myapp
data/recipes/apps4.rb CHANGED
@@ -1,14 +1,21 @@
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/apps4.rb
3
3
 
4
- if prefer :apps4, 'simple-test'
5
- after_everything do
6
- say_wizard "recipe running after 'bundle install'"
7
- end # after_bundler
8
- end # simple-test
9
-
10
4
  if prefer :apps4, 'learn-rails'
11
5
 
6
+ # >-------------------------------[ Gems ]--------------------------------<
7
+
8
+ add_gem 'activerecord-tableless'
9
+ add_gem 'high_voltage'
10
+ add_gem 'gibbon'
11
+ gsub_file 'Gemfile', /gem 'sqlite3'\n/, ''
12
+ add_gem 'sqlite3', :group => :development
13
+ add_gem 'pg', :group => :production
14
+ add_gem 'thin', :group => :production
15
+ add_gem 'rails_on_heroku', :group => :production
16
+
17
+ # >-------------------------------[ after_everything ]--------------------------------<
18
+
12
19
  after_everything do
13
20
  say_wizard "recipe running after 'bundle install'"
14
21
  repo = 'https://raw.github.com/RailsApps/learn-rails/master/'
@@ -27,17 +34,6 @@ if prefer :apps4, 'learn-rails'
27
34
  git :add => '-A' if prefer :git, true
28
35
  git :commit => '-qm "rails_apps_composer: clean up starter app"' if prefer :git, true
29
36
 
30
- # >-------------------------------[ Gems ]--------------------------------<
31
-
32
- add_gem 'activerecord-tableless'
33
- add_gem 'high_voltage'
34
- add_gem 'gibbon'
35
- gsub_file 'Gemfile', /gem 'sqlite3'\n/, ''
36
- add_gem 'sqlite3', :group => :development
37
- add_gem 'pg', :group => :production
38
- add_gem 'thin', :group => :production
39
- add_gem 'rails_on_heroku', :group => :production
40
-
41
37
  # >-------------------------------[ Models ]--------------------------------<
42
38
 
43
39
  copy_from_repo 'app/models/contact.rb', :repo => repo
data/recipes/core.rb CHANGED
@@ -10,5 +10,5 @@ name: core
10
10
  description: "Select all core recipes."
11
11
  author: RailsApps
12
12
 
13
- requires: [git, railsapps, setup, readme, gems, testing, email, models, controllers, views, routes, frontend, init, prelaunch, saas, extras]
13
+ requires: [git, railsapps, setup, readme, gems, testing, email, models, controllers, views, routes, frontend, init, apps4, prelaunch, saas, extras]
14
14
  category: collections
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 '#{RUBY_VERSION}'\n", :before => /^ *gem 'rails'/, :force => false) if prefer :deploy, 'heroku'
7
+ insert_into_file('Gemfile', "ruby '#{RUBY_VERSION}'\n", :before => /^ *gem 'rails'/, :force => false)
8
8
 
9
9
  ## Web Server
10
10
  if (prefs[:dev_webserver] == prefs[:prod_webserver])
data/recipes/railsapps.rb CHANGED
@@ -14,13 +14,12 @@ when "3"
14
14
  ["rails3-subdomains", "rails3-subdomains"]] unless prefs.has_key? :railsapps
15
15
  when "4"
16
16
  prefs[:apps4] = multiple_choice "Install an example application for Rails 4.0?",
17
- [["simple-test", "simple-test"],
18
- ["I want to build my own application", "none"],
19
- ["Build a RailsApps starter application", "railsapps"],
20
- ["Build a contributed application", "contributed_app"]] unless prefs.has_key? :apps4
17
+ [["Build a RailsApps starter application", "railsapps"],
18
+ ["Build a contributed application", "contributed_app"],
19
+ ["I want to build my own application", "none"]] unless prefs.has_key? :apps4
21
20
  case prefs[:apps4]
22
21
  when 'railsapps'
23
- prefs[:apps4] = multiple_choice "Only one starter app is currently available.",
22
+ prefs[:apps4] = multiple_choice "One starter app is available for Rails 4.0. More to come.",
24
23
  [["learn-rails", "learn-rails"]]
25
24
  when 'contributed_app'
26
25
  prefs[:apps4] = multiple_choice "No contributed applications are available.",
data/templates/layout.erb CHANGED
@@ -133,7 +133,7 @@ when "3"
133
133
  raise StandardError.new "Rails #{Rails::VERSION::STRING} is not supported. Try 3.1 or newer."
134
134
  end
135
135
  when "4"
136
- say_wizard "\033[1m\033[36m" + "WARNING! See GitHub for issues with Rails #{Rails::VERSION::STRING}." + "\033[0m"
136
+ say_wizard "You are using Rails version #{Rails::VERSION::STRING}."
137
137
  else
138
138
  say_wizard "You are using Rails version #{Rails::VERSION::STRING} which is not supported. Try 3.1 or newer."
139
139
  raise StandardError.new "Rails #{Rails::VERSION::STRING} is not supported. Try 3.1 or newer."
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "2.3.2"
2
+ VERSION = "2.4.0"
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.3.2
4
+ version: 2.4.0
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-06-24 00:00:00.000000000 Z
11
+ date: 2013-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n