libis-workflow 2.0.30 → 2.0.31
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 +4 -4
- data/lib/libis/workflow/base/work_item.rb +21 -0
- data/lib/libis/workflow/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24f118e81ee369cedd35352902a0a93a23719689
|
4
|
+
data.tar.gz: 36e796280fb351966c7bee7dc96b821b2adb8ac8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 956d77a872a1289d79516993616998e77189cd8e29717d1e814c669370a9132e540d8b474bd60475e1f94841ec7cd3f76076f5d96d7af65ab77c9a1d092ff266
|
7
|
+
data.tar.gz: 9036e549ef3a91d320a08352c4410663a7a45f43224d0c0b93806b1732f50f2cff9af088b98a7fb01dca6457033a2a5377dd6adf5aa5223e5bc00d4c23de48d1
|
@@ -71,6 +71,10 @@ module Libis
|
|
71
71
|
self.properties['name'] || self.inspect
|
72
72
|
end
|
73
73
|
|
74
|
+
def name=(n)
|
75
|
+
self.properties['name'] = n
|
76
|
+
end
|
77
|
+
|
74
78
|
def to_s;
|
75
79
|
self.name;
|
76
80
|
end
|
@@ -83,6 +87,23 @@ module Libis
|
|
83
87
|
self.names.join('/');
|
84
88
|
end
|
85
89
|
|
90
|
+
# Label is a more descriptive name
|
91
|
+
def label
|
92
|
+
self.properties['label'] || self.name
|
93
|
+
end
|
94
|
+
|
95
|
+
def label=(value)
|
96
|
+
self.properties['label'] = value
|
97
|
+
end
|
98
|
+
|
99
|
+
def labels
|
100
|
+
(self.parent.labels rescue Array.new).push(label).compact
|
101
|
+
end
|
102
|
+
|
103
|
+
def labelpath;
|
104
|
+
self.labels.join('/');
|
105
|
+
end
|
106
|
+
|
86
107
|
# File name safe version of the to_s output.
|
87
108
|
#
|
88
109
|
# The output should be safe to use as a file name to store work item
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Libis
|
2
2
|
module Workflow
|
3
|
-
VERSION = '2.0.
|
3
|
+
VERSION = '2.0.31' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
4
4
|
end
|
5
5
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libis-workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Dekeyser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
requirements: []
|
193
193
|
rubyforge_project:
|
194
|
-
rubygems_version: 2.
|
194
|
+
rubygems_version: 2.5.1
|
195
195
|
signing_key:
|
196
196
|
specification_version: 4
|
197
197
|
summary: LIBIS Workflow framework.
|