radar_client_rb 1.0.4 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/radar_client_rb/client.rb +3 -14
- data/lib/radar_client_rb/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d42bbf7ddf9e9daf06d2cba852785890c8507bf1
|
4
|
+
data.tar.gz: dd2d81b7678b2daf518a1b4b6dacb0722fcc2c14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78135c69dbf814a3cc04204a9d50d6a347582bfdba34ce370485d923e87497a507f71912d2551eac28d3a8ce5e81e2c9718892d8cf76a7e52e32f041d983d08b
|
7
|
+
data.tar.gz: 351f207fb7b87901c78dd36b4eabf7c877fc42c4285319f8751ff389f5c5f4396fcd2da2e19669bdbb6fd3b0eacb19499a9d8943c9f18178af8ee1d47a643da3
|
@@ -2,18 +2,11 @@ require_relative './resource.rb'
|
|
2
2
|
|
3
3
|
module Radar
|
4
4
|
class Client
|
5
|
-
attr_accessor :subdomain
|
5
|
+
attr_accessor :subdomain, :redis
|
6
6
|
|
7
|
-
def
|
8
|
-
defined?(@@redis_retriever) && @@redis_retriever
|
9
|
-
end
|
10
|
-
|
11
|
-
def self.define_redis_retriever(&blk)
|
12
|
-
@@redis_retriever = blk
|
13
|
-
end
|
14
|
-
|
15
|
-
def initialize(subdomain)
|
7
|
+
def initialize(subdomain, redis)
|
16
8
|
@subdomain = subdomain
|
9
|
+
@redis = redis
|
17
10
|
end
|
18
11
|
|
19
12
|
def presence(name)
|
@@ -27,9 +20,5 @@ module Radar
|
|
27
20
|
def message(name)
|
28
21
|
MessageList.new(self, name)
|
29
22
|
end
|
30
|
-
|
31
|
-
def redis
|
32
|
-
@@redis_retriever.call(@subdomain) if Client.redis_retriever_defined?
|
33
|
-
end
|
34
23
|
end
|
35
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radar_client_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick O'Brien
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-01
|
13
|
+
date: 2016-06-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: redis
|
@@ -88,20 +88,6 @@ dependencies:
|
|
88
88
|
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
|
-
- !ruby/object:Gem::Dependency
|
92
|
-
name: private_gem
|
93
|
-
requirement: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
98
|
-
type: :development
|
99
|
-
prerelease: false
|
100
|
-
version_requirements: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '0'
|
105
91
|
- !ruby/object:Gem::Dependency
|
106
92
|
name: bump
|
107
93
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
131
|
version: '0'
|
146
132
|
requirements: []
|
147
133
|
rubyforge_project:
|
148
|
-
rubygems_version: 2.2.
|
134
|
+
rubygems_version: 2.2.2
|
149
135
|
signing_key:
|
150
136
|
specification_version: 4
|
151
137
|
summary: Read/Write Radar Resources from Redis through Ruby
|