lib/smoke.rb in benschwarz-smoke-0.5.8 vs lib/smoke.rb in benschwarz-smoke-0.5.10
- old
+ new
@@ -1,13 +1,14 @@
-__DIR__ = File.dirname(__FILE__)
-require File.expand_path(File.join(__DIR__, '..', 'vendor', 'gems', 'environment'))
-
-Bundler.require_env
-
require 'logger'
require 'digest/md5'
+require 'simple-rss'
+require 'json'
+require 'crack'
+require 'moneta'
+require 'restclient'
+
module Smoke
class << self
@@active_sources = {}
@@config = {
:enable_logging => true,
@@ -27,9 +28,14 @@
# Then access it:
# Smoke[:ruby]
# => #<Smoke::Source::YQL::0x18428d4...
def [](source)
active_sources[source]
+ end
+
+ # Access registered smoke source instances
+ def method_missing(sym)
+ self[sym]
end
# Activates new instances of sources
# Source instances are stored within the
# @@active_sources class variable for later use
\ No newline at end of file