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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39fe6e6cd01f6b839d325c3f36a8c431f4bb28e1
4
- data.tar.gz: 8eb46680810f6453958ae8d914861aa30e4150d4
3
+ metadata.gz: 7e5fc97ed93ded2d7833c84d29c18d063bb981d7
4
+ data.tar.gz: 91f2ccc9591cb8d70c291beb809b67be1213c055
5
5
  SHA512:
6
- metadata.gz: c87e045eecc7c3e9b663da64bc18cc546cb17c77e09c0cdaff5076ca764f9fe87f6fd92b268d98f089985d412befd793db2fe81906740201e7e0f73ff2671a84
7
- data.tar.gz: 81923ed48261191bb967eaead0278e6f5308f56b7bc2f93d29f816af28b9836c24071843ae928edc6c07a1c7b9cd0bba832d76bff067db9bc6046843bb4e2189
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
- This version of pokitdok-ruby supports, and defaults to using, the new
127
- PokitDok v4 API. If you'd like to continue using the previous v3 API,
128
- you can pass a third parameter to PokitDok::Pokitdok.new, like this:
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.0
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(headers: { 'Authorization' => 'Basic' })
130
+ @token = @api_client.client_credentials.get_token()
132
131
  end
133
132
  end
134
133
 
@@ -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
@@ -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.0 ruby lib
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.0"
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 = "2016-07-13"
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 = [
@@ -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.0
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: 2016-07-13 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2