eligible 2.9.7 → 2.9.12

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: 2087c29cc24d66520e062147815be9c32f09b1a3e76a905ad77a4d8b4a7681e4
4
- data.tar.gz: df283017a8695462eb04e145f8449d3f5a3839588e50bd720dfc79c8593329c2
3
+ metadata.gz: 29d088aadc2c248bc771dd95d049024d5b6f28f904166a1684153788a29d3407
4
+ data.tar.gz: e091d07e30effd632699a540c3612d29f4939807f70830e76a2d73c8e5698adb
5
5
  SHA512:
6
- metadata.gz: 9474825a03bef36d6872d7f1b150411ffc98802943da910f2efabadd74fd92f1c957f84d0a94bbd900b6d32d0f67c590fab1b01b8a27fa6ef256f10f229f2ee1
7
- data.tar.gz: 23189dc4ecc8c27314881b97782e4217276d53f4c74e06b84174387e16ccc7d67c02320cd42fa47fa8dcef8905e918fb0ebd68e71b18a58cc5ab1f2b27ff6e23
6
+ metadata.gz: 7d7498ce9e7ed60f8d453334ef6132f35e5f87198c644aaef71cab544736887f10f250d8e42c691c1d62f3141bbe8558450096c3de03489f913fae44099a344a
7
+ data.tar.gz: 8a90390b9fc9c2332d96e06926bcafa39a49cadb1f0cf5dbf4138ca3fb2b0bb40ac552a73d0da27870161a6101ab2c4a10ae3812fdc8da7b291b9432e691b887
@@ -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,103 @@
1
+ # Changelog
2
+ ## 2.9.12 - 2021-04-12
3
+ - Fixing the pinned GDS SSL certificate
4
+
5
+ ## 2.9.11 - 2021-04-01
6
+ - Updated pinned GDS SSL certificate
7
+
8
+ ## 2.9.10 - 2020-05-13
9
+ - Updated pinned GDS SSL certificate
10
+
11
+ ## 2.9.9 - 2019-08-07
12
+ - Added Icd code endpoints
13
+
14
+ ## 2.9.8 - 2019-06-24
15
+ - Added an endpoint to fetch Risk Assessment
16
+
17
+ ## 2.9.7 - 2019-03-08
18
+ - Updated GDS SSL certificate
19
+
20
+ ## 2.9.6 - 2018-07-17
21
+ - Added Risk Assessment endpoints
22
+
23
+ ## 2.9.5 - 2018-07-06
24
+ - Added Mix and Match support for coverage requests
25
+
26
+ ## 2.9.4 - 2018-04-25
27
+ - Rename endpoint provider_detail to provider_model
28
+
29
+ ## 2.9.3 - 2018-04-19
30
+ - Added new endpoints visit types, provider details
31
+
32
+ ## 2.9.2 - 2018-03-26
33
+ - We can use session token or api_key for making a Eligible Call
34
+ - for session token supported endpoints
35
+
36
+ ## 2.9.0 - 2017-10-04
37
+ - Adding revoke functionality for session tokens
38
+
39
+ ## 2.8.2 - 2017-03-24
40
+ - Upgraded internal rest-client dependency to 2.0.0 and higher
41
+
42
+ ## 2.8.1 - 2017-02-23
43
+ - Upgraded internal rest-client dependency to 2.0.1
44
+ - Fixes mime-type dependency issue with newer Rails projects
45
+
46
+ ## 2.8.0 - 2017-02-23
47
+ - Added support for session tokens
48
+
49
+ ## 2.7.0 - 2016-12-14
50
+ - Changed default content type to application/json
51
+
52
+ ## 2.6.3 - 2016-11-18
53
+ - Added a new certificate fingerprint
54
+
55
+ ## 2.6.2 - 2016-08-31
56
+ - New APIs added in testing mode, no public-facing changes
57
+
58
+ ## 2.6.1 - 2016-05-10
59
+ - Suppressing ssl_verify_callback return code warning
60
+ - Added new endpoints: received_pdf, precert and referral
61
+ - Refactored the code and fixed couple of bugs
62
+ - Documentation updates for the endpoints
63
+
64
+ ## 2.6.0 - 2016-02-23
65
+ - Added new endpoints customer, original signature pdf and payer.
66
+ - Added specs
67
+ - Bumped api version to 1.5
68
+ - Fixed few bugs
69
+
70
+ ## 2.5.0 - 2016-01-07
71
+ - Added certificate pinning
72
+ - Added rubocop and fixed style/linting/metrics issues
73
+ - Migrated from outdated test-unit/mocha to current rspec for test suite
74
+
75
+ ## 2.4
76
+ - Refactoring Code
77
+ - More test cases
78
+ - Removed legacy endpoint for *plans*, *coverage* should be used instead.
79
+ - Removed legacy endpoint for *services*, *coverage* should be used instead.
80
+ - List of contributors and documentation updated.
81
+ - Gemfile updated, dependencies updated as well.
82
+ - Removed json gem in favor of multi_json
83
+ - Fixed the code to let the users make x12 requests at anytime.
84
+ - New endpoint for Tickets
85
+
86
+ ## 2.3
87
+ - New endpoint for Batch
88
+
89
+ ## 2.2
90
+ - New endpoint for x12 POST
91
+
92
+ ## 2.1
93
+ - New endpoint for payment status
94
+
95
+ ## 2.0
96
+ - Additional endpoints for claims, enrollments, and coverage
97
+
98
+ ## 1.1
99
+ - Additional endpoints for service/general and service/list
100
+ - Support x12 format in params
101
+
102
+ ## 1.0
103
+ - Initial release
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
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'
@@ -50,8 +51,9 @@ module Eligible
50
51
  @@test = false
51
52
  @@api_version = '1.5'
52
53
  @@api_base = "https://gds.eligibleapi.com/v#{@@api_version}"
53
- @@fingerprints = %w(9df5f186fb20ad25ffd864942a6394840b02a480
54
- a1cd762a9f4be0f3b6bdd6300e52c6ce8d7d67f5)
54
+ @@fingerprints = %w(75132c1ab844500c6ad1f26b49c11d36933ce868
55
+ a1cd762a9f4be0f3b6bdd6300e52c6ce8d7d67f5
56
+ 36d6b6f98a2b9bcdf4321d1978553e23cf044b53)
55
57
 
56
58
  def self.api_url(url = '')
57
59
  @@api_base + url.to_s
@@ -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
@@ -7,5 +7,9 @@ module Eligible
7
7
  def self.cost_estimate(params, api_key = nil)
8
8
  send_request(:get, '/risk_assessments/cost_estimates.json', api_key, params)
9
9
  end
10
+
11
+ def self.fetch(params, api_key = nil)
12
+ send_request(:get, '/risk_assessments/fetch.json', api_key, params)
13
+ end
10
14
  end
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module Eligible
2
- VERSION = '2.9.7'.freeze
2
+ VERSION = '2.9.12'.freeze
3
3
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eligible
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.7
4
+ version: 2.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katelyn Gleaon
8
8
  - Rodrigo Dominguez
9
9
  - Aaron Bedra
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-03-08 00:00:00.000000000 Z
13
+ date: 2021-04-12 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
@@ -144,7 +160,7 @@ homepage: https://github.com/eligible/eligible-ruby
144
160
  licenses:
145
161
  - MIT
146
162
  metadata: {}
147
- post_install_message:
163
+ post_install_message:
148
164
  rdoc_options: []
149
165
  require_paths:
150
166
  - lib
@@ -159,9 +175,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
175
  - !ruby/object:Gem::Version
160
176
  version: '0'
161
177
  requirements: []
162
- rubyforge_project:
163
- rubygems_version: 2.7.8
164
- signing_key:
178
+ rubyforge_project:
179
+ rubygems_version: 2.7.10
180
+ signing_key:
165
181
  specification_version: 4
166
182
  summary: Ruby wrapper for the Eligible API
167
183
  test_files: []
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