pokitdok-ruby 0.7.2 → 0.7.3

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: d8d295a4e720cbc16c0760e1bd39f0458d2dbff0
4
- data.tar.gz: 35fd84a68b5c6dd2e9e17d0e3afc3c02668679ab
3
+ metadata.gz: 70391a7dc085e2db043e4c9fc7633db2e805e53c
4
+ data.tar.gz: 24bb425cf62b903f97ca9f8b1c1d1c69689dfde2
5
5
  SHA512:
6
- metadata.gz: d167b436927487759778b7a40f43595ea29f06386389ad9f721a76e8f50bdff1cc53f99e6b663c844d2c916e9d76443af5fa02144fc28778590c60e797499133
7
- data.tar.gz: 07387fa5e0f1959879ec98219c709b49073808dc7483eacfd5fe576aa616aa26e20fee638c14a90562dcfee2c5bb72df9bfa86c3c737aba5c1b8a9979ed86f7e
6
+ metadata.gz: 78d2687b4448e3544d1e2a347e6e7df664a2dd4afa2e6ee4db66260f8a5b090d7913329908ec2b5169932e759d40a254f8b732a1e7506bf6cca1be979fea1fee
7
+ data.tar.gz: b712a0e8a0c2e540f9527bf2ae5a701ff93dbd1c728eccd034fdfd4d96d6d1646c8fd2e0c99c6e65aed6e390ad83267fbbd5603e7e0d80055fbbd850ff64c597
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
- source 'http://rubygems.org'
2
- gem 'oauth2', '~> 0.9', require: 'oauth2'
1
+ source 'https://rubygems.org'
2
+ gem 'oauth2', '~> 1.0', require: 'oauth2'
3
3
  gem 'multipart-post', '~> 2.0'
4
4
 
5
5
  group :development do
data/Gemfile.lock CHANGED
@@ -1,5 +1,5 @@
1
1
  GEM
2
- remote: http://rubygems.org/
2
+ remote: https://rubygems.org/
3
3
  specs:
4
4
  addressable (2.3.8)
5
5
  ansi (1.5.0)
@@ -23,7 +23,7 @@ GEM
23
23
  docile (1.1.5)
24
24
  domain_name (0.5.24)
25
25
  unf (>= 0.0.5, < 1.0.0)
26
- faraday (0.9.1)
26
+ faraday (0.9.2)
27
27
  multipart-post (>= 1.2, < 3)
28
28
  ffi (1.9.8)
29
29
  formatador (0.2.5)
@@ -67,7 +67,7 @@ GEM
67
67
  rake
68
68
  rdoc
69
69
  json (1.8.2)
70
- jwt (1.5.0)
70
+ jwt (1.5.1)
71
71
  listen (2.10.0)
72
72
  celluloid (~> 0.16.0)
73
73
  rb-fsevent (>= 0.9.3)
@@ -85,7 +85,7 @@ GEM
85
85
  ruby-progressbar
86
86
  mocha (1.1.0)
87
87
  metaclass (~> 0.0.1)
88
- multi_json (1.11.0)
88
+ multi_json (1.12.0)
89
89
  multi_xml (0.5.5)
90
90
  multipart-post (2.0.0)
91
91
  nenv (0.2.0)
@@ -95,12 +95,12 @@ GEM
95
95
  notiffany (0.0.6)
96
96
  nenv (~> 0.1)
97
97
  shellany (~> 0.0)
98
- oauth2 (0.9.4)
98
+ oauth2 (1.1.0)
99
99
  faraday (>= 0.8, < 0.10)
100
- jwt (~> 1.0)
100
+ jwt (~> 1.0, < 1.5.2)
101
101
  multi_json (~> 1.3)
102
102
  multi_xml (~> 0.5)
103
- rack (~> 1.2)
103
+ rack (>= 1.2, < 3)
104
104
  parser (2.2.2.3)
105
105
  ast (>= 1.1, < 3.0)
106
106
  powerpack (0.1.1)
@@ -108,7 +108,7 @@ GEM
108
108
  coderay (~> 1.1.0)
109
109
  method_source (~> 0.8.1)
110
110
  slop (~> 3.4)
111
- rack (1.6.1)
111
+ rack (1.6.4)
112
112
  rainbow (2.0.0)
113
113
  rake (10.4.2)
114
114
  rb-fsevent (0.9.5)
@@ -167,7 +167,7 @@ DEPENDENCIES
167
167
  minitest-reporters (~> 1.0)
168
168
  mocha (~> 1.0)
169
169
  multipart-post (~> 2.0)
170
- oauth2 (~> 0.9)
170
+ oauth2 (~> 1.0)
171
171
  rdoc (~> 4.1)
172
172
  rubocop (~> 0.20)
173
173
  simplecov (~> 0.8)
@@ -175,3 +175,6 @@ DEPENDENCIES
175
175
  terminal-notifier-guard (~> 1.5)
176
176
  vcr (~> 2.9)
177
177
  webmock (~> 1.17)
178
+
179
+ BUNDLED WITH
180
+ 1.12.1
data/Rakefile CHANGED
@@ -18,8 +18,8 @@ Jeweler::Tasks.new do |gem|
18
18
  gem.license = 'MIT'
19
19
  gem.summary = %Q(Gem for easy access to the PokitDok Platform APIs)
20
20
  gem.description = %Q(Gem for easy access to the PokitDok Platform APIs.)
21
- gem.email = 'john.riney@pokitdok.com'
22
- gem.authors = ['John Riney']
21
+ gem.email = 'platform@pokitdok.com'
22
+ gem.authors = ['PokitDok, Inc.']
23
23
  end
24
24
 
25
25
  Jeweler::RubygemsDotOrgTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.2
1
+ 0.7.3
data/lib/pokitdok.rb CHANGED
@@ -345,6 +345,52 @@ module PokitDok
345
345
  scope 'user_schedule'
346
346
  end
347
347
 
348
+ # Invokes the pharmacy plans endpoint.
349
+ #
350
+ # +params+ an optional Hash of parameters
351
+ #
352
+ def pharmacy_plans(params = {})
353
+ response = default_scope.get('pharmacy/plans') do |request|
354
+ request.params = params
355
+ end
356
+ JSON.parse(response.body)
357
+ end
358
+
359
+ # Invokes the pharmacy formulary endpoint.
360
+ #
361
+ # +params+ an optional Hash of parameters
362
+ #
363
+ def pharmacy_formulary(params = {})
364
+ response = default_scope.get('pharmacy/formulary') do |request|
365
+ request.params = params
366
+ end
367
+ JSON.parse(response.body)
368
+ end
369
+
370
+ # Invokes the pharmacy drug cost endpoint.
371
+ #
372
+ # +params+ an optional Hash of parameters
373
+ #
374
+ def pharmacy_drug_cost(params = {})
375
+ response = default_scope.get('pharmacy/drug/cost') do |request|
376
+ request.params = params
377
+ end
378
+ JSON.parse(response.body)
379
+ end
380
+
381
+ # Invokes the pharmacy network cost endpoint.
382
+ #
383
+ # +params+ an optional Hash of parameters
384
+ #
385
+ def pharmacy_network(params = {})
386
+ npi = params.delete :npi
387
+ endpoint = npi ? "pharmacy/network/#{npi}" : "pharmacy/network"
388
+ response = default_scope.get(endpoint) do |request|
389
+ request.params = params
390
+ end
391
+ JSON.parse(response.body)
392
+ end
393
+
348
394
  # Updates the specified appointment.
349
395
  #
350
396
  # This endpoint uses the user_schedule OAuth2 scope. You'll need to
@@ -2,18 +2,18 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: pokitdok-ruby 0.7.2 ruby lib
5
+ # stub: pokitdok-ruby 0.7.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "pokitdok-ruby"
9
- s.version = "0.7.2"
9
+ s.version = "0.7.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
- s.authors = ["John Riney"]
14
- s.date = "2015-05-22"
13
+ s.authors = ["PokitDok, Inc."]
14
+ s.date = "2016-05-04"
15
15
  s.description = "Gem for easy access to the PokitDok Platform APIs."
16
- s.email = "john.riney@pokitdok.com"
16
+ s.email = "platform@pokitdok.com"
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE.txt",
19
19
  "README.md"
@@ -61,14 +61,14 @@ Gem::Specification.new do |s|
61
61
  ]
62
62
  s.homepage = "http://github.com/pokitdok/pokitdok-ruby"
63
63
  s.licenses = ["MIT"]
64
- s.rubygems_version = "2.4.3"
64
+ s.rubygems_version = "2.4.8"
65
65
  s.summary = "Gem for easy access to the PokitDok Platform APIs"
66
66
 
67
67
  if s.respond_to? :specification_version then
68
68
  s.specification_version = 4
69
69
 
70
70
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
71
- s.add_runtime_dependency(%q<oauth2>, ["~> 0.9"])
71
+ s.add_runtime_dependency(%q<oauth2>, ["~> 1.0"])
72
72
  s.add_runtime_dependency(%q<multipart-post>, ["~> 2.0"])
73
73
  s.add_development_dependency(%q<bundler>, ["~> 1.0"])
74
74
  s.add_development_dependency(%q<minitest>, ["~> 5.3"])
@@ -88,7 +88,7 @@ Gem::Specification.new do |s|
88
88
  s.add_development_dependency(%q<guard-rubocop>, ["~> 1.0"])
89
89
  s.add_development_dependency(%q<coveralls>, [">= 0"])
90
90
  else
91
- s.add_dependency(%q<oauth2>, ["~> 0.9"])
91
+ s.add_dependency(%q<oauth2>, ["~> 1.0"])
92
92
  s.add_dependency(%q<multipart-post>, ["~> 2.0"])
93
93
  s.add_dependency(%q<bundler>, ["~> 1.0"])
94
94
  s.add_dependency(%q<minitest>, ["~> 5.3"])
@@ -109,7 +109,7 @@ Gem::Specification.new do |s|
109
109
  s.add_dependency(%q<coveralls>, [">= 0"])
110
110
  end
111
111
  else
112
- s.add_dependency(%q<oauth2>, ["~> 0.9"])
112
+ s.add_dependency(%q<oauth2>, ["~> 1.0"])
113
113
  s.add_dependency(%q<multipart-post>, ["~> 2.0"])
114
114
  s.add_dependency(%q<bundler>, ["~> 1.0"])
115
115
  s.add_dependency(%q<minitest>, ["~> 5.3"])
metadata CHANGED
@@ -1,291 +1,291 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pokitdok-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
- - John Riney
7
+ - PokitDok, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '0.9'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: '0.9'
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: multipart-post
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
61
  version: '5.3'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: '5.3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mocha
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0.8'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0.8'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0.20'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0.20'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rdoc
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ~>
116
116
  - !ruby/object:Gem::Version
117
117
  version: '4.1'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ~>
123
123
  - !ruby/object:Gem::Version
124
124
  version: '4.1'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: jeweler
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ~>
130
130
  - !ruby/object:Gem::Version
131
131
  version: '2.0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ~>
137
137
  - !ruby/object:Gem::Version
138
138
  version: '2.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: ansi
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ~>
144
144
  - !ruby/object:Gem::Version
145
145
  version: '1.4'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ~>
151
151
  - !ruby/object:Gem::Version
152
152
  version: '1.4'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: minitest-reporters
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ~>
158
158
  - !ruby/object:Gem::Version
159
159
  version: '1.0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - ~>
165
165
  - !ruby/object:Gem::Version
166
166
  version: '1.0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: vcr
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ~>
172
172
  - !ruby/object:Gem::Version
173
173
  version: '2.9'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ~>
179
179
  - !ruby/object:Gem::Version
180
180
  version: '2.9'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: webmock
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - ~>
186
186
  - !ruby/object:Gem::Version
187
187
  version: '1.17'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - "~>"
192
+ - - ~>
193
193
  - !ruby/object:Gem::Version
194
194
  version: '1.17'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: guard
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - "~>"
199
+ - - ~>
200
200
  - !ruby/object:Gem::Version
201
201
  version: '2.6'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - "~>"
206
+ - - ~>
207
207
  - !ruby/object:Gem::Version
208
208
  version: '2.6'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: guard-minitest
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - "~>"
213
+ - - ~>
214
214
  - !ruby/object:Gem::Version
215
215
  version: '2.2'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - "~>"
220
+ - - ~>
221
221
  - !ruby/object:Gem::Version
222
222
  version: '2.2'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: terminal-notifier
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - ">="
227
+ - - '>='
228
228
  - !ruby/object:Gem::Version
229
229
  version: '0'
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - ">="
234
+ - - '>='
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: terminal-notifier-guard
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - "~>"
241
+ - - ~>
242
242
  - !ruby/object:Gem::Version
243
243
  version: '1.5'
244
244
  type: :development
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
- - - "~>"
248
+ - - ~>
249
249
  - !ruby/object:Gem::Version
250
250
  version: '1.5'
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: guard-rubocop
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
- - - "~>"
255
+ - - ~>
256
256
  - !ruby/object:Gem::Version
257
257
  version: '1.0'
258
258
  type: :development
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
- - - "~>"
262
+ - - ~>
263
263
  - !ruby/object:Gem::Version
264
264
  version: '1.0'
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: coveralls
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - ">="
269
+ - - '>='
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
272
  type: :development
273
273
  prerelease: false
274
274
  version_requirements: !ruby/object:Gem::Requirement
275
275
  requirements:
276
- - - ">="
276
+ - - '>='
277
277
  - !ruby/object:Gem::Version
278
278
  version: '0'
279
279
  description: Gem for easy access to the PokitDok Platform APIs.
280
- email: john.riney@pokitdok.com
280
+ email: platform@pokitdok.com
281
281
  executables: []
282
282
  extensions: []
283
283
  extra_rdoc_files:
284
284
  - LICENSE.txt
285
285
  - README.md
286
286
  files:
287
- - ".document"
288
- - ".travis.yml"
287
+ - .document
288
+ - .travis.yml
289
289
  - Gemfile
290
290
  - Gemfile.lock
291
291
  - Guardfile
@@ -333,17 +333,17 @@ require_paths:
333
333
  - lib
334
334
  required_ruby_version: !ruby/object:Gem::Requirement
335
335
  requirements:
336
- - - ">="
336
+ - - '>='
337
337
  - !ruby/object:Gem::Version
338
338
  version: '0'
339
339
  required_rubygems_version: !ruby/object:Gem::Requirement
340
340
  requirements:
341
- - - ">="
341
+ - - '>='
342
342
  - !ruby/object:Gem::Version
343
343
  version: '0'
344
344
  requirements: []
345
345
  rubyforge_project:
346
- rubygems_version: 2.4.3
346
+ rubygems_version: 2.4.8
347
347
  signing_key:
348
348
  specification_version: 4
349
349
  summary: Gem for easy access to the PokitDok Platform APIs