fhir_dstu2_models 1.0.7 → 1.1.0

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: 07653a36e5223df9b1a7378f40621c24b7494a08a195b6f85b713b8c93fa30da
4
- data.tar.gz: a17b3b533c51e62bd72d84aa7281e34cb1c3d7d768397bd1856f678da4da32f5
3
+ metadata.gz: 54f49487a37795261c72615095996fa66403bfad69901301bf94e108848c785c
4
+ data.tar.gz: 38b9da91f0e4ba38c801b7004ac3434bd89467e60a73cceceb66a0334c21268c
5
5
  SHA512:
6
- metadata.gz: 7cd9c1c30d456db190949cf4a016040bb433c105481609f16b8f4aa08ae34dc96f0579a484bc92fbfeef114cbc9c8b8065f14858fa021c6c08513818f109c171
7
- data.tar.gz: fa373b2947abf8bdd06f7d653665902ded7a2424357cc3e1a577a6497443d0a0f4f549b9d202766b6a6362054485e07dda0081722ae7ccd44d9c31480c8dd0d1
6
+ metadata.gz: ad5546d62aaf98a88a3682a66ffc0b05cbecf73c3f862ea1b0621f9ebd2bdb0b69f695c8081082d72830c30eaff9757160496b73a62b0b2bfd47b52eb45b37bb
7
+ data.tar.gz: dd97e4d646c1153df883574be1cef7c38c3659c8873eb82fd153e6eae8e7ddee26f0c25ad3bacbbfc51a7d25018dfce3b5a418f5740a314d2345a04f8580c6b6
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"
@@ -0,0 +1,26 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ branches: [ master ]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version: ['2.6', '2.7']
15
+
16
+ steps:
17
+ - uses: actions/checkout@v2
18
+ - name: Set up Ruby
19
+ uses: ruby/setup-ruby@v1
20
+ with:
21
+ ruby-version: ${{ matrix.ruby-version }}
22
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
23
+ - name: Run tests
24
+ run: bundle exec rake
25
+ - name: Rubocop
26
+ run: bundle exec rubocop
data/.gitignore CHANGED
@@ -1,2 +1,4 @@
1
1
  .DS_Store
2
- coverage/*
2
+ coverage/*
3
+
4
+ .idea
data/.rubocop.yml CHANGED
@@ -1,14 +1,25 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
  AllCops:
3
- TargetRubyVersion: 2.2
3
+ TargetRubyVersion: 2.7
4
4
  Exclude:
5
5
  - 'test/**/*'
6
6
  - 'spec/**/*'
7
- - 'lib/fhir_dstu2_models/fhir/**/*'
8
- - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
7
+ - 'lib/fhir_stu3_models/fhir/**/*'
8
+ - 'lib/fhir_stu3_models/fluentpath/evaluate.rb'
9
+ - 'lib/**/*.rake'
9
10
  - 'tmp/**/*'
10
11
  - '*.gemspec'
11
12
  - 'bin/*'
12
- - 'vendor/**/*'
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
23
+ inherit_mode:
24
+ merge:
25
+ - Exclude
data/.rubocop_todo.yml CHANGED
@@ -1,79 +1,337 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-02-25 13:02:53 -0500 using RuboCop version 0.47.1.
3
+ # on 2021-03-30 17:40:28 -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
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- Performance/Caller:
9
+ # Offense count: 23
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: IndentationWidth.
12
+ Layout/AssignmentIndentation:
10
13
  Enabled: false
11
14
 
