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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f2f596b59b5a9a4ae3152c1b8ca1103bcb5b9f07
4
- data.tar.gz: 5973db7dab3cf16c86cd917d530299d1e595b4f0
3
+ metadata.gz: 0d57fb40d0155b2f86d8fe746f311a89c15bceaa
4
+ data.tar.gz: 2a9b70d8072b0820304c2d700f811b9265b7ad7a
5
5
  SHA512:
6
- metadata.gz: 62bd46a78967829f87789ccca008df47211c910df40e4fa96914c7735354951dd166fabb77807703be4c02f2dce52d089027aeff4261fad35efd7def7cf2c0a8
7
- data.tar.gz: 2b2bf3c79b54144d7b9acac6cf5a05ee4b8b736ffad03576080c90cacd6caf5895c3fa1c7c50369aa8ecc2b563bc6c7746627dbf4c61eec84977a34ba11671e1
6
+ metadata.gz: b2bb8098036e6a170a955f7ae6fd18e89468fd7fa98fc6fa4240d81162c6d0f1b9fabb0b1242a842385db3c2467f2dbb1c19c84d0d4b0507de4da63230191808
7
+ data.tar.gz: 6bebc3febe32329bc623f43cda9311c02335bac3ec23c492251959ecf5d73a3fc22b7b961f155c552749a6fd5cf7df75fbe9c60e306d0a324c8daf8941dc17e1
data/.travis.yml CHANGED
@@ -2,4 +2,7 @@ language: ruby
2
2
  script:
3
3
  - bundle exec rspec spec
4
4
  rvm:
5
- - 2.0
5
+ - 2.0.0-p648
6
+ - 2.1.9
7
+ - 2.2.5
8
+ - 2.3.1
data/Gemfile CHANGED
@@ -1,4 +1,8 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in cover_my_meds.gemspec
3
+ # rack 2.x requires ruby 2.2.x
4
+ if RUBY_VERSION < '2.2'
5
+ gem 'rack', '~> 1.6.0', group: :test
6
+ end
7
+
4
8
  gemspec
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
 
@@ -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", "~> 1.3"
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.6"
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
@@ -1,3 +1,3 @@
1
1
  module CoverMyMeds
2
- VERSION = "2.0.10"
2
+ VERSION = "2.1.0"
3
3
  end
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.10
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-04-21 00:00:00.000000000 Z
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: '1.3'
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: '1.3'
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.6'
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.6'
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.8
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: