Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added rails 3 support #1

Merged
merged 1 commit into from Jun 7, 2011
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions HISTORY.md
@@ -1,3 +1,7 @@
## 0.1.1 (2011-01-20)

* rails 3 support

## 0.1.0 (2011-01-20)

* Initial version.
2 changes: 1 addition & 1 deletion lib/resque/plugins/data_warehouse.rb
Expand Up @@ -12,7 +12,7 @@ def self.included(base)
module ClassMethods
def warehoused
include InstanceMethods
after_commit_on_save :record_to_fact
after_commit :record_to_fact
after_destroy :destroy_fact
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/resque/plugins/data_warehouse/fact.rb
Expand Up @@ -4,7 +4,7 @@ module DataWarehouse

module Fact
def self.find(type, values)
klass = "#{type}Fact".constantize
klass = "Facts::#{type}Fact".constantize
fact = klass.send(:find, values["id"]) rescue nil
fact = klass.new if fact.nil?
fact.id = values["id"]
Expand Down
8 changes: 4 additions & 4 deletions resque-data-warehouse.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'resque-data-warehouse'
s.version = '0.1.0'
s.version = '0.1.1'
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = 'A Resque plugin for using Resque and Redis to store and process transactions between transactional and data warehouse tables.'
s.homepage = 'http://github.com/mechaferret/resque-data-warehouse'
Expand All @@ -12,9 +12,9 @@ Gem::Specification.new do |s|
s.files += Dir.glob('lib/**/*')
s.files += Dir.glob('test/**/*')

s.add_dependency('resque', '>= 1.9.10')
s.add_dependency('rails', '>= 2.3.4')
s.add_dependency('after_commit', '>= 1.0.8')
s.add_dependency('resque', '>= 1.9.10')
s.add_dependency('rails', ['>= 3.0.0'])
# s.add_dependency('after_commit', '>= 1.0.8')

s.description = <<desc
A Resque plugin. Allows you to use Redis to queue up and then Resque to process transactions
Expand Down