Archived
1
0
Fork 0

Fix errors caused by Tox gem changes

This commit is contained in:
Braiden Vasco 2018-04-08 08:44:17 +00:00
parent 2816e3823e
commit 7533f6994e
No known key found for this signature in database
GPG key ID: F1D3CA63437BDC6F
2 changed files with 3 additions and 3 deletions

View file

@ -13,4 +13,4 @@ SAVEDATA_FILENAME = File.expand_path '../savedata', __dir__
tox_options = Tox::Options.new tox_options = Tox::Options.new
tox_options.savedata = File.binread SAVEDATA_FILENAME tox_options.savedata = File.binread SAVEDATA_FILENAME
tox_client = Tox::Client.new tox_options tox_client = Tox::Client.new tox_options
puts tox_client.address.to_hex puts tox_client.address

View file

@ -39,7 +39,7 @@ module Reducers
friends: action.friends.map do |friend| friends: action.friends.map do |friend|
[ [
friend.number, friend.number,
public_key: friend.public_key.to_hex.freeze, public_key: friend.public_key.to_s,
name: friend.name.freeze, name: friend.name.freeze,
status: friend.status, status: friend.status,
status_message: friend.status_message.freeze, status_message: friend.status_message.freeze,
@ -59,7 +59,7 @@ module Reducers
friends: state[:friends].merge( friends: state[:friends].merge(
action.friend.number => { action.friend.number => {
public_key: action.friend.public_key.to_hex.freeze, public_key: action.friend.public_key.to_s,
name: action.friend.name.freeze, name: action.friend.name.freeze,
status: action.friend.status, status: action.friend.status,
status_message: action.friend.status_message.freeze, status_message: action.friend.status_message.freeze,