pokitdok-ruby 0.8.0 → 0.8.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 +4 -4
- data/README.md +3 -9
- data/VERSION +1 -1
- data/lib/OAuthApplicationClient.rb +1 -2
- data/lib/pokitdok.rb +0 -10
- data/pokitdok-ruby.gemspec +3 -3
- data/spec/pokitdok_spec.rb +0 -11
- 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: 7e5fc97ed93ded2d7833c84d29c18d063bb981d7
|
4
|
+
data.tar.gz: 91f2ccc9591cb8d70c291beb809b67be1213c055
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b43e6fd5e7fe7769c281944a0a9590abab65851ea1f8cb9cecdec1b704616b5600cbf53e9a647c3c8ff6d1d4602565c759fd0e60ac5c23afc3ffc83a34090139
|
7
|
+
data.tar.gz: 3dea34981e2c905a08e9fe87bf851019e5f145ef804128d79ad61ef9559140e882e2b7d317840e3365211113b3cce98bb05461063c55ac7c0d3389d520cd7b31
|
data/README.md
CHANGED
@@ -112,9 +112,6 @@ pd.activities(activity_id: '5362b5a064da150ef6f2526c')
|
|
112
112
|
# Check on a batch of activities
|
113
113
|
pd.activities(parent_id: '537cd4b240b35755f5128d5c')
|
114
114
|
|
115
|
-
# Upload an EDI file
|
116
|
-
pd.files('trading_partner_id', 'path/to/a_file.edi')
|
117
|
-
|
118
115
|
# Get cash prices
|
119
116
|
pd.cash_prices(cpt_code: '87799', zip_code: '75201')
|
120
117
|
|
@@ -123,12 +120,9 @@ pd.insurance_prices(cpt_code: '87799', zip_code: '29403')
|
|
123
120
|
|
124
121
|
```
|
125
122
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
```
|
131
|
-
@pd = PokitDok::PokitDok.new('my_client_id', 'my_client_secret', 'v3')
|
123
|
+
## Check SSL protocol and cipher
|
124
|
+
```ruby
|
125
|
+
pd.request('/ssl/')
|
132
126
|
```
|
133
127
|
|
134
128
|
## Supported Ruby Versions
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.1
|
@@ -122,13 +122,12 @@ class OAuthApplicationClient
|
|
122
122
|
if code
|
123
123
|
# Currently non functioning as our OAuth2 authorization_code grant type is not implemented on the server
|
124
124
|
params = {
|
125
|
-
headers: { 'Authorization' => 'Basic' },
|
126
125
|
scope: @scope,
|
127
126
|
redirect_uri: @redirect_uri
|
128
127
|
}
|
129
128
|
@token = @api_client.auth_code.get_token(code, params)
|
130
129
|
else
|
131
|
-
@token = @api_client.client_credentials.get_token(
|
130
|
+
@token = @api_client.client_credentials.get_token()
|
132
131
|
end
|
133
132
|
end
|
134
133
|
|
data/lib/pokitdok.rb
CHANGED
@@ -150,16 +150,6 @@ module PokitDok
|
|
150
150
|
get("enrollment/snapshot/#{params[:snapshot_id]}/data")
|
151
151
|
end
|
152
152
|
|
153
|
-
# Uploads an EDI file to the files endpoint.
|
154
|
-
# Uses the multipart-post gem, since oauth2 doesn't support multipart.
|
155
|
-
#
|
156
|
-
# +trading_partner_id+ the trading partner to transmit to
|
157
|
-
# +filename+ the path to the file to transmit
|
158
|
-
#
|
159
|
-
def files(trading_partner_id, filename)
|
160
|
-
request('/files/', 'POST', filename, { trading_partner_id: trading_partner_id})
|
161
|
-
end
|
162
|
-
|
163
153
|
# Invokes the insurance prices endpoint.
|
164
154
|
#
|
165
155
|
# +params+ an optional hash of parameters
|
data/pokitdok-ruby.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
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.8.
|
5
|
+
# stub: pokitdok-ruby 0.8.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "pokitdok-ruby"
|
9
|
-
s.version = "0.8.
|
9
|
+
s.version = "0.8.1"
|
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
13
|
s.authors = ["PokitDok, Inc."]
|
14
|
-
s.date = "
|
14
|
+
s.date = "2017-01-10"
|
15
15
|
s.description = "Gem for easy access to the PokitDok Platform APIs."
|
16
16
|
s.email = "platform@pokitdok.com"
|
17
17
|
s.extra_rdoc_files = [
|
data/spec/pokitdok_spec.rb
CHANGED
@@ -327,17 +327,6 @@ class PokitDokTest < MiniTest::Test
|
|
327
327
|
end
|
328
328
|
end
|
329
329
|
|
330
|
-
describe 'Files endpoint' do
|
331
|
-
it 'should expose the files endpoint' do
|
332
|
-
stub_request(:post, MATCH_NETWORK_LOCATION).
|
333
|
-
to_return(status: 200, body: '{ "string" : "" }')
|
334
|
-
|
335
|
-
@files = @@pokitdok.files('MOCKPAYER', 'spec/fixtures/sample.270')
|
336
|
-
|
337
|
-
refute_nil(@files)
|
338
|
-
end
|
339
|
-
end
|
340
|
-
|
341
330
|
describe 'Insurance Prices endpoint' do
|
342
331
|
it 'should expose the insurance prices endpoint' do
|
343
332
|
stub_request(:get, MATCH_NETWORK_LOCATION).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pokitdok-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PokitDok, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|