rails_apps_composer 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -72,7 +72,7 @@ $ rails_apps_composer new myapp -r haml
72
72
  For example, to build the "rails3-mongoid-devise":http://github.com/RailsApps/rails3-mongoid-devise/ example application, run the command:
73
73
 
74
74
  <pre>
75
- $ rails_apps_composer new myapp -r haml rspec cucumber guard mongoid action_mailer devise add_user home_page home_page_users seed_database users_page css_setup application_layout html5 navigation cleanup ban_spiders extras git
75
+ $ rails_apps_composer new myapp -r haml rspec cucumber guard mongoid action_mailer devise add_user home_page home_page_users seed_database users_page css_setup html5 navigation cleanup extras git
76
76
  </pre>
77
77
 
78
78
  Replace @myapp@ with the name you want for your application.
@@ -120,7 +120,7 @@ h4. Template for Rails 3 + Devise + RSpec + Cucumber
120
120
  To build a reusable application template for the "rails3-devise-rspec-cucumber":http://github.com/RailsApps/rails3-devise-rspec-cucumber/ example application, run the command:
121
121
 
122
122
  <pre>
123
- $ rake print --silent RECIPES=haml,rspec,cucumber,guard,action_mailer,devise,add_user,home_page,home_page_users,seed_database,users_page,css_setup,application_layout,html5,navigation,cleanup,ban_spiders,extras,git > ~/Desktop/template.txt
123
+ $ rake print --silent RECIPES=haml,rspec,cucumber,guard,action_mailer,devise,add_user,home_page,home_page_users,seed_database,users_page,css_setup,html5,navigation,cleanup,extras,git > ~/Desktop/template.txt
124
124
  </pre>
125
125
 
126
126
  Then generate the application using the @-T@ flag.
@@ -134,7 +134,7 @@ h4. Template for Rails 3 + Mongoid + Devise
134
134
  To build a reusable application template for the "rails3-mongoid-devise":http://github.com/RailsApps/rails3-mongoid-devise/ example application, run the command:
135
135
 
136
136
  <pre>
137
- $ rake print --silent RECIPES=haml,rspec,cucumber,guard,mongoid,action_mailer,devise,add_user,home_page,home_page_users,seed_database,users_page,css_setup,application_layout,html5,navigation,cleanup,ban_spiders,extras,git > ~/Desktop/template.txt
137
+ $ rake print --silent RECIPES=haml,rspec,cucumber,guard,mongoid,action_mailer,devise,add_user,home_page,home_page_users,seed_database,users_page,css_setup,html5,navigation,cleanup,extras,git > ~/Desktop/template.txt
138
138
  </pre>
139
139
 
140
140
  Then generate the application using the @-T -O@ flags.
@@ -148,7 +148,7 @@ h4. Template for Rails 3 + Mongoid + OmniAuth
148
148
  To build a reusable application template for the "rails3-mongoid-omniauth":http://github.com/RailsApps/rails3-mongoid-omniauth/ example application, run the command:
149
149
 
150
150
  <pre>
151
- $ rake print --silent RECIPES=haml,rspec,cucumber,guard,mongoid,seed_database,add_user,omniauth,home_page,home_page_users,css_setup,application_layout,html5,navigation,users_page,omniauth_email,cleanup,ban_spiders,extras,git > ~/Desktop/template.txt
151
+ $ rake print --silent RECIPES=haml,rspec,cucumber,guard,mongoid,seed_database,add_user,omniauth,home_page,home_page_users,css_setup,html5,navigation,users_page,omniauth_email,cleanup,extras,git > ~/Desktop/template.txt
152
152
  </pre>
153
153
 
154
154
  Then generate the application using the @-T -O@ flags.
@@ -162,7 +162,7 @@ h4. Template for Rails 3 + Subdomains
162
162
  To build a reusable application template for the "rails3-subdomains":https://github.com/RailsApps/rails3-subdomains example application, run the command:
163
163
 
164
164
  <pre>
