updox 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: 2a04274fe6b193425214ff4ce3e9902c60bdfa79027cbd9f72bb74e196a116b5
4
- data.tar.gz: d04ba0886f6e0d5fb2bee7440d6ba607a523af611ce499d0db9f9430c77cb19b
3
+ metadata.gz: 6049aac6b73ee5ff489628158400adeb752a25f5688b7edf199f3e29a3adcefe
4
+ data.tar.gz: c4dfa73f09d4ee510f2d8cf7b6b7a4ae63ab63ac9df61dbfdccec437b8ad6f89
5
5
  SHA512:
6
- metadata.gz: bee31024d1d3d54e35cb4312350381bda97d0929b80c822583406c19125e7eb451c5eede1452c9ffb70254285797e01fe9c6698998d94b8f38ea9b134d91153c
7
- data.tar.gz: 0e072daa8c4a7567d6caaa77e595d017aa307c4fb954d933449a54fb0ba56b80d90b3cfa58184b4b4de63492af0f26e2a2cda8246c1ae1a68a640f386c42f58b
6
+ metadata.gz: 58056e6ae6d7382fc1c47ee8099ced74f57edc6e1804057535853ad4d9ebc4af9acb5d51afbc984da5e454a8635f1631eb0f52673b240d3da53748b03e1e648c
7
+ data.tar.gz: '09d340be087a5a2b25dbce98459f9e4f5068f2564cd1c2b3b001130af04d292bb6a649644bdf13a87e298c353477ba0b52398a5ce7e18769769ffa2297a01deb'
@@ -4,6 +4,10 @@ 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.2] - [2020-12-29]
8
+ ### Fixed
9
+ - Bug where we serialized an `updox_status`
10
+
7
11
  ## [1.0.1] - [2020-03-27]
8
12
  ### Added
9
13
  - Patient#reminderMethodId to set reminder preferences
@@ -102,6 +106,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
102
106
  ### Added
103
107
  - Initial Release with ability to ping Updox api
104
108
 
109
+ [1.0.2]: https://github.com/WeInfuse/updox/compare/v1.0.1...HEAD
105
110
  [1.0.1]: https://github.com/WeInfuse/updox/compare/v1.0.0...v1.0.1
106
111
  [1.0.0]: https://github.com/WeInfuse/updox/compare/v0.12.0...v1.0.0
107
112
  [0.12.0]: https://github.com/WeInfuse/updox/compare/v0.11.0...v0.12.0
@@ -37,10 +37,6 @@ module Updox
37
37
  result
38
38
  end
39
39
 
40
- def as_json(args)
41
- self.to_h
42
- end
43
-
44
40
  def save(account_id: )
45
41
  self.class.sync([self], account_id: account_id)
46
42
  end
@@ -7,30 +7,39 @@ module Updox
7
7
  include Hashie::Extensions::IgnoreUndeclared
8
8
  include Hashie::Extensions::IndifferentAccess
9
9
 
10
+ attr_writer :updox_status
11
+
10
12
  LIST_TYPE = 'undefined'
11
13
  LIST_NAME = 'models'
12
14
  ITEM_TYPE = 'model'
13
15
 
14
16
  property :item, required: false
15
17
  property :items, required: false
16
- property :updox_status, default: {}
17
18
 
18
19
  def successful?
19
- self[:updox_status].dig('successful')
20
+ @updox_status['successful']
20
21
  end
21
22
 
22
23
  def response_code
23
- self[:updox_status].dig('responseCode')
24
+ @updox_status['responseCode']
24
25
  end
25
26
 
26
27
  def response_message
27
- self[:updox_status].dig('responseMessage')
28
+ @updox_status['responseMessage']
29
+ end
30
+
31
+ def updox_status
32
+ @updox_status ||= {}
28
33
  end
29
34
 
30
35
  def error_message
31
36
  "#{response_code}: #{response_message}"
32
37
  end
33
38
 
39
+ def as_json(options = nil)
40
+ self.to_h
41
+ end
42
+
34
43
  def self.request(**kwargs)
35
44
  from_response(UpdoxClient.connection.request(kwargs))
36
45
  end
@@ -1,3 +1,3 @@
1
1
  module Updox
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: updox
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
  - Mike Crockett
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-27 00:00:00.000000000 Z
11
+ date: 2020-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -128,7 +128,7 @@ dependencies:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0.9'
131
- description:
131
+ description:
132
132
  email:
133
133
  - mike.crockett@weinfuse.com
134
134
  executables: []
@@ -166,7 +166,7 @@ licenses:
166
166
  - MIT
167
167
  metadata:
168
168
  allowed_push_host: https://rubygems.org
169
- post_install_message:
169
+ post_install_message:
170
170
  rdoc_options: []
171
171
  require_paths:
172
172
  - lib
@@ -181,9 +181,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  - !ruby/object:Gem::Version
182
182
  version: '0'
183
183
  requirements: []
184
- rubyforge_project:
184
+ rubyforge_project:
185
185
  rubygems_version: 2.7.6
186
- signing_key:
186
+ signing_key:
187
187
  specification_version: 4
188
188
  summary: Ruby wrapper for the Updox API
189
189
  test_files: []