discerner 2.0.2 → 2.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3a1d184a70bb7e442a55bea8e11a9371772f089
|
4
|
+
data.tar.gz: c47b501526f3e332ee91c87943b21e3140e1eed7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 686ea993f0315d1e22894d44395926546f4413658cdee22e1ad816544041cb562bbb2d1dbeda74ae02ee93fb7725e5439d7c6a7ee8e4277b166c6528791d319b
|
7
|
+
data.tar.gz: 3741bce01100155385bade6b23fdec55766e3db15ae7e4d645cca1caa3d81f09c2b4424aa785f38de5a031b8ea900535d990d0bc0ea2d736c328175ffa6a3e63
|
data/lib/discerner/parser.rb
CHANGED
@@ -87,7 +87,9 @@ module Discerner
|
|
87
87
|
notification_message "processing dictionary '#{dictionary_name}'"
|
88
88
|
|
89
89
|
dictionary = Discerner::Dictionary.find_or_initialize_by(name: dictionary_name)
|
90
|
-
dictionary.
|
90
|
+
dictionary.namespace_type = hash[:namespace_type]
|
91
|
+
dictionary.namespace_id = hash[:namespace_id]
|
92
|
+
dictionary.deleted_at = nil
|
91
93
|
|
92
94
|
if dictionary.new_record?
|
93
95
|
notification_message "creating dictionary ..."
|
data/lib/discerner/version.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# ---- General structure:
|
2
2
|
# :dictionaries:
|
3
3
|
# - :name: string # has to be unique within not-deleted dictionaries
|
4
|
+
# :namespace_type: # string to define dictionary namespace type (optional). This can be used to link Discerner::Disctionary with outside entities.
|
5
|
+
# :namespace_id: # integer to define dictionary namespace id (optional). This can be used to link Discerner::Disctionary with outside entities.
|
4
6
|
# :parameter_categories:
|
5
7
|
# - :name: string # has to be unique within the dictionary
|
6
8
|
# :parameters:
|
@@ -33,6 +35,8 @@
|
|
33
35
|
---
|
34
36
|
:dictionaries:
|
35
37
|
- :name: Sample dictionary
|
38
|
+
:namespace_type: Cohort
|
39
|
+
:namespace_id: 1
|
36
40
|
:parameter_categories:
|
37
41
|
- :name: Demographic criteria
|
38
42
|
:parameters:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discerner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Gurley, Yulia Bushmanova
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|