require 'redis'
require 'rollout'
require 'active_support/deprecation'
require 'active_support/core_ext/module'

module Travis
  module Features
    mattr_accessor :redis, :rollout
    class << self
      methods = Rollout.public_instance_methods(false) << {:to => self}
      delegate(*methods)
    end

    def self.start
      url = ENV['REDISTOGO_URL'] || 'redis://localhost:6379'
      self.redis ||= ::Redis.connect(:url => url)
      self.rollout ||= ::Rollout.new(redis)
    end
  end
end

require 'redis'
require 'rollout'
require 'active_support/deprecation'
require 'active_support/core_ext/module'

module Travis
  module Features
    mattr_accessor :redis, :rollout
    class << self
      delegate *Rollout.public_instance_methods(false), :to => :rollout
    end

    def self.start
      url = ENV['REDISTOGO_URL'] || 'redis://localhost:6379'
      self.redis ||= ::Redis.connect(:url => url)
      self.rollout ||= ::Rollout.new(redis)
    end
  end
end

--- 
+++ 
@@ -7,7 +7,8 @@
   module Features
     mattr_accessor :redis, :rollout
     class << self
-      delegate *Rollout.public_instance_methods(false), :to => :rollout
+      methods = Rollout.public_instance_methods(false) << {:to => self}
+      delegate(*methods)
     end
 
     def self.start
Fix issue on JRuby 1.8.
