Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions lib/sockudo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ def initialize(key)

class HTTPError < Error; attr_accessor :original_error; end

# Alias Pusher::Signature into the Sockudo namespace so that request signing
# works correctly (pusher-signature gem defines Pusher::Signature, not Sockudo::Signature).
Signature = Pusher::Signature

class << self
extend Forwardable

Expand Down
2 changes: 1 addition & 1 deletion lib/sockudo/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def authentication_token
raise ConfigurationError, :key unless @key
raise ConfigurationError, :secret unless @secret

Sockudo::Signature::Token.new(@key, @secret)
Pusher::Signature::Token.new(@key, @secret)
end

# @private Builds a url for this app, optionally appending a path
Expand Down
2 changes: 1 addition & 1 deletion lib/sockudo/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def initialize(client, verb, uri, params, body = nil, extra_headers = {})
@head['Content-Type'] = 'application/json'
end

request = Sockudo::Signature::Request.new(verb.to_s.upcase, uri.path, params)
request = Pusher::Signature::Request.new(verb.to_s.upcase, uri.path, params)
request.sign(client.authentication_token)
@params = request.signed_params
end
Expand Down
Loading