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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4df3c5f29975a0cd1cf20d24ba44a943bc5bc34c
4
- data.tar.gz: 7933d28eb59d222c33dad47ad57f09a0104ff51d
3
+ metadata.gz: 24f118e81ee369cedd35352902a0a93a23719689
4
+ data.tar.gz: 36e796280fb351966c7bee7dc96b821b2adb8ac8
5
5
  SHA512:
6
- metadata.gz: 5e27bd1cb5b0d2ca8b1798bc619bb0062dcba00f5e087056a3b31afcacfb97914358ab9e4bdbf23f81a0d0196d1e76e7ef3742d7200b6a0698e36f31f063e444
7
- data.tar.gz: 393f6adcb0f7702c6f2114de0d3ede2373fad13af3f85cc56fa86bea6b76e0e7a09fcc2f73e7fb84eac56156ac2e7ceddf6c6aec0f76476ded26202f7fbe8237
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.30' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
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.30
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-27 00:00:00.000000000 Z
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.6.4
194
+ rubygems_version: 2.5.1
195
195
  signing_key:
196
196
  specification_version: 4
197
197
  summary: LIBIS Workflow framework.