12
- # Offense count: 37
15
+ # Offense count: 55
16
+ # Cop supports --auto-correct.
17
+ Layout/EmptyLineAfterGuardClause:
18
+ Exclude:
19
+ - 'lib/fhir_dstu2_models/bootstrap/definitions.rb'
20
+ - 'lib/fhir_dstu2_models/bootstrap/generator.rb'
21
+ - 'lib/fhir_dstu2_models/bootstrap/hashable.rb'
22
+ - 'lib/fhir_dstu2_models/bootstrap/model.rb'
23
+ - 'lib/fhir_dstu2_models/bootstrap/preprocess.rb'
24
+ - 'lib/fhir_dstu2_models/bootstrap/xml.rb'
25
+ - 'lib/fhir_dstu2_models/deprecate.rb'
26
+ - 'lib/fhir_dstu2_models/fhir_ext/element_definition.rb'
27
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition.rb'
28
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb'
29
+ - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
30
+ - 'lib/fhir_dstu2_models/fluentpath/parse.rb'
31
+
32
+ # Offense count: 1
33
+ # Cop supports --auto-correct.
34
+ Layout/EmptyLines:
35
+ Exclude:
36
+ - 'lib/fhir_dstu2_models/fhir/resources/ClaimResponse.rb'
37
+
38
+ # Offense count: 1
39
+ # Cop supports --auto-correct.
40
+ # Configuration parameters: EnforcedStyle.
41
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
42
+ Layout/EmptyLinesAroundClassBody:
43
+ Exclude:
44
+ - 'lib/fhir_dstu2_models/fhir/resources/ClaimResponse.rb'
45
+
46
+ # Offense count: 2
47
+ # Cop supports --auto-correct.
48
+ # Configuration parameters: EnforcedStyle.
49
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
50
+ Layout/EmptyLinesAroundModuleBody:
51
+ Exclude:
52
+ - 'lib/fhir_dstu2_models/fhir/metadata.rb'
53
+
54
+ # Offense count: 1
55
+ # Cop supports --auto-correct.
56
+ Layout/RescueEnsureAlignment:
57
+ Exclude:
58
+ - 'lib/fhir_dstu2_models/bootstrap/hashable.rb'
59
+
60
+ # Offense count: 19223
61
+ # Cop supports --auto-correct.
62
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
63
+ # SupportedStylesForExponentOperator: space, no_space
64
+ Layout/SpaceAroundOperators:
65
+ Enabled: false
66
+
67
+ # Offense count: 10414
68
+ # Cop supports --auto-correct.
69
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
70
+ # SupportedStyles: space, no_space, compact
71
+ # SupportedStylesForEmptyBraces: space, no_space
72
+ Layout/SpaceInsideHashLiteralBraces:
73
+ Enabled: false
74
+
75
+ # Offense count: 120
76
+ # Cop supports --auto-correct.
77
+ # Configuration parameters: EnforcedStyle.
78
+ # SupportedStyles: final_newline, final_blank_line
79
+ Layout/TrailingEmptyLines:
80
+ Enabled: false
81
+
82
+ # Offense count: 23
83
+ # Cop supports --auto-correct.
84
+ # Configuration parameters: AllowInHeredoc.
85
+ Layout/TrailingWhitespace:
86
+ Enabled: false
87
+
88
+ # Offense count: 6
89
+ # Cop supports --auto-correct.
90
+ Lint/NonDeterministicRequireOrder:
91
+ Exclude:
92
+ - 'lib/fhir_dstu2_models.rb'
93
+
94
+ # Offense count: 2
95
+ # Cop supports --auto-correct.
96
+ Lint/ToJSON:
97
+ Exclude:
98
+ - 'lib/fhir_dstu2_models/bootstrap/json.rb'
99
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_finding.rb'
100
+
101
+ # Offense count: 41
13
102
  Metrics/AbcSize:
14
- Max: 423
103
+ Max: 461
15
104
 
16
105
  # Offense count: 10
17
106
  # Configuration parameters: CountComments, ExcludedMethods.
107
+ # ExcludedMethods: refine
18
108
  Metrics/BlockLength:
19
- Max: 150
109
+ Max: 131
20
110
 
21
- # Offense count: 1
111
+ # Offense count: 45
22
112
  # Configuration parameters: CountBlocks.
23
113
  Metrics/BlockNesting:
24
- Max: 5
114
+ Max: 6
25
115
 
26
- # Offense count: 5
116
+ # Offense count: 7
27
117
  # Configuration parameters: CountComments.
28
118
  Metrics/ClassLength:
29
- Max: 499
119
+ Max: 470
30
120
 
31
- # Offense count: 26
121
+ # Offense count: 30
32
122
  Metrics/CyclomaticComplexity:
33
- Max: 69
123
+ Max: 142
34
124
 
35
- # Offense count: 40
36
- # Configuration parameters: CountComments.
125
+ # Offense count: 48
126
+ # Configuration parameters: CountComments, ExcludedMethods.
37
127
  Metrics/MethodLength:
38
- Max: 120
128
+ Max: 463
39
129
 
40
- # Offense count: 1
130
+ # Offense count: 2
41
131
  # Configuration parameters: CountComments.
42
132
  Metrics/ModuleLength:
43
- Max: 120
133
+ Max: 520
44
134
 
45
-
46
- # Offense count: 25
135
+ # Offense count: 28
47
136
  Metrics/PerceivedComplexity:
48
- Max: 72
137
+ Max: 145
49
138
 
50
- # Offense count: 16
139
+ # Offense count: 118
140
+ # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
141
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
142
+ Naming/FileName:
143
+ Enabled: false
144
+
145
+ # Offense count: 96
146
+ # Configuration parameters: EnforcedStyle, IgnoredPatterns.
147
+ # SupportedStyles: snake_case, camelCase
148
+ Naming/MethodName:
149
+ Enabled: false
150
+
151
+ # Offense count: 4
152
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
153
+ # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
154
+ Naming/MethodParameterName:
155
+ Exclude:
156
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb'
157
+
158
+ # Offense count: 2
159
+ # Cop supports --auto-correct.
160
+ # Configuration parameters: PreferredName.
161
+ Naming/RescuedExceptionsVariableName:
162
+ Exclude:
163
+ - 'lib/fhir_dstu2_models/bootstrap/hashable.rb'
164
+
165
+ # Offense count: 1
166
+ # Configuration parameters: .
167
+ # SupportedStyles: inline, group
168
+ Style/AccessModifierDeclarations:
169
+ EnforcedStyle: inline
170
+
171
+ # Offense count: 19
51
172
  Style/ClassVars:
