fhir_stu3_models 3.0.1 → 3.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: 965b82b729b73079d54af69ca2540dfefb86a7fe6da8fed7ef5c090d57fd3662
4
- data.tar.gz: e6f120cf485d24a35fbc97ca3972414fe0b88e864aafa4c86060dfae7c807dd4
3
+ metadata.gz: 4405116b853ccced71184a064253fb8e9af8f8d7f8bc36ccf0e85608ade8a5ad
4
+ data.tar.gz: 624752d83dac1bf24f4a96165d575f1e27af84d24bbf3bd354d63f1c1e2fc4ee
5
5
  SHA512:
6
- metadata.gz: 0c7d9dc396908bf56de8e6376288f7fe9809552ef58fe0d8a731ade77700090e95d947eeefb1c04c21d5c09a057b02041e291946f4aa83b4b969c87c2563590b
7
- data.tar.gz: 42f1a3002a69c2a0bf879d2be780c8aaaf372bae08aa6d584ad6e1ccdb7b2181c757d968350c0e8a2a4bee7234ac779d35afc170e7f11f0d356c764044156a19
6
+ metadata.gz: 678bc1dd8e7b3d951a1d8bb4b35d3a7f2a8c87987bd4f7aa4aeefbb8e5007199b0d3a6ae90f6e8761f6c08a8de0066b518c9035f5950d79748f9ba5bb7b6d8bc
7
+ data.tar.gz: 5125b3fb76a0cdbbcd84b7b9619ff41e5f7be651d822e3e5dee4f8d475eee8c1dc74de758b1ed37450ab312d092c773f16b540ba9e7d76216d1a855bf3e33d33
data/.codeclimate.yml CHANGED
@@ -9,6 +9,7 @@ engines:
9
9
  enabled: true
10
10
  rubocop:
11
11
  enabled: true
12
+ channel: rubocop-0-80
12
13
  ratings:
13
14
  paths:
14
15
  - "**.inc"
data/.rubocop.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
  AllCops:
3
- TargetRubyVersion: 2.4
3
+ TargetRubyVersion: 2.7
4
4
  Exclude:
5
5
  - 'test/**/*'
6
6
  - 'spec/**/*'
@@ -10,8 +10,16 @@ AllCops:
10
10
  - 'tmp/**/*'
11
11
  - '*.gemspec'
12
12
  - 'bin/*'
13
- Metrics/LineLength:
13
+ Layout/LineLength:
14
14
  Enabled: false
15
+ Style/FrozenStringLiteralComment:
16
+ Enabled: false
17
+ Style/HashEachMethods:
18
+ Enabled: true
19
+ Style/HashTransformKeys:
20
+ Enabled: true
21
+ Style/HashTransformValues:
22
+ Enabled: true
15
23
  inherit_mode:
16
24
  merge:
17
25
  - Exclude
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2019-04-22 19:14:05 -0400 using RuboCop version 0.67.0.
3
+ # on 2021-03-30 17:30:14 -0400 using RuboCop version 0.80.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -28,6 +28,12 @@ Layout/RescueEnsureAlignment:
28
28
  Exclude:
29
29
  - 'lib/fhir_stu3_models/bootstrap/hashable.rb'
30
30
 
31
+ # Offense count: 6
32
+ # Cop supports --auto-correct.
33
+ Lint/NonDeterministicRequireOrder:
34
+ Exclude:
35
+ - 'lib/fhir_stu3_models.rb'
36
+
31
37
  # Offense count: 2
32
38
  # Cop supports --auto-correct.
33
39
  Lint/ToJSON:
@@ -73,34 +79,19 @@ Metrics/ModuleLength:
73
79
  Metrics/PerceivedComplexity:
74
80
  Max: 72
75
81
 
76
- # Offense count: 5
77
- # Configuration parameters: PreferredName.
78
- Naming/RescuedExceptionsVariableName:
79
- Exclude:
80
- - 'lib/fhir_stu3_models/bootstrap/hashable.rb'
81
- - 'lib/fhir_stu3_models/bootstrap/json.rb'
82
- - 'lib/fhir_stu3_models/bootstrap/xml.rb'
83
- - 'lib/fhir_stu3_models/fhir_ext/structure_definition.rb'
84
- - 'lib/fhir_stu3_models/fhir_ext/structure_definition_finding.rb'
85
-
86
82
  # Offense count: 4
87
83
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
88
- # AllowedNames: io, id, to, by, on, in, at, ip, db
89
- Naming/UncommunicativeMethodParamName:
84
+ # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
85
+ Naming/MethodParameterName:
90
86
  Exclude:
91
87
  - 'lib/fhir_stu3_models/fhir_ext/structure_definition_compare.rb'
92
88
 
93
- # Offense count: 3
94
- Performance/Caller:
95
- Exclude:
96
- - 'lib/fhir_stu3_models/bootstrap/model.rb'
97
- - 'lib/fhir_stu3_models/deprecate.rb'
98
-
99
- # Offense count: 1
89
+ # Offense count: 2
100
90
  # Cop supports --auto-correct.
101
- Performance/InefficientHashSearch:
91
+ # Configuration parameters: PreferredName.
92
+ Naming/RescuedExceptionsVariableName:
102
93
  Exclude:
103
- - 'lib/fhir_stu3_models/bootstrap/template.rb'
94
+ - 'lib/fhir_stu3_models/bootstrap/hashable.rb'
104
95
 
105
96
  # Offense count: 1
106
97
  # Configuration parameters: .
@@ -143,7 +134,7 @@ Style/Documentation:
143
134
  # Offense count: 22
144
135
  # Cop supports --auto-correct.
145
136
  # Configuration parameters: EnforcedStyle.
146
- # SupportedStyles: when_needed, always, never
137
+ # SupportedStyles: always, always_true, never
147
138
  Style/FrozenStringLiteralComment:
148
139
  Enabled: false
149
140
 
@@ -202,8 +193,8 @@ Style/RescueStandardError:
202
193
 
203
194
  # Offense count: 4
204
195
  # Cop supports --auto-correct.
205
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
206
- # Whitelist: present?, blank?, presence, try, try!
196
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
197
+ # AllowedMethods: present?, blank?, presence, try, try!
207
198
  Style/SafeNavigation:
208
199
  Exclude:
209
200
  - 'lib/fhir_stu3_models/bootstrap/xml.rb'
data/.travis.yml CHANGED
@@ -2,12 +2,16 @@ language: ruby
2
2
  env:
3
3
  - TESTMEMORY=0 GCDELAY=2.0
4
4
  rvm:
5
- - 2.4
6
- - 2.5
7
5
  - 2.6
6
+ - 2.7
7
+ before_script:
8
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
9
+ - chmod +x ./cc-test-reporter
10
+ - ./cc-test-reporter before-build
8
11
  script:
9
12
  - bundle exec rake
10
- - bundle exec codeclimate-test-reporter
13
+ after_script:
14
+ - ./cc-test-reporter after-build -t simplecov --exit-code $TRAVIS_TEST_RESULT
11
15
  notifications:
12
16
  email:
13
17
  recipients:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fhir_stu3_models (3.0.1)
4
+ fhir_stu3_models (3.0.2)
5
5
  bcp47 (>= 0.3)
6
6
  date_time_precision (>= 0.8)
7
7
  mime-types (>= 3.0)
@@ -10,13 +10,11 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- ast (2.4.0)
13
+ ast (2.4.2)
14
14
  bcp47 (0.3.3)
15
15
  i18n
16
- codeclimate-test-reporter (1.0.9)
17
- simplecov (<= 0.13)
18
16
  coderay (1.1.2)
19
- concurrent-ruby (1.1.5)
17
+ concurrent-ruby (1.1.8)
20
18
  date_time_precision (0.8.1)
21
19
  diff-lcs (1.3)
22
20
  docile (1.1.5)
@@ -39,42 +37,44 @@ GEM
39
37
  guard-test (2.0.8)
40
38
  guard-compat (~> 1.2)
41
39
  test-unit (~> 3.0)
42
- i18n (1.6.0)
40
+ i18n (1.8.9)
43
41
  concurrent-ruby (~> 1.0)
44
- jaro_winkler (1.5.3)
45
- json (2.2.0)
42
+ jaro_winkler (1.5.4)
43
+ json (2.5.1)
46
44
  listen (3.1.5)
47
45
  rb-fsevent (~> 0.9, >= 0.9.4)
48
46
  rb-inotify (~> 0.9, >= 0.9.7)
49
47
  ruby_dep (~> 1.2)
50
48
  lumberjack (1.0.13)
51
49
  method_source (0.9.2)
52
- mime-types (3.2.2)
50
+ mime-types (3.3.1)
53
51
  mime-types-data (~> 3.2015)
54
- mime-types-data (3.2019.0331)
55
- mini_portile2 (2.4.0)
52
+ mime-types-data (3.2021.0225)
53
+ mini_portile2 (2.5.0)
56
54
  nenv (0.3.0)
57
- nokogiri (1.10.4)
58
- mini_portile2 (~> 2.4.0)
55
+ nokogiri (1.11.2)
56
+ mini_portile2 (~> 2.5.0)
57
+ racc (~> 1.4)
59
58
  nokogiri-diff (0.2.0)
