cover_my_meds 2.0.10 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -1
- data/Gemfile +5 -1
- data/README.md +1 -1
- data/cover_my_meds.gemspec +2 -2
- data/lib/cover_my_meds/client/credentials.rb +1 -1
- data/lib/cover_my_meds/client/indicators.rb +2 -2
- data/lib/cover_my_meds/version.rb +1 -1
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d57fb40d0155b2f86d8fe746f311a89c15bceaa
|
4
|
+
data.tar.gz: 2a9b70d8072b0820304c2d700f811b9265b7ad7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2bb8098036e6a170a955f7ae6fd18e89468fd7fa98fc6fa4240d81162c6d0f1b9fabb0b1242a842385db3c2467f2dbb1c19c84d0d4b0507de4da63230191808
|
7
|
+
data.tar.gz: 6bebc3febe32329bc623f43cda9311c02335bac3ec23c492251959ecf5d73a3fc22b7b961f155c552749a6fd5cf7df75fbe9c60e306d0a324c8daf8941dc17e1
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
CoverMyApi is a gem that provides a Ruby client for api.covermymeds.com
|
4
4
|
|
5
|
-
[![Code Climate](https://codeclimate.com/github/covermymeds/cover_my_meds/badges/gpa.svg)](https://codeclimate.com/github/covermymeds/cover_my_meds)
|
5
|
+
[![Build Status](https://travis-ci.org/covermymeds/cover_my_meds.svg?branch=master)](https://travis-ci.org/covermymeds/cover_my_meds) [![Code Climate](https://codeclimate.com/github/covermymeds/cover_my_meds/badges/gpa.svg)](https://codeclimate.com/github/covermymeds/cover_my_meds)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
data/cover_my_meds.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler"
|
21
|
+
spec.add_development_dependency "bundler"
|
22
22
|
spec.add_development_dependency "rspec", ">= 3.2"
|
23
23
|
spec.add_development_dependency "rspec-junklet", ">= 2.0"
|
24
24
|
spec.add_development_dependency "webmock", "~> 1.11"
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency "simplecov"
|
29
29
|
spec.add_development_dependency "railties"
|
30
30
|
|
31
|
-
spec.add_runtime_dependency "rest-client", "~> 1.
|
31
|
+
spec.add_runtime_dependency "rest-client", "~> 1.8"
|
32
32
|
spec.add_runtime_dependency "hashie", ">= 3.4.0"
|
33
33
|
spec.add_runtime_dependency "settingslogic"
|
34
34
|
spec.add_runtime_dependency "activesupport"
|
@@ -4,7 +4,7 @@ module CoverMyMeds
|
|
4
4
|
|
5
5
|
CURRENT_VERSION = 1
|
6
6
|
|
7
|
-
def create_credential npi: npi, callback_url: '', callback_verb: '', fax_numbers: fax_numbers, contact_hint: {}, version: CURRENT_VERSION
|
7
|
+
def create_credential npi: npi(), callback_url: '', callback_verb: '', fax_numbers: fax_numbers(), contact_hint: {}, version: CURRENT_VERSION
|
8
8
|
params = { v: version }
|
9
9
|
data = credentials_request POST, params: params do
|
10
10
|
{
|
@@ -4,7 +4,7 @@ module CoverMyMeds
|
|
4
4
|
|
5
5
|
CURRENT_VERSION = 1
|
6
6
|
|
7
|
-
def post_indicators(prescription: prescription, patient: patient, payer: {}, prescriber: {}, version: CURRENT_VERSION)
|
7
|
+
def post_indicators(prescription: prescription(), patient: patient(), payer: {}, prescriber: {}, version: CURRENT_VERSION)
|
8
8
|
params = { prescription: prescription, prescriber: prescriber, patient: patient, payer: payer }
|
9
9
|
data = indicators_request POST, params: { v: version, headers: { content_type: :json } } do
|
10
10
|
params.to_json
|
@@ -12,7 +12,7 @@ module CoverMyMeds
|
|
12
12
|
Hashie::Mash.new(data)
|
13
13
|
end
|
14
14
|
|
15
|
-
def search_indicators(prescriptions: prescriptions, patient: {}, payer: {}, prescriber: {}, version: CURRENT_VERSION)
|
15
|
+
def search_indicators(prescriptions: prescriptions(), patient: {}, payer: {}, prescriber: {}, version: CURRENT_VERSION)
|
16
16
|
params = { prescriptions: Array(prescriptions), prescriber: prescriber, patient: patient, payer: payer }
|
17
17
|
data = indicators_request POST, path: 'search/', params: { v: version, headers: { content_type: :json } } do
|
18
18
|
params.to_json
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cover_my_meds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Rolston
|
@@ -23,22 +23,22 @@ authors:
|
|
23
23
|
autorequire:
|
24
24
|
bindir: exe
|
25
25
|
cert_chain: []
|
26
|
-
date: 2016-
|
26
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
27
27
|
dependencies:
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: bundler
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '0'
|
35
35
|
type: :development
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rspec
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -157,14 +157,14 @@ dependencies:
|
|
157
157
|
requirements:
|
158
158
|
- - "~>"
|
159
159
|
- !ruby/object:Gem::Version
|
160
|
-
version: '1.
|
160
|
+
version: '1.8'
|
161
161
|
type: :runtime
|
162
162
|
prerelease: false
|
163
163
|
version_requirements: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
165
|
- - "~>"
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version: '1.
|
167
|
+
version: '1.8'
|
168
168
|
- !ruby/object:Gem::Dependency
|
169
169
|
name: hashie
|
170
170
|
requirement: !ruby/object:Gem::Requirement
|
@@ -271,9 +271,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
271
271
|
version: '0'
|
272
272
|
requirements: []
|
273
273
|
rubyforge_project:
|
274
|
-
rubygems_version: 2.4.
|
274
|
+
rubygems_version: 2.4.5.1
|
275
275
|
signing_key:
|
276
276
|
specification_version: 4
|
277
277
|
summary: CoverMyMeds Public API
|
278
278
|
test_files: []
|
279
|
-
has_rdoc:
|