Skip to content

Commit

Permalink
Merge pull request #115 from pusher/prep-v1.2.1
Browse files Browse the repository at this point in the history
Prep v1.3.1
  • Loading branch information
vivangkumar authored Mar 15, 2017
2 parents 8e99bf4 + 4b95faa commit adf0498
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
1.3.1 / 2017-03-15
==================

* Added missing client batch methods to default client delegations
* Document raised exception in the `authenticate` method
* Fixes em-http-request from using v2.5.0 of `addressable` breaking builds.

1.3.0 / 2016-08-23
==================
Expand Down
3 changes: 2 additions & 1 deletion lib/pusher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class << self
def_delegators :default_client, :timeout=, :connect_timeout=, :send_timeout=, :receive_timeout=, :keep_alive_timeout=

def_delegators :default_client, :get, :get_async, :post, :post_async
def_delegators :default_client, :channels, :channel_info, :channel_users, :trigger, :trigger_async
def_delegators :default_client, :channels, :channel_info, :channel_users
def_delegators :default_client, :trigger, :trigger_batch, :trigger_async, :trigger_batch_async
def_delegators :default_client, :authenticate, :webhook, :channel, :[]
def_delegators :default_client, :notify

Expand Down
4 changes: 4 additions & 0 deletions lib/pusher/channel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def users(params = {})
# @param custom_string [String] Allows signing additional data
# @return [String]
#
# @raise [Pusher::Error] if socket_id or custom_string invalid
#
def authentication_string(socket_id, custom_string = nil)
validate_socket_id(socket_id)

Expand Down Expand Up @@ -157,6 +159,8 @@ def authentication_string(socket_id, custom_string = nil)
#
# @return [Hash]
#
# @raise [Pusher::Error] if socket_id or custom_data is invalid
#
# @private Custom data is sent to server as JSON-encoded string
#
def authenticate(socket_id, custom_data = nil)
Expand Down
2 changes: 2 additions & 0 deletions lib/pusher/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ def notify(interests, data = {})
#
# @return [Hash]
#
# @raise [Pusher::Error] if channel_name or socket_id are invalid
#
# @private Custom data is sent to server as JSON-encoded string
#
def authenticate(channel_name, socket_id, custom_data = nil)
Expand Down
2 changes: 1 addition & 1 deletion lib/pusher/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Pusher
VERSION = '1.3.0'
VERSION = '1.3.1'
end
1 change: 1 addition & 0 deletions pusher.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec", "~> 3.0"
s.add_development_dependency "webmock"
s.add_development_dependency "em-http-request", "~> 1.1.0"
s.add_development_dependency "addressable", "=2.4.0"
s.add_development_dependency "rake", "~> 10.4.2"
s.add_development_dependency "rack", "~> 1.6.4"
s.add_development_dependency "json", "~> 1.8.3"
Expand Down

0 comments on commit adf0498

Please sign in to comment.