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/production.sh
|
||||
doc/DONE
|
||||
doc/dev.txt
|
||||
*.gem
|
||||
tmp/*
|
||||
.rvmrc
|
||||
Capfile
|
||||
config/deploy.rb
|
||||
perf/test.rb
|
||||
<<<<<<< HEAD
|
||||
gem_graph.png
|
||||
sites/
|
||||
=======
|
||||
sites
|
||||
>>>>>>> theme
|
||||
|
||||
|
2
Gemfile
2
Gemfile
@ -20,7 +20,7 @@ gem 'rmagick', '= 2.12.2'
|
||||
gem 'locomotive_carrierwave', :require => 'carrierwave'
|
||||
|
||||
gem 'custom_fields', '1.0.0.beta'
|
||||
gem 'fog'
|
||||
gem 'fog', '0.3.7'
|
||||
gem 'mimetype-fu'
|
||||
gem 'actionmailer-with-request'
|
||||
gem 'heroku'
|
||||
|
@ -64,7 +64,7 @@ GEM
|
||||
carrierwave (0.5.0)
|
||||
activesupport (~> 3.0.0)
|
||||
cgi_multipart_eof_fix (2.5.0)
|
||||
childprocess (0.0.7)
|
||||
childprocess (0.0.9)
|
||||
ffi (~> 0.6.3)
|
||||
columnize (0.3.1)
|
||||
configuration (1.1.0)
|
||||
@ -104,9 +104,9 @@ GEM
|
||||
fastthread (1.0.7)
|
||||
ffi (0.6.3)
|
||||
rake (>= 0.8.7)
|
||||
fog (0.3.8)
|
||||
fog (0.3.7)
|
||||
builder
|
||||
excon (>= 0.2.4)
|
||||
excon (>= 0.2.3)
|
||||
formatador (>= 0.0.15)
|
||||
json
|
||||
mime-types
|
||||
@ -245,7 +245,7 @@ DEPENDENCIES
|
||||
devise (= 1.1.3)
|
||||
factory_girl_rails
|
||||
fastthread
|
||||
fog
|
||||
fog (= 0.3.7)
|
||||
formtastic (>= 1.1.0)
|
||||
growl-glue
|
||||
haml (= 3.0.18)
|
||||
|
@ -32,4 +32,4 @@ end
|
||||
CarrierWave.configure do |config|
|
||||
config.storage = :file
|
||||
config.root = File.join(Rails.root, 'public')
|
||||
end
|
||||
end
|
@ -1,5 +1,4 @@
|
||||
require 'delayed_job'
|
||||
require 'delayed/backend/mongoid'
|
||||
require 'delayed_job_mongoid'
|
||||
|
||||
module Delayed
|
||||
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 'liquid'
|
||||
require 'devise'
|
||||
@ -12,9 +15,16 @@ require 'redcloth'
|
||||
require 'actionmailer_with_request'
|
||||
require 'zip/zipfilesystem'
|
||||
require 'custom_fields'
|
||||
require 'delayed_job_mongoid'
|
||||
|
||||
$:.unshift File.dirname(__FILE__)
|
||||
|
||||
module Locomotive
|
||||
class Engine < Rails::Engine
|
||||
|
||||
rake_tasks do
|
||||
load "railties/tasks.rake"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,5 @@
|
||||
require 'heroku'
|
||||
require 'heroku/client'
|
||||
require 'locomotive/heroku/custom_domain'
|
||||
|
||||
module Locomotive
|
||||
|
@ -1,3 +1,4 @@
|
||||
require 'responders'
|
||||
require 'inherited_resources'
|
||||
require 'inherited_resources/actions'
|
||||
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
|
||||
VERSION = "0.0.4"
|
||||
VERSION = "0.0.4.beta1"
|
||||
end
|
||||
|
@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
||||
s.add_dependency "fog"
|
||||
s.add_dependency "mimetype-fu"
|
||||
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 "heroku"
|
||||
s.add_dependency "httparty", ">= 0.6.1"
|
||||
|
Loading…
Reference in New Issue
Block a user