rails_apps_composer 1.4.6 → 1.4.7

Sign up to get free protection for your applications and to get access to all the features.
File without changes
@@ -1,4 +1,9 @@
1
- gem 'activeadmin'
1
+ if recipes.include? 'mongoid'
2
+ gem 'formtastic', "~> 2.1.1"
3
+ gem 'activeadmin_mongoid'
4
+ else
5
+ gem 'activeadmin'
6
+ end
2
7
  gem "meta_search", '>= 1.1.0.pre'
3
8
  # sass-rails is also required but is by default in rails
4
9
 
data/recipes/backbone.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  if config['backbone']
2
- gem 'rails-backbone', :version => '>= 0.7.1'
2
+ gem 'rails-backbone', :version => '>= 0.7.2'
3
3
  after_bundler do
4
4
  generate 'backbone:install'
5
5
  end
data/recipes/capybara.rb CHANGED
@@ -1,4 +1,4 @@
1
- gem 'capybara', :group => [:development, :test] unless config['cucumber']
1
+ gem 'capybara', :group => [:development, :test] unless recipes.include? 'cucumber'
2
2
 
3
3
  after_bundler do
4
4
  create_file "spec/support/capybara.rb", <<-RUBY
@@ -0,0 +1,36 @@
1
+ if config['cloudfiles']
2
+ gem 'cloudfiles'
3
+ else
4
+ recipes.delete('cloudfiles')
5
+ end
6
+
7
+ if config['cloudfiles']
8
+ after_bundler do
9
+ # Code here is run after Bundler installs all the gems for the project.
10
+ # You can run generators and rake tasks in this section.
11
+ end
12
+ end
13
+
14
+ if config['cloudfiles']
15
+ after_everything do
16
+ # These blocks are run after the bundler blocks and are reserved for
17
+ # special cases like committing the files to a git repository (something
18
+ # that depends on everything having been generated).
19
+ end
20
+ end
21
+ # A recipe is two parts: the Ruby code and YAML back-matter that comes
22
+ # after a blank line with the __END__ keyword.
23
+
24
+ __END__
25
+
26
+ name: Cloudfiles
27
+ description: "Use Cloudfiles to store files."
28
+ author: merlinvn
29
+
30
+ category: persistence
31
+ tags: [storage]
32
+
33
+ config:
34
+ - cloudfiles:
35
+ type: boolean
36
+ prompt: "Would you like to use Cloudfiles to store your files?"
data/recipes/devise.rb CHANGED
@@ -56,7 +56,7 @@ if recipes.include? 'devise'
56
56
  if config['authorization']
57
57
  inject_into_file 'app/controllers/application_controller.rb', :before => 'end' do <<-RUBY
58
58
  rescue_from CanCan::AccessDenied do |exception|
59
- redirect_to root_path, :error => exception.message
59
+ redirect_to root_path, :alert => exception.message
60
60
  end
61
61
  RUBY
62
62
  end
data/recipes/extras.rb CHANGED
@@ -20,7 +20,11 @@ end
20
20
 
21
21
  if config['paginate']
22
22
  say_wizard "Adding 'will_paginate'"
23
- gem 'will_paginate', '>= 3.0.3'
23
+ if recipes.include? 'mongoid'
24
+ gem 'will_paginate_mongoid'
25
+ else
26
+ gem 'will_paginate', '>= 3.0.3'
27
+ end
24
28
  recipes << 'paginate'
25
29
  end
26
30
 
data/recipes/home_page.rb CHANGED
@@ -21,6 +21,8 @@ after_bundler do
21
21
  %h3 Home
22
22
  HAML
23
23
  end
24
+ elsif recipes.include? 'slim'
25
+ # skip
24
26
  else
25
27
  remove_file 'app/views/home/index.html.erb'
26
28
  create_file 'app/views/home/index.html.erb' do
data/recipes/html5.rb CHANGED
@@ -32,9 +32,11 @@ after_bundler do
32
32
  if recipes.include? 'haml'
33
33
  # Haml version of a simple application layout
34
34
  get 'https://raw.github.com/RailsApps/rails3-application-templates/master/files/simple/views/layouts/application.html.haml', 'app/views/layouts/application.html.haml'
35
+ get 'https://raw.github.com/RailsApps/rails3-application-templates/master/files/simple/views/layouts/_messages.html.haml', 'app/views/layouts/_messages.html.haml'
35
36
  else
36
37
  # ERB version of a simple application layout
37
38
  get 'https://raw.github.com/RailsApps/rails3-application-templates/master/files/simple/views/layouts/application.html.erb', 'app/views/layouts/application.html.erb'
39
+ get 'https://raw.github.com/RailsApps/rails3-application-templates/master/files/simple/views/layouts/_messages.html.erb', 'app/views/layouts/_messages.html.erb'
38
40
  end
39
41
  # simple css styles