52
173
  Exclude:
53
174
  - 'lib/fhir_dstu2_models/bootstrap/definitions.rb'
175
+ - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
54
176
  - 'lib/fhir_dstu2_models/fluentpath/parse.rb'
55
177
 
56
- # Offense count: 14
178
+ # Offense count: 6
179
+ Style/CommentedKeyword:
180
+ Exclude:
181
+ - 'lib/fhir_dstu2_models/bootstrap/hashable.rb'
182
+ - 'lib/fhir_dstu2_models/bootstrap/model.rb'
183
+
184
+ # Offense count: 1
185
+ # Cop supports --auto-correct.
186
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
187
+ # SupportedStyles: assign_to_condition, assign_inside_condition
188
+ Style/ConditionalAssignment:
189
+ Exclude:
190
+ - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
191
+
192
+ # Offense count: 358
57
193
  Style/Documentation:
194
+ Enabled: false
195
+
196
+ # Offense count: 16
197
+ # Configuration parameters: MinBodyLength.
198
+ Style/GuardClause:
199
+ Exclude:
200
+ - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
201
+
202
+ # Offense count: 31
203
+ # Cop supports --auto-correct.
204
+ Style/IfUnlessModifier:
205
+ Exclude:
206
+ - 'lib/fhir_dstu2_models/bootstrap/generator.rb'
207
+ - 'lib/fhir_dstu2_models/bootstrap/hashable.rb'
208
+ - 'lib/fhir_dstu2_models/bootstrap/model.rb'
209
+ - 'lib/fhir_dstu2_models/bootstrap/template.rb'
210
+ - 'lib/fhir_dstu2_models/bootstrap/xml.rb'
211
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition.rb'
212
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb'
213
+ - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
214
+
215
+ # Offense count: 1
216
+ # Cop supports --auto-correct.
217
+ # Configuration parameters: EnforcedStyle.
218
+ # SupportedStyles: line_count_dependent, lambda, literal
219
+ Style/Lambda:
220
+ Exclude:
221
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition.rb'
222
+
223
+ # Offense count: 2
224
+ # Cop supports --auto-correct.
225
+ # Configuration parameters: EnforcedStyle.
226
+ # SupportedStyles: call, braces
227
+ Style/LambdaCall:
228
+ Exclude:
229
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition.rb'
230
+
231
+ # Offense count: 1
232
+ Style/MethodMissingSuper:
233
+ Exclude:
234
+ - 'lib/fhir_dstu2_models/bootstrap/model.rb'
235
+
236
+ # Offense count: 1
237
+ Style/MissingRespondToMissing:
238
+ Exclude:
239
+ - 'lib/fhir_dstu2_models/bootstrap/model.rb'
240
+
241
+ # Offense count: 3
242
+ Style/MultipleComparison:
58
243
  Exclude:
59
- - 'spec/**/*'
60
- - 'test/**/*'
61
244
  - 'lib/fhir_dstu2_models/bootstrap/definitions.rb'
62
- - 'lib/fhir_dstu2_models/bootstrap/field.rb'
245
+
246
+ # Offense count: 494
247
+ # Cop supports --auto-correct.
248
+ # Configuration parameters: EnforcedStyle.
249
+ # SupportedStyles: literals, strict
250
+ Style/MutableConstant:
251
+ Enabled: false
252
+
253
+ # Offense count: 3
254
+ # Cop supports --auto-correct.
255
+ # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
256
+ # SupportedStyles: predicate, comparison
257
+ Style/NumericPredicate:
258
+ Exclude:
259
+ - 'spec/**/*'
260
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb'
261
+ - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
262
+
263
+ # Offense count: 1
264
+ # Cop supports --auto-correct.
265
+ Style/OrAssignment:
266
+ Exclude:
63
267
  - 'lib/fhir_dstu2_models/bootstrap/generator.rb'
268
+
269
+ # Offense count: 1
270
+ # Cop supports --auto-correct.
271
+ Style/RedundantBegin:
272
+ Exclude:
273
+ - 'lib/fhir_dstu2_models/fluentpath/expression.rb'
274
+
275
+ # Offense count: 6
276
+ # Cop supports --auto-correct.
277
+ Style/RescueModifier:
278
+ Exclude:
279
+ - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
280
+
281
+ # Offense count: 18
282
+ # Cop supports --auto-correct.
283
+ # Configuration parameters: EnforcedStyle.
284
+ # SupportedStyles: implicit, explicit
285
+ Style/RescueStandardError:
286
+ Exclude:
287
+ - 'lib/fhir_dstu2_models/bootstrap/definitions.rb'
64
288
  - 'lib/fhir_dstu2_models/bootstrap/hashable.rb'
