clean code + fix gem requirements for the engine version of this app
This commit is contained in:
parent
a03dd77a65
commit
344a737b9a
6
.gitignore
vendored
6
.gitignore
vendored
@ -19,15 +19,13 @@ rails_3_gems
|
|||||||
doc/performance.txt
|
doc/performance.txt
|
||||||
doc/production.sh
|
doc/production.sh
|
||||||
doc/DONE
|
doc/DONE
|
||||||
|
doc/dev.txt
|
||||||
*.gem
|
*.gem
|
||||||
tmp/*
|
tmp/*
|
||||||
.rvmrc
|
.rvmrc
|
||||||
Capfile
|
Capfile
|
||||||
config/deploy.rb
|
config/deploy.rb
|
||||||
perf/test.rb
|
perf/test.rb
|
||||||
<<<<<<< HEAD
|
|
||||||
gem_graph.png
|
gem_graph.png
|
||||||
sites/
|
sites/
|
||||||
=======
|
|
||||||
sites
|
|
||||||
>>>>>>> theme
|
|
||||||
|
2
Gemfile
2
Gemfile
@ -20,7 +20,7 @@ gem 'rmagick', '= 2.12.2'
|
|||||||
gem 'locomotive_carrierwave', :require => 'carrierwave'
|
gem 'locomotive_carrierwave', :require => 'carrierwave'
|
||||||
|
|
||||||
gem 'custom_fields', '1.0.0.beta'
|
gem 'custom_fields', '1.0.0.beta'
|
||||||
gem 'fog'
|
gem 'fog', '0.3.7'
|
||||||
gem 'mimetype-fu'
|
gem 'mimetype-fu'
|
||||||
gem 'actionmailer-with-request'
|
gem 'actionmailer-with-request'
|
||||||
gem 'heroku'
|
gem 'heroku'
|
||||||
|
@ -64,7 +64,7 @@ GEM
|
|||||||
carrierwave (0.5.0)
|
carrierwave (0.5.0)
|
||||||
activesupport (~> 3.0.0)
|
activesupport (~> 3.0.0)
|
||||||
cgi_multipart_eof_fix (2.5.0)
|
cgi_multipart_eof_fix (2.5.0)
|
||||||
childprocess (0.0.7)
|
childprocess (0.0.9)
|
||||||
ffi (~> 0.6.3)
|
ffi (~> 0.6.3)
|
||||||
columnize (0.3.1)
|
columnize (0.3.1)
|
||||||
configuration (1.1.0)
|
configuration (1.1.0)
|
||||||
@ -104,9 +104,9 @@ GEM
|
|||||||
fastthread (1.0.7)
|
fastthread (1.0.7)
|
||||||
ffi (0.6.3)
|
ffi (0.6.3)
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
fog (0.3.8)
|
fog (0.3.7)
|
||||||
builder
|
builder
|
||||||
excon (>= 0.2.4)
|
excon (>= 0.2.3)
|
||||||
formatador (>= 0.0.15)
|
formatador (>= 0.0.15)
|
||||||
json
|
json
|
||||||
mime-types
|
mime-types
|
||||||
@ -245,7 +245,7 @@ DEPENDENCIES
|
|||||||
devise (= 1.1.3)
|
devise (= 1.1.3)
|
||||||
factory_girl_rails
|
factory_girl_rails
|
||||||
fastthread
|
fastthread
|
||||||
fog
|
fog (= 0.3.7)
|
||||||
formtastic (>= 1.1.0)
|
formtastic (>= 1.1.0)
|
||||||
growl-glue
|
growl-glue
|
||||||
haml (= 3.0.18)
|
haml (= 3.0.18)
|
||||||
|
@ -32,4 +32,4 @@ end
|
|||||||
CarrierWave.configure do |config|
|
CarrierWave.configure do |config|
|
||||||
config.storage = :file
|
config.storage = :file
|
||||||
config.root = File.join(Rails.root, 'public')
|
config.root = File.join(Rails.root, 'public')
|
||||||
end
|
end
|
@ -1,5 +1,4 @@
|
|||||||
require 'delayed_job'
|
require 'delayed_job_mongoid'
|
||||||
require 'delayed/backend/mongoid'
|
|
||||||
|
|
||||||
module Delayed
|
module Delayed
|
||||||
module Backend
|
module Backend
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
puts "...Locomotive engine loaded"
|
puts "...loading Locomotive engine"
|
||||||
|
|
||||||
|
require 'rails'
|
||||||
|
require 'heroku'
|
||||||
|
require 'inherited_resources'
|
||||||
require 'mimetype_fu'
|
require 'mimetype_fu'
|
||||||
require 'liquid'
|
require 'liquid'
|
||||||
require 'devise'
|
require 'devise'
|
||||||
@ -12,9 +15,16 @@ require 'redcloth'
|
|||||||
require 'actionmailer_with_request'
|
require 'actionmailer_with_request'
|
||||||
require 'zip/zipfilesystem'
|
require 'zip/zipfilesystem'
|
||||||
require 'custom_fields'
|
require 'custom_fields'
|
||||||
|
require 'delayed_job_mongoid'
|
||||||
|
|
||||||
|
$:.unshift File.dirname(__FILE__)
|
||||||
|
|
||||||
module Locomotive
|
module Locomotive
|
||||||
class Engine < Rails::Engine
|
class Engine < Rails::Engine
|
||||||
|
|
||||||
|
rake_tasks do
|
||||||
|
load "railties/tasks.rake"
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
require 'heroku'
|
require 'heroku'
|
||||||
|
require 'heroku/client'
|
||||||
require 'locomotive/heroku/custom_domain'
|
require 'locomotive/heroku/custom_domain'
|
||||||
|
|
||||||
module Locomotive
|
module Locomotive
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
require 'responders'
|
||||||
require 'inherited_resources'
|
require 'inherited_resources'
|
||||||
require 'inherited_resources/actions'
|
require 'inherited_resources/actions'
|
||||||
require 'inherited_resources/responder'
|
require 'inherited_resources/responder'
|
||||||
|
16
lib/locomotive/railties/tasks.rake
Normal file
16
lib/locomotive/railties/tasks.rake
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Re-definitions are appended to existing tasks
|
||||||
|
|
||||||
|
namespace :locomotive do
|
||||||
|
namespace :jobs do
|
||||||
|
desc "Clear the delayed_job queue."
|
||||||
|
task :clear => :environment do
|
||||||
|
Delayed::Job.delete_all
|
||||||
|
end
|
||||||
|
|
||||||
|
desc "Start a delayed_job worker."
|
||||||
|
task :work => :environment do
|
||||||
|
puts "Delayed::Job.new = #{Delayed::Job.new.inspect}"
|
||||||
|
::Delayed::Worker.new(:min_priority => ENV['MIN_PRIORITY'], :max_priority => ENV['MAX_PRIORITY']).start
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -1,3 +1,3 @@
|
|||||||
module Locomotive #:nodoc
|
module Locomotive #:nodoc
|
||||||
VERSION = "0.0.4"
|
VERSION = "0.0.4.beta1"
|
||||||
end
|
end
|
||||||
|
@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
|||||||
s.add_dependency "fog"
|
s.add_dependency "fog"
|
||||||
s.add_dependency "mimetype-fu"
|
s.add_dependency "mimetype-fu"
|
||||||
s.add_dependency "formtastic", ">= 1.1.0"
|
s.add_dependency "formtastic", ">= 1.1.0"
|
||||||
s.add_dependency "locomotive_carrierwave"
|
s.add_dependency "locomotive_carrierwave", "0.5.0.1.beta1"
|
||||||
s.add_dependency "actionmailer-with-request"
|
s.add_dependency "actionmailer-with-request"
|
||||||
s.add_dependency "heroku"
|
s.add_dependency "heroku"
|
||||||
s.add_dependency "httparty", ">= 0.6.1"
|
s.add_dependency "httparty", ">= 0.6.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user