Skip to content

Commit b44188b

Browse files
committed
Correct Typos
- 'endpionts' now 'endpoints' - channel.rb - presence channel example now uses correct 'presence-' format - Pusher#trigger_batch - array items now separated using a comma - client.rb - 'INTERACE' now 'INTERACT' - client_spec.rb - Spelling of test descriptions now correct - 'Using the Pusher REST API' - title markup was not rendering properly
1 parent adf0498 commit b44188b

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ events per call on multi-tenant clusters):
144144

145145
``` ruby
146146
Pusher.trigger_batch([
147-
{channel: 'channel_1', name: 'event_name', data: { foo: 'bar' }}
147+
{channel: 'channel_1', name: 'event_name', data: { foo: 'bar' }},
148148
{channel: 'channel_1', name: 'event_name', data: { hello: 'world' }}
149149
])
150150
```
@@ -159,9 +159,9 @@ Pusher['a_channel'].trigger('an_event', :some => 'data')
159159

160160
This will continue to work, but has been replaced by `Pusher.trigger` which supports one or multiple channels.
161161

162-
### Using the Pusher REST API
162+
### Using the Pusher REST API
163163

164-
This gem provides methods for accessing information from the [Pusher REST API](https://pusher.com/docs/rest_api). The documentation also shows an example of the responses from each of the API endpionts.
164+
This gem provides methods for accessing information from the [Pusher REST API](https://pusher.com/docs/rest_api). The documentation also shows an example of the responses from each of the API endpoints.
165165

166166
The following methods are provided by the gem.
167167

@@ -312,4 +312,3 @@ data = {
312312
```
313313

314314
**NOTE:** This is currently a BETA feature and there might be minor bugs and issues. Changes to the API will be kept to a minimum, but changes are expected. If you come across any bugs or issues, please do get in touch via [support](support@pusher.com) or create an issue here.
315-

lib/pusher/channel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def authentication_string(socket_id, custom_string = nil)
146146
# render :json => Pusher['private-my_channel'].authenticate(params[:socket_id])
147147
#
148148
# @example Presence channels
149-
# render :json => Pusher['private-my_channel'].authenticate(params[:socket_id], {
149+
# render :json => Pusher['presence-my_channel'].authenticate(params[:socket_id], {
150150
# :user_id => current_user.id, # => required
151151
# :user_info => { # => optional - for example
152152
# :name => current_user.name,

lib/pusher/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def timeout=(value)
127127
@connect_timeout, @send_timeout, @receive_timeout = value, value, value
128128
end
129129

130-
## INTERACE WITH THE API ##
130+
## INTERACT WITH THE API ##
131131

132132
def resource(path)
133133
Resource.new(self, path)

spec/client_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,13 @@
8787
expect(@client.host).to eq('api.staging.pusherapp.com')
8888
end
8989

90-
it 'should get override the url configuration if it comes after' do
90+
it 'should override the url configuration if it comes after' do
9191
@client.url = "http://somekey:somesecret@api.staging.pusherapp.com:8080/apps/87"
9292
@client.cluster = 'eu'
9393
expect(@client.host).to eq('api-eu.pusher.com')
9494
end
9595

96-
it 'should overrie by the host configuration if it comes after' do
96+
it 'should override the host configuration if it comes after' do
9797
@client.host = 'api.staging.pusher.com'
9898
@client.cluster = 'eu'
9999
expect(@client.host).to eq('api-eu.pusher.com')
@@ -612,4 +612,3 @@
612612
end
613613
end
614614
end
615-

0 commit comments

Comments
 (0)