locomotive_cms 0.0.1.3 → 0.0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -11,20 +11,14 @@ gem "mongoid", ">= 2.0.0.beta6"
11
11
  gem "mongoid_acts_as_tree", ">= 0.1.2"
12
12
  gem "warden"
13
13
  gem "devise", ">= 1.1.rc0"
14
- gem "haml", '>= 3.0.1'
15
- # gem "rmagick"
14
+ gem "haml", ">= 3.0.1"
15
+ gem "rmagick", "2.12.2"
16
16
  gem "aws"
17
17
  gem "jeweler"
18
18
  gem "mimetype-fu", :require => "mimetype_fu"
19
19
  gem "formtastic-rails3", :require => "formtastic"
20
20
  gem "carrierwave-rails3", :require => "carrierwave"
21
21
 
22
- # gem 'formtastic-rails3', :require => 'formtastic', :path => 'rails_3_gems/formtastic'
23
- # gem "formtastic", :git => 'git://github.com/justinfrench/formtastic.git', :branch => 'rails3'
24
- # gem "carrierwave", :git => "http://github.com/jnicklas/carrierwave.git"
25
- # gem "carrierwave", :path => 'rails_3_gems/carrierwave'
26
-
27
-
28
22
  # Development environment
29
23
  group :development do
30
24
  # Using mongrel instead of webrick (default server)
@@ -5,6 +5,7 @@ require File.expand_path('../boot', __FILE__)
5
5
  require "action_controller/railtie"
6
6
  require "action_mailer/railtie"
7
7
  require "active_resource/railtie"
8
+ require "mongoid/railtie"
8
9
 
9
10
  # Auto-require default libraries and those for the current Rails environment.
10
11
  Bundler.require :default, Rails.env
@@ -30,16 +30,4 @@ Locomotive::Application.configure do
30
30
 
31
31
  # Enable threaded mode
32
32
  # config.threadsafe!
33
- end
34
-
35
- config.action_mailer.delivery_method = :smtp
36
-
37
- config.action_mailer.smtp_settings = {
38
- :enable_starttls_auto => true,
39
- :address => "smtp.gmail.com",
40
- :port => 587,
41
- :domain => "nocoffee.fr",
42
- :authentication => :plain,
43
- :user_name => "didier@nocoffee.fr",
44
- :password => "pepscou"
45
- }
33
+ end
@@ -1,11 +1,5 @@
1
1
  require 'mongoid'
2
2
 
3
- File.open(File.join(Rails.root, 'config/database.yml'), 'r') do |f|
4
- @settings = YAML.load(f)[Rails.env]
5
- end
6
-
7
- Mongoid::Config.instance.from_hash(@settings)
8
-
9
3
  ## various patches
10
4
  module Mongoid #:nodoc:
11
5
 
@@ -0,0 +1,24 @@
1
+ defaults: &defaults
2
+ host: localhost
3
+ # slaves:
4
+ # - host: slave1.local
5
+ # port: 27018
6
+ # - host: slave2.local
7
+ # port: 27019
8
+
9
+ development:
10
+ <<: *defaults
11
+ database: locomotive_dev
12
+
13
+ test:
14
+ <<: *defaults
15
+ database: locomotive_test
16
+
17
+ # set these environment variables on your prod server
18
+ production:
19
+ <<: *defaults
20
+ host: <%= ENV['MONGOID_HOST'] %>
21
+ port: <%= ENV['MONGOID_PORT'] %>
22
+ username: <%= ENV['MONGOID_USERNAME'] %>
23
+ password: <%= ENV['MONGOID_PASSWORD'] %>
24
+ database: <%= ENV['MONGOID_DATABASE'] %>
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.0.1.3
9
+ - 4
10
+ version: 0.0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Didier Lafforgue
@@ -142,19 +142,21 @@ dependencies:
142
142
  prerelease: false
143
143
  - !ruby/object:Gem::Dependency
144
144
  type: :runtime
145
- name: aws
145
+ name: rmagick
146
146
  version_requirements: &id010 !ruby/object:Gem::Requirement
147
147
  requirements:
148
- - - ">="
148
+ - - "="
149
149
  - !ruby/object:Gem::Version
150
150
  segments:
151
- - 0
152
- version: "0"
151
+ - 2
152
+ - 12
153
+ - 2
154
+ version: 2.12.2
153
155
  requirement: *id010
154
156
  prerelease: false
155
157
  - !ruby/object:Gem::Dependency
156
158
  type: :runtime
157
- name: jeweler
159
+ name: aws
158
160
  version_requirements: &id011 !ruby/object:Gem::Requirement
159
161
  requirements:
160
162
  - - ">="
@@ -166,7 +168,7 @@ dependencies:
166
168
  prerelease: false
167
169
  - !ruby/object:Gem::Dependency
168
170
  type: :runtime
169
- name: mimetype-fu
171
+ name: jeweler
170
172
  version_requirements: &id012 !ruby/object:Gem::Requirement
171
173
  requirements:
172
174
  - - ">="
@@ -178,7 +180,7 @@ dependencies:
178
180
  prerelease: false
179
181
  - !ruby/object:Gem::Dependency
180
182
  type: :runtime
181
- name: formtastic-rails3
183
+ name: mimetype-fu
182
184
  version_requirements: &id013 !ruby/object:Gem::Requirement
183
185
  requirements:
184
186
  - - ">="
@@ -190,7 +192,7 @@ dependencies:
190
192
  prerelease: false
191
193
  - !ruby/object:Gem::Dependency
192
194
  type: :runtime
193
- name: carrierwave-rails3
195
+ name: formtastic-rails3
194
196
  version_requirements: &id014 !ruby/object:Gem::Requirement
195
197
  requirements:
196
198
  - - ">="
@@ -200,6 +202,18 @@ dependencies:
200
202
  version: "0"
201
203
  requirement: *id014
202
204
  prerelease: false
205
+ - !ruby/object:Gem::Dependency
206
+ type: :runtime
207
+ name: carrierwave-rails3
208
+ version_requirements: &id015 !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ segments:
213
+ - 0
214
+ version: "0"
215
+ requirement: *id015
216
+ prerelease: false
203
217
  description: a brand new CMS system with super sexy UI and cool features
204
218
  email:
205
219
  - didier@nocoffee.fr
@@ -327,7 +341,6 @@ files:
327
341
  - config/application.rb
328
342
  - config/boot.rb
329
343
  - config/cucumber.yml
330
- - config/database.yml
331
344
  - config/environment.rb
332
345
  - config/environments/development.rb
333
346
  - config/environments/production.rb
@@ -348,6 +361,7 @@ files:
348
361
  - config/locales/default_en.yml
349
362
  - config/locales/default_fr.yml
350
363
  - config/locales/devise.en.yml
364
+ - config/mongoid.yml
351
365
  - config/routes.rb
352
366
  - lib/core_ext.rb
353
367
  - lib/generators/locomotive_generator.rb
data/config/database.yml DELETED
@@ -1,20 +0,0 @@
1
- defaults: &defaults
2
- host: localhost
3
-
4
- development:
5
- <<: *defaults
6
- database: locomotive_dev
7
-
8
- test: &test
9
- <<: *defaults
10
- database: locomotive_test
11
-
12
- production:
13
- <<: *defaults
14
- host: db.mongohq.com
15
- username: user
16
- password: pass
17
- database: fanboy
18
-
19
- cucumber:
20
- <<: *test