cover_my_meds 1.0.1 → 2.0.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 +8 -0
- data/README.md +3 -1
- data/lib/cover_my_meds/client.rb +0 -2
- data/lib/cover_my_meds/railtie.rb +1 -1
- data/lib/cover_my_meds/version.rb +1 -1
- metadata +3 -4
- data/lib/cover_my_meds/client/pharmacies.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74b174567e3038f9f11a264351396f34ccd731e0
|
4
|
+
data.tar.gz: 4243e82a9d97d287375a4af320b1eaae2a7fb314
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca41f25ef9ade5add5f04184640488f52d1dcdd4c9f6cb8a4f277e8f29f7c3de5ff1d87cd1adb8297ca50154e44b88ac9f824061a82abd6b7ca6c60398bb316f
|
7
|
+
data.tar.gz: 7827e086c1df9a8a6adabafab10af9ed3dd73944ff7e313755e0bbf7bd043120fc52d60cdabe3b4afc4b0545fdb96838b84ec988180674f7586129ca2c4374cf
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
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)
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
@@ -16,7 +18,7 @@ And then execute:
|
|
16
18
|
bundle
|
17
19
|
```
|
18
20
|
|
19
|
-
*For general API documentation see: https://
|
21
|
+
*For general API documentation see: https://developers.covermymeds.com/ehr-api.html*
|
20
22
|
|
21
23
|
## Contributing
|
22
24
|
|
data/lib/cover_my_meds/client.rb
CHANGED
@@ -3,7 +3,6 @@ require_relative 'client/drugs'
|
|
3
3
|
require_relative 'client/forms'
|
4
4
|
require_relative 'client/requests'
|
5
5
|
require_relative 'client/tokens'
|
6
|
-
require_relative 'client/pharmacies'
|
7
6
|
require_relative 'client/credentials'
|
8
7
|
require_relative 'client/request_pages'
|
9
8
|
require_relative 'client/indicators'
|
@@ -15,7 +14,6 @@ module CoverMyMeds
|
|
15
14
|
include CoverMyMeds::Forms
|
16
15
|
include CoverMyMeds::Requests
|
17
16
|
include CoverMyMeds::Tokens
|
18
|
-
include CoverMyMeds::Pharmacies
|
19
17
|
include CoverMyMeds::Credentials
|
20
18
|
include CoverMyMeds::RequestPages
|
21
19
|
include CoverMyMeds::Indicators
|
@@ -6,7 +6,7 @@ module CoverMyMeds
|
|
6
6
|
|
7
7
|
# Create (and cache) a configured API client instance using the id/secret
|
8
8
|
# stored in `Rails.application.secrets` and the configuration specified
|
9
|
-
# here and in `Rails.application.config.
|
9
|
+
# here and in `Rails.application.config.covermymeds`
|
10
10
|
def default_client
|
11
11
|
@client ||= configured_client *credentials
|
12
12
|
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:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Rolston
|
@@ -21,7 +21,7 @@ authors:
|
|
21
21
|
autorequire:
|
22
22
|
bindir: exe
|
23
23
|
cert_chain: []
|
24
|
-
date: 2015-
|
24
|
+
date: 2015-07-08 00:00:00.000000000 Z
|
25
25
|
dependencies:
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: bundler
|
@@ -241,6 +241,7 @@ extra_rdoc_files: []
|
|
241
241
|
files:
|
242
242
|
- .gitignore
|
243
243
|
- .rspec
|
244
|
+
- .travis.yml
|
244
245
|
- Gemfile
|
245
246
|
- README.md
|
246
247
|
- Rakefile
|
@@ -252,7 +253,6 @@ files:
|
|
252
253
|
- lib/cover_my_meds/client/drugs.rb
|
253
254
|
- lib/cover_my_meds/client/forms.rb
|
254
255
|
- lib/cover_my_meds/client/indicators.rb
|
255
|
-
- lib/cover_my_meds/client/pharmacies.rb
|
256
256
|
- lib/cover_my_meds/client/request_pages.rb
|
257
257
|
- lib/cover_my_meds/client/requests.rb
|
258
258
|
- lib/cover_my_meds/client/tokens.rb
|
@@ -285,4 +285,3 @@ signing_key:
|
|
285
285
|
specification_version: 4
|
286
286
|
summary: CoverMyMeds Public API
|
287
287
|
test_files: []
|
288
|
-
has_rdoc:
|
@@ -1,20 +0,0 @@
|
|
1
|
-
module CoverMyMeds
|
2
|
-
module Pharmacies
|
3
|
-
include HostAndPath
|
4
|
-
|
5
|
-
CURRENT_VERSION = 1
|
6
|
-
|
7
|
-
def pharmacy_search params, version=CURRENT_VERSION
|
8
|
-
params.merge!(v: version)
|
9
|
-
data = pharmacies_request GET, params: params
|
10
|
-
data['pharmacies'].map do |d|
|
11
|
-
Hashie::Mash.new(d)
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def get_pharmacy npi, version = CURRENT_VERSION
|
16
|
-
data = pharmacies_request GET, params: { v: version }, path: npi
|
17
|
-
Hashie::Mash.new(data['pharmacy'])
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|