65
289
  - 'lib/fhir_dstu2_models/bootstrap/json.rb'
66
290
  - 'lib/fhir_dstu2_models/bootstrap/model.rb'
67
- - 'lib/fhir_dstu2_models/bootstrap/preprocess.rb'
68
- - 'lib/fhir_dstu2_models/bootstrap/template.rb'
69
291
  - 'lib/fhir_dstu2_models/bootstrap/xml.rb'
70
292
  - 'lib/fhir_dstu2_models/fhir.rb'
71
293
  - 'lib/fhir_dstu2_models/fhir_ext/structure_definition.rb'
72
294
  - 'lib/fhir_dstu2_models/fhir_ext/structure_definition_finding.rb'
295
+ - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
73
296
  - 'lib/fhir_dstu2_models/fluentpath/expression.rb'
74
297
  - 'lib/fhir_dstu2_models/fluentpath/parse.rb'
75
298
 
299
+ # Offense count: 4
300
+ # Cop supports --auto-correct.
301
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
302
+ # AllowedMethods: present?, blank?, presence, try, try!
303
+ Style/SafeNavigation:
304
+ Exclude:
305
+ - 'lib/fhir_dstu2_models/bootstrap/definitions.rb'
306
+ - 'lib/fhir_dstu2_models/bootstrap/xml.rb'
307
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition.rb'
308
+
76
309
  # Offense count: 1
77
- Style/MethodMissing:
310
+ # Cop supports --auto-correct.
311
+ # Configuration parameters: EnforcedStyle.
312
+ # SupportedStyles: require_parentheses, require_no_parentheses
313
+ Style/StabbyLambdaParentheses:
78
314
  Exclude:
79
- - 'lib/fhir_dstu2_models/bootstrap/model.rb'
315
+ - 'lib/fhir_dstu2_models/fhir_ext/structure_definition.rb'
316
+
317
+ # Offense count: 6
318
+ # Cop supports --auto-correct.
319
+ # Configuration parameters: .
320
+ # SupportedStyles: percent, brackets
321
+ Style/SymbolArray:
322
+ EnforcedStyle: percent
323
+ MinSize: 13
324
+
325
+ # Offense count: 1
326
+ # Cop supports --auto-correct.
327
+ Style/WhileUntilModifier:
328
+ Exclude:
329
+ - 'lib/fhir_dstu2_models/fluentpath/evaluate.rb'
330
+
331
+ # Offense count: 624
332
+ # Cop supports --auto-correct.
333
+ # Configuration parameters: WordRegex.
334
+ # SupportedStyles: percent, brackets
335
+ Style/WordArray:
336
+ EnforcedStyle: percent
337
+ MinSize: 6402
data/Gemfile.lock CHANGED
@@ -1,28 +1,26 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fhir_dstu2_models (1.0.7)
4
+ fhir_dstu2_models (1.1.0)
5
5
  bcp47 (>= 0.3)
6
6
  date_time_precision (>= 0.8)
7
- mime-types (>= 1.16, < 3)
8
- nokogiri (>= 1.8.2)
7
+ mime-types (>= 3.0)
8
+ nokogiri (>= 1.11.4)
9
9
 
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.8)
17
- simplecov (<= 0.13)
18
16
  coderay (1.1.2)
19
- concurrent-ruby (1.1.4)
17
+ concurrent-ruby (1.1.9)
20
18
  date_time_precision (0.8.1)
21
19
  diff-lcs (1.3)
22
20
  docile (1.1.5)
23
- ffi (1.9.23)
21
+ ffi (1.11.1)
24
22
  formatador (0.2.5)
25
- guard (2.14.2)
23
+ guard (2.15.0)
26
24
  formatador (>= 0.2.4)
27
25
  listen (>= 2.7, < 4.0)
28
26
  lumberjack (>= 1.0.12, < 2.0)
@@ -39,61 +37,66 @@ GEM
39
37
  guard-test (2.0.8)
40
38
  guard-compat (~> 1.2)
41
39
  test-unit (~> 3.0)
42
- i18n (1.5.3)
40
+ i18n (1.8.10)
43
41
  concurrent-ruby (~> 1.0)
44
- json (2.1.0)
42
+ jaro_winkler (1.5.4)
43
+ json (2.3.1)
45
44
  listen (3.1.5)
46
45
  rb-fsevent (~> 0.9, >= 0.9.4)
47
46
  rb-inotify (~> 0.9, >= 0.9.7)
48
47
  ruby_dep (~> 1.2)
49
48
  lumberjack (1.0.13)
50
- method_source (0.9.0)
51
- mime-types (2.99.3)
52
- mini_portile2 (2.3.0)
49
+ method_source (0.9.2)
50
+ mime-types (3.3.1)
51
+ mime-types-data (~> 3.2015)
52
+ mime-types-data (3.2021.0225)
53
+ mini_portile2 (2.5.3)
53
54
  nenv (0.3.0)
