workmesh 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/workmesh.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab49e3b91ea1f2d0c03eea14f5bc3373c0eb6344d5b0a008ed53615c804d2653
|
4
|
+
data.tar.gz: b2b4ac8b5ca948000509709dd9f68e1e49757f1ee551c2ee880f9606464cfdb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41a957ed6d3c091e98dd2213182bc5296ccef9594c75c5e171f370aef953ffd5c0895ca22537cd0323b9b691697470b1a9d719a1526587d81fd13d18bb5e1bf8
|
7
|
+
data.tar.gz: a71ba7ac77510a161abc94e38a53af4b7aa24104cd7ebe281d99fbbd66e96de194d9a0389e9b1d1bbea2eed8c253ef7f61b41cd239a6e518c2a0be067a987a1b
|
data/lib/workmesh.rb
CHANGED
@@ -356,8 +356,12 @@ module BlackStack
|
|
356
356
|
raise "The object o is not an instance of :entity_table (#{s.entity_table.to_s})" unless o.is_a?(Sequel::Model) && o.class.table_name.to_s == s.entity_table.to_s
|
357
357
|
# if the object has not a node assigned, then return nil.
|
358
358
|
return nil if o[s.entity_field_assignation].nil?
|
359
|
-
#
|
360
|
-
@@nodes.select { |n| n.name.to_s == o[s.entity_field_assignation].to_s }.first
|
359
|
+
# find the node
|
360
|
+
ret = @@nodes.select { |n| n.name.to_s == o[s.entity_field_assignation].to_s }.first
|
361
|
+
# validate: the node exists
|
362
|
+
raise "The node #{o[s.entity_field_assignation]} does not exists in configuration file" if ret.nil?
|
363
|
+
# return
|
364
|
+
ret
|
361
365
|
end
|
362
366
|
|
363
367
|
# assign object to a node
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workmesh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leandro Daniel Sardi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|