165
- $ rake print --silent RECIPES=haml,rspec,cucumber,guard,mongoid,action_mailer,devise,add_user,home_page,home_page_users,seed_database,users_page,css_setup,application_layout,subdomains,html5,navigation,cleanup,ban_spiders,extras,git > ~/Desktop/template.txt
165
+ $ rake print --silent RECIPES=haml,rspec,cucumber,guard,mongoid,action_mailer,devise,add_user,home_page,home_page_users,seed_database,users_page,css_setup,subdomains,html5,navigation,cleanup,extras,git > ~/Desktop/template.txt
166
166
  </pre>
167
167
 
168
168
  Then generate the application using the @-T -O@ flags.
data/recipes/extras.rb CHANGED
@@ -8,10 +8,21 @@ else
8
8
  recipes.delete('footnotes')
9
9
  end
10
10
 
11
+ if config['ban_spiders']
12
+ say_wizard "BanSpiders recipe running 'after bundler'"
13
+ after_bundler do
14
+ # ban spiders from your site by changing robots.txt
15
+ gsub_file 'public/robots.txt', /# User-Agent/, 'User-Agent'
16
+ gsub_file 'public/robots.txt', /# Disallow/, 'Disallow'
17
+ end
18
+ else
19
+ recipes.delete('ban_spiders')
20
+ end
21
+
11
22
  __END__
12
23
 
13
24
  name: Extras
14
- description: "Various extras including 'rails-footnotes' for development."
25
+ description: "Various extras including 'ban_spiders' and 'rails-footnotes'."
15
26
  author: RailsApps
16
27
 
17
28
  category: other
@@ -21,3 +32,6 @@ config:
21
32
  - footnotes:
22
33
  type: boolean
23
34
  prompt: Would you like to use 'rails-footnotes' during development?
35
+ - ban_spiders:
36
+ type: boolean
37
+ prompt: Would you like to set a robots.txt file to ban spiders?
data/recipes/rspec.rb CHANGED
@@ -25,6 +25,11 @@ if config['rspec']
25
25
  after_bundler do
26
26
  say_wizard "RSpec recipe running 'after bundler'"
27
27
  generate 'rspec:install'
28
+
29
+ if config['machinist']
30
+ say_wizard "Generating blueprints file for Machinist"
31
+ generate 'machinist:install'
32
+ end
28
33
 
29
34
  say_wizard "Removing test folder (not needed for RSpec)"
30
35
  run 'rm -rf test/'
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
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.1.0
4
+ version: 1.1.1
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: 2012-01-29 00:00:00.000000000 Z
12
+ date: 2012-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &2157956640 !ruby/object:Gem::Requirement
16
+ requirement: &2161432360 !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: *2157956640
24
+ version_requirements: *2161432360
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
27
- requirement: &2157956140 !ruby/object:Gem::Requirement
27
+ requirement: &2161431840 !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: *2157956140
35
+ version_requirements: *2161431840
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: thor
38
- requirement: &2157955720 !ruby/object:Gem::Requirement
38
+ requirement: &2161431380 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,21 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2157955720
46
+ version_requirements: *2161431380
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: &2161430780 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *2161430780
47
58
  - !ruby/object:Gem::Dependency
48
59
  name: rspec
49
- requirement: &2157955180 !ruby/object:Gem::Requirement
60
+ requirement: &2161430280 !ruby/object:Gem::Requirement
50
61
  none: false
51
62
  requirements:
52
63
  - - ! '>='
@@ -54,10 +65,10 @@ dependencies:
54
65
  version: 2.5.0
55
66
  type: :development
56
67
  prerelease: false
57
- version_requirements: *2157955180
68
+ version_requirements: *2161430280
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: mg
60
- requirement: &2157954760 !ruby/object:Gem::Requirement
71
+ requirement: &2161429760 !ruby/object:Gem::Requirement
61
72
  none: false
62
73
  requirements:
63
74
  - - ! '>='
@@ -65,10 +76,10 @@ dependencies:
65
76
  version: '0'
66
77
  type: :development
67
78
  prerelease: false
68
- version_requirements: *2157954760
79
+ version_requirements: *2161429760
69
80
  - !ruby/object:Gem::Dependency
70
81
  name: activesupport
71
- requirement: &2157953300 !ruby/object:Gem::Requirement
82
+ requirement: &2161429220 !ruby/object:Gem::Requirement
72
83
  none: false
73
84
  requirements:
74
85
  - - ! '>='
