laziness 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/laziness.rb +1 -1
- data/lib/laziness/{real_time.rb → real_time_client.rb} +1 -1
- data/lib/laziness/version.rb +1 -1
- data/spec/laziness/{real_time_spec.rb → real_time_client_spec.rb} +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4463848af58380d572ae98692d9b149fef2f0d3
|
4
|
+
data.tar.gz: 7d314d025b36187ba97c8edc10d3a8576b542f66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac6277a888409cac47245b0e74b4f687fa313ad3d36b41fe454e8b539b8b85ef6280ffba51f4746c7f600a13ffc2a523ab1f9db24264ce6caba3fbcc9e428da3
|
7
|
+
data.tar.gz: 15bcb4bc2788c8e57b721106fa63b71df72284f01252cf61bd2ee1e1917715f6fec51c2fbfa9a4f3a051844a85ca5be0f9090ddf978984230f919be922f1e366
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -162,7 +162,7 @@ client = Slack::Client.new bot_access_token
|
|
162
162
|
session = client.rtm.start
|
163
163
|
|
164
164
|
# Create a websocket for the session
|
165
|
-
ws = Slack::
|
165
|
+
ws = Slack::RealTimeClient.new(session)
|
166
166
|
|
167
167
|
# Respond to open, close, and error events
|
168
168
|
ws.on(:error) { |event| print "ERROR OCCURRED (@ #{Time.now}): #{event.inspect}\n" }
|
data/lib/laziness.rb
CHANGED
@@ -10,7 +10,7 @@ require 'laziness/group'
|
|
10
10
|
require 'laziness/message'
|
11
11
|
require 'laziness/oauth'
|
12
12
|
require 'laziness/observer'
|
13
|
-
require 'laziness/
|
13
|
+
require 'laziness/real_time_client'
|
14
14
|
require 'laziness/registry'
|
15
15
|
require 'laziness/session'
|
16
16
|
require 'laziness/user'
|
data/lib/laziness/version.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
describe Slack::
|
1
|
+
describe Slack::RealTimeClient do
|
2
2
|
let(:session) { double(:session, url: "wss://example.com") }
|
3
3
|
let(:queue) { Queue.new }
|
4
|
-
subject { Slack::
|
4
|
+
subject { Slack::RealTimeClient.new(session) }
|
5
5
|
|
6
6
|
def with_websocket(subject, queue)
|
7
7
|
thread = Thread.new { subject.run(queue, ping: nil) }
|
@@ -13,7 +13,7 @@ describe Slack::RealTime do
|
|
13
13
|
|
14
14
|
it "accepts a session" do
|
15
15
|
session = double(:session)
|
16
|
-
expect(Slack::
|
16
|
+
expect(Slack::RealTimeClient.new(session).session).to eq session
|
17
17
|
end
|
18
18
|
|
19
19
|
describe "#run" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: laziness
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Wright
|
@@ -104,7 +104,7 @@ files:
|
|
104
104
|
- lib/laziness/message.rb
|
105
105
|
- lib/laziness/oauth.rb
|
106
106
|
- lib/laziness/observer.rb
|
107
|
-
- lib/laziness/
|
107
|
+
- lib/laziness/real_time_client.rb
|
108
108
|
- lib/laziness/registry.rb
|
109
109
|
- lib/laziness/session.rb
|
110
110
|
- lib/laziness/user.rb
|
@@ -121,7 +121,7 @@ files:
|
|
121
121
|
- spec/laziness/errors_spec.rb
|
122
122
|
- spec/laziness/message_spec.rb
|
123
123
|
- spec/laziness/observer_spec.rb
|
124
|
-
- spec/laziness/
|
124
|
+
- spec/laziness/real_time_client_spec.rb
|
125
125
|
- spec/laziness/registry_spec.rb
|
126
126
|
- spec/spec_helper.rb
|
127
127
|
- spec/support/fixtures/auth_test.json
|
@@ -179,7 +179,7 @@ test_files:
|
|
179
179
|
- spec/laziness/errors_spec.rb
|
180
180
|
- spec/laziness/message_spec.rb
|
181
181
|
- spec/laziness/observer_spec.rb
|
182
|
-
- spec/laziness/
|
182
|
+
- spec/laziness/real_time_client_spec.rb
|
183
183
|
- spec/laziness/registry_spec.rb
|
184
184
|
- spec/spec_helper.rb
|
185
185
|
- spec/support/fixtures/auth_test.json
|