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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c1101d65780ce578d52c29a3ddf8e2dc801321f
4
- data.tar.gz: f6d4396669913f444f5b4cbc26fcb69c18206dc6
3
+ metadata.gz: c4463848af58380d572ae98692d9b149fef2f0d3
4
+ data.tar.gz: 7d314d025b36187ba97c8edc10d3a8576b542f66
5
5
  SHA512:
6
- metadata.gz: c682d33c7945b53374c672c0a0eaf5bccedab170f97187de3b7205b13995227e378168917cfd62723766e0b82479dc1eeb0c62ea575fd3f38ff71cf9798ecddb
7
- data.tar.gz: 26667adb96cbdd8109116ce9fb4fb85515d7b9f1855d62f4acad6f0424807fe3fe3f150d9fefd7ffd0bc85f59bab3bc3d8ef8a38e9da2523ffefe1196ff39427
6
+ metadata.gz: ac6277a888409cac47245b0e74b4f687fa313ad3d36b41fe454e8b539b8b85ef6280ffba51f4746c7f600a13ffc2a523ab1f9db24264ce6caba3fbcc9e428da3
7
+ data.tar.gz: 15bcb4bc2788c8e57b721106fa63b71df72284f01252cf61bd2ee1e1917715f6fec51c2fbfa9a4f3a051844a85ca5be0f9090ddf978984230f919be922f1e366
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- laziness (0.1.9)
4
+ laziness (0.2.0)
5
5
  eventmachine
6
6
  faye-websocket (>= 0.8.0)
7
7
  hashie
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::RealTime.new(session)
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/real_time'
13
+ require 'laziness/real_time_client'
14
14
  require 'laziness/registry'
15
15
  require 'laziness/session'
16
16
  require 'laziness/user'
@@ -2,7 +2,7 @@ require 'eventmachine'
2
2
  require 'faye/websocket'
3
3
 
4
4
  module Slack
5
- class RealTime
5
+ class RealTimeClient
6
6
  attr_reader :session
7
7
 
8
8
  def initialize(session)
@@ -1,3 +1,3 @@
1
1
  module Laziness
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1,7 +1,7 @@
1
- describe Slack::RealTime do
1
+ describe Slack::RealTimeClient do
2
2
  let(:session) { double(:session, url: "wss://example.com") }
3
3
  let(:queue) { Queue.new }
4
- subject { Slack::RealTime.new(session) }
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::RealTime.new(session).session).to eq session
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.1.9
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/real_time.rb
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/real_time_spec.rb
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/real_time_spec.rb
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