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: 99ba748c0ce27ac59591e5953544451ad9391577
4
- data.tar.gz: 97a72c9ed518e97945859ad9efa3c029b5c429cf
3
+ metadata.gz: a3a1d184a70bb7e442a55bea8e11a9371772f089
4
+ data.tar.gz: c47b501526f3e332ee91c87943b21e3140e1eed7
5
5
  SHA512:
6
- metadata.gz: b3d4abafc5789cd08abe47a524b3f2315d79bbcd35e126fa1d22e33340e3adfd8fed379024d9c302ba2512caa2d5d3951f64ad7efea08d4d58cbbb680537aecd
7
- data.tar.gz: ca568133a704bc632dc5f55dad9d596e955435f42060e6006a4becde3bb79db46c8cd1512bddcd21c92bf4585189ab1f39d484d33130d05661ff3e8b86cf91a0
6
+ metadata.gz: 686ea993f0315d1e22894d44395926546f4413658cdee22e1ad816544041cb562bbb2d1dbeda74ae02ee93fb7725e5439d7c6a7ee8e4277b166c6528791d319b
7
+ data.tar.gz: 3741bce01100155385bade6b23fdec55766e3db15ae7e4d645cca1caa3d81f09c2b4424aa785f38de5a031b8ea900535d990d0bc0ea2d736c328175ffa6a3e63
@@ -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.deleted_at = nil
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 ..."
@@ -1,3 +1,3 @@
1
1
  module Discerner
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
@@ -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.2
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-05 00:00:00.000000000 Z
11
+ date: 2014-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails