redox 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: 64ed984d8f77ebf8b4d713e14e86eb09065449ab0d970ab3994c876acc765216
4
- data.tar.gz: 8661675122be3a20a6b0f1168dc898f99d128e43864769161cf5c3c1511f830f
3
+ metadata.gz: 723ef1a6761a8bc29b184b6ce436cab1efd9bc397bc51b7907fa8692421ba8ba
4
+ data.tar.gz: e45806f7bd77025ee3d060ee4c4663aa462cc0b2554042b33110f1df76f85b27
5
5
  SHA512:
6
- metadata.gz: 51f8612124e1ada3e96eea2b3b4a8c885c356a74db04620121cb95eacffecd2502ba5bb1189c641de2e7ccce3bab04e4446c67aedd524287a649260f08126a81
7
- data.tar.gz: 822abcdb744b627ef21138e65efa19101706a234639fc70fee2a9052098b9a0e550974640acda4ec1e6cab1d7114d2d670939843de5a742c26f4766f2dd24b40
6
+ metadata.gz: ea1863fe78f915a3ae082963dbd56dbb2501759e2f2a0ab99b622b7925febe209f33a212a700c0a48415b1464b46715941d8f95869c6811fc0cb1fddceb7ddb2
7
+ data.tar.gz: d4ed45942181735d43c458193a5cc39890d222f07168cbeec593531b0b7647c3c222686f1f738c4d80b5d091f3aa4c6a1df16186d22662bec6e951f650dca092
@@ -4,7 +4,22 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
- ## [1.0.1] - Unreleased
7
+ ## [1.x.x] - UNRELEASED
8
+ ### Changed
9
+ - None
10
+
11
+ ## [1.0.2] - UNRELEASED
12
+ ### Changed
13
+ - Added Extensions to all Redox models
14
+ - Fixed warnings in gemspec
15
+ - Fixed author emails in gemspec
16
+ - Removed packaging of bin and files starting with '.'
17
+ - Added helper file to translate Redox JSON to Hashie model.
18
+
19
+ ### Removed
20
+ - Unused response model.
21
+
22
+ ## [1.0.1] - 2019-05-02
8
23
  ### Changed
9
24
  - Check for high-level key as symbol
10
25
 
@@ -74,7 +89,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
74
89
  ### Added
75
90
  - Initial Release
76
91
 
77
- [Unreleased]: https://github.com/WeInfuse/redox/compare/v1.0.0...HEAD
92
+ [Unreleased]: https://github.com/WeInfuse/redox/compare/v1.0.2...HEAD
93
+ [1.0.2]: https://github.com/WeInfuse/redox/compare/v1.0.1...v1.0.2
94
+ [1.0.1]: https://github.com/WeInfuse/redox/compare/v1.0.0...v1.0.1
78
95
  [1.0.0]: https://github.com/WeInfuse/redox/compare/v0.1.6...v1.0.0
79
96
  [0.1.6]: https://github.com/WeInfuse/redox/compare/v0.1.5...v0.1.6
80
97
  [0.1.5]: https://github.com/WeInfuse/redox/compare/v0.1.4...v0.1.5
@@ -6,6 +6,7 @@ module Redox
6
6
 
7
7
  property :Meta, from: :meta, required: false
8
8
  property :Patient, from: :patient, required: false
9
+ property :Extensions, from: :extensions, required: false
9
10
  property :response, required: false
10
11
 
11
12
  alias_method :patient, :Patient
@@ -19,6 +19,10 @@ module Redox
19
19
  self[:Demographics] ||= Demographics.new
20
20
  end
21
21
 
22
+ def insurances
23
+ self[:Insurances] = self[:Insurances].map {|ins| ins.is_a?(Redox::Models::Insurance) ? ins : Insurance.new(ins) }
24
+ end
25
+
22
26
  def primary_care_provider
23
27
  self[:PCP] ||= PCP.new
24
28
  end
@@ -1,3 +1,3 @@
1
1
  module Redox
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
@@ -5,8 +5,8 @@ require 'redox/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'redox'
7
7
  spec.version = Redox::VERSION
8
- spec.authors = ['Alexander Clark']
9
- spec.email = ['sasha.jackal@gmail.com']
8
+ spec.authors = ['Alexander Clark', 'Mike Crockett']
9
+ spec.email = ['alexander.clark@weinfuse.com', 'mike.crockett@weinfuse.com']
10
10
 
11
11
  spec.summary = 'Ruby wrapper for the Redox Engine API'
12
12
  spec.homepage = 'https://github.com/WeInfuse/redox'
@@ -20,16 +20,18 @@ Gem::Specification.new do |spec|
20
20
  end
21
21
 
22
22
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
23
- f.match(%r{^(test|spec|features)/})
23
+ f.match?(%r{^(test|spec|features|bin|helpers|)/}) || f.match?(%r{^(\.[[:alnum:]]+)})
24
24
  end
25
+
25
26
  spec.bindir = 'exe'
26
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
28
  spec.require_paths = ['lib']
29
+ spec.licenses = ['MIT']
28
30
 
29
- spec.add_dependency 'httparty'
30
- spec.add_dependency 'hashie'
31
- spec.add_development_dependency 'bundler'
32
- spec.add_development_dependency 'byebug'
31
+ spec.add_dependency 'httparty', '~> 0.17'
32
+ spec.add_dependency 'hashie', '~> 3.5'
33
+ spec.add_development_dependency 'bundler', '>=1', '<3'
34
+ spec.add_development_dependency 'byebug', '~> 11'
33
35
  spec.add_development_dependency 'minitest', '~> 5.0'
