activist 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,3 @@
1
- require 'active_support/configurable'
2
1
  require 'active_support/concern'
3
2
  require 'redis/namespace'
4
3
  require 'redis'
@@ -1,12 +1,7 @@
1
1
  module Activist
2
2
  class Redis
3
- include ActiveSupport::Configurable
4
-
5
- config_accessor :host, :port, :db
6
-
7
3
  def self.execute
8
- @connection ||= ::Redis.new(:host => host || 'localhost', :port => port || 6379, :db => db || nil)
9
- @redis ||= ::Redis::Namespace.new(:activist, :redis => @connection)
4
+ @redis ||= ::Redis::Namespace.new(:activist, :redis => REDIS)
10
5
  end
11
6
  end
12
7
  end
@@ -1,3 +1,3 @@
1
1
  module Activist
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -37,8 +37,7 @@ ActiveRecord::Schema.define do
37
37
  end
38
38
  end
39
39
 
40
- Activist::Redis.host = 'localhost'
41
- Activist::Redis.port = 6379
40
+ REDIS = Redis.new(:host => '127.0.0.1', :port => 6379)
42
41
  Activist::Redis.execute.flushall
43
42
 
44
43
  class Status < ActiveRecord::Base
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: activist
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Adrian Duli\xC4\x87"