Skip to content

Channel name encoding error for REST requests#119

Merged
mattheworiordan merged 4 commits into
masterfrom
presence_error
May 31, 2017
Merged

Channel name encoding error for REST requests#119
mattheworiordan merged 4 commits into
masterfrom
presence_error

Conversation

@mattheworiordan

Copy link
Copy Markdown
Member

This PR is just @smeyfroi's PR plus one additional test to prevent a regression.

@smeyfroi

Copy link
Copy Markdown
Contributor

pr looks good but travis not happy... these look like the unrelated fails i was seeing on the old pr... need to leave these to you @mattheworiordan i reckon, sorry!

@mattheworiordan

Copy link
Copy Markdown
Member Author

pr looks good but travis not happy.

Good news is that those errors are unrelated and not an issue. One is a test issue introduced by a hotfix ee038c3. The others are errors simply due to the fixtures not working as expected for push notifications and this test suite not supporting push (see #115). So this branch is definitely save for you to use i.e. in your Gemfile gem ably, git: 'https://github.com/ably/ably-ruby.git', branch: 'presence_error'.

I will get this fixed along with the heartbeat issue soon and do a new release.

@smeyfroi

Copy link
Copy Markdown
Contributor

ah great. i have the 'ably-rest' gem in my bundle here, which doesn't do much beyond bringing this repo in as a submodule. can i just use 'ably-ruby' in my bundle if i'm only using the rest api?

@mattheworiordan

Copy link
Copy Markdown
Member Author

can i just use 'ably-ruby' in my bundle if i'm only using the rest api?

Yup, you can, you just get a few extra dependencies but it won't make any difference in reality. I'll try and get a release out next week.

@smeyfroi

Copy link
Copy Markdown
Contributor

awesome, thanks matthew :-)

smeyfroi and others added 4 commits May 31, 2017 12:06
Avoids this error when doing ```channel.presence.get``` or ```channel.presence.history```:
```
Addressable::URI::InvalidURIError: Invalid scheme format: 294750
```
foo:bar was interpreted as a URI with foo being the protocol previously. Addressable.encode_component could have been used (see https://github.com/sporkmonger/addressable/blob/master/lib/addressable/uri.rb#L355), but URI.encode_www_form_component works perfectly and is used elsewhere in the lib.
@mattheworiordan mattheworiordan merged commit f979c45 into master May 31, 2017
@mattheworiordan mattheworiordan deleted the presence_error branch May 31, 2017 11:07
@mattheworiordan

Copy link
Copy Markdown
Member Author

This is now merged and available in stable release v1.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants