cqm-models 4.0.2 → 4.1.1

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: 17e1255fcbd30f8ef581c003e524cc21e2d7a230c76d7e7eeb17d01a7a7c04c3
4
- data.tar.gz: 38652d324dfef1740b4fd489530bf69a59082f49156971773c36dcdbad8ce884
3
+ metadata.gz: 930fdd6c260f1cf2e8b97f3abb93fe74fafe8c5caf418c4fb41f7975a733d555
4
+ data.tar.gz: 896a73479c131df363f00dcd8627b83a6fd39e5b3ced36c3b8983e9d96a549c7
5
5
  SHA512:
6
- metadata.gz: d6b87885f1b551f5db1be0dd98fc5a8518a35efb3e8bc03d86f9c336fb17b0c23135088c69ecd56df2e04389da5ee5facda6c7d5d0f91cc0c7b0f0c85929d8f1
7
- data.tar.gz: 4abcf634592f856e4d8b182fee815828da430d49a7e9f556b1daf4170d07b5f557d3b4253b55473f51d4fcde66875c9d17b522b9506102ee6a7a93c469c2861c
6
+ metadata.gz: 3b91579699b17533ace81ac84e05997fd903b3d6ca415f912dbcf03bd93a0dfdacd1889f27cbd1e25ef5db23bb9090dc5a377a66084f0fe532dd22600d46042e
7
+ data.tar.gz: 6ef858a99cbec230afc9661690318838a72882837dac94440fab97327da096164aba4947083d06caac036bd7d9531ac31b2ae55ae6bb1be9ac4e80b9af9ecfab
@@ -12,7 +12,7 @@ jobs:
12
12
 
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: [2.5]
15
+ ruby-version: [2.6, 2.7]
16
16
  mongodb-version: [4.0.18, 4.4]
17
17
  node-version: [12.x, 14.x]
18
18
 
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
+ /.nyc_output
3
4
  /Gemfile.lock
4
5
  /_yardoc/
5
6
  /coverage/
@@ -7,7 +7,7 @@ function Any(key, options) {
7
7
  Any.prototype = Object.create(mongoose.SchemaType.prototype);
8
8
 
9
9
  function RecursiveCast(any) {
10
- if (any && any.value && any.unit) {
10
+ if (any && any.value !== undefined && any.unit) {
11
11
  return new cql.Quantity(any.value, any.unit);
12
12
  }
13
13
 
@@ -65,6 +65,7 @@ module QDM
65
65
  def shift_dates(seconds)
66
66
  fields.keys.each do |field|
67
67
  send(field + '=', (send(field).to_time + seconds.seconds).to_datetime) if send(field).is_a? DateTime
68
+ send(field + '=', (send(field).to_time + seconds.seconds).to_datetime) if send(field).is_a? Time
68
69
  send(field + '=', send(field).shift_dates(seconds)) if (send(field).is_a? Interval) || (send(field).is_a? DataElement)
69
70
 
70
71
  # Special case for facility locations
data/cqm-models.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'cqm-models'
7
- spec.version = '4.0.2'
7
+ spec.version = '4.1.1'
8
8
  spec.authors = ['aholmes@mitre.org', 'mokeefe@mitre.org', 'lades@mitre.org']
9
9
 
10
10
  spec.summary = 'Mongo models that correspond to the QDM specification.'