54
- nokogiri (1.8.2)
55
- mini_portile2 (~> 2.3.0)
55
+ nokogiri (1.11.7)
56
+ mini_portile2 (~> 2.5.0)
57
+ racc (~> 1.4)
56
58
  nokogiri-diff (0.2.0)
57
59
  nokogiri (~> 1.5)
58
60
  tdiff (~> 0.3, >= 0.3.2)
59
- notiffany (0.1.1)
61
+ notiffany (0.1.3)
60
62
  nenv (~> 0.1)
61
63
  shellany (~> 0.0)
62
- parallel (1.12.1)
63
- parser (2.5.1.0)
64
- ast (~> 2.4.0)
65
- power_assert (1.1.1)
66
- powerpack (0.1.1)
67
- pry (0.11.3)
64
+ parallel (1.20.1)
65
+ parser (3.0.0.0)
66
+ ast (~> 2.4.1)
67
+ power_assert (1.1.5)
68
+ pry (0.12.2)
68
69
  coderay (~> 1.1.0)
69
70
  method_source (~> 0.9.0)
70
- rainbow (2.2.2)
71
- rake
72
- rake (12.3.1)
71
+ racc (1.5.2)
72
+ rainbow (3.0.0)
73
+ rake (12.3.3)
73
74
  rb-fsevent (0.10.3)
74
- rb-inotify (0.9.10)
75
- ffi (>= 0.5.0, < 2)
76
- rspec (3.7.0)
77
- rspec-core (~> 3.7.0)
78
- rspec-expectations (~> 3.7.0)
79
- rspec-mocks (~> 3.7.0)
80
- rspec-core (3.7.1)
81
- rspec-support (~> 3.7.0)
82
- rspec-expectations (3.7.0)
75
+ rb-inotify (0.10.0)
76
+ ffi (~> 1.0)
77
+ rexml (3.2.5)
78
+ rspec (3.8.0)
79
+ rspec-core (~> 3.8.0)
80
+ rspec-expectations (~> 3.8.0)
81
+ rspec-mocks (~> 3.8.0)
82
+ rspec-core (3.8.2)
83
+ rspec-support (~> 3.8.0)
84
+ rspec-expectations (3.8.4)
83
85
  diff-lcs (>= 1.2.0, < 2.0)
84
- rspec-support (~> 3.7.0)
85
- rspec-mocks (3.7.0)
86
+ rspec-support (~> 3.8.0)
87
+ rspec-mocks (3.8.1)
86
88
  diff-lcs (>= 1.2.0, < 2.0)
87
- rspec-support (~> 3.7.0)
88
- rspec-support (3.7.1)
89
- rubocop (0.49.0)
89
+ rspec-support (~> 3.8.0)
90
+ rspec-support (3.8.2)
91
+ rubocop (0.80.0)
92
+ jaro_winkler (~> 1.5.1)
90
93
  parallel (~> 1.10)
91
- parser (>= 2.3.3.1, < 3.0)
92
- powerpack (~> 0.1)
93
- rainbow (>= 1.99.1, < 3.0)
94
+ parser (>= 2.7.0.1)
95
+ rainbow (>= 2.2.2, < 4.0)
96
+ rexml
94
97
  ruby-progressbar (~> 1.7)
95
- unicode-display_width (~> 1.0, >= 1.0.1)
96
- ruby-progressbar (1.9.0)
98
+ unicode-display_width (>= 1.4.0, < 1.7)
99
+ ruby-progressbar (1.11.0)
97
100
  ruby_dep (1.5.0)
98
101
  shellany (0.0.1)
99
102
  simplecov (0.13.0)
@@ -101,18 +104,17 @@ GEM
101
104
  json (>= 1.8, < 3)
102
105
  simplecov-html (~> 0.10.0)
103
106
  simplecov-html (0.10.2)
104
- tdiff (0.3.3)
105
- test-unit (3.2.7)
107
+ tdiff (0.3.4)
108
+ test-unit (3.3.3)
106
109
  power_assert
107
- thor (0.20.0)
108
- unicode-display_width (1.3.2)
110
+ thor (0.20.3)
111
+ unicode-display_width (1.6.1)
109
112
 
110
113
  PLATFORMS
111
114
  ruby
112
115
 
113
116
  DEPENDENCIES
114
117
  bundler
115
- codeclimate-test-reporter
116
118
  fhir_dstu2_models!
117
119
  guard-rspec
118
120
  guard-test
@@ -120,12 +122,12 @@ DEPENDENCIES
120
122
  pry
121
123
  rake
122
124
  rspec
123
- rubocop (= 0.49)
125
+ rubocop (= 0.80)
124
126
  simplecov
125
127
  test-unit
126
128
 
127
129
  RUBY VERSION
