cqm-models 3.1.1 → 3.1.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: f7351dbc9be7855d8704c32f8e768d8dd101c60e184e6114b4f908cec95e45ef
4
- data.tar.gz: 764912c1fcc9d6e155853005ec178c973131078a59b85f6ff957a4ae92310503
3
+ metadata.gz: 7a98ff5b9f4caf2158764ae9ca3370226cfaec4877b22fc45ff16584f49cfb89
4
+ data.tar.gz: f1d68db5fb968eac4b9488ac85ac195c4b5d9d56c5c8bea969e46eeb8ed78cf1
5
5
  SHA512:
6
- metadata.gz: 79e4eac69740a14347989fffc0c211cfcd623c3a4091fa31b0d24da8fcbdd4ce6a296df761f216e61d6e771f59f8f511db68a1fa03c337310253b13b4373964f
7
- data.tar.gz: f9ae102d6d01ca3fc354c5f0d0bc7cce0e0e9516420da71be381070f993a381a5cf5d2c100966a5b91ca194c903004f16fdd2b18b9b823ea48fde33d8567e552
6
+ metadata.gz: 2d769481c231d3a3902b5c9d2bd0d4c9f061381d5cba276609362d902fafddab753d9d7959c2c323a90bd56bf4d8cecdb465cbde155c6894cfdcd9239d91e304
7
+ data.tar.gz: b4af2c8d6bf9cfc71433f48e2b7bb29309bc7c8563511307fedfb096235f8aee7aa53fae01684b4455075136102b7543584c064553d0f4cbb2d4a8764657716b
data/.eslintrc.json CHANGED
@@ -1,6 +1,13 @@
1
1
  {
2
2
  "extends": "airbnb-base",
3
3
  "rules": {
4
+ "import/extensions": "off",
5
+ "import/order": "off",
6
+ "no-multiple-empty-lines": "off",
7
+ "max-classes-per-file": "off",
8
+ "arrow-parens": "off",
9
+ "operator-linebreak": "off",
10
+ "no-else-return": "off",
4
11
  "max-len": ["error", {"code": 200, "ignoreComments": true}],
5
12
  "no-unused-vars": ["error", { "varsIgnorePattern": "EntitySchema|Identifier|IdentifierSchema|DataElementSchema|ComponentSchema|FacilityLocationSchema|Code|Quantity|Interval|Integer|Array|Float|Time|Number|Date|Mixed|Any" }],
6
13
  "camelcase": "off",
@@ -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
 
@@ -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
 
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 = '3.1.1'
7
+ spec.version = '3.1.2'
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.'