eligible 2.9.6 → 2.9.11

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
- SHA1:
3
- metadata.gz: 3e485cca9114c875a59fe5bd16771936d3e77874
4
- data.tar.gz: cff4f292003c41664711c5ff97fe992ab9b6c5a4
2
+ SHA256:
3
+ metadata.gz: 4dca67069ae78734952bd7ad60cc9b8d58e54ccd3da00dcb2699a18b8184830f
4
+ data.tar.gz: dee12ca266d2e0ca08ff13c45e868b10fd47fa4414a3044944328abe39fe1d6b
5
5
  SHA512:
6
- metadata.gz: 8f2bb93004f91e05ce919567503eb167fa0c38b98b16dadeeb1ffdd80c070ffb3564668158020a4e43611d67862385c58f88f9445ddd36cdc75b16f4a8b389e2
7
- data.tar.gz: 3e5de7105713d1995453a78002018514502eac9ff6ade6bf30e8707406db7d357a7db2344a7aa2e9aec876966583590cf038831e489d1cf963fdd85500c527be
6
+ metadata.gz: 1ca4028997a6ea865bc2056c65f214db98e555096446ae4d4353d4d2e7517d57d6c9ef9eb73e7c13bb85d4fdb270c26e0d2ff3d2ad1378e6fc80048b815d283c
7
+ data.tar.gz: 5cdf15dae257c24188dc6ec169fa06807e232d59acdb1aaff4ade09059a9a5682fa0e2818f714cc2ae0059bf99617fd97b15865524694348e14475158405bdbb
@@ -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,100 @@
1
+ # Changelog
2
+ ## 2.9.11 - 2021-04-01
3
+ - Updated pinned GDS SSL certificate
4
+
5
+ ## 2.9.10 - 2020-05-13
6
+ - Updated pinned GDS SSL certificate
7
+
8
+ ## 2.9.9 - 2019-08-07
9
+ - Added Icd code endpoints
10
+
11
+ ## 2.9.8 - 2019-06-24
12
+ - Added an endpoint to fetch Risk Assessment
13
+
14
+ ## 2.9.7 - 2019-03-08
15
+ - Updated GDS SSL certificate
16
+
17
+ ## 2.9.6 - 2018-07-17
18
+ - Added Risk Assessment endpoints
19
+
20
+ ## 2.9.5 - 2018-07-06
21
+ - Added Mix and Match support for coverage requests
22
+
23
+ ## 2.9.4 - 2018-04-25
24
+ - Rename endpoint provider_detail to provider_model
25
+
26
+ ## 2.9.3 - 2018-04-19
27
+ - Added new endpoints visit types, provider details
28
+
29
+ ## 2.9.2 - 2018-03-26
30
+ - We can use session token or api_key for making a Eligible Call
31
+ - for session token supported endpoints
32
+
33
+ ## 2.9.0 - 2017-10-04
34
+ - Adding revoke functionality for session tokens
35
+
36
+ ## 2.8.2 - 2017-03-24
37
+ - Upgraded internal rest-client dependency to 2.0.0 and higher
38
+
39
+ ## 2.8.1 - 2017-02-23
40
+ - Upgraded internal rest-client dependency to 2.0.1
41
+ - Fixes mime-type dependency issue with newer Rails projects
42
+
43
+ ## 2.8.0 - 2017-02-23
44
+ - Added support for session tokens
45
+
46
+ ## 2.7.0 - 2016-12-14
47
+ - Changed default content type to application/json
48
+
49
+ ## 2.6.3 - 2016-11-18
50
+ - Added a new certificate fingerprint
51
+
52
+ ## 2.6.2 - 2016-08-31
53
+ - New APIs added in testing mode, no public-facing changes
54
+
55
+ ## 2.6.1 - 2016-05-10
56
+ - Suppressing ssl_verify_callback return code warning
57
+ - Added new endpoints: received_pdf, precert and referral
58
+ - Refactored the code and fixed couple of bugs
59
+ - Documentation updates for the endpoints
60
+
61
+ ## 2.6.0 - 2016-02-23
62
+ - Added new endpoints customer, original signature pdf and payer.
63
+ - Added specs
64
+ - Bumped api version to 1.5
65
+ - Fixed few bugs
66
+
67
+ ## 2.5.0 - 2016-01-07
68
+ - Added certificate pinning
69
+ - Added rubocop and fixed style/linting/metrics issues
70
+ - Migrated from outdated test-unit/mocha to current rspec for test suite
71
+
72
+ ## 2.4
73
+ - Refactoring Code
74
+ - More test cases
75
+ - Removed legacy endpoint for *plans*, *coverage* should be used instead.
76
+ - Removed legacy endpoint for *services*, *coverage* should be used instead.
77
+ - List of contributors and documentation updated.
78
+ - Gemfile updated, dependencies updated as well.
79
+ - Removed json gem in favor of multi_json
80
+ - Fixed the code to let the users make x12 requests at anytime.
81
+ - New endpoint for Tickets
82
+
83
+ ## 2.3
84
+ - New endpoint for Batch
85
+
86
+ ## 2.2
87
+ - New endpoint for x12 POST
88
+
89
+ ## 2.1
90
+ - New endpoint for payment status
91
+
92
+ ## 2.0
93
+ - Additional endpoints for claims, enrollments, and coverage
94
+
95
+ ## 1.1
96
+ - Additional endpoints for service/general and service/list
97
+ - Support x12 format in params
98
+
99
+ ## 1.0
100
+ - 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(de4cdd0aae26df71290f0373af18e9ee7ecff18c
54
- 9df5f186fb20ad25ffd864942a6394840b02a480)
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.6'.freeze
2
+ VERSION = '2.9.11'.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.6
4
+ version: 2.9.11
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: 2018-07-20 00:00:00.000000000 Z
13
+ date: 2021-04-01 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,8 @@ 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.6.14
164
- signing_key:
178
+ rubygems_version: 3.0.9
179
+ signing_key:
165
180
  specification_version: 4
166
181
  summary: Ruby wrapper for the Eligible API
167
182
  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