ringcentral_sdk 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2e86f94a7d493e3b4b86817ff1aec24c89403ea9
4
- data.tar.gz: f8943b0a9a385c93ab67d7f4603e54afba43db87
3
+ metadata.gz: 877b510cfc9ecc5864c9b07a4597addcd39d2adc
4
+ data.tar.gz: d4f64600c0d5097a9a33ff29b691625d9c4c3917
5
5
  SHA512:
6
- metadata.gz: c6bdaa8da1d04d5daf0b3b72139c485828959191df63296cd6384883b689e7f267caf9489aea9e8df1294324f9937eed5f4549b3a9deb4e60eb558e836c95133
7
- data.tar.gz: 681810981b4120fbf3679ff93c5f5dfa12e0ffbf445ea20ba3f751ff2299a0bb49ad418a8270f6c8340040a43bde22b5c4ca6dbbf6de9790c2e6b2f152daaa14
6
+ metadata.gz: 84d0277bd3762c77b9ba31955488ec9eed1f3916d7727a0ecb1711abb56221d6d6cd03ff3c07b066b482181055a0403b7cc2a33fdf34672dbab3d6dbc062773a
7
+ data.tar.gz: 3655cc0b68e7ba2af7d453e492bd7042752900d2490106f064a57e2597851b674c17f8c78c71eb9fdcc53632472fd2dffc8f936cada92228ecacc39d35ee79f7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  CHANGELOG
2
2
  ---------
3
+ - **2016-08-24**: 1.3.1
4
+ - Updates
5
+ - Lock PubNub dependency to 3.x due to back compat issue with 4.x
6
+ - **2016-08-23**: 1.3.0
7
+ - Additions
8
+ - Add OAuth 2.0 parameter support for `authorize_(code|password|user)` methods
9
+ - Bugfixes
10
+ - Fix `Client#token` to return token used by `FaradayMiddleware::OAuth2Refresh`
3
11
  - **2016-06-01**: 1.2.3
4
12
  - Updates
5
13
  - Update subscription for new header requirement
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ringcentral_sdk (1.2.3)
4
+ ringcentral_sdk (1.3.1)
5
5
  dotenv (~> 2.1, >= 2.1.0)
6
6
  faraday (~> 0.9, >= 0.9)
7
7
  faraday_middleware (~> 0, >= 0)
@@ -13,7 +13,7 @@ PATH
13
13
  mime_builder (~> 0)
14
14
  multi_json (~> 1.3)
15
15
  oauth2 (~> 1.0, >= 1.0.0)
16
- pubnub (~> 4.0, >= 4.0.0)
16
+ pubnub (~> 3.8)
17
17
  timers (~> 4.1)
18
18
 
19
19
  GEM
@@ -36,7 +36,6 @@ GEM
36
36
  timers (>= 4.1.1)
37
37
  celluloid-supervision (0.20.6)
38
38
  timers (>= 4.1.1)
39
- concurrent-ruby (1.0.2)
40
39
  coveralls (0.8.15)
41
40
  json (>= 1.8, < 3)
42
41
  simplecov (~> 0.12.0)
@@ -45,33 +44,6 @@ GEM
45
44
  tins (>= 1.6.0, < 2)
46
45
  docile (1.1.5)
47
46
  dotenv (2.1.1)
48
- dry-configurable (0.1.7)
49
- concurrent-ruby (~> 1.0)
50
- dry-container (0.4.0)
51
- concurrent-ruby (~> 1.0)
52
- dry-configurable (~> 0.1, >= 0.1.3)
53
- dry-equalizer (0.2.0)
54
- dry-logic (0.3.0)
55
- dry-container (~> 0.2, >= 0.2.6)
56
- dry-equalizer (~> 0.2)
57
- dry-monads (0.1.0)
58
- dry-equalizer
59
- dry-types (0.8.1)
60
- concurrent-ruby (~> 1.0)
61
- dry-configurable (~> 0.1)
62
- dry-container (~> 0.3)
63
- dry-equalizer (~> 0.2)
64
- dry-logic (~> 0.3, >= 0.3.0)
65
- dry-monads (>= 0.0.1)
66
- ice_nine (~> 0.11)
67
- inflecto (~> 0.0.0, >= 0.0.2)
68
- dry-validation (0.9.5)
69
- concurrent-ruby (~> 1.0)
70
- dry-configurable (~> 0.1, >= 0.1.3)
71
- dry-container (~> 0.2, >= 0.2.8)
72
- dry-equalizer (~> 0.2)
73
- dry-logic (~> 0.3, >= 0.3.0)
74
- dry-types (~> 0.8, >= 0.8.1)
75
47
  faraday (0.9.2)
