cqm-models 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd559058bde27e44c663cdceb7f5c8f4c4716f4e
4
- data.tar.gz: 8cf7b92222d773f79050bde4c788b7b57ac0a72e
3
+ metadata.gz: 43ac25732f7441e1f217c08aacb938c540990b8e
4
+ data.tar.gz: a2c73abb9977475e4c5e846a12e0f932dfab429d
5
5
  SHA512:
6
- metadata.gz: 637a263b364d02f76ca01bf5823ede9ac27983d221e7bcd3cbaa56294410b45140a2203f3806a6eba9af6f7bcfcebc56842c69e1289bb9458e8a1e1b9836c765
7
- data.tar.gz: b8434dbda67a944f40f54cf4b14c12cc3d88a705af36380251633ab8c466778be49e555544d351d472e68751bb4d2d8a9f08c19e631e266ae8ea53a7ebb64c2e
6
+ metadata.gz: 19db96aa4d3648726e77a08f0d0240a6a412c7a2abba404f825766195e5c9886b6d11c2c1093a70ee603baaf9c9fcdfca66d921dc58c24fa827098ad45092132
7
+ data.tar.gz: f97daed348d53ce526dc7fd78298b909ed1dbe08b7f0dfd5d34a98d5ae1238861bbd389e28154f7808c724029fc9d04753e96a06a913a0fee19c8101ff0a373a
@@ -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 = '1.0.0'
7
+ spec.version = '1.0.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.'
@@ -26391,7 +26391,7 @@ function objectToString(o) {
26391
26391
  };
26392
26392
 
26393
26393
  DateTime.prototype.getDate = function() {
26394
- return this.reducedPrecision(DateTime.Unit.DAY);
26394
+ return new Date(this.year, this.month, this.day);
26395
26395
  };
26396
26396
 
26397
26397
  DateTime.prototype.getTime = function() {
@@ -26658,7 +26658,11 @@ function objectToString(o) {
26658
26658
  };
26659
26659
 
26660
26660
  Date.prototype.getDateTime = function() {
26661
- return new DateTime(this.year, this.month, this.day);
26661
+ if ((this.year != null) && (this.month != null) && (this.day != null)) {
26662
+ return new DateTime(this.year, this.month, this.day, 0, 0, 0, 0);
26663
+ } else {
26664
+ return new DateTime(this.year, this.month, this.day);
26665
+ }
26662
26666
  };
26663
26667
 
26664
26668
  Date.prototype.reducedPrecision = function(unitField) {
@@ -33310,10 +33314,12 @@ function objectToString(o) {
33310
33314
  ToDate.prototype.exec = function(ctx) {
33311
33315
  var arg;
33312
33316
  arg = this.execArgs(ctx);
33313
- if ((arg != null) && typeof arg !== 'undefined') {
33314
- return Date.parse(arg.toString());
33315
- } else {
33317
+ if (arg == null) {
33316
33318
  return null;
33319
+ } else if (arg.isDateTime) {
33320
+ return arg.getDate();
33321
+ } else {
33322
+ return Date.parse(arg.toString());
33317
33323
  }
33318
33324
  };
33319
33325
 
@@ -33331,7 +33337,7 @@ function objectToString(o) {
33331
33337
  ToDateTime.prototype.exec = function(ctx) {
33332
33338
  var arg;
33333
33339
  arg = this.execArgs(ctx);
33334
- if ((arg == null) || (arg === void 0)) {
33340
+ if (arg == null) {
33335
33341
  return null;
33336
33342
  } else if (arg.isDate) {
33337
33343
  return arg.getDateTime();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cqm-models",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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": {
@@ -15,7 +15,7 @@
15
15
  ],
16
16
  "license": "Apache-2.0",
17
17
  "dependencies": {
18
- "cql-execution": "1.3.0",
18
+ "cql-execution": "1.3.1",
19
19
  "mongoose": "^5.0.7"
20
20
  },
21
21
  "devDependencies": {
data/yarn.lock CHANGED
@@ -442,9 +442,9 @@ core-util-is@~1.0.0:
442
442
  version "1.0.2"
443
443
  resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
444
444
 
445
- cql-execution@1.3.0:
446
- version "1.3.0"
447
- resolved "https://registry.yarnpkg.com/cql-execution/-/cql-execution-1.3.0.tgz#8f02c29477807d080f423e979e1fffac10e21ef5"
445
+ cql-execution@1.3.1:
446
+ version "1.3.1"
447
+ resolved "https://registry.yarnpkg.com/cql-execution/-/cql-execution-1.3.1.tgz#79c5fe891202140f6f3d8371fb382765eba06a37"
448
448
  dependencies:
449
449
  moment "^2.20.1"
450
450
  ucum "0.0.7"
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: 1.0.0
4
+ version: 1.0.1
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-09-26 00:00:00.000000000 Z
13
+ date: 2018-09-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler