rails_apps_composer 1.0.26 → 1.1.0
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 +13 -17
- data/recipes/activerecord.rb +0 -5
- data/recipes/application_layout.rb +2 -7
- data/recipes/backbone.rb +3 -11
- data/recipes/cleanup.rb +2 -11
- data/recipes/compass.rb +6 -15
- data/recipes/css_setup.rb +7 -8
- data/recipes/cucumber.rb +4 -13
- data/recipes/devise.rb +1 -8
- data/recipes/guard.rb +18 -10
- data/recipes/haml.rb +2 -9
- data/recipes/heroku.rb +6 -2
- data/recipes/html5.rb +47 -53
- data/recipes/mongoid.rb +4 -11
- data/recipes/mongolab.rb +59 -0
- data/recipes/omniauth.rb +12 -20
- data/recipes/rspec.rb +18 -30
- data/recipes/sass.rb +1 -3
- data/recipes/static_page.rb +43 -0
- data/recipes/subdomains.rb +38 -44
- data/templates/layout.erb +9 -31
- data/version.rb +1 -1
- metadata +24 -36
- data/recipes/draggable.rb +0 -39
- data/recipes/env_yaml.rb +0 -54
- data/recipes/jammit.rb +0 -43
- data/recipes/jquery.rb +0 -70
- data/recipes/mongo_mapper.rb +0 -18
- data/recipes/mootools.rb +0 -23
- data/recipes/pow.rb +0 -12
- data/recipes/prototype.rb +0 -11
- data/recipes/redis.rb +0 -17
- data/recipes/redistogo.rb +0 -40
- data/recipes/rightjs.rb +0 -17
- data/recipes/sequel.rb +0 -13
- data/recipes/slim.rb +0 -11
- data/recipes/test_unit.rb +0 -11
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.1.0
|
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:
|
12
|
+
date: 2012-01-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
16
|
-
requirement: &
|
16
|
+
requirement: &2157956640 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,21 +21,21 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2157956640
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activesupport
|
27
|
-
requirement: &
|
27
|
+
requirement: &2157956140 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - ! '>='
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 3.0.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2157956140
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: thor
|
38
|
-
requirement: &
|
38
|
+
requirement: &2157955720 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,21 +43,21 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2157955720
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &2157955180 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 2.5.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2157955180
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: mg
|
60
|
-
requirement: &
|
60
|
+
requirement: &2157954760 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,21 +65,21 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2157954760
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activesupport
|
71
|
-
requirement: &
|
71
|
+
requirement: &2157953300 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ! '>='
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 3.0.0
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2157953300
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: i18n
|
82
|
-
requirement: &
|
82
|
+
requirement: &2157952760 !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: *2157952760
|
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,8 +116,6 @@ files:
|
|
116
116
|
- recipes/css_setup.rb
|
117
117
|
- recipes/cucumber.rb
|
118
118
|
- recipes/devise.rb
|
119
|
-
- recipes/draggable.rb
|
120
|
-
- recipes/env_yaml.rb
|
121
119
|
- recipes/extras.rb
|
122
120
|
- recipes/git.rb
|
123
121
|
- recipes/guard.rb
|
@@ -127,30 +125,20 @@ files:
|
|
127
125
|
- recipes/home_page_users.rb
|
128
126
|
- recipes/hoptoad.rb
|
129
127
|
- recipes/html5.rb
|
130
|
-
- recipes/jammit.rb
|
131
|
-
- recipes/jquery.rb
|
132
128
|
- recipes/less.rb
|
133
|
-
- recipes/mongo_mapper.rb
|
134
129
|
- recipes/mongohq.rb
|
135
130
|
- recipes/mongoid.rb
|
136
|
-
- recipes/
|
131
|
+
- recipes/mongolab.rb
|
137
132
|
- recipes/navigation.rb
|
138
133
|
- recipes/omniauth.rb
|
139
134
|
- recipes/omniauth_email.rb
|
140
|
-
- recipes/pow.rb
|
141
|
-
- recipes/prototype.rb
|
142
135
|
- recipes/rails_admin.rb
|
143
|
-
- recipes/redis.rb
|
144
|
-
- recipes/redistogo.rb
|
145
|
-
- recipes/rightjs.rb
|
146
136
|
- recipes/rspec.rb
|
147
137
|
- recipes/sass.rb
|
148
138
|
- recipes/seed_database.rb
|
149
|
-
- recipes/sequel.rb
|
150
139
|
- recipes/settingslogic.rb
|
151
|
-
- recipes/
|
140
|
+
- recipes/static_page.rb
|
152
141
|
- recipes/subdomains.rb
|
153
|
-
- recipes/test_unit.rb
|
154
142
|
- recipes/users_page.rb
|
155
143
|
- README.textile
|
156
144
|
- version.rb
|
@@ -180,7 +168,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
168
|
version: '0'
|
181
169
|
segments:
|
182
170
|
- 0
|
183
|
-
hash:
|
171
|
+
hash: 1382507455857786589
|
184
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
173
|
none: false
|
186
174
|
requirements:
|
@@ -189,10 +177,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
189
177
|
version: '0'
|
190
178
|
segments:
|
191
179
|
- 0
|
192
|
-
hash:
|
180
|
+
hash: 1382507455857786589
|
193
181
|
requirements: []
|
194
182
|
rubyforge_project: rails_apps_composer
|
195
|
-
rubygems_version: 1.8.
|
183
|
+
rubygems_version: 1.8.15
|
196
184
|
signing_key:
|
197
185
|
specification_version: 3
|
198
186
|
summary: A version of the RailsWizard gem with custom recipes for Rails starter apps.
|
data/recipes/draggable.rb
DELETED
@@ -1,39 +0,0 @@
|
|
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/env_yaml.rb
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
say_wizard "Generating config/env.yaml..."
|
4
|
-
|
5
|
-
append_file "config/application.rb", <<-RUBY
|
6
|
-
|
7
|
-
require 'env_yaml'
|
8
|
-
RUBY
|
9
|
-
|
10
|
-
create_file "lib/env_yaml.rb", <<-RUBY
|
11
|
-
require 'yaml'
|
12
|
-
begin
|
13
|
-
env_yaml = YAML.load_file(File.dirname(__FILE__) + '/../config/env.yml')
|
14
|
-
if env_hash = env_yaml[ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development']
|
15
|
-
puts env_hash.inspect
|
16
|
-
env_hash.each_pair do |k,v|
|
17
|
-
ENV[k] = v.to_s
|
18
|
-
end
|
19
|
-
end
|
20
|
-
rescue StandardError => e
|
21
|
-
end
|
22
|
-
|
23
|
-
RUBY
|
24
|
-
|
25
|
-
create_file "config/env.yml", <<-YAML
|
26
|
-
defaults:
|
27
|
-
ENV_YAML: true
|
28
|
-
|
29
|
-
development:
|
30
|
-
<<: *defaults
|
31
|
-
|
32
|
-
test:
|
33
|
-
<<: *defaults
|
34
|
-
|
35
|
-
production:
|
36
|
-
<<: *defaults
|
37
|
-
YAML
|
38
|
-
|
39
|
-
def env(k,v,rack_env='development')
|
40
|
-
inject_into_file "config/env.yml", :after => "#{rack_env}:\n <<: *defaults" do
|
41
|
-
<<-YAML
|
42
|
-
#{k}: #{v.inspect}
|
43
|
-
YAML
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
__END__
|
48
|
-
|
49
|
-
name: EnvYAML
|
50
|
-
description: "Allows you to set environment variables in a YAML file at config/env.yaml"
|
51
|
-
author: mbleigh
|
52
|
-
|
53
|
-
category: other
|
54
|
-
tags: [utilities, configuration]
|
data/recipes/jammit.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
gem 'jammit'
|
2
|
-
|
3
|
-
after_bundler do
|
4
|
-
if config['pre_commit']
|
5
|
-
say_wizard "Adding git pre-commit hook..."
|
6
|
-
create_file ".git/hooks/pre-commit", <<-BASH
|
7
|
-
#!/bin/sh
|
8
|
-
|
9
|
-
echo "Packaging assets with Jammit..."
|
10
|
-
jammit
|
11
|
-
git add public/assets
|
12
|
-
BASH
|
13
|
-
run "chmod +x .git/hooks/pre-commit"
|
14
|
-
end
|
15
|
-
|
16
|
-
create_file "config/assets.yml", <<-YAML
|
17
|
-
javascripts:
|
18
|
-
app:
|
19
|
-
- public/javascripts/*.js
|
20
|
-
stylesheets:
|
21
|
-
app:
|
22
|
-
- public/stylesheets/*.css
|
23
|
-
YAML
|
24
|
-
|
25
|
-
gsub_file "app/views/layouts/application.html.erb", "<%= javascript_include_tag :defaults %>", "<%= include_javascripts :app %>"
|
26
|
-
gsub_file "app/views/layouts/application.html.erb", "<%= stylesheet_link_tag :all %>", "<%= include_stylesheets :app %>"
|
27
|
-
end
|
28
|
-
|
29
|
-
__END__
|
30
|
-
|
31
|
-
name: Jammit
|
32
|
-
description: "Use Jammit to package your application's assets."
|
33
|
-
author: mbleigh
|
34
|
-
|
35
|
-
exclusive: asset_packaging
|
36
|
-
category: assets
|
37
|
-
tags: [packaging]
|
38
|
-
|
39
|
-
config:
|
40
|
-
- pre_commit:
|
41
|
-
type: boolean
|
42
|
-
prompt: "Create a git pre-commit hook to generate assets for Heroku?"
|
43
|
-
if_recipe: heroku
|
data/recipes/jquery.rb
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
# Application template recipe for the rails_apps_composer. Check for a newer version here:
|
2
|
-
# https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/jquery.rb
|
3
|
-
|
4
|
-
if config['jquery']
|
5
|
-
if recipes.include? 'rails 3.0'
|
6
|
-
say_wizard "Replacing Prototype framework with jQuery for Rails 3.0."
|
7
|
-
after_bundler do
|
8
|
-
say_wizard "jQuery recipe running 'after bundler'"
|
9
|
-
# remove the Prototype adapter file
|
10
|
-
remove_file 'public/javascripts/rails.js'
|
11
|
-
# remove the Prototype files (if they exist)
|
12
|
-
remove_file 'public/javascripts/controls.js'
|
13
|
-
remove_file 'public/javascripts/dragdrop.js'
|
14
|
-
remove_file 'public/javascripts/effects.js'
|
15
|
-
remove_file 'public/javascripts/prototype.js'
|
16
|
-
# add jQuery files
|
17
|
-
inside "public/javascripts" do
|
18
|
-
get "https://raw.github.com/rails/jquery-ujs/master/src/rails.js", "rails.js"
|
19
|
-
get "http://code.jquery.com/jquery-1.6.min.js", "jquery.js"
|
20
|
-
if config['ui']
|
21
|
-
get "https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js", "jqueryui.js"
|
22
|
-
end
|
23
|
-
end
|
24
|
-
# adjust the Javascript defaults
|
25
|
-
# first uncomment "config.action_view.javascript_expansions"
|
26
|
-
gsub_file "config/application.rb", /# config.action_view.javascript_expansions/, "config.action_view.javascript_expansions"
|
27
|
-
# then add "jquery rails" if necessary
|
28
|
-
gsub_file "config/application.rb", /= \%w\(\)/, "= %w(jquery rails)"
|
29
|
-
# finally change to "jquery jqueryui rails" if necessary
|
30
|
-
if config['ui']
|
31
|
-
gsub_file "config/application.rb", /jquery rails/, "jquery jqueryui rails"
|
32
|
-
end
|
33
|
-
end
|
34
|
-
elsif recipes.include? 'rails 3.1'
|
35
|
-
if config['ui']
|
36
|
-
inside "app/assets/javascripts" do
|
37
|
-
get "https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js", "jqueryui.js"
|
38
|
-
end
|
39
|
-
else
|
40
|
-
say_wizard "jQuery installed by default in Rails 3.1."
|
41
|
-
end
|
42
|
-
else
|
43
|
-
say_wizard "Don't know what to do for Rails version #{Rails::VERSION::STRING}. jQuery recipe skipped."
|
44
|
-
end
|
45
|
-
else
|
46
|
-
if config['ui']
|
47
|
-
say_wizard "You said you didn't want jQuery. Can't install jQuery UI without jQuery."
|
48
|
-
end
|
49
|
-
recipes.delete('jquery')
|
50
|
-
end
|
51
|
-
|
52
|
-
__END__
|
53
|
-
|
54
|
-
name: jQuery
|
55
|
-
description: "Install jQuery (with jQuery UI option) for Rails 3.0 or 3.1."
|
56
|
-
author: RailsApps
|
57
|
-
|
58
|
-
exclusive: javascript_framework
|
59
|
-
category: assets
|
60
|
-
tags: [javascript, framework]
|
61
|
-
|
62
|
-
args: ["-J"]
|
63
|
-
|
64
|
-
config:
|
65
|
-
- jquery:
|
66
|
-
type: boolean
|
67
|
-
prompt: Would you like to use jQuery?
|
68
|
-
- ui:
|
69
|
-
type: boolean
|
70
|
-
prompt: Would you like to use jQuery UI?
|
data/recipes/mongo_mapper.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
gem 'bson_ext'
|
2
|
-
gem 'mongo_mapper', :git => 'git://github.com/jnunemaker/mongomapper.git', :branch => 'rails3'
|
3
|
-
|
4
|
-
after_bundler do
|
5
|
-
generate 'mongo_mapper:config'
|
6
|
-
end
|
7
|
-
|
8
|
-
__END__
|
9
|
-
|
10
|
-
name: MongoMapper
|
11
|
-
description: "Use MongoDB with MongoMapper as your primary datastore."
|
12
|
-
author: mbleigh
|
13
|
-
|
14
|
-
exclusive: orm
|
15
|
-
category: persistence
|
16
|
-
tags: [mongodb, orm]
|
17
|
-
|
18
|
-
args: ["-O"]
|
data/recipes/mootools.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
inside "public/javascripts" do
|
2
|
-
get "https://github.com/kevinvaldek/mootools-ujs/raw/master/Source/rails.js", "rails.js"
|
3
|
-
get "http://ajax.googleapis.com/ajax/libs/mootools/1.3.1/mootools-yui-compressed.js", "mootools.min.js"
|
4
|
-
end
|
5
|
-
|
6
|
-
gsub_file "config/application.rb", /# JavaScript.*\n/, ""
|
7
|
-
gsub_file "config/application.rb", /# config\.action_view\.javascript.*\n/, ""
|
8
|
-
|
9
|
-
application do
|
10
|
-
"\n config.action_view.javascript_expansions[:defaults] = %w(mootools.min rails)\n"
|
11
|
-
end
|
12
|
-
|
13
|
-
__END__
|
14
|
-
|
15
|
-
name: MooTools
|
16
|
-
description: "Adds MooTools and MooTools-compatible UJS helpers."
|
17
|
-
author: mbleigh
|
18
|
-
|
19
|
-
exclusive: javascript_framework
|
20
|
-
category: assets
|
21
|
-
tags: [javascript, framework]
|
22
|
-
|
23
|
-
args: ["-J"]
|
data/recipes/pow.rb
DELETED