Permalink
Browse files

Extract Rails dependency into its own gem.

Closes #47
  • Loading branch information...
1 parent a242997 commit 204cea87cc6658c4f277e223a7700b9f6d8569c9 @bkeepers committed Jun 13, 2012
Showing with 31 additions and 8 deletions.
  1. +11 −0 ChangeLog
  2. +1 −0 README.md
  3. 0 lib/{qu/railtie.rb → qu-rails.rb}
  4. +0 −8 lib/qu.rb
  5. +19 −0 qu-rails.gemspec
View
@@ -1,3 +1,14 @@
+0.2.0 - unreleased
+
+ Enhancements
+
+ * Move implicit Rails dependency to it's own Gem, which you must declare now in your Gemfile.
+
+ gem 'qu-rails'
+
+ https://github.com/bkeepers/qu/compare/v0.1.4...v0.2.0
+
+
0.1.4 - 2012-01-07
Enhancements:
View
@@ -21,6 +21,7 @@ Qu was created to overcome some shortcomings in the existing queuing libraries t
Decide which backend you want to use and add the gem to your `Gemfile`.
``` ruby
+gem 'qu-rails'
gem 'qu-redis'
```
File renamed without changes.
View
@@ -35,11 +35,3 @@ def enqueue(klass, *args)
c.logger.level = Logger::INFO
end
-if defined?(Rails)
- if defined?(Rails::Railtie)
- require 'qu/railtie'
- else
- Qu.logger = Rails.logger
- end
-end
-
View
@@ -0,0 +1,19 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "qu/version"
+
+Gem::Specification.new do |s|
+ s.name = "qu-rails"
+ s.version = Qu::VERSION
+ s.authors = ["Brandon Keepers"]
+ s.email = ["brandon@opensoul.org"]
+ s.homepage = "http://github.com/bkeepers/qu"
+ s.summary = "Rails integration for qu"
+ s.description = "Rails integration for qu"
+
+ s.files = `git ls-files -- lib | grep rails`.split("\n")
+ s.require_paths = ["lib"]
+
+ s.add_dependency 'rails', '~>3.0'
+ s.add_dependency 'qu', Qu::VERSION
+end

0 comments on commit 204cea8

Please sign in to comment.