60
59
  nokogiri (~> 1.5)
61
60
  tdiff (~> 0.3, >= 0.3.2)
62
61
  notiffany (0.1.3)
63
62
  nenv (~> 0.1)
64
63
  shellany (~> 0.0)
65
- parallel (1.17.0)
66
- parser (2.6.3.0)
67
- ast (~> 2.4.0)
64
+ parallel (1.20.1)
65
+ parser (3.0.0.0)
66
+ ast (~> 2.4.1)
68
67
  power_assert (1.1.5)
69
68
  pry (0.12.2)
70
69
  coderay (~> 1.1.0)
71
70
  method_source (~> 0.9.0)
72
- psych (3.1.0)
71
+ racc (1.5.2)
73
72
  rainbow (3.0.0)
74
73
  rake (12.3.3)
75
74
  rb-fsevent (0.10.3)
76
75
  rb-inotify (0.10.0)
77
76
  ffi (~> 1.0)
77
+ rexml (3.2.4)
78
78
  rspec (3.8.0)
79
79
  rspec-core (~> 3.8.0)
80
80
  rspec-expectations (~> 3.8.0)
@@ -88,15 +88,15 @@ GEM
88
88
  diff-lcs (>= 1.2.0, < 2.0)
89
89
  rspec-support (~> 3.8.0)
90
90
  rspec-support (3.8.2)
91
- rubocop (0.67.0)
91
+ rubocop (0.80.0)
92
92
  jaro_winkler (~> 1.5.1)
93
93
  parallel (~> 1.10)
94
- parser (>= 2.5, != 2.5.1.1)
95
- psych (>= 3.1.0)
94
+ parser (>= 2.7.0.1)
96
95
  rainbow (>= 2.2.2, < 4.0)
96
+ rexml
97
97
  ruby-progressbar (~> 1.7)
98
- unicode-display_width (>= 1.4.0, < 1.6)
99
- ruby-progressbar (1.10.1)
98
+ unicode-display_width (>= 1.4.0, < 1.7)
99
+ ruby-progressbar (1.11.0)
100
100
  ruby_dep (1.5.0)
101
101
  shellany (0.0.1)
102
102
  simplecov (0.13.0)
@@ -108,14 +108,13 @@ GEM
108
108
  test-unit (3.3.3)
109
109
  power_assert
110
110
  thor (0.20.3)
111
- unicode-display_width (1.5.0)
111
+ unicode-display_width (1.6.1)
112
112
 
113
113
  PLATFORMS
114
114
  ruby
115
115
 
116
116
  DEPENDENCIES
117
117
  bundler
118
- codeclimate-test-reporter
119
118
  fhir_stu3_models!
120
119
  guard-rspec
121
120
  guard-test
@@ -123,12 +122,12 @@ DEPENDENCIES
123
122
  pry
124
123
  rake
125
124
  rspec
126
- rubocop (= 0.67)
125
+ rubocop (= 0.80)
127
126
  simplecov
128
127
  test-unit
129
128
 
130
129
  RUBY VERSION
131
- ruby 2.5.1p57
130
+ ruby 2.7.2p137
132
131
 
133
132
  BUNDLED WITH
134
- 2.0.1
133
+ 2.1.4
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright {yyyy} {name of copyright owner}
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/README.md CHANGED
@@ -73,7 +73,7 @@ $ bundle exec rake fhir:console
73
73
  ```
74
74
  # License
75
75
 
76
- Copyright 2014-2019 The MITRE Corporation
76
+ Copyright 2014-2021 The MITRE Corporation
77
77
 
78
78
  Licensed under the Apache License, Version 2.0 (the "License");
79
79
  you may not use this file except in compliance with the License.
@@ -8,6 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = FHIR::STU3::Models::VERSION
9
9
  spec.authors = ['Jason Walonoski', 'Robert Scanlon', 'Reece Adamson']
10
10
  spec.email = ['jwalonoski@mitre.org']
11
+ spec.licenses = ['Apache-2.0']
11
12
 
12
13
  spec.summary = %q{A Gem for handling FHIR STU3 models in ruby}
13
14
  spec.description = %q{A Gem for handling FHIR STU3 models in ruby}
@@ -32,8 +33,7 @@ Gem::Specification.new do |spec|
32
33
  spec.add_development_dependency 'rspec'
33
34
  spec.add_development_dependency 'simplecov'
34
35
  spec.add_development_dependency 'nokogiri-diff'
35
- spec.add_development_dependency 'rubocop', '0.67'
36
- spec.add_development_dependency 'codeclimate-test-reporter'
36
+ spec.add_development_dependency 'rubocop', '0.80'
37
37
  spec.add_development_dependency 'guard-rspec'
38
38
  spec.add_development_dependency 'guard-test'
39
39
  end
@@ -1,3 +1,5 @@
1
+ require 'json'
2
+
1
3
  module FHIR
2
4
  module STU3
3
5
  module Json
@@ -263,16 +263,14 @@ module FHIR
263
263
  element.constraint.each do |constraint|
264
264
  next unless constraint.expression && !nodes.empty?
265
265
  nodes.each do |node|
266
- begin
267
- result = FluentPath::STU3.evaluate(constraint.expression, node)
268
- if !result && constraint.severity == 'error'
269
- @errors << "#{describe_element(element)}: FluentPath expression evaluates to false for #{name} invariant rule #{constraint.key}: #{constraint.human}"
270
- @errors << node.to_s
271
- end
272
- rescue
273
- @warnings << "#{describe_element(element)}: unable to evaluate FluentPath expression against JSON for #{name} invariant rule #{constraint.key}: #{constraint.human}"
274
- @warnings << node.to_s
266
+ result = FluentPath::STU3.evaluate(constraint.expression, node)
267
+ if !result && constraint.severity == 'error'
268
+ @errors << "#{describe_element(element)}: FluentPath expression evaluates to false for #{name} invariant rule #{constraint.key}: #{constraint.human}"
269
+ @errors << node.to_s
275
270
  end
271
+ rescue
272
+ @warnings << "#{describe_element(element)}: unable to evaluate FluentPath expression against JSON for #{name} invariant rule #{constraint.key}: #{constraint.human}"
273
+ @warnings << node.to_s
276
274
  end
277
275
  end
278
276
 
@@ -17,12 +17,10 @@ module FluentPath
17
17
 
18
18
  def clone
19
19
  clone_tree = @tree.map do |x|
20
- begin
21
- x.clone
22
- rescue
23
- # TODO: This appears to be dead code
24
- x
25
- end
20
+ x.clone
21
+ rescue
22
+ # TODO: This appears to be dead code
23
+ x
26
24
  end
27
25
  FluentPath::STU3::Expression.new(clone_tree)
28
26
  end
@@ -1,7 +1,7 @@
1
1
  module FHIR
2
2
  module STU3
3
3
  module Models
4
- VERSION = '3.0.1'.freeze
4
+ VERSION = '3.0.2'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fhir_stu3_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Walonoski
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2019-08-26 00:00:00.000000000 Z
13
+ date: 2021-03-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri
@@ -172,28 +172,14 @@ dependencies:
172
172
  requirements:
173
173
  - - '='
174
174
  - !ruby/object:Gem::Version
175
- version: '0.67'
175
+ version: '0.80'
176
176
  type: :development
177
177
  prerelease: false
178
178
  version_requirements: !ruby/object:Gem::Requirement
179
179
  requirements:
180
180
  - - '='
181
181
  - !ruby/object:Gem::Version
182
- version: '0.67'
183
- - !ruby/object:Gem::Dependency
184
- name: codeclimate-test-reporter
185
- requirement: !ruby/object:Gem::Requirement
186
- requirements:
187
- - - ">="
188
- - !ruby/object:Gem::Version
189
- version: '0'
190
- type: :development
191
- prerelease: false
192
- version_requirements: !ruby/object:Gem::Requirement
193
- requirements:
194
- - - ">="
195
- - !ruby/object:Gem::Version
196
- version: '0'
182
+ version: '0.80'
197
183
  - !ruby/object:Gem::Dependency
198
184
  name: guard-rspec
199
185
  requirement: !ruby/object:Gem::Requirement
@@ -239,6 +225,7 @@ files:
239
225
  - Gemfile
240
226
  - Gemfile.lock
241
227
  - Guardfile
228
+ - LICENSE
242
229
  - README.md
243
230
  - Rakefile
244
231
  - bin/console
@@ -1610,7 +1597,8 @@ files:
1610
1597
  - lib/fhir_stu3_models/tasks/tasks.rake
1611
1598
  - lib/fhir_stu3_models/version.rb
1612
1599
  homepage: https://github.com/fhir-crucible/fhir_stu3_models
1613
- licenses: []
1600
+ licenses:
1601
+ - Apache-2.0
1614
1602
  metadata: {}
1615
1603
  post_install_message:
1616
1604
  rdoc_options: []
@@ -1627,7 +1615,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1627
1615
  - !ruby/object:Gem::Version
1628
1616
  version: '0'
1629
1617
  requirements: []
1630
- rubygems_version: 3.0.2
1618
+ rubygems_version: 3.1.4
1631
1619
  signing_key:
1632
1620
  specification_version: 4
1633
1621
  summary: A Gem for handling FHIR STU3 models in ruby