76
48
  multipart-post (>= 1.2, < 3)
77
49
  faraday_middleware (0.10.0)
@@ -81,10 +53,8 @@ GEM
81
53
  faraday_middleware (~> 0, >= 0)
82
54
  hitimes (1.2.4)
83
55
  httpclient (2.8.2.2)
84
- ice_nine (0.11.2)
85
- inflecto (0.0.2)
86
56
  json (1.8.3)
87
- jsondoc (0.1.2)
57
+ jsondoc (0.1.3)
88
58
  jwt (1.5.4)
89
59
  logger (1.2.8)
90
60
  metaclass (0.0.4)
@@ -107,10 +77,9 @@ GEM
107
77
  multi_xml (~> 0.5)
108
78
  rack (>= 1.2, < 3)
109
79
  power_assert (0.3.0)
110
- pubnub (4.0.7)
80
+ pubnub (3.8.2)
111
81
  celluloid (~> 0.17)
112
- dry-validation (~> 0.8)
113
- httpclient (~> 2.8)
82
+ httpclient (~> 2.6)
114
83
  json (~> 1.8)
115
84
  rack (2.0.1)
116
85
  rake (11.2.2)
@@ -140,4 +109,4 @@ DEPENDENCIES
140
109
  test-unit
141
110
 
142
111
  BUNDLED WITH
143
- 1.11.2
112
+ 1.12.5
@@ -1,5 +1,5 @@
1
1
  module RingCentralSdk
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
 
4
4
  RC_SERVER_PRODUCTION = 'https://platform.ringcentral.com'
5
5
  RC_SERVER_SANDBOX = 'https://platform.devtest.ringcentral.com'
@@ -6,6 +6,8 @@ require 'openssl'
6
6
  require 'pubnub'
7
7
  require 'timers'
8
8
 
9
+ require 'pp'
10
+
9
11
  module RingCentralSdk::REST
10
12
  class Subscription
11
13
  include Observable
@@ -225,7 +227,7 @@ module RingCentralSdk::REST
225
227
  ciphertext = Base64.decode64(message)
226
228
  plaintext = cipher.update(ciphertext) + cipher.final
227
229
 
228
- message = MultiJson.decode(plaintext, :symbolize_keys=>false)
230
+ message = MultiJson.decode(plaintext, symbolize_keys: false)
229
231
  end
230
232
 
231
233
  return message
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ringcentral_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-23 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv
@@ -206,20 +206,14 @@ dependencies:
206
206
  requirements:
207
207
  - - "~>"
208
208
  - !ruby/object:Gem::Version
209
- version: '4.0'
210
- - - ">="
211
- - !ruby/object:Gem::Version
212
- version: 4.0.0
209
+ version: '3.8'
213
210
  type: :runtime
214
211
  prerelease: false
215
212
  version_requirements: !ruby/object:Gem::Requirement
216
213
  requirements:
217
214
  - - "~>"
218
215
  - !ruby/object:Gem::Version
219
- version: '4.0'
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: 4.0.0
216
+ version: '3.8'
223
217
  - !ruby/object:Gem::Dependency
224
218
  name: timers
225
219
  requirement: !ruby/object:Gem::Requirement
@@ -335,8 +329,6 @@ files:
335
329
  - lib/ringcentral_sdk/rest/request/simple.rb
336
330
  - lib/ringcentral_sdk/rest/simple_client.rb
337
331
  - lib/ringcentral_sdk/rest/subscription.rb
338
- - mkdocs.yml
339
- - ringcentral_sdk.gemspec
340
332
  - test/test_base.rb
341
333
  - test/test_client.rb
342
334
  - test/test_config.rb
@@ -367,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
367
359
  version: '0'
368
360
  requirements: []
369
361
  rubyforge_project:
370
- rubygems_version: 2.4.8
362
+ rubygems_version: 2.5.1
371
363
  signing_key:
372
364
  specification_version: 4
373
365
  summary: RingCentral SDK - Ruby SDK for the RingCentral Connect Platform API