128
- ruby 2.5.1p57
130
+ ruby 2.7.2p137
129
131
 
130
132
  BUNDLED WITH
131
- 1.16.2
133
+ 2.2.17
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
@@ -51,6 +51,16 @@ obs.valueQuantity = FHIR::DSTU2::Quantity.new(
51
51
  )
52
52
  ```
53
53
 
54
+ Iterating over all elements in a resource, including nested elements...
55
+ ```ruby
56
+ patient.each_element do |value, metadata, path|
57
+ puts "Info for #{path}:"
58
+ puts "- value: #{value}"
59
+ puts "- type: #{metadata['type']}"
60
+ puts "- cardinality: #{metadata['min']}..#{metadata['max']}"
61
+ end
62
+ ```
63
+
54
64
  ### Validation
55
65
 
56
66
  Using built in validation...
@@ -69,7 +79,7 @@ puts sd.warnings
69
79
  ```
70
80
  # License
71
81
 
72
- Copyright 2014-2018 The MITRE Corporation
82
+ Copyright 2014-2021 The MITRE Corporation
73
83
 
74
84
  Licensed under the Apache License, Version 2.0 (the "License");
75
85
  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::DSTU2::Models::VERSION
9
9
  spec.authors = ['Jason Walonoski', 'Andre Quina', "Michael O'Keefe", 'Robert Scanlon']
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 DSTU2 models in ruby}
13
14
  spec.description = %q{A Gem for handling FHIR DSTU2 models in ruby}
@@ -20,10 +21,10 @@ Gem::Specification.new do |spec|
20
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
22
  spec.require_paths = ['lib']
22
23
 
23
- spec.add_dependency 'nokogiri', '>= 1.8.2'
24
+ spec.add_dependency 'nokogiri', '>= 1.11.4'
24
25
  spec.add_dependency 'date_time_precision', '>= 0.8'
25
26
  spec.add_dependency 'bcp47', '>= 0.3'
26
- spec.add_dependency 'mime-types', '>= 1.16', '< 3'
27
+ spec.add_dependency 'mime-types', '>= 3.0'
27
28
 
28
29
  spec.add_development_dependency 'bundler'
29
30
  spec.add_development_dependency 'rake'
@@ -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.49'
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
@@ -183,7 +183,7 @@ module FHIR
183
183
  field.path = element['path'].gsub(path_type, type_name)
184
184
  field.type = data_type
185
185
  field.type = 'Extension' if field.path.end_with?('extension')
186
- field.type_profiles = profiles if %w[Reference Extension].include?(datatype)
186
+ field.type_profiles = profiles if %w[Reference Extension].include?(data_type)
187
187
  field.min = element['min']
188
188
  field.max = element['max']
189
189
  field.max = field.max.to_i
@@ -1,3 +1,5 @@
1
+ require 'json'
2
+
1
3
  module FHIR
2
4
  module DSTU2
3
5
  module Json
@@ -302,6 +302,27 @@ module FHIR
302
302
  valid
303
303
  end
304
304
 
305
+ def each_element(path = nil, &block)
306
+ self.class::METADATA.each do |element_name, metadata|
307
+ local_name = metadata.fetch :local_name, element_name
308
+ values = [instance_variable_get("@#{local_name}")].flatten.compact
309
+ next if values.empty?
310
+
311
+ values.each_with_index do |value, i|
312
+ child_path =
313
+ if path.nil?
314
+ element_name
315
+ else
316
+ "#{path}.#{element_name}"
317
+ end
318
+ child_path += "[#{i}]" if metadata['max'] > 1
319
+ yield value, metadata, child_path
320
+ value.each_element child_path, &block unless FHIR::DSTU2::PRIMITIVES.include? metadata['type']
321
+ end
322
+ end
323
+ self
324
+ end
325
+
305
326
  private :validate_reference_type, :check_binding_uri, :validate_field
306
327
  end
307
328
  end
@@ -168,7 +168,6 @@ module FHIR
168
168
  # Check the datatype for each node, only if the element has one declared, and it isn't the root element
169
169
  if !element.type.empty? && element.path != id
170
170
  codeable_concept_pattern = element.pattern && element.pattern.is_a?(FHIR::DSTU2::CodeableConcept)
171
- codeable_concept_binding = element.binding
172
171
  matching_pattern = false
173
172
  nodes.each do |value|
174
173
  matching_type = 0
@@ -205,35 +204,45 @@ module FHIR
205
204
  matching_pattern = true if vcoding.system == pcoding.system && vcoding.code == pcoding.code
206
205
  end
207
206
  end
208
- elsif data_type_found == 'CodeableConcept' && codeable_concept_binding
209
- binding_issues =
210
- if element.binding.strength == 'extensible'
211
- @warnings
212
- elsif element.binding.strength == 'required'
213
- @errors
214
- else # e.g., example-strength or unspecified
215
- [] # Drop issues errors on the floor, in throwaway array
207
+ elsif %w[CodeableConcept Coding Quantity].include? data_type_found
208
+ required_strength = element&.binding&.strength == 'required'
209
+ binding_issues = required_strength ? @errors : @warnings
210
+
211
+ valueset_uri = element&.binding&.valueSetReference&.reference
212
+ check_code = ->coding do
213
+ # Can't validate if both code and system are not given
214
+ if coding['code'].nil? || coding['system'].nil?
215
+ binding_issues << "#{describe_element(element)} code: #{coding.to_json} missing code" if coding['code'].nil?
216
+ binding_issues << "#{describe_element(element)} code: #{coding.to_json} missing system" if coding['system'].nil?
217
+ return
216
218
  end
217
219
 
218
- valueset_uri = element.binding && element.binding.valueSetReference && element.binding.valueSetReference.reference
219
- vcc = FHIR::DSTU2::CodeableConcept.new(value)
220
- if valueset_uri && self.class.vs_validators[valueset_uri]
220
+ # ValueSet Validation
221
221
  check_fn = self.class.vs_validators[valueset_uri]
222
- has_valid_code = vcc.coding && vcc.coding.any? { |c| check_fn.call(c) }
222
+ has_valid_code = false
223
+ if check_fn
224
+ has_valid_code = check_fn.call(coding)
225
+ binding_issues << "#{describe_element(element)} has no codings from #{valueset_uri}. Codings evaluated: #{coding.to_json}" unless has_valid_code
226
+ end
223
227
 
228
+ # CodeSystem Validation
224
229
  unless has_valid_code
225
- binding_issues << "#{describe_element(element)} has no codings from #{valueset_uri}. Codings evaluated: #{vcc.to_json}"
230
+ check_fn = self.class.vs_validators[coding['system']]
231
+ if check_fn && !check_fn.call(coding)
232
+ binding_issues << "#{describe_element(element)} has no codings from it's specified system: #{coding['system']}. "\
233
+ "Codings evaluated: #{coding.to_json}"
234
+ end
226
235
  end
227
236
  end
228
237
 
229
- unless has_valid_code
230
- vcc.coding.each do |c|
231
- check_fn = self.class.vs_validators[c.system]
232
- if check_fn && !check_fn.call(c)
233
- binding_issues << "#{describe_element(element)} has no codings from it's specified system: #{c.system}. "\
234
- "Codings evaluated: #{vcc.to_json}"
235
- end
238
+ if data_type_found == 'CodeableConcept'
239
+ value['coding']&.each do |coding|
240
+ check_code.(coding)
236
241
  end
242
+ else
243
+ # avoid checking Codings twice if they are already checked as part of a CodeableConcept
244
+ # The CodeableConcept should contain the binding for the children Codings
245
+ check_code.(value) unless element.path == 'CodeableConcept.coding'
237
246
  end
238
247
 
239
248
  elsif data_type_found == 'String' && !element.maxLength.nil? && (value.size > element.maxLength)
@@ -284,13 +293,9 @@ module FHIR
284
293
  unless definition.nil?
285
294
  ret_val = false
286
295
  begin
287
- # klass = Module.const_get("FHIR::DSTU2::#{data_type_code}")
288
- # ret_val = definition.validates_resource?(klass.new(deep_copy(value)))
289
296
  ret_val = definition.validates_hash?(value)
290
- unless ret_val
291
- @errors += definition.errors
292
- @warnings += definition.warnings
293
- end
297
+ @errors += definition.errors
298
+ @warnings += definition.warnings
294
299
  rescue
295
300
  @errors << "Unable to verify #{data_type_code} as a FHIR::DSTU2 Resource."
296
301
  end
@@ -308,13 +313,9 @@ module FHIR
308
313
  if !definition.nil?
309
314
  ret_val = false
310
315
  begin
311
- # klass = Module.const_get("FHIR::DSTU2::#{resource_type}")
312
- # ret_val = definition.validates_resource?(klass.new(deep_copy(value)))
313
316
  ret_val = definition.validates_hash?(value)
314
- unless ret_val
315
- @errors += definition.errors
316
- @warnings += definition.warnings
317
- end
317
+ @errors += definition.errors
318
+ @warnings += definition.warnings
318
319
  rescue
319
320
  @errors << "Unable to verify #{resource_type} as a FHIR::DSTU2 Resource."
320
321
  end
@@ -334,13 +335,9 @@ module FHIR
334
335
  if !definition.nil?
335
336
  ret_val = false
336
337
  begin
337
- # klass = Module.const_get("FHIR::DSTU2::#{data_type_code}")
338
- # ret_val = definition.validates_resource?(klass.new(deep_copy(value)))
339
338
  ret_val = definition.validates_hash?(value)
340
- unless ret_val
341
- @errors += definition.errors
342
- @warnings += definition.warnings
343
- end
339
+ @errors += definition.errors
340
+ @warnings += definition.warnings
344
341
  rescue
345
342
  @errors << "Unable to verify #{data_type_code} as a FHIR::DSTU2 type."
346
343
  end
@@ -1,7 +1,7 @@
1
1
  module FHIR
2
2
  module DSTU2
3
3
  module Models
4
- VERSION = '1.0.7'.freeze
4
+ VERSION = '1.1.0'.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_dstu2_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Walonoski
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2019-02-26 00:00:00.000000000 Z
14
+ date: 2021-06-24 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nokogiri
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.8.2
22
+ version: 1.11.4
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 1.8.2
29
+ version: 1.11.4
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: date_time_precision
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -61,20 +61,14 @@ dependencies:
61
61
  requirements:
62
62
  - - ">="
63
63
  - !ruby/object:Gem::Version
64
- version: '1.16'
65
- - - "<"
66
- - !ruby/object:Gem::Version
67
- version: '3'
64
+ version: '3.0'
68
65
  type: :runtime
69
66
  prerelease: false
70
67
  version_requirements: !ruby/object:Gem::Requirement
71
68
  requirements:
72
69
  - - ">="
73
70
  - !ruby/object:Gem::Version
74
- version: '1.16'
75
- - - "<"
76
- - !ruby/object:Gem::Version
77
- version: '3'
71
+ version: '3.0'
78
72
  - !ruby/object:Gem::Dependency
79
73
  name: bundler
80
74
  requirement: !ruby/object:Gem::Requirement
@@ -179,28 +173,14 @@ dependencies:
179
173
  requirements:
180
174
  - - '='
181
175
  - !ruby/object:Gem::Version
182
- version: '0.49'
176
+ version: '0.80'
183
177
  type: :development
184
178
  prerelease: false
185
179
  version_requirements: !ruby/object:Gem::Requirement
186
180
  requirements:
187
181
  - - '='
188
182
  - !ruby/object:Gem::Version
189
- version: '0.49'
190
- - !ruby/object:Gem::Dependency
191
- name: codeclimate-test-reporter
192
- requirement: !ruby/object:Gem::Requirement
193
- requirements:
194
- - - ">="
195
- - !ruby/object:Gem::Version
196
- version: '0'
197
- type: :development
198
- prerelease: false
199
- version_requirements: !ruby/object:Gem::Requirement
200
- requirements:
201
- - - ">="
202
- - !ruby/object:Gem::Version
203
- version: '0'
183
+ version: '0.80'
204
184
  - !ruby/object:Gem::Dependency
205
185
  name: guard-rspec
206
186
  requirement: !ruby/object:Gem::Requirement
@@ -237,15 +217,16 @@ extensions: []
237
217
  extra_rdoc_files: []
238
218
  files:
239
219
  - ".codeclimate.yml"
220
+ - ".github/workflows/ruby.yml"
240
221
  - ".gitignore"
241
222
  - ".rspec"
242
223
  - ".rubocop.yml"
243
224
  - ".rubocop_todo.yml"
244
225
  - ".simplecov"
245
- - ".travis.yml"
246
226
  - Gemfile
247
227
  - Gemfile.lock
248
228
  - Guardfile
229
+ - LICENSE
249
230
  - README.md
250
231
  - Rakefile
251
232
  - bin/console
@@ -2125,7 +2106,8 @@ files:
2125
2106
  - lib/fhir_dstu2_models/tasks/tasks.rake
2126
2107
  - lib/fhir_dstu2_models/version.rb
2127
2108
  homepage: https://github.com/fhir-crucible/fhir_dstu2_models
2128
- licenses: []
2109
+ licenses:
2110
+ - Apache-2.0
2129
2111
  metadata: {}
2130
2112
  post_install_message:
2131
2113
  rdoc_options: []
@@ -2142,8 +2124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2142
2124
  - !ruby/object:Gem::Version
2143
2125
  version: '0'
2144
2126
  requirements: []
2145
- rubyforge_project:
2146
- rubygems_version: 2.7.7
2127
+ rubygems_version: 3.0.3
2147
2128
  signing_key:
2148
2129
  specification_version: 4
2149
2130
  summary: A Gem for handling FHIR DSTU2 models in ruby
data/.travis.yml DELETED
@@ -1,21 +0,0 @@
1
- language: ruby
2
- env:
3
- - TESTMEMORY=0 GCDELAY=2.0
4
- rvm:
5
- - 2.3
6
- - 2.4
7
- - 2.5
8
- - 2.6
9
- script:
10
- - bundle exec rake
11
- - bundle exec codeclimate-test-reporter
12
- notifications:
13
- email:
14
- recipients:
15
- - fhir-testing-list@lists.mitre.org
16
- on_failure: change
17
- addons:
18
- code_climate:
19
- repo_token: 0230b3379581b30743b7b4355d7394e427648e604d19a2aba987956201eee290
20
- before_install:
21
- - gem install bundler