rails_apps_composer 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.textile +8 -8
- data/recipes/cucumber.rb +1 -1
- data/recipes/devise.rb +1 -1
- data/recipes/draggable.rb +39 -0
- data/recipes/mongoid.rb +2 -2
- data/recipes/omniauth.rb +1 -1
- data/recipes/seed_database.rb +1 -1
- data/version.rb +1 -1
- metadata +20 -19
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
|
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
|
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 @
|
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
|
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
|
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
|
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
|
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
|
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.
|
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
@@ -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.
|
14
|
-
gem 'mongoid', '>= 2.
|
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
data/recipes/seed_database.rb
CHANGED
@@ -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@
|
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
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.
|
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-
|
12
|
+
date: 2011-10-07 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
16
|
-
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: *
|
24
|
+
version_requirements: *2154322300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activesupport
|
27
|
-
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: *
|
35
|
+
version_requirements: *2154321800
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: thor
|
38
|
-
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: *
|
46
|
+
version_requirements: *2154321380
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
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: *
|
57
|
+
version_requirements: *2154320840
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: mg
|
60
|
-
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: *
|
68
|
+
version_requirements: *2154320420
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activesupport
|
71
|
-
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: *
|
79
|
+
version_requirements: *2154319880
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: i18n
|
82
|
-
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: *
|
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:
|
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:
|
191
|
+
hash: 2375044092887418713
|
191
192
|
requirements: []
|
192
193
|
rubyforge_project: rails_apps_composer
|
193
|
-
rubygems_version: 1.8.
|
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.
|