lib/submodules/ably-ruby/README.md in ably-rest-0.8.1 vs lib/submodules/ably-ruby/README.md in ably-rest-0.8.2

- old
+ new

@@ -101,15 +101,15 @@ ### Querying the History ```ruby channel.history do |messages_page| - messages_page #=> #<Ably::Models::PaginatedResource ...> + messages_page #=> #<Ably::Models::PaginatedResult ...> messages_page.items.first # #<Ably::Models::Message ...> messages_page.items.first.data # payload for the message messages_page.items.length # number of messages in the current page of history - messages_page.next # retrieves the next page => #<Ably::Models::PaginatedResource ...> + messages_page.next # retrieves the next page => #<Ably::Models::PaginatedResult ...> messages_page.has_next? # false, there are more pages end ``` ### Presence on a channel @@ -125,11 +125,11 @@ ```ruby channel.presence.history do |presence_page| presence_page.items.first.action # Any of :enter, :update or :leave presence_page.items.first.client_id # client ID of member presence_page.items.first.data # optional data payload of member - presence_page.next # retrieves the next page => #<Ably::Models::PaginatedResource ...> + presence_page.next # retrieves the next page => #<Ably::Models::PaginatedResult ...> end ``` ## Using the REST API @@ -151,34 +151,34 @@ ``` ### Querying the History ```ruby -messages_page = channel.history #=> #<Ably::Models::PaginatedResource ...> +messages_page = channel.history #=> #<Ably::Models::PaginatedResult ...> messages_page.items.first #=> #<Ably::Models::Message ...> messages_page.items.first.data # payload for the message -messages_page.next # retrieves the next page => #<Ably::Models::PaginatedResource ...> +messages_page.next # retrieves the next page => #<Ably::Models::PaginatedResult ...> messages_page.has_next? # false, there are more pages ``` ### Presence on a channel ```ruby -members_page = channel.presence.get # => #<Ably::Models::PaginatedResource ...> +members_page = channel.presence.get # => #<Ably::Models::PaginatedResult ...> members_page.items.first # first member present in this page => #<Ably::Models::PresenceMessage ...> members_page.items.first.client_id # client ID of first member present -members_page.next # retrieves the next page => #<Ably::Models::PaginatedResource ...> +members_page.next # retrieves the next page => #<Ably::Models::PaginatedResult ...> members_page.has_next? # false, there are more pages ``` ### Querying the Presence History ```ruby -presence_page = channel.presence.history #=> #<Ably::Models::PaginatedResource ...> +presence_page = channel.presence.history #=> #<Ably::Models::PaginatedResult ...> presence_page.items.first #=> #<Ably::Models::PresenceMessage ...> presence_page.items.first.client_id # client ID of first member -presence_page.next # retrieves the next page => #<Ably::Models::PaginatedResource ...> +presence_page.next # retrieves the next page => #<Ably::Models::PaginatedResult ...> ``` ### Generate Token and Token Request ```ruby @@ -198,13 +198,13 @@ ``` ### Fetching your application's stats ```ruby -stats_page = client.stats #=> #<Ably::Models::PaginatedResource ...> +stats_page = client.stats #=> #<Ably::Models::PaginatedResult ...> stats_page.items.first = #<Ably::Models::Stats ...> -stats_page.next # retrieves the next page => #<Ably::Models::PaginatedResource ...> +stats_page.next # retrieves the next page => #<Ably::Models::PaginatedResult ...> ``` ### Fetching the Ably service time ```ruby @@ -213,14 +213,18 @@ ## Dependencies If you only need to use the REST features of this library and do not want EventMachine as a dependency, then you should use the [Ably Ruby REST gem](https://rubygems.org/gems/ably-rest). -## Support and feedback +## Support, feedback and troubleshooting -Please visit https://support.ably.io/ for access to our knowledgebase and to ask for any assistance. +Please visit http://support.ably.io/ for access to our knowledgebase and to ask for any assistance. +You can also view the [community reported Github issues](https://github.com/ably/ably-ruby/issues). + +To see what has changed in recent versions of Bundler, see the [CHANGELOG](CHANGELOG.md). + ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) @@ -228,6 +232,6 @@ 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request ## License -Copyright (c) 2015 Ably, Licensed under an MIT license. Refer to [LICENSE.txt](LICENSE.txt) for the license terms. +Copyright (c) 2015 Ably Real-time Ltd, Licensed under the Apache License, Version 2.0. Refer to [LICENSE](LICENSE) for the license terms.