@@ -76,10 +87,10 @@ dependencies:
76
87
  version: 3.0.0
77
88
  type: :development
78
89
  prerelease: false
79
- version_requirements: *2157953300
90
+ version_requirements: *2161429220
80
91
  - !ruby/object:Gem::Dependency
81
92
  name: i18n
82
- requirement: &2157952760 !ruby/object:Gem::Requirement
93
+ requirement: &2161428700 !ruby/object:Gem::Requirement
83
94
  none: false
84
95
  requirements:
85
96
  - - ! '>='
@@ -87,7 +98,7 @@ dependencies:
87
98
  version: '0'
88
99
  type: :development
89
100
  prerelease: false
90
- version_requirements: *2157952760
101
+ version_requirements: *2161428700
91
102
  description: A gem with recipes to create Rails application templates you can use
92
103
  to generate Rails starter apps.
93
104
  email:
@@ -107,9 +118,7 @@ files:
107
118
  - recipes/activerecord.rb
108
119
  - recipes/add_user.rb
109
120
  - recipes/add_user_name.rb
110
- - recipes/application_layout.rb
111
121
  - recipes/backbone.rb
112
- - recipes/ban_spiders.rb
113
122
  - recipes/capybara.rb
114
123
  - recipes/cleanup.rb
115
124
  - recipes/compass.rb
@@ -168,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
168
177
  version: '0'
169
178
  segments:
170
179
  - 0
171
- hash: 1382507455857786589
180
+ hash: 442718778909913551
172
181
  required_rubygems_version: !ruby/object:Gem::Requirement
173
182
  none: false
174
183
  requirements:
@@ -177,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
186
  version: '0'
178
187
  segments:
179
188
  - 0
180
- hash: 1382507455857786589
189
+ hash: 442718778909913551
181
190
  requirements: []
182
191
  rubyforge_project: rails_apps_composer
183
192
  rubygems_version: 1.8.15
@@ -1,48 +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/application_layout.rb
3
-
4
- after_bundler do
5
-
6
- say_wizard "ApplicationLayout recipe running 'after bundler'"
7
-
8
- # Set up the default application layout
9
- if recipes.include? 'haml'
10
- remove_file 'app/views/layouts/application.html.erb'
11
- remove_file 'app/views/layouts/application.html.haml'
12
- # There is Haml code in this script. Changing the indentation is perilous between HAMLs.
13
- create_file 'app/views/layouts/application.html.haml' do <<-HAML
14
- !!! 5
15
- %html
16
- %head
17
- %title #{app_name}
18
- = stylesheet_link_tag :application
19
- = javascript_include_tag :application
20
- = csrf_meta_tags
21
- %body
22
- - flash.each do |name, msg|
23
- = content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String)
24
- = yield
25
- HAML
26
- end
27
- else
28
- unless recipes.include? 'html5'
29
- inject_into_file 'app/views/layouts/application.html.erb', :after => "<body>\n" do
30
- <<-ERB
31
- <%- flash.each do |name, msg| -%>
32
- <%= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String) %>
33
- <%- end -%>
34
- ERB
35
- end
36
- end
37
- end
38
-
39
- end
40
-
41
- __END__
42
-
43
- name: ApplicationLayout
44
- description: "Add a default application layout with flash messages."
45
- author: RailsApps
46
-
47
- category: other
48
- tags: [utilities, configuration]
@@ -1,27 +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/ban_spiders.rb
3
-
4
- if config['ban_spiders']
5
- say_wizard "BanSpiders recipe running 'after bundler'"
6
- after_bundler do
7
- # ban spiders from your site by changing robots.txt
8
- gsub_file 'public/robots.txt', /# User-Agent/, 'User-Agent'
9
- gsub_file 'public/robots.txt', /# Disallow/, 'Disallow'
10
- end
11
- else
12
- recipes.delete('ban_spiders')
13
- end
14
-
15
- __END__
16
-
17
- name: BanSpiders
18
- description: "Ban spiders from the site by changing robots.txt."
19
- author: RailsApps
20
-
21
- category: other
22
- tags: [utilities, configuration]
23
-
24
- config:
25
- - ban_spiders:
26
- type: boolean
27
- prompt: Would you like to set a robots.txt file to ban spiders?