40
42
  get 'https://raw.github.com/RailsApps/rails3-application-templates/master/files/simple/assets/stylesheets/application.css.scss', 'app/assets/stylesheets/application.css.scss'
@@ -42,9 +44,11 @@ after_bundler do
42
44
  if recipes.include? 'haml'
43
45
  # Haml version of a complex application layout using Twitter Bootstrap
44
46
  get 'https://raw.github.com/RailsApps/rails3-application-templates/master/files/twitter-bootstrap/views/layouts/application.html.haml', 'app/views/layouts/application.html.haml'
47
+ get 'https://raw.github.com/RailsApps/rails3-application-templates/master/files/twitter-bootstrap/views/layouts/_messages.html.haml', 'app/views/layouts/_messages.html.haml'
45
48
  else
46
49
  # ERB version of a complex application layout using Twitter Bootstrap
47
50
  get 'https://raw.github.com/RailsApps/rails3-application-templates/master/files/twitter-bootstrap/views/layouts/application.html.erb', 'app/views/layouts/application.html.erb'
51
+ get 'https://raw.github.com/RailsApps/rails3-application-templates/master/files/twitter-bootstrap/views/layouts/_messages.html.erb', 'app/views/layouts/_messages.html.erb'
48
52
  end
49
53
  # complex css styles using Twitter Bootstrap
50
54
  get 'https://raw.github.com/RailsApps/rails3-application-templates/master/files/twitter-bootstrap/assets/stylesheets/application.css.scss', 'app/assets/stylesheets/application.css.scss'
data/recipes/mongoid.rb CHANGED
@@ -5,7 +5,7 @@ if config['mongoid']
5
5
  say_wizard "REMINDER: When creating a Rails app using Mongoid..."
6
6
  say_wizard "you should add the '-O' flag to 'rails new'"
7
7
  gem 'bson_ext', '>= 1.6.2'
8
- gem 'mongoid', '>= 2.4.8'
8
+ gem 'mongoid', '>= 2.4.9'
9
9
  else
10
10
  recipes.delete('mongoid')
11
11
  end
data/recipes/omniauth.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  # https://github.com/RailsApps/rails_apps_composer/blob/master/recipes/omniauth.rb
3
3
 
4
4
  if config['omniauth']
5
- gem 'omniauth', '>= 1.0.3'
5
+ gem 'omniauth', '>= 1.1.0'
6
6
  # for available gems, see https://github.com/intridea/omniauth/wiki/List-of-Strategies
7
7
  case config['provider']
8
8
  when 'twitter'
@@ -15,6 +15,8 @@ if config['omniauth']
15
15
  gem 'omniauth-linkedin'
16
16
  when 'google'
17
17
  gem 'omniauth-google'
18
+ when 'tumblr'
19
+ gem 'omniauth-tumblr'
18
20
  end
19
21
  else
20
22
  recipes.delete('omniauth')
@@ -156,4 +158,4 @@ config:
156
158
  - provider:
157
159
  type: multiple_choice
158
160
  prompt: "Which service provider will you use?"
159
- choices: [["Twitter", twitter], ["Facebook", facebook], ["GitHub", github], ["LinkedIn", linkedin], ["Google", google]]
161
+ choices: [["Twitter", twitter], ["Facebook", facebook], ["GitHub", github], ["LinkedIn", linkedin], ["Google", google], ["Tumblr", tumblr]]
@@ -0,0 +1,79 @@
1
+ if config['paperclip']
2
+ if recipes.include? 'mongoid'
3
+ gem 'mongoid-paperclip'
4
+ else
5
+ gem 'paperclip'
6
+ end
7
+ else
8
+ recipes.delete('paperclip')
9
+ end
10
+
11
+ if config['paperclip']
12
+ after_bundler do
13
+ # Code here is run after Bundler installs all the gems for the project.
14
+ # You can run generators and rake tasks in this section.
15
+ if recipes.include? 'mongoid'
16
+ create_file 'config/initializers/mongoid-paperclip.rb' do
17
+ <<-RUBY
18
+ require 'mongoid_paperclip'
19
+ RUBY
20
+ end
21
+ end
22
+
23
+ if recipes.include? 'cloudfiles'
24
+ # Add Storage module file for paperclip in lib
25
+ get 'https://raw.github.com/gist/2476222/986bf7a49556ac549b75768af5dce2e6e4c67b61/Cloudfilesstorage.rb', 'lib/cloud_files_storage.rb'
26
+ # Add config initialize file
27
+ create_file 'config/initializers/cloudfiles.rb' do
28
+ <<-RUBY
29
+ require 'cloudfiles'
30
+ require 'cloud_files_storage'
31
+ RUBY
32
+ end
33
+
34
+ create_file 'config/rackspace_cloudfiles.yml' do
35
+ <<-YAML
36
+ DEFAULTS: &DEFAULTS
37
+ username: [username]
38
+ api_key: [api_key]
39
+
40
+ development:
41
+ <<: *DEFAULTS
42
+ container: [container name]
43
+
44
+ test:
45
+ <<: *DEFAULTS
46
+ container: [container name]
47
+
48
+ production:
49
+ <<: *DEFAULTS
50
+ container: [container name]
51
+ YAML
52
+ end
53
+ end
54
+ end
55
+ end
56
+
57
+ if config['paperclip']
58
+ after_everything do
59
+ # These blocks are run after the bundler blocks and are reserved for
60
+ # special cases like committing the files to a git repository (something
61
+ # that depends on everything having been generated).
62
+ end
63
+ end
64
+ # A recipe is two parts: the Ruby code and YAML back-matter that comes
65
+ # after a blank line with the __END__ keyword.
66
+
67
+ __END__
68
+
69
+ name: Paperclip
70
+ description: "Use paperclip for file uploading."
71
+ author: merlinvn
72
+
73
+ category: persistence
74
+ tags: [storage]
75
+
76
+ config:
77
+ - paperclip:
78
+ type: boolean
79
+ prompt: "Would you like to use Paperclip to store your files?"
data/recipes/rspec.rb CHANGED
@@ -13,7 +13,7 @@ if config['rspec']
13
13
  gem 'machinist', :group => :test
14
14
  end
15
15
  if config['factory_girl']
16
- gem 'factory_girl_rails', '>= 3.1.0', :group => [:development, :test]
16
+ gem 'factory_girl_rails', '>= 3.2.0', :group => [:development, :test]
17
17
  end
18
18
  # add a collection of RSpec matchers and Cucumber steps to make testing email easy
19
19
  gem 'email_spec', '>= 1.2.1', :group => :test
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RailsWizard
2
- VERSION = "1.4.6"
2
+ VERSION = "1.4.7"
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.4.6
4
+ version: 1.4.7
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-04-11 00:00:00.000000000 Z
12
+ date: 2012-04-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &2153133360 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153133360
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: activesupport
27
- requirement: &2153132800 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: 3.0.0
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *2153132800
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 3.0.0
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: thor
38
- requirement: &2153132340 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *2153132340
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: rake
49
- requirement: &2153131860 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '0'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *2153131860
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: rspec
60
- requirement: &2153131120 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: 2.5.0
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *2153131120
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 2.5.0
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: mg
71
- requirement: &2153130600 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ! '>='
@@ -76,10 +101,15 @@ dependencies:
76
101
  version: '0'
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *2153130600
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
80
110
  - !ruby/object:Gem::Dependency
81
111
  name: activesupport
82
- requirement: &2153129680 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
115
  - - ! '>='
@@ -87,10 +117,15 @@ dependencies:
87
117
  version: 3.0.0
88
118
  type: :development
89
119
  prerelease: false
90
- version_requirements: *2153129680
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: 3.0.0
91
126
  - !ruby/object:Gem::Dependency
92
127
  name: i18n
93
- requirement: &2153129020 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
94
129
  none: false
95
130
  requirements:
96
131
  - - ! '>='
@@ -98,7 +133,12 @@ dependencies:
98
133
  version: '0'
99
134
  type: :development
100
135
  prerelease: false
101
- version_requirements: *2153129020
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
102
142
  description: A gem with recipes to create Rails application templates you can use
103
143
  to generate Rails starter apps.
104
144
  email:
@@ -122,6 +162,7 @@ files:
122
162
  - recipes/backbone.rb
123
163
  - recipes/capybara.rb
124
164
  - recipes/cleanup.rb
165
+ - recipes/cloudfiles.rb
125
166
  - recipes/compass.rb
126
167
  - recipes/compass_960.rb
127
168
  - recipes/cucumber.rb
@@ -142,6 +183,7 @@ files:
142
183
  - recipes/mongolab.rb
143
184
  - recipes/omniauth.rb
144
185
  - recipes/omniauth_email.rb
186
+ - recipes/paperclip.rb
145
187
  - recipes/rails_admin.rb
146
188
  - recipes/redis.rb
147
189
  - recipes/resque.rb
@@ -182,7 +224,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
182
224
  version: '0'
183
225
  segments:
184
226
  - 0
185
- hash: -1960849393898634811
227
+ hash: -166531313330472918
186
228
  required_rubygems_version: !ruby/object:Gem::Requirement
187
229
  none: false
188
230
  requirements:
@@ -191,10 +233,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
233
  version: '0'
192
234
  segments:
193
235
  - 0
194
- hash: -1960849393898634811
236
+ hash: -166531313330472918
195
237
  requirements: []
196
238
  rubyforge_project: rails_apps_composer
197
- rubygems_version: 1.8.16
239
+ rubygems_version: 1.8.23
198
240
  signing_key:
199
241
  specification_version: 3
200
242
  summary: A version of the RailsWizard gem with custom recipes for Rails starter apps.