Skip to content

Commit 773c937

Browse files
authored
Merge pull request #125 from BenRoss92/correcting-typos
Correcting Typos
2 parents 095a295 + e64b5d8 commit 773c937

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

README.md

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

137137
``` ruby
138138
Pusher.trigger_batch([
139-
{channel: 'channel_1', name: 'event_name', data: { foo: 'bar' }}
139+
{channel: 'channel_1', name: 'event_name', data: { foo: 'bar' }},
140140
{channel: 'channel_1', name: 'event_name', data: { hello: 'world' }}
141141
])
142142
```
@@ -153,7 +153,7 @@ This will continue to work, but has been replaced by `Pusher.trigger` which supp
153153

154154
### Using the Pusher REST API
155155

156-
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.
156+
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.
157157

158158
The following methods are provided by the gem.
159159

@@ -301,4 +301,3 @@ data = {
301301
```
302302

303303
**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.
304-

lib/pusher/channel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def authentication_string(socket_id, custom_string = nil)
149149
# render :json => Pusher['private-my_channel'].authenticate(params[:socket_id])
150150
#
151151
# @example Presence channels
152-
# render :json => Pusher['private-my_channel'].authenticate(params[:socket_id], {
152+
# render :json => Pusher['presence-my_channel'].authenticate(params[:socket_id], {
153153
# :user_id => current_user.id, # => required
154154
# :user_info => { # => optional - for example
155155
# :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')
@@ -615,4 +615,3 @@
615615
end
616616
end
617617
end
618-

0 commit comments

Comments
 (0)