flor 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +0 -1
- data/lib/flor/log.rb +7 -2
- data/lib/flor/pcore/cursor.rb +13 -0
- data/lib/flor/tools/flotojson.rb +10 -1
- data/lib/flor.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 162cdcdf2bca8c6f41feb24643e32306cd65183d30a3a6562b8a1d51b151192e
|
4
|
+
data.tar.gz: 48c5664d39b6efc8783121806cfd7faa24f26714e00a1a5af9694ca9dd68d09e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94825467c26f7cb714bd0744979023164655eed579d19b6662a2e7b75d8fa7dc170f21c4ff5ce6e3d12fcd53b90a86999fcd10389481edf362a0c7ab4d469481
|
7
|
+
data.tar.gz: 8c4f9c54c2284f6fd72ecfc1d6f9f83e7a436f446ae2eec06efd8978aaf34e609f1a8d06f3320b384a01fe64c702abaf8c20c87080830f745ee0dfb7d12f4ec5
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,6 @@
|
|
6
6
|
|
7
7
|
Flor is a "Ruby workflow engine", if that makes any sense.
|
8
8
|
|
9
|
-
* [![Join the chat at https://gitter.im/floraison/flor](https://badges.gitter.im/floraison/flor.svg)](https://gitter.im/floraison/flor?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
10
9
|
* [floraison mailing list](https://groups.google.com/forum/#!forum/floraison)
|
11
10
|
* [twitter.com/@flor_workflow](https://twitter.com/flor_workflow)
|
12
11
|
|
data/lib/flor/log.rb
CHANGED
@@ -337,13 +337,18 @@ module Flor
|
|
337
337
|
o.puts "#{_c.rs}#{_c.dg}<Flor.msg_to_detail_s>"
|
338
338
|
|
339
339
|
o.puts "#{_c.dg}message:#{_c.yl}"
|
340
|
-
o.puts YAML.dump(m)
|
340
|
+
#o.puts YAML.dump(m)
|
341
|
+
o.puts(Flor.to_djan(m, indent: 2, width: true))
|
341
342
|
|
342
343
|
o.puts "#{_c.dg}tree:#{_c.yl}"
|
343
344
|
o.puts(tree_to_s(node.lookup_tree(nid), nid, out: o)) if node
|
344
345
|
|
345
346
|
o.puts "#{_c.dg}node:#{_c.yl}"
|
346
|
-
o.puts n ? YAML.dump(n.merge('tree' => '(above)')) : 'nil'
|
347
|
+
#o.puts n ? YAML.dump(n.merge('tree' => '(above)')) : 'nil'
|
348
|
+
o.puts(
|
349
|
+
n ?
|
350
|
+
Flor.to_djan(n.merge('tree' => '(above)'), indent: 2, width: true) :
|
351
|
+
'nil')
|
347
352
|
|
348
353
|
o.puts "#{_c.dg}nodes:#{_c.yl}"
|
349
354
|
o.puts nods_to_s(executor, m, opts)
|
data/lib/flor/pcore/cursor.rb
CHANGED
@@ -62,6 +62,10 @@ class Flor::Pro::Cursor < Flor::Procedure
|
|
62
62
|
#
|
63
63
|
# ## cursor and start: / initial: attribute
|
64
64
|
#
|
65
|
+
# Sometimes, it is necessary to enter a cursor not at its first child, but
|
66
|
+
# its second or third. Once such a cursor is entered and a `continue` is
|
67
|
+
# met it will "rewind" to the first child (not the "start" child).
|
68
|
+
#
|
65
69
|
# ```
|
66
70
|
# task 'create mandate'
|
67
71
|
# cursor start: 'approve mandate'
|
@@ -71,6 +75,15 @@ class Flor::Pro::Cursor < Flor::Procedure
|
|
71
75
|
# task 'activate mandate'
|
72
76
|
# ```
|
73
77
|
#
|
78
|
+
# The string passed to start:/initial: is looked up (down) in the cursor
|
79
|
+
# in the order: (example `cursor start: 'bravo'`)
|
80
|
+
#
|
81
|
+
# * tag (for example `push l 'b' tag: 'bravo'`)
|
82
|
+
# * string argument (for example `task 'toto' context: 'bravo'`)
|
83
|
+
# * string target (for example `task 'bravo'`)
|
84
|
+
# * name target (for example `bravo _`)
|
85
|
+
# * att target (for example `task 'toto' bravo: 'ok'`)
|
86
|
+
#
|
74
87
|
# ## see also
|
75
88
|
#
|
76
89
|
# Break, continue, loop.
|
data/lib/flor/tools/flotojson.rb
CHANGED
@@ -22,7 +22,12 @@ if (ARGV & [ '-h', '--help']).any?
|
|
22
22
|
puts " --jp pretty prints the JSON output"
|
23
23
|
puts
|
24
24
|
puts " -y"
|
25
|
-
puts "
|
25
|
+
puts " --yaml dumps as YAML"
|
26
|
+
puts
|
27
|
+
puts " -d"
|
28
|
+
puts " --djan dumps as djan"
|
29
|
+
puts
|
30
|
+
puts " --json dumps as JSON (it's the default)"
|
26
31
|
puts
|
27
32
|
puts " -h"
|
28
33
|
puts " --help prints this help message"
|
@@ -84,6 +89,10 @@ elsif flags['--jp'] || flags['--pj']
|
|
84
89
|
)
|
85
90
|
elsif flags['-y'] || flags['--yaml']
|
86
91
|
puts YAML.dump(tree)
|
92
|
+
elsif flags['-d'] || flags['--djan']
|
93
|
+
puts(Flor.to_djan(tree, indent: 2, width: true))
|
94
|
+
elsif flags['--json']
|
95
|
+
puts JSON.dump(tree)
|
87
96
|
else
|
88
97
|
puts JSON.dump(tree)
|
89
98
|
end
|
data/lib/flor.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Mettraux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: munemo
|
@@ -305,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
305
305
|
- !ruby/object:Gem::Version
|
306
306
|
version: '0'
|
307
307
|
requirements: []
|
308
|
-
rubygems_version: 3.
|
308
|
+
rubygems_version: 3.2.33
|
309
309
|
signing_key:
|
310
310
|
specification_version: 4
|
311
311
|
summary: A Ruby workflow engine
|