lib/rosetta_queue.rb in cwyckoff-rosetta_queue-0.3.0 vs lib/rosetta_queue.rb in cwyckoff-rosetta_queue-0.3.3
- old
+ new
@@ -1,7 +1,8 @@
-require 'activesupport' # TODO: remove dependency
-
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__)))
+
+require('rosetta_queue/core_ext/string') unless defined? ActiveSupport
+require('rosetta_queue/core_ext/time') unless defined? ActiveSupport
require 'rosetta_queue/adapter'
require 'rosetta_queue/base'
require 'rosetta_queue/consumer'
require 'rosetta_queue/destinations'