rails_apps_composer 1.0.16 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/recipes/activerecord.rb +5 -0
- data/recipes/backbone.rb +26 -0
- data/recipes/compass.rb +42 -0
- data/recipes/cucumber.rb +1 -1
- data/recipes/devise_navigation.rb +2 -2
- data/recipes/omniauth.rb +2 -1
- data/recipes/rspec.rb +1 -1
- data/version.rb +1 -1
- metadata +20 -18
data/recipes/activerecord.rb
CHANGED
@@ -3,6 +3,11 @@ if config['database']
|
|
3
3
|
old_gem = gem_for_database
|
4
4
|
@options = @options.dup.merge(:database => config['database'])
|
5
5
|
gsub_file 'Gemfile', "gem '#{old_gem}'", "gem '#{gem_for_database}'"
|
6
|
+
if config['database'] == 'mysql'
|
7
|
+
if recipes.include? 'rails 3.0'
|
8
|
+
gsub_file 'Gemfile', "gem 'mysql2'", "gem 'mysql2', '<= 0.3.0'"
|
9
|
+
end
|
10
|
+
end
|
6
11
|
template "config/databases/#{@options[:database]}.yml", "config/database.yml.new"
|
7
12
|
run 'mv config/database.yml.new config/database.yml'
|
8
13
|
end
|
data/recipes/backbone.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
if config['backbone']
|
2
|
+
# rails-backbone is preferred, but only support rails 3.1
|
3
|
+
if recipes.include? 'rails 3.1'
|
4
|
+
gem 'rails-backbone', :version => '~> 0.5.3'
|
5
|
+
after_bundler do
|
6
|
+
generate 'backbone:install'
|
7
|
+
end
|
8
|
+
else
|
9
|
+
gem 'backbone-rails', :version => '~> 0.5.2'
|
10
|
+
after_bundler do
|
11
|
+
generate 'backbone:install'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
else
|
15
|
+
recipes.delete('backbone')
|
16
|
+
end
|
17
|
+
|
18
|
+
__END__
|
19
|
+
|
20
|
+
name: Backbone.js
|
21
|
+
description: "Use the Backbone.js MVC framework"
|
22
|
+
author: ashley_woodard
|
23
|
+
|
24
|
+
exclusive: javascript_framework
|
25
|
+
category: assets
|
26
|
+
tags: [javascript, framework]
|
data/recipes/compass.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
if config['compass']
|
2
|
+
if recipes.include? 'rails 3.1'
|
3
|
+
gem 'compass', :version => '~> 0.12.alpha.0'
|
4
|
+
|
5
|
+
after_bundler do
|
6
|
+
remove_file 'app/assets/stylesheets/application.css'
|
7
|
+
create_file 'app/assets/stylesheets/application.css.sass' do <<-SASS
|
8
|
+
//= require_self
|
9
|
+
//= require_tree .
|
10
|
+
|
11
|
+
@import compass
|
12
|
+
@import _blueprint
|
13
|
+
SASS
|
14
|
+
end
|
15
|
+
end
|
16
|
+
else
|
17
|
+
gem 'compass', :version => '~> 0.11'
|
18
|
+
|
19
|
+
after_bundler do
|
20
|
+
run 'compass init rails'
|
21
|
+
end
|
22
|
+
end
|
23
|
+
else
|
24
|
+
receipes.delete('compass')
|
25
|
+
end
|
26
|
+
|
27
|
+
__END__
|
28
|
+
|
29
|
+
name: Compass
|
30
|
+
description: "Utilize Compass framework for SASS."
|
31
|
+
author: ashley_woodard
|
32
|
+
|
33
|
+
requires: [sass]
|
34
|
+
run_after: [sass]
|
35
|
+
exclusive: css_framework
|
36
|
+
category: assets
|
37
|
+
tags: [css]
|
38
|
+
|
39
|
+
config:
|
40
|
+
- compass:
|
41
|
+
type: boolean
|
42
|
+
prompt: Would you like to use Compass for stylesheets?
|
data/recipes/cucumber.rb
CHANGED
@@ -11,7 +11,7 @@ if config['cucumber']
|
|
11
11
|
else
|
12
12
|
# for Rails 3.1+, use optimistic versioning for gems
|
13
13
|
gem 'cucumber-rails', '>= 1.0.2', :group => :test
|
14
|
-
gem 'capybara', '>= 1.0
|
14
|
+
gem 'capybara', '>= 1.1.0', :group => :test
|
15
15
|
gem 'database_cleaner', '>= 0.6.7', :group => :test
|
16
16
|
gem 'launchy', '>= 2.0.5', :group => :test
|
17
17
|
end
|
@@ -12,7 +12,7 @@ after_bundler do
|
|
12
12
|
create_file "app/views/devise/menu/_login_items.html.haml" do <<-'HAML'
|
13
13
|
- if user_signed_in?
|
14
14
|
%li
|
15
|
-
= link_to('Logout', destroy_user_session_path)
|
15
|
+
= link_to('Logout', destroy_user_session_path, :method=>'delete')
|
16
16
|
- else
|
17
17
|
%li
|
18
18
|
= link_to('Login', new_user_session_path)
|
@@ -22,7 +22,7 @@ HAML
|
|
22
22
|
create_file "app/views/devise/menu/_login_items.html.erb" do <<-ERB
|
23
23
|
<% if user_signed_in? %>
|
24
24
|
<li>
|
25
|
-
<%= link_to('Logout', destroy_user_session_path) %>
|
25
|
+
<%= link_to('Logout', destroy_user_session_path, :method=>'delete') %>
|
26
26
|
</li>
|
27
27
|
<% else %>
|
28
28
|
<li>
|
data/recipes/omniauth.rb
CHANGED
@@ -7,7 +7,8 @@ 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
|
10
|
+
# avoid gem compatibility issues for Cucumber and Launchy by using OmniAuth from GitHub
|
11
|
+
gem 'omniauth', '>= 0.2.6', :git => "git://github.com/intridea/omniauth.git"
|
11
12
|
end
|
12
13
|
else
|
13
14
|
recipes.delete('omniauth')
|
data/recipes/rspec.rb
CHANGED
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.17
|
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-09-02 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153644120 !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: *2153644120
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: activesupport
|
27
|
-
requirement: &
|
27
|
+
requirement: &2153643220 !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: *2153643220
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: thor
|
38
|
-
requirement: &
|
38
|
+
requirement: &2153642300 !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: *2153642300
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rspec
|
49
|
-
requirement: &
|
49
|
+
requirement: &2153640700 !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: *2153640700
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: mg
|
60
|
-
requirement: &
|
60
|
+
requirement: &2153639480 !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: *2153639480
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activesupport
|
71
|
-
requirement: &
|
71
|
+
requirement: &2153637980 !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: *2153637980
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: i18n
|
82
|
-
requirement: &
|
82
|
+
requirement: &2153637280 !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: *2153637280
|
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:
|
@@ -108,9 +108,11 @@ files:
|
|
108
108
|
- recipes/add_user.rb
|
109
109
|
- recipes/add_user_name.rb
|
110
110
|
- recipes/application_layout.rb
|
111
|
+
- recipes/backbone.rb
|
111
112
|
- recipes/ban_spiders.rb
|
112
113
|
- recipes/capybara.rb
|
113
114
|
- recipes/cleanup.rb
|
115
|
+
- recipes/compass.rb
|
114
116
|
- recipes/css_setup.rb
|
115
117
|
- recipes/cucumber.rb
|
116
118
|
- recipes/devise.rb
|
@@ -176,7 +178,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
178
|
version: '0'
|
177
179
|
segments:
|
178
180
|
- 0
|
179
|
-
hash:
|
181
|
+
hash: -530635227312937095
|
180
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
183
|
none: false
|
182
184
|
requirements:
|
@@ -185,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
187
|
version: '0'
|
186
188
|
segments:
|
187
189
|
- 0
|
188
|
-
hash:
|
190
|
+
hash: -530635227312937095
|
189
191
|
requirements: []
|
190
192
|
rubyforge_project: rails_apps_composer
|
191
193
|
rubygems_version: 1.8.9
|