Skip to content

Commit adf0498

Browse files
authored
Merge pull request #115 from pusher/prep-v1.2.1
Prep v1.3.1
2 parents 8e99bf4 + 4b95faa commit adf0498

File tree

6 files changed

+16
-2
lines changed

6 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.3.1 / 2017-03-15
2+
==================
3+
4+
* Added missing client batch methods to default client delegations
5+
* Document raised exception in the `authenticate` method
6+
* Fixes em-http-request from using v2.5.0 of `addressable` breaking builds.
17

28
1.3.0 / 2016-08-23
39
==================

lib/pusher.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ class << self
3737
def_delegators :default_client, :timeout=, :connect_timeout=, :send_timeout=, :receive_timeout=, :keep_alive_timeout=
3838

3939
def_delegators :default_client, :get, :get_async, :post, :post_async
40-
def_delegators :default_client, :channels, :channel_info, :channel_users, :trigger, :trigger_async
40+
def_delegators :default_client, :channels, :channel_info, :channel_users
41+
def_delegators :default_client, :trigger, :trigger_batch, :trigger_async, :trigger_batch_async
4142
def_delegators :default_client, :authenticate, :webhook, :channel, :[]
4243
def_delegators :default_client, :notify
4344

lib/pusher/channel.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def users(params = {})
120120
# @param custom_string [String] Allows signing additional data
121121
# @return [String]
122122
#
123+
# @raise [Pusher::Error] if socket_id or custom_string invalid
124+
#
123125
def authentication_string(socket_id, custom_string = nil)
124126
validate_socket_id(socket_id)
125127

@@ -157,6 +159,8 @@ def authentication_string(socket_id, custom_string = nil)
157159
#
158160
# @return [Hash]
159161
#
162+
# @raise [Pusher::Error] if socket_id or custom_data is invalid
163+
#
160164
# @private Custom data is sent to server as JSON-encoded string
161165
#
162166
def authenticate(socket_id, custom_data = nil)

lib/pusher/client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,8 @@ def notify(interests, data = {})
345345
#
346346
# @return [Hash]
347347
#
348+
# @raise [Pusher::Error] if channel_name or socket_id are invalid
349+
#
348350
# @private Custom data is sent to server as JSON-encoded string
349351
#
350352
def authenticate(channel_name, socket_id, custom_data = nil)

lib/pusher/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Pusher
2-
VERSION = '1.3.0'
2+
VERSION = '1.3.1'
33
end

pusher.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
2121
s.add_development_dependency "rspec", "~> 3.0"
2222
s.add_development_dependency "webmock"
2323
s.add_development_dependency "em-http-request", "~> 1.1.0"
24+
s.add_development_dependency "addressable", "=2.4.0"
2425
s.add_development_dependency "rake", "~> 10.4.2"
2526
s.add_development_dependency "rack", "~> 1.6.4"
2627
s.add_development_dependency "json", "~> 1.8.3"

0 commit comments

Comments
 (0)