rails_apps_composer 1.0.19 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -70,16 +70,16 @@ h4. Select Recipes
70
70
  You can mix and match recipes to create your own customized starter app. See an annotated list of available "recipes for the Rails Apps Composer gem":http://railsapps.github.com/rails-apps-recipes.html. For an up-to-date list, browse the repository "recipes directory":https://github.com/RailsApps/rails_apps_composer/tree/master/recipes to see what is available. Then provide your list of recipes to the Rails Apps Composer gem using the @-r@ option and generate an app as needed. Here's an example that creates a simple app using jquery and haml:
71
71
 
72
72
  <pre>
73
- $ rails_apps_composer new APP_NAME -r jquery haml
73
+ $ rails_apps_composer new myapp -r jquery haml
74
74
  </pre>
75
75
 
76
76
  For example, to build the "rails3-mongoid-devise":http://github.com/RailsApps/rails3-mongoid-devise/ example application, run the command:
77
77
 
78
78
  <pre>
79
- $ rails_apps_composer new APP_NAME -r jquery haml rspec cucumber guard mongoid action_mailer devise add_user home_page home_page_users seed_database users_page css_setup application_layout navigation cleanup ban_spiders git
79
+ $ rails_apps_composer new myapp -r jquery haml rspec cucumber guard mongoid action_mailer devise add_user home_page home_page_users seed_database users_page css_setup application_layout navigation cleanup ban_spiders git
80
80
  </pre>
81
81
 
82
- Replace @APP_NAME@ with the name you want for your application.
82
+ Replace @myapp@ with the name you want for your application.
83
83
 
84
84
  h2. Make Your Own Starter App with a Reusable Application Template
85
85
 
@@ -112,7 +112,7 @@ If you don't include the @--silent@ option, the rake task will generate the appl
112
112
  The Rails Apps Composer gem creates an application template that can be used by the @rails new@ command with the @-m@ option. For example:
113
113
 
114
114
  <pre>
115
- $ rails new testapp -m ~/Desktop/template.txt
115
+ $ rails new myapp -m ~/Desktop/template.txt
116
116
  </pre>
117
117
 
118
118
  You can specify the @-T -O@ flags as needed to skip Test::Unit files and Active Record files. For Rails 3.0, you can also specify the @-J@ flag to skip Prototype files (not needed for Rails 3.1).
@@ -130,7 +130,7 @@ $ rake print --silent RECIPES=jquery,haml,rspec,cucumber,guard,action_mailer,dev
130
130
  Then generate the application using the @-T@ flag. Add the @-J@ flag for Rails 3.0.
131
131
 
132
132
  <pre>
133
- $ rails new testapp -m ~/Desktop/template.txt -T
133
+ $ rails new myapp -m ~/Desktop/template.txt -T
134
134
  </pre>
135
135
 
136
136
  h4. Template for Rails 3 + Mongoid + Devise
@@ -144,7 +144,7 @@ $ rake print --silent RECIPES=jquery,haml,rspec,cucumber,guard,mongoid,action_ma
144
144
  Then generate the application using the @-T -O@ flags. Add the @-J@ flag for Rails 3.0.
145
145
 
146
146
  <pre>
147
- $ rails new testapp -m ~/Desktop/template.txt -T -O
147
+ $ rails new myapp -m ~/Desktop/template.txt -T -O
148
148
  </pre>
149
149
 
150
150
  h4. Template for Rails 3 + Mongoid + OmniAuth
@@ -158,7 +158,7 @@ $ rake print --silent RECIPES=jquery,haml,rspec,cucumber,guard,mongoid,seed_data
158
158
  Then generate the application using the @-T -O@ flags. Add the @-J@ flag for Rails 3.0.
159
159
 
160
160
  <pre>
161
- $ rails new testapp -m ~/Desktop/template.txt -T -O
161
+ $ rails new myapp -m ~/Desktop/template.txt -T -O
162
162
  </pre>
163
163
 
164
164
  h2. The Recipes
@@ -195,7 +195,7 @@ h4. Rails Apps Composer Differences
195
195
  The Rails Apps Composer gem is very similar to the rails_wizard gem, with one significant difference. The rails_wizard gem allows specification of execution order for recipes with @run_after@ and @run_after@ configuration flags. The Rails Apps Composer gem does not support @run_after@ or @run_after@; instead, the order which you provide the recipes sets the execution order. This makes it easier to chain a series of recipes in the order you prefer. For example,
196
196
 
197
197
  <pre>
198
- $ rails_apps_composer new APP_NAME -r git jquery haml
198
+ $ rails_apps_composer new myapp -r git jquery haml
199
199
  </pre>
200
200
 
201
201
  installs jquery before haml.
data/recipes/cucumber.rb CHANGED
@@ -10,7 +10,7 @@ if config['cucumber']
10
10
  gem 'launchy', '0.4.0', :group => :test
11
11
  else
12
12
  # for Rails 3.1+, use optimistic versioning for gems
13
- gem 'cucumber-rails', '>= 1.0.2', :group => :test
13
+ gem 'cucumber-rails', '>= 1.1.1', :group => :test
14
14
  gem 'capybara', '>= 1.1.1', :group => :test
15
15
  gem 'database_cleaner', '>= 0.6.7', :group => :test
16
16
  gem 'launchy', '>= 2.0.5', :group => :test
data/recipes/devise.rb CHANGED
@@ -7,7 +7,7 @@ if config['devise']
7
7
  gem 'devise', '1.3.4'
8
8
  else
9
9
  # for Rails 3.1+, use optimistic versioning for gems
10
- gem 'devise', '>= 1.4.5'
10
+ gem 'devise', '>= 1.4.7'
11
11
  end
12
12
  else
13
13
  recipes.delete('devise')
@@ -0,0 +1,39 @@
1
+ # Application template recipe for the rails_apps_composer.
2
+
3
+ if config['draggable']
4
+ if recipes.include? 'jquery'
5
+ if recipes.include? 'home_page'
6
+ after_bundler do
7
+ append_file 'app/views/home/index.html.erb' do <<-ERB
8
+ <div id="draggable" class="ui-widget-content">
9
+ <p>Drag me around</p>
10
+ </div>
11
+ ERB
12
+ end
13
+ remove_file 'app/assets/javascripts/draggable.js'
14
+ create_file 'app/assets/javascripts/draggable.js' do
15
+ <<-ERB
16
+ $(function() {
17
+ $( "#draggable" ).draggable();
18
+ });
19
+ ERB
20
+ end
21
+ end
22
+ end
23
+ else
24
+ say_wizard "You need to install jQuery to use the Draggable effect."
25
+ end
26
+ end
27
+
28
+ __END__
29
+
30
+ name: Draggable
31
+ description: "Drag elements around page."
32
+ author: Andrew Dixon
33
+
34
+ category: assets
35
+
36
+ config:
37
+ - draggable:
38
+ type: boolean
39
+ prompt: Would you like to add Draggable functionality?
data/recipes/mongoid.rb CHANGED
@@ -10,8 +10,8 @@ if config['mongoid']
10
10
  gem 'mongoid', '2.0.2'
11
11
  else
12
12
  # for Rails 3.1+, use optimistic versioning for gems
13
- gem 'bson_ext', '>= 1.3.1'
14
- gem 'mongoid', '>= 2.2.0'
13
+ gem 'bson_ext', '>= 1.4.0'
14
+ gem 'mongoid', '>= 2.3.0'
15
15
  end
16
16
  else
17
17
  recipes.delete('mongoid')
data/recipes/omniauth.rb CHANGED
@@ -7,7 +7,7 @@ if config['omniauth']
7
7
  gem 'omniauth', '0.2.6'
8
8
  else
9
9
  # for Rails 3.1+, use optimistic versioning for gems
10
- gem 'omniauth', '>= 0.3.0.rc3'
10
+ gem 'omniauth', '>= 0.3.0'
11
11
  end
12
12
  else
13
13
  recipes.delete('omniauth')
@@ -22,7 +22,7 @@ FILE
22
22
  # create a default user
23
23
  append_file 'db/seeds.rb' do <<-FILE
24
24
  puts 'SETTING UP DEFAULT USER LOGIN'
25
- user = User.create! :name => 'First User', :email => 'user@test.com', :password => 'please', :password_confirmation => 'please'
25
+ user = User.create! :name => 'First User', :email => 'user@example.com', :password => 'please', :password_confirmation => 'please'
26
26
  puts 'New user created: ' << user.name
27
27
  FILE
28
28
  end
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "1.0.19"
2
+ VERSION = "1.0.20"
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.0.19
4
+ version: 1.0.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-09 00:00:00.000000000Z
12
+ date: 2011-10-07 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &2157434700 !ruby/object:Gem::Requirement
16
+ requirement: &2154322300 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2157434700
24
+ version_requirements: *2154322300
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
27
- requirement: &2157433560 !ruby/object:Gem::Requirement
27
+ requirement: &2154321800 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2157433560
35
+ version_requirements: *2154321800
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: thor
38
- requirement: &2157432680 !ruby/object:Gem::Requirement
38
+ requirement: &2154321380 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2157432680
46
+ version_requirements: *2154321380
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &2157431120 !ruby/object:Gem::Requirement
49
+ requirement: &2154320840 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.5.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2157431120
57
+ version_requirements: *2154320840
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: mg
60
- requirement: &2157430060 !ruby/object:Gem::Requirement
60
+ requirement: &2154320420 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2157430060
68
+ version_requirements: *2154320420
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
- requirement: &2157428420 !ruby/object:Gem::Requirement
71
+ requirement: &2154319880 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 3.0.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2157428420
79
+ version_requirements: *2154319880
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: i18n
82
- requirement: &2157427660 !ruby/object:Gem::Requirement
82
+ requirement: &2154319460 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2157427660
90
+ version_requirements: *2154319460
91
91
  description: A gem with recipes to create Rails application templates you can use
92
92
  to generate Rails starter apps.
93
93
  email:
@@ -116,6 +116,7 @@ files:
116
116
  - recipes/css_setup.rb
117
117
  - recipes/cucumber.rb
118
118
  - recipes/devise.rb
119
+ - recipes/draggable.rb
119
120
  - recipes/env_yaml.rb
120
121
  - recipes/extras.rb
121
122
  - recipes/git.rb
@@ -178,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
179
  version: '0'
179
180
  segments:
180
181
  - 0
181
- hash: -574703358682522245
182
+ hash: 2375044092887418713
182
183
  required_rubygems_version: !ruby/object:Gem::Requirement
183
184
  none: false
184
185
  requirements:
@@ -187,10 +188,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
188
  version: '0'
188
189
  segments:
189
190
  - 0
190
- hash: -574703358682522245
191
+ hash: 2375044092887418713
191
192
  requirements: []
192
193
  rubyforge_project: rails_apps_composer
193
- rubygems_version: 1.8.9
194
+ rubygems_version: 1.8.11
194
195
  signing_key:
195
196
  specification_version: 3
196
197
  summary: A version of the RailsWizard gem with custom recipes for Rails starter apps.