data/mkdocs.yml DELETED
@@ -1,35 +0,0 @@
1
- site_name: RingCentral SDK for Ruby
2
- site_url: https://github.com/grokify/ringcentral-sdk-ruby
3
- repo_url: https://github.com/grokify/ringcentral-sdk-ruby.git
4
- docs_dir: docs
5
- theme: readthedocs
6
- pages:
7
- # Introduction:
8
- - ['index.md', 'About', 'RingCentral SDK']
9
- - ['quickstart.md', 'About', 'Quickstart']
10
-
11
- ## Authorization:
12
- - ['usage/authorization/Authorization.md', 'Authorization', 'Authorization']
13
-
14
- ## Generic HTTP
15
- - ['usage/http-client.md', 'Generic Requests', 'HTTP Client']
16
-
17
- ## Messaging:
18
- - ['usage/messages/SMS-Messages.md', 'Messaging', 'SMS Messages']
19
- - ['usage/messages/Fax-Messages.md', 'Messaging', 'Fax Messages']
20
-
21
- ## Voice:
22
- - ['usage/voice/Click-To-Call.md', 'Voice', 'Click-To-Call']
23
- - ['usage/messages/Call-Recordings.md', 'Voice', 'Call Recordings']
24
-
25
- ## Answering Rules:
26
- - ['usage/answering-rules/Answering-Rules-Call-Forwarding.md', 'Answering Rules', 'Call Forwarding']
27
-
28
- ## Call Queues:
29
- - ['usage/callqueues/Adding-Removing-Users.md', 'Call Queues', 'Adding and Removing Users']
30
- - ['usage/callqueues/Member-Status.md', 'Call Queues', 'Member Status']
31
-
32
- ## Notifications:
33
- - ['usage/notifications/Subscriptions.md', 'Notifications', 'Subscriptions']
34
- - ['usage/notifications/Subscribe_to_All_Extensions.md', 'Notifications', 'Subscribe to All Extensions']
35
- - ['usage/notifications/Subscribe_for_New_SMS.md', 'Notifications', 'Subscribe for New SMS']
@@ -1,40 +0,0 @@
1
- lib = 'ringcentral_sdk'
2
- lib_file = File.expand_path("../lib/#{lib}.rb", __FILE__)
3
- File.read(lib_file) =~ /\bVERSION\s*=\s*["'](.+?)["']/
4
- version = $1
5
- #require File.expand_path('../lib/ringcentral_sdk/version', __FILE__)
6
-
7
- Gem::Specification.new do |s|
8
- s.name = 'ringcentral_sdk'
9
- s.version = version
10
- s.date = '2016-08-23'
11
- s.summary = 'RingCentral SDK - Ruby SDK for the RingCentral Connect Platform API'
12
- s.description = 'A Ruby SDK for the RingCentral Connect Platform API'
13
- s.authors = ['John Wang']
14
- s.email = 'johncwang@gmail.com'
15
- s.homepage = 'https://github.com/grokify/'
16
- s.licenses = ['MIT']
17
- s.files = Dir['lib/**/**/*']
18
- s.files += Dir['[A-Z]*'] + Dir['test/**/*']
19
- # s.files.reject! { |fn| fn.include? "CVS" }
20
- # s.required_ruby_version = '>= 1.8.7' # 1.8.7+ is tested
21
- s.add_dependency 'dotenv', '~> 2.1', '>= 2.1.0'
22
- s.add_dependency 'faraday', '~> 0.9', '>= 0.9'
23
- s.add_dependency 'faraday_middleware', '~> 0', '>= 0'
24
- s.add_dependency 'faraday_middleware-oauth2_refresh', '~> 0'
25
- s.add_dependency 'jsondoc', '~> 0.1', '>= 0.1.0'
26
- s.add_dependency 'logger'
27
- s.add_dependency 'mime', '~> 0.4', '>= 0.4.3'
28
- s.add_dependency 'mime-types', '~> 3.1' # >= 1.9 '~> 2.5', '>= 2.5'
29
- s.add_dependency 'mime_builder', '~> 0'
30
- s.add_dependency 'multi_json', '~> 1.3'
31
- s.add_dependency 'oauth2', '~> 1.0', '>= 1.0.0'
32
- s.add_dependency 'pubnub', '~> 4.0', '>= 4.0.0'
33
- s.add_dependency 'timers', '~> 4.1'
34
-
35
- s.add_development_dependency 'coveralls'
36
- s.add_development_dependency 'mocha'
37
- s.add_development_dependency 'rake'
38
- s.add_development_dependency 'simplecov'
39
- s.add_development_dependency 'test-unit'
40
- end