Skip to content

Commit

Permalink
Merge pull request #55 from urbanairship/wrap-up-release
Browse files Browse the repository at this point in the history
Wrap up release
  • Loading branch information
pdxmele authored Oct 24, 2018
2 parents 8a4765b + 420f8e8 commit e576271
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--------------------
5.0.1
--------------------
- Fix bug with named user association/disassociation

--------------------
5.0.0
--------------------
Expand Down
4 changes: 2 additions & 2 deletions lib/urbanairship/devices/named_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def associate(channel_id: required('channel_id'), device_type: nil)

payload = {}
payload['channel_id'] = channel_id
payload['device_type'] = @device_type unless @device_type.nil?
payload['device_type'] = device_type unless device_type.nil?
payload['named_user_id'] = @named_user_id

response = @client.send_request(
Expand All @@ -35,7 +35,7 @@ def associate(channel_id: required('channel_id'), device_type: nil)
def disassociate(channel_id: required('channel_id'), device_type: nil)
payload = {}
payload['channel_id'] = channel_id
payload['device_type'] = @device_type unless @device_type.nil?
payload['device_type'] = device_type unless device_type.nil?
payload['named_user_id'] = @named_user_id unless @named_user_id.nil?
response = @client.send_request(
method: 'POST',
Expand Down
2 changes: 1 addition & 1 deletion lib/urbanairship/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Urbanairship
VERSION = '5.0.0'
VERSION = '5.0.1'
end

0 comments on commit e576271

Please sign in to comment.