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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8a77d5f3168132be3b18834c92d797ce3067dee
4
- data.tar.gz: 65437b6baed64c1659b6fd2da239b0537432ecb0
3
+ metadata.gz: ed1f11964261dd089725408b9b0cdafbdb102f84
4
+ data.tar.gz: e5089f52a913070a54bcc123bac308f6dd0711b0
5
5
  SHA512:
6
- metadata.gz: 4ea71338a8eb17f99b27d376228a079d8ec1392bc5d19d03503c50fab401356a6d5f83a33c32e3d223c94164a5c183a196f4cb290cf279798365a51bb606d5c6
7
- data.tar.gz: bba65a6930f72b19e9d8ac42fb1f2a22605cc2a5ff0fad10923099cbc4bbb355ed4fa8ea0a40d7f01287ecea5613a61ab3e0afb5f6fb3db14c89d67abeb6bf82
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. This should never be used/needed.
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
 
@@ -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/channel')
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
@@ -1,3 +1,3 @@
1
1
  module Pandapush
2
- VERSION = "1.1.0"
2
+ VERSION = "1.2.0"
3
3
  end
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.1.0
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: 2015-12-31 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client