eligible 2.9.8 → 2.9.9

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
  SHA256:
3
- metadata.gz: 8af193543ed6a2974f8c40909310176c2d87538f16820656f4fa1ea059c450b9
4
- data.tar.gz: 04a08a93bf8c4e8e1508ecda70a4cc4aa1e5ed9ce320403ee44a1b97ed5bbfd5
3
+ metadata.gz: 7941e119776f597e11d56540f25f3d668690ce962a654156eefdda27cc53de8b
4
+ data.tar.gz: 3005f5fcdf84b3e74b4a4b0f45199e069bed2d805cda5b57418e0dacffa1dbf9
5
5
  SHA512:
6
- metadata.gz: 7c3bc7400bc22367ce5a7955375cdcf237859ecbdca6c6f319d1832fd7a31f122350f0f19c357d30cf1d4b3462f8f99fc1abab18f31b093e2654797ae09c15ec
7
- data.tar.gz: 6d6df4cafe2196cd0120d8e2f5e11b7ccfbd7631b97acabe0833f63fd79c34df60400a0344b6815b6facbcd67362e0f9e9216edd137420948efa97122b51a88a
6
+ metadata.gz: 9d47865558d5e8b1a3cad7d0ad31e3e32fde37393f20ce1e87f30775194226d10c8085cfeab437d76b20186ec38ed910bbac1dd3b67b1a4c1ad3120a3f3d3453
7
+ data.tar.gz: 21cf98d9087ac8dcf4e7a7f501d90e7bf44e5a372ae9bc05834a15cc7a83a62c284cd062ae3120084ccad0ef1d61d865d851ec1c47de98d6a5c911c987a09c33
@@ -0,0 +1,76 @@
1
+ version: 2
2
+ default_environment: &default_environment
3
+ docker:
4
+ - image: circleci/ruby:2.2-jessie-browsers
5
+ environment:
6
+ BUNDLE_JOBS: 3
7
+ BUNDLE_RETRY: 3
8
+ BUNDLE_PATH: vendor/bundle
9
+ RAILS_ENV: test
10
+ CC_TEST_REPORTER_ID: 1a814ffba15f437df919868f6c26f3c6ac111338b88f9a9d7e2b3030598bccdd
11
+ working_directory: ~/eligible-ruby
12
+
13
+ aliases:
14
+ # Bundle install dependencies
15
+ - &bundle_install
16
+ name: Bundle Install
17
+ command: bundle check || (bundle install --deployment && bundle clean) # Stop growing cache
18
+ - &save_bundle_cache
19
+ key: gems-{{ .Environment.CACHE_VERSION }}-{{ checksum "Gemfile.lock" }}
20
+ paths:
21
+ - vendor/bundle
22
+ - /usr/local/bundle/config
23
+ - &restore_bundle_cache
24
+ keys:
25
+ - gems-{{ .Environment.CACHE_VERSION }}-{{ checksum "Gemfile.lock" }}
26
+ - gems-{{ .Environment.CACHE_VERSION }}- # Fallback to any recent cache
27
+
28
+ - &pre_build
29
+ name: Pre build
30
+ command: ./cc-test-reporter before-build
31
+
32
+ # Setup CC
33
+ - &setup_cc_test_reporter
34
+ name: Setup CodeClimate test reporter
35
+ command: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter &&
36
+ chmod +x cc-test-reporter
37
+
38
+ # Code Climate coverage
39
+ - &upload_coverage
40
+ name: Upload coverage report to CodeClimate
41
+ command: |
42
+ ./cc-test-reporter sum-coverage --output - coverage/codeclimate.*.json | ./cc-test-reporter upload-coverage --debug --input -
43
+
44
+ # Running RSpec
45
+ - &run_rspec
46
+ name: Run RSpec
47
+ command: |
48
+ ./cc-test-reporter before-build
49
+ bundle exec rspec
50
+
51
+ jobs:
52
+ tests:
53
+ <<: *default_environment
54
+ parallelism: 2
55
+ steps:
56
+ - checkout
57
+
58
+ - restore_cache: *restore_bundle_cache
59
+ - run: *bundle_install
60
+ - save_cache: *save_bundle_cache
61
+
62
+ # Setup CC
63
+ - run: *setup_cc_test_reporter
64
+
65
+ # Run specs in parallel
66
+ - run: *run_rspec
67
+ - run:
68
+ name: Code Climate Test Coverage
69
+ command: |
70
+ ./cc-test-reporter format-coverage -t simplecov -o "coverage/codeclimate.$CIRCLE_NODE_INDEX.json"
71
+ - run: *upload_coverage
72
+ workflows:
73
+ version: 2
74
+ test:
75
+ jobs:
76
+ - tests
data/CHANGELOG.md ADDED
@@ -0,0 +1,95 @@
1
+ # Changelog
2
+
3
+ ## 2.9.9 - 2019-08-07
4
+ - Added Icd code endpoints
5
+
6
+ ## 2.9.8 - 2019-06-24
7
+ - Added an endpoint to fetch Risk Assessment
8
+
9
+ ## 2.9.7 - 2019-03-08
10
+ - Updated GDS SSL certificate
11
+
12
+ ## 2.9.6 - 2018-07-17
13
+ - Added Risk Assessment endpoints
14
+
15
+ ## 2.9.5 - 2018-07-06
16
+ - Added Mix and Match support for coverage requests
17
+
18
+ ## 2.9.4 - 2018-04-25
19
+ - Rename endpoint provider_detail to provider_model
20
+
21
+ ## 2.9.3 - 2018-04-19
22
+ - Added new endpoints visit types, provider details
23
+
24
+ ## 2.9.2 - 2018-03-26
25
+ - We can use session token or api_key for making a Eligible Call
26
+ - for session token supported endpoints
27
+
28
+ ## 2.9.0 - 2017-10-04
29
+ - Adding revoke functionality for session tokens
30
+
31
+ ## 2.8.2 - 2017-03-24
32
+ - Upgraded internal rest-client dependency to 2.0.0 and higher
33
+
34
+ ## 2.8.1 - 2017-02-23
35
+ - Upgraded internal rest-client dependency to 2.0.1
36
+ - Fixes mime-type dependency issue with newer Rails projects
37
+
38
+ ## 2.8.0 - 2017-02-23
39
+ - Added support for session tokens
40
+
41
+ ## 2.7.0 - 2016-12-14
42
+ - Changed default content type to application/json
43
+
44
+ ## 2.6.3 - 2016-11-18
45
+ - Added a new certificate fingerprint
46
+
47
+ ## 2.6.2 - 2016-08-31
48
+ - New APIs added in testing mode, no public-facing changes
49
+
50
+ ## 2.6.1 - 2016-05-10
51
+ - Suppressing ssl_verify_callback return code warning
52
+ - Added new endpoints: received_pdf, precert and referral
53
+ - Refactored the code and fixed couple of bugs
54
+ - Documentation updates for the endpoints
55
+
56
+ ## 2.6.0 - 2016-02-23
57
+ - Added new endpoints customer, original signature pdf and payer.
58
+ - Added specs
59
+ - Bumped api version to 1.5
60
+ - Fixed few bugs
61
+
62
+ ## 2.5.0 - 2016-01-07
63
+ - Added certificate pinning
64
+ - Added rubocop and fixed style/linting/metrics issues
65
+ - Migrated from outdated test-unit/mocha to current rspec for test suite
66
+
67
+ ## 2.4
68
+ - Refactoring Code
69
+ - More test cases
70
+ - Removed legacy endpoint for *plans*, *coverage* should be used instead.
71
+ - Removed legacy endpoint for *services*, *coverage* should be used instead.
72
+ - List of contributors and documentation updated.
73
+ - Gemfile updated, dependencies updated as well.
74
+ - Removed json gem in favor of multi_json
75
+ - Fixed the code to let the users make x12 requests at anytime.
76
+ - New endpoint for Tickets
77
+
78
+ ## 2.3
79
+ - New endpoint for Batch
80
+
81
+ ## 2.2
82
+ - New endpoint for x12 POST
83
+
84
+ ## 2.1
85
+ - New endpoint for payment status
86
+
87
+ ## 2.0
88
+ - Additional endpoints for claims, enrollments, and coverage
89
+
90
+ ## 1.1
91
+ - Additional endpoints for service/general and service/list
92
+ - Support x12 format in params
93
+
94
+ ## 1.0
95
+ - Initial release
data/Gemfile.lock ADDED
@@ -0,0 +1,63 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ eligible (2.9.9)
5
+ multi_json (~> 1.7)
6
+ rest-client (~> 2.0.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ diff-lcs (1.3)
12
+ docile (1.1.5)
13
+ domain_name (0.5.20190701)
14
+ unf (>= 0.0.5, < 1.0.0)
15
+ http-cookie (1.0.3)
16
+ domain_name (~> 0.5)
17
+ json (2.1.0)
18
+ mime-types (3.2.2)
19
+ mime-types-data (~> 3.2015)
20
+ mime-types-data (3.2019.0331)
21
+ multi_json (1.13.1)
22
+ netrc (0.11.0)
23
+ rake (12.3.0)
24
+ rest-client (2.0.2)
25
+ http-cookie (>= 1.0.2, < 2.0)
26
+ mime-types (>= 1.16, < 4.0)
27
+ netrc (~> 0.8)
28
+ rspec (3.7.0)
29
+ rspec-core (~> 3.7.0)
30
+ rspec-expectations (~> 3.7.0)
31
+ rspec-mocks (~> 3.7.0)
32
+ rspec-core (3.7.1)
33
+ rspec-support (~> 3.7.0)
34
+ rspec-expectations (3.7.0)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.7.0)
37
+ rspec-mocks (3.7.0)
38
+ diff-lcs (>= 1.2.0, < 2.0)
39
+ rspec-support (~> 3.7.0)
40
+ rspec-support (3.7.1)
41
+ rspec_junit_formatter (0.3.0)
42
+ rspec-core (>= 2, < 4, != 2.12.0)
43
+ simplecov (0.15.1)
44
+ docile (~> 1.1.0)
45
+ json (>= 1.8, < 3)
46
+ simplecov-html (~> 0.10.0)
47
+ simplecov-html (0.10.2)
48
+ unf (0.1.4)
49
+ unf_ext
50
+ unf_ext (0.0.7.6)
51
+
52
+ PLATFORMS
53
+ ruby
54
+
55
+ DEPENDENCIES
56
+ eligible!
57
+ rake (~> 12.0)
58
+ rspec (~> 3.4)
59
+ rspec_junit_formatter (~> 0.3.0)
60
+ simplecov (~> 0.11)
61
+
62
+ BUNDLED WITH
63
+ 1.16.1
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Eligible
2
2
 
3
- [![Circle CI](https://circleci.com/gh/eligible/eligible-ruby.svg?style=svg)](https://circleci.com/gh/eligible/eligible-ruby) [![Code Climate](https://codeclimate.com/github/eligible/eligible-ruby/badges/gpa.svg)](https://codeclimate.com/github/eligible/eligible-ruby)
3
+ [![CircleCI](https://circleci.com/gh/eligible/eligible-ruby/tree/master.svg?style=svg&circle-token=2217025edb5af2901121d277f96ace65dc47f306)](https://circleci.com/gh/eligible/eligible-ruby/tree/master)
4
+ [![Maintainability](https://api.codeclimate.com/v1/badges/d86aadd0f6670a2548d8/maintainability)](https://codeclimate.com/repos/56cca689c952c60085003f10/maintainability)
5
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/d86aadd0f6670a2548d8/test_coverage)](https://codeclimate.com/repos/56cca689c952c60085003f10/test_coverage)
4
6
 
5
7
  Ruby bindings for the [Eligible API](https://eligible.com/rest)
6
8
 
data/eligible.gemspec CHANGED
@@ -21,5 +21,6 @@ Gem::Specification.new do |gem|
21
21
 
22
22
  gem.add_development_dependency('rake', '~> 12.0')
23
23
  gem.add_development_dependency('rspec', '~> 3.4')
24
+ gem.add_development_dependency('rspec_junit_formatter', '~> 0.3.0')
24
25
  gem.add_development_dependency('simplecov', '~> 0.11')
25
26
  end
@@ -0,0 +1,16 @@
1
+ module Eligible
2
+ class Icd < APIResource
3
+
4
+ def self.list(params, api_key = nil)
5
+ send_request(:get, "/icds/#{Util.value(params, :type)}", api_key, params)
6
+ end
7
+
8
+ def self.describe(params, api_key = nil)
9
+ send_request(:get, "/icds/#{Util.value(params, :type)}/describe/#{Util.value(params, :code)}", api_key, params)
10
+ end
11
+
12
+ def self.crosswalk(params, api_key = nil)
13
+ send_request(:get, "/icds/#{Util.value(params, :type)}/crosswalk/#{Util.value(params, :code)}", api_key, params)
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module Eligible
2
- VERSION = '2.9.8'.freeze
2
+ VERSION = '2.9.9'.freeze
3
3
  end
data/lib/eligible.rb CHANGED
@@ -37,6 +37,7 @@ require 'eligible/visit_type'
37
37
  require 'eligible/provider_model'
38
38
  require 'eligible/calculator_deploy_url'
39
39
  require 'eligible/risk_assessment'
40
+ require 'eligible/icd'
40
41
 
41
42
  # Errors
42
43
  require 'eligible/errors/eligible_error'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eligible
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.8
4
+ version: 2.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katelyn Gleaon
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-06-24 00:00:00.000000000 Z
13
+ date: 2019-08-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -68,6 +68,20 @@ dependencies:
68
68
  - - "~>"
69
69
  - !ruby/object:Gem::Version
70
70
  version: '3.4'
71
+ - !ruby/object:Gem::Dependency
72
+ name: rspec_junit_formatter
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: 0.3.0
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: 0.3.0
71
85
  - !ruby/object:Gem::Dependency
72
86
  name: simplecov
73
87
  requirement: !ruby/object:Gem::Requirement
@@ -92,17 +106,18 @@ executables: []
92
106
  extensions: []
93
107
  extra_rdoc_files: []
94
108
  files:
109
+ - ".circleci/config.yml"
95
110
  - ".codeclimate.yml"
96
111
  - ".gitignore"
97
112
  - ".rspec"
98
113
  - ".rubocop.yml"
99
114
  - ".ruby-version"
100
- - ChangeLog
115
+ - CHANGELOG.md
101
116
  - Gemfile
117
+ - Gemfile.lock
102
118
  - LICENSE
103
119
  - README.md
104
120
  - Rakefile
105
- - circle.yml
106
121
  - eligible.gemspec
107
122
  - lib/eligible.rb
108
123
  - lib/eligible/api_resource.rb
@@ -120,6 +135,7 @@ files:
120
135
  - lib/eligible/errors/authentication_error.rb
121
136
  - lib/eligible/errors/eligible_error.rb
122
137
  - lib/eligible/errors/invalid_request_error.rb
138
+ - lib/eligible/icd.rb
123
139
  - lib/eligible/json.rb
124
140
  - lib/eligible/lockbox.rb
125
141
  - lib/eligible/medicare.rb
@@ -159,7 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
175
  - !ruby/object:Gem::Version
160
176
  version: '0'
161
177
  requirements: []
162
- rubygems_version: 3.0.3
178
+ rubyforge_project:
179
+ rubygems_version: 2.7.9
163
180
  signing_key:
164
181
  specification_version: 4
165
182
  summary: Ruby wrapper for the Eligible API
data/ChangeLog DELETED
@@ -1,131 +0,0 @@
1
- 2018-07-17 Eligible <support@eligible.com>
2
-
3
- * 2.9.6
4
- - Added Risk Assessment endpoint support
5
- - Added specs
6
-
7
- 2018-07-06 Eligible <support@eligible.com>
8
-
9
- * 2.9.5
10
- - Added Mix and Match support for coverage requests
11
- - Added specs
12
-
13
- 2018-04-25 Eligible <support@eligible.com>
14
-
15
- * 2.9.4
16
- - Rename endpoint provider_detail to provider_model
17
- - Added specs
18
-
19
- 2018-04-19 Eligible <support@eligible.com>
20
-
21
- * 2.9.3
22
- - Added new endpoints visit types, provider details
23
- - Added specs
24
-
25
- 2018-03-26 Eligible <support@eligible.com>
26
-
27
- * 2.9.2
28
- - We can use session token or api_key for making a Eligible Call
29
- - for session token supported endpoints
30
-
31
- 2017-10-04 Eligible <support@eligible.com>
32
-
33
- * 2.9.0
34
- - Adding revoke functionality for session tokens
35
-
36
- 2017-03-24 Eligible <support@eligible.com>
37
-
38
- * 2.8.2
39
- - Upgrades internal rest-client dependency to 2.0.0 and higher
40
-
41
- 2017-02-23 Eligible <support@eligible.com>
42
-
43
- * 2.8.1
44
- - Upgrades internal rest-client dependency to 2.0.1
45
- - Fixes mime-type dependency issue with newer Rails projects
46
-
47
- 2017-02-23 Eligible <support@eligible.com>
48
-
49
- * 2.8.0
50
- - Adds support for session tokens
51
-
52
- 2016-12-14 Eligible <support@eligible.com>
53
-
54
- * 2.7.0
55
- - Changed default content type to application/json
56
-
57
- 2016-11-18 Eligible <support@eligible.com>
58
-
59
- * 2.6.3
60
- - Added a new certificate fingerprint
61
-
62
- 2016-08-31 Eligible <support@eligible.com>
63
- * 2.6.2
64
- - New APIs added in testing mode, no public-facing changes
65
-
66
- 2016-05-10 Eligible <support@eligible.com>
67
- * 2.6.1
68
- - Suppressing ssl_verify_callback return code warning
69
- - Added new endpoints: received_pdf, precert and referral
70
- - Refactored the code and fixed couple of bugs
71
- - Documentation updates for the endpoints
72
-
73
- 2016-02-23 Eligible <support@eligible.com>
74
-
75
- * 2.6.0
76
- - Added new endpoints customer, original signature pdf and payer.
77
- - Added specs
78
- - Bumped api version to 1.5
79
- - Fixed few bugs
80
-
81
- 2016-01-07 Eligible <support@eligible.com>
82
-
83
- * 2.5.0
84
- - Added certificate pinning
85
- - Added rubocop and fixed style/linting/metrics issues
86
- - Migrated from outdated test-unit/mocha to current rspec for test suite
87
-
88
- 0000-00-00 Eligible <support@eligible.com>
89
-
90
- * 2.4
91
- - Refactoring Code
92
- - More test cases
93
- - Removed legacy endpoint for *plans*, *coverage* should be used instead.
94
- - Removed legacy endpoint for *services*, *coverage* should be used instead.
95
- - List of contributors and documentation updated.
96
- - Gemfile updated, dependencies updated as well.
97
- - Removed json gem in favor of multi_json
98
- - Fixed the code to let the users make x12 requests at anytime.
99
- - New endpoint for Tickets
100
-
101
- 0000-00-00 Eligible <support@eligible.com>
102
-
103
- * 2.3
104
- - New endpoint for Batch
105
-
106
- 0000-00-00 Eligible <support@eligible.com>
107
-
108
- * 2.2
109
- - New endpoint for x12 POST
110
-
111
- 0000-00-00 Eligible <support@eligible.com>
112
-
113
- * 2.1
114
- - New endpoint for payment status
115
-
116
- 0000-00-00 Eligible <support@eligible.com>
117
-
118
- * 2.0
119
- - Additional endpoints for claims, enrollments, and coverage
120
-
121
- 0000-00-00 Eligible <support@eligible.com>
122
-
123
- * 1.1
124
- - Additional endpoints for service/general and service/list
125
- - Support x12 format in params
126
-
127
- 0000-00-00 Eligible <support@eligible.com>
128
-
129
- * 1.0
130
- - Initial release
131
-
data/circle.yml DELETED
@@ -1,15 +0,0 @@
1
- machine:
2
- environment:
3
- CC_TEST_REPORTER_ID: 1a814ffba15f437df919868f6c26f3c6ac111338b88f9a9d7e2b3030598bccdd
4
-
5
- dependencies:
6
- post:
7
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
8
- - chmod +x ./cc-test-reporter
9
-
10
- test:
11
- pre:
12
- - ./cc-test-reporter before-build
13
-
14
- post:
15
- - ./cc-test-reporter after-build --exit-code $EXIT_CODE --coverage-input-type simplecov