34
36
  spec.add_development_dependency 'rake', '~> 10.0'
35
37
  spec.add_development_dependency 'webmock', '~> 3.1'
metadata CHANGED
@@ -1,71 +1,78 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Clark
8
+ - Mike Crockett
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
11
- date: 2019-05-02 00:00:00.000000000 Z
12
+ date: 2019-06-04 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: httparty
15
16
  requirement: !ruby/object:Gem::Requirement
16
17
  requirements:
17
- - - ">="
18
+ - - "~>"
18
19
  - !ruby/object:Gem::Version
19
- version: '0'
20
+ version: '0.17'
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
- - - ">="
25
+ - - "~>"
25
26
  - !ruby/object:Gem::Version
26
- version: '0'
27
+ version: '0.17'
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: hashie
29
30
  requirement: !ruby/object:Gem::Requirement
30
31
  requirements:
31
- - - ">="
32
+ - - "~>"
32
33
  - !ruby/object:Gem::Version
33
- version: '0'
34
+ version: '3.5'
34
35
  type: :runtime
35
36
  prerelease: false
36
37
  version_requirements: !ruby/object:Gem::Requirement
37
38
  requirements:
38
- - - ">="
39
+ - - "~>"
39
40
  - !ruby/object:Gem::Version
40
- version: '0'
41
+ version: '3.5'
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: bundler
43
44
  requirement: !ruby/object:Gem::Requirement
44
45
  requirements:
45
46
  - - ">="
46
47
  - !ruby/object:Gem::Version
47
- version: '0'
48
+ version: '1'
49
+ - - "<"
50
+ - !ruby/object:Gem::Version
51
+ version: '3'
48
52
  type: :development
49
53
  prerelease: false
50
54
  version_requirements: !ruby/object:Gem::Requirement
51
55
  requirements:
52
56
  - - ">="
53
57
  - !ruby/object:Gem::Version
54
- version: '0'
58
+ version: '1'
59
+ - - "<"
60
+ - !ruby/object:Gem::Version
61
+ version: '3'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: byebug
57
64
  requirement: !ruby/object:Gem::Requirement
58
65
  requirements:
59
- - - ">="
66
+ - - "~>"
60
67
  - !ruby/object:Gem::Version
61
- version: '0'
68
+ version: '11'
62
69
  type: :development
63
70
  prerelease: false
64
71
  version_requirements: !ruby/object:Gem::Requirement
65
72
  requirements:
66
- - - ">="
73
+ - - "~>"
67
74
  - !ruby/object:Gem::Version
68
- version: '0'
75
+ version: '11'
69
76
  - !ruby/object:Gem::Dependency
70
77
  name: minitest
71
78
  requirement: !ruby/object:Gem::Requirement
@@ -124,21 +131,17 @@ dependencies:
124
131
  version: '0.9'
125
132
  description:
126
133
  email:
127
- - sasha.jackal@gmail.com
134
+ - alexander.clark@weinfuse.com
135
+ - mike.crockett@weinfuse.com
128
136
  executables: []
129
137
  extensions: []
130
138
  extra_rdoc_files: []
131
139
  files:
132
- - ".circleci/config.yml"
133
- - ".editorconfig"
134
- - ".gitignore"
135
140
  - CHANGELOG.md
136
141
  - CODE_OF_CONDUCT.md
137
142
  - Gemfile
138
143
  - README.md
139
144
  - Rakefile
140
- - bin/console
141
- - bin/setup
142
145
  - lib/redox.rb
143
146
  - lib/redox/authentication.rb
144
147
  - lib/redox/connection.rb
@@ -150,11 +153,11 @@ files:
150
153
  - lib/redox/models/patient/insurance.rb
151
154
  - lib/redox/models/patient/p_c_p.rb
152
155
  - lib/redox/redox_exception.rb
153
- - lib/redox/response.rb
154
156
  - lib/redox/version.rb
155
157
  - redox.gemspec
156
158
  homepage: https://github.com/WeInfuse/redox
157
- licenses: []
159
+ licenses:
160
+ - MIT
158
161
  metadata:
159
162
  allowed_push_host: https://rubygems.org
160
163
  post_install_message:
@@ -1,23 +0,0 @@
1
- version: 2
2
- jobs:
3
- build:
4
- working_directory: ~/weinfuse_api
5
- docker:
6
- - image: circleci/ruby:2.4
7
- steps:
8
- - checkout
9
- - type: restore-cache
10
- key: redox_{{ checksum "Gemfile.lock" }}
11
- key: redox
12
- - run: bundle install --path vendor/bundle --jobs 20 --retry 5
13
- - type: cache-save
14
- key: redox_{{ checksum "Gemfile.lock" }}
15
- key: redox
16
- paths:
17
- - vendor/bundle
18
- - type: shell
19
- command: |
20
- bundle exec rake test
21
- - type: store_test_results
22
- path: /tmp/test-results
23
-
@@ -1,10 +0,0 @@
1
- root=true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 2
6
- end_of_line = lf
7
- charset = utf-8
8
- trim_trailing_whitespace = true
9
- insert_final_newline = true
10
-
data/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- /redox*.gem
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'json'
5
- require 'redox'
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require 'irb'
15
- IRB.start
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,14 +0,0 @@
1
- module Redox
2
- class Response
3
- attr_reader :model, :http_response
4
-
5
- def initialize(response, model_class = nil)
6
- @http_response = response
7
- @model = model_class.new(JSON.parse(response.body)) if !model_class.nil? && self.success?
8
- end
9
-
10
- def success?
11
- return @http_response.is_a?(Net::HTTPOK)
12
- end
13
- end
14
- end