cqm-models 0.7.4 → 0.7.5

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
  SHA1:
3
- metadata.gz: 7ec520335d86baf3fba9de0cd861239900820760
4
- data.tar.gz: 53b9beba4687c9b2ce96a306951b9a6dce723205
3
+ metadata.gz: a275eb0bb5b371b954c33d53ad6be1c53169eeb0
4
+ data.tar.gz: b4c6b589f4b866f0f28f141aad406bae2518a031
5
5
  SHA512:
6
- metadata.gz: ad0ba670d595b8afb2ee520e2afb3a8a98c99b6b25726677a7ee999b2b4b529e4496f918599742d609d4e7c1d5e8cea8cc2299b2f1f746eaca5f93c91ba7703f
7
- data.tar.gz: ad982e9bfde53c096d782a9721e0c715ae1b4977e533b491375c96c518c40d1877d9ad833a4f92c0607657fe79b8cc6236eb5685ba28076d2080afdcf81af90f
6
+ metadata.gz: 1763d6ba4dbb585eea6c9befe1d8a0bfb9bb7bc6726d2f0df931e509ae0244d212b1dc6fb212b66545a6059f17aa99deeb80d5c424a43f5fc6584934e1f23e09
7
+ data.tar.gz: cb7ef1d12c8a4e4a361058c563f79adc5b76f39db33ffc8e4cd11be19f35041af739978f2a8a5e8809112871342110b4bc3c8b9676521d1443470408eb75d4a3
@@ -38,6 +38,9 @@ function RecursiveCast(any) {
38
38
  });
39
39
  return casted;
40
40
  }
41
+ if (Number.isInteger(any)) {
42
+ return any;
43
+ }
41
44
  if (Date.parse(any)) {
42
45
  return cql.DateTime.fromDate(new Date(any), 0);
43
46
  }
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 = '0.7.4'
7
+ spec.version = '0.7.5'
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.'
data/dist/index.js CHANGED
@@ -2361,6 +2361,9 @@ function RecursiveCast(any) {
2361
2361
  });
2362
2362
  return casted;
2363
2363
  }
2364
+ if (Number.isInteger(any)) {
2365
+ return any;
2366
+ }
2364
2367
  if (Date.parse(any)) {
2365
2368
  return cql.DateTime.fromDate(new Date(any), 0);
2366
2369
  }
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cqm-models",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "This library contains auto generated Mongo (Mongoose.js) models that correspond to the QDM (Quality Data Model) specification.",
5
5
  "main": "app/assets/javascripts/index.js",
6
6
  "browser": {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cqm-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - aholmes@mitre.org
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2018-04-30 00:00:00.000000000 Z
13
+ date: 2018-06-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -314,7 +314,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
314
314
  version: '0'
315
315
  requirements: []
316
316
  rubyforge_project:
317
- rubygems_version: 2.5.2
317
+ rubygems_version: 2.6.11
318
318
  signing_key:
319
319
  specification_version: 4
320
320
  summary: Mongo models that correspond to the QDM specification.