radar_client_rb 1.0.3 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7824fb63d8f0d67804525ccb9c3a3fe75c4ba23c
4
- data.tar.gz: 8f7a3f8f8ce4272a563070eb568751d817ea45b5
2
+ SHA256:
3
+ metadata.gz: 551d81701d40abf0806e4f4509568695b9f48e45e896ecc0f60be6c690757e16
4
+ data.tar.gz: 369dd2f2ab76888f085a464d5d0eab100d17363c3b51c36a5e84d339fdc909d0
5
5
  SHA512:
6
- metadata.gz: 298eda373afffbaca84bafa666ba8060f09316c80b23b470c5d8da6483526f56c6573c252480ce0e5463ea3e0f60ae69294cc0fdbaf3505c46ec1bc175ef9b95
7
- data.tar.gz: 178ea51532bd587079dfe26ea27d61de669aa768d25928b097db497e57f97bbe6a7f3b59da125f90d49f0e058a42107fdedd58f04c0e7c56c043f39447ea5571
6
+ metadata.gz: 9463d9cf78a7292d6e7bf415d21c001e0049973b9ee9ad6a805d805eb9f82a832e36f882d46eb21eff7db1094addf7ae18e52049baa82eff3179a2160c04f38e
7
+ data.tar.gz: cc797f5a54561e26a535498212694a08a1d24a47196126483a615100ad999d04010b57549109b7cbc872a77af350511d2b25f765134c1b7fab3e4de8a89600da
@@ -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 self.redis_retriever_defined?
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
@@ -72,7 +72,7 @@ module Radar
72
72
  redis.publish(@name, { :to => @name, :op => 'set', :key => key, :value => value }.to_json)
73
73
  end
74
74
 
75
- client = redis.respond_to?(:client) && redis.client
75
+ client = redis.respond_to?(:connection) && redis.connection
76
76
  client_info = if client && client.respond_to?(:host) && client.respond_to?(:port)
77
77
  "Client: #{client.host}:#{client.port}"
78
78
  else
@@ -1,5 +1,5 @@
1
1
  module Radar
2
2
  class Client
3
- VERSION = '1.0.3'
3
+ VERSION = '3.0.0'
4
4
  end
5
5
  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: 1.0.3
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick O'Brien
@@ -10,104 +10,90 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-06 00:00:00.000000000 Z
13
+ date: 2021-07-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: redis
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>='
19
+ - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: '4.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '>='
26
+ - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '0'
28
+ version: '4.3'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
- version: '0'
35
+ version: 12.3.3
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: '0'
42
+ version: 12.3.3
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: minitest
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - '>='
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: fakeredis
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: mocha
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - '>='
75
+ - - ">="
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - '>='
83
- - !ruby/object:Gem::Version
84
- version: '0'
85
- - !ruby/object:Gem::Dependency
86
- name: private_gem
87
- requirement: !ruby/object:Gem::Requirement
88
- requirements:
89
- - - '>='
90
- - !ruby/object:Gem::Version
91
- version: '0'
92
- type: :development
93
- prerelease: false
94
- version_requirements: !ruby/object:Gem::Requirement
95
- requirements:
96
- - - '>='
82
+ - - ">="
97
83
  - !ruby/object:Gem::Version
98
84
  version: '0'
99
85
  - !ruby/object:Gem::Dependency
100
86
  name: bump
101
87
  requirement: !ruby/object:Gem::Requirement
102
88
  requirements:
103
- - - '>='
89
+ - - ">="
104
90
  - !ruby/object:Gem::Version
105
91
  version: '0'
106
92
  type: :development
107
93
  prerelease: false
108
94
  version_requirements: !ruby/object:Gem::Requirement
109
95
  requirements:
110
- - - '>='
96
+ - - ">="
111
97
  - !ruby/object:Gem::Version
112
98
  version: '0'
113
99
  description: Read/Write Radar Resources from Redis through Ruby
@@ -116,10 +102,10 @@ executables: []
116
102
  extensions: []
117
103
  extra_rdoc_files: []
118
104
  files:
105
+ - lib/radar_client_rb.rb
119
106
  - lib/radar_client_rb/client.rb
120
107
  - lib/radar_client_rb/resource.rb
121
108
  - lib/radar_client_rb/version.rb
122
- - lib/radar_client_rb.rb
123
109
  homepage: http://github.com/zendesk/radar_client_rb
124
110
  licenses: []
125
111
  metadata: {}
@@ -129,19 +115,20 @@ require_paths:
129
115
  - lib
130
116
  required_ruby_version: !ruby/object:Gem::Requirement
131
117
  requirements:
132
- - - '>='
118
+ - - ">="
133
119
  - !ruby/object:Gem::Version
134
- version: '0'
120
+ version: '2.6'
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '2.6'
135
124
  required_rubygems_version: !ruby/object:Gem::Requirement
136
125
  requirements:
137
- - - '>='
126
+ - - ">="
138
127
  - !ruby/object:Gem::Version
139
128
  version: '0'
140
129
  requirements: []
141
- rubyforge_project:
142
- rubygems_version: 2.0.14
130
+ rubygems_version: 3.0.3
143
131
  signing_key:
144
132
  specification_version: 4
145
133
  summary: Read/Write Radar Resources from Redis through Ruby
146
134
  test_files: []
147
- has_rdoc: