pandapush 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/pandapush/client.rb +2 -2
- data/lib/pandapush/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed1f11964261dd089725408b9b0cdafbdb102f84
|
4
|
+
data.tar.gz: e5089f52a913070a54bcc123bac308f6dd0711b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20348abcdf6f57480d05f9ac8d99648659cd43c876e96f80ba42d2b2d80f2a29c47dec902dac261c4b0eda9147befec26039599537c51713137374117d93fe25
|
7
|
+
data.tar.gz: 28ae36cb4cba536455417959906e110e323b705e5a6c75e15bcf0da7f188fa1066513364dba4f2335c7d9c1426d1a4333d1a2d6fa961d18ad7128b3c42740ee4
|
data/README.md
CHANGED
@@ -105,7 +105,7 @@ Getter and setter for your app secret.
|
|
105
105
|
|
106
106
|
### Pandapush.url
|
107
107
|
|
108
|
-
Getter and setter to override the default url we use for Pandapush.
|
108
|
+
Getter and setter to override the default url we use for Pandapush.
|
109
109
|
|
110
110
|
All methods can also be accessed from `Pandapush::Client.new`.
|
111
111
|
|
data/lib/pandapush/client.rb
CHANGED
@@ -6,7 +6,7 @@ module Pandapush
|
|
6
6
|
|
7
7
|
attr_accessor :app_id, :key, :secret, :url
|
8
8
|
|
9
|
-
def initialize(app_id: nil, key: nil, secret: nil, url: 'https://pp-beta.instructure.com
|
9
|
+
def initialize(app_id: nil, key: nil, secret: nil, url: 'https://pp-beta.instructure.com')
|
10
10
|
@app_id, @key, @secret, @url = app_id, key, secret, url
|
11
11
|
end
|
12
12
|
|
@@ -50,7 +50,7 @@ module Pandapush
|
|
50
50
|
end
|
51
51
|
|
52
52
|
def channel_uri(channel, type, include_base_url: false)
|
53
|
-
"#{include_base_url ? url : ''}/#{app_id}/#{type}/#{channel}"
|
53
|
+
"#{include_base_url ? url.chomp('/') + '/channel' : ''}/#{app_id}/#{type}/#{channel}"
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
data/lib/pandapush/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pandapush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil Gupta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|