ruote 2.1.11 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. data/CHANGELOG.txt +60 -0
  2. data/CREDITS.txt +22 -4
  3. data/LICENSE.txt +1 -1
  4. data/README.rdoc +6 -7
  5. data/Rakefile +58 -59
  6. data/TODO.txt +137 -65
  7. data/couch_url.txt +1 -0
  8. data/jruby_issue.txt +32 -0
  9. data/lib/ruote.rb +1 -1
  10. data/lib/ruote/context.rb +12 -10
  11. data/lib/ruote/engine.rb +280 -145
  12. data/lib/ruote/engine/process_error.rb +5 -5
  13. data/lib/ruote/engine/process_status.rb +47 -28
  14. data/lib/ruote/exp/command.rb +7 -10
  15. data/lib/ruote/exp/commanded.rb +2 -2
  16. data/lib/ruote/exp/condition.rb +130 -43
  17. data/lib/ruote/exp/fe_add_branches.rb +2 -2
  18. data/lib/ruote/exp/fe_apply.rb +1 -1
  19. data/lib/ruote/exp/fe_cancel_process.rb +3 -3
  20. data/lib/ruote/exp/fe_command.rb +3 -3
  21. data/lib/ruote/exp/fe_concurrence.rb +4 -4
  22. data/lib/ruote/exp/fe_concurrent_iterator.rb +17 -5
  23. data/lib/ruote/exp/fe_cron.rb +3 -3
  24. data/lib/ruote/exp/fe_cursor.rb +5 -5
  25. data/lib/ruote/exp/fe_define.rb +3 -3
  26. data/lib/ruote/exp/fe_echo.rb +3 -3
  27. data/lib/ruote/exp/fe_equals.rb +2 -2
  28. data/lib/ruote/exp/fe_error.rb +2 -2
  29. data/lib/ruote/exp/fe_filter.rb +519 -0
  30. data/lib/ruote/exp/fe_forget.rb +9 -2
  31. data/lib/ruote/exp/fe_given.rb +154 -0
  32. data/lib/ruote/exp/fe_if.rb +16 -13
  33. data/lib/ruote/exp/fe_inc.rb +3 -3
  34. data/lib/ruote/exp/fe_iterator.rb +4 -4
  35. data/lib/ruote/exp/fe_let.rb +75 -0
  36. data/lib/ruote/exp/fe_listen.rb +68 -12
  37. data/lib/ruote/exp/fe_lose.rb +110 -0
  38. data/lib/ruote/exp/fe_noop.rb +1 -1
  39. data/lib/ruote/exp/{fe_when.rb → fe_once.rb} +25 -21
  40. data/lib/ruote/exp/fe_participant.rb +14 -17
  41. data/lib/ruote/exp/fe_redo.rb +10 -6
  42. data/lib/ruote/exp/fe_ref.rb +1 -1
  43. data/lib/ruote/exp/fe_registerp.rb +112 -0
  44. data/lib/ruote/exp/fe_reserve.rb +3 -3
  45. data/lib/ruote/exp/fe_restore.rb +2 -2
  46. data/lib/ruote/exp/fe_save.rb +2 -2
  47. data/lib/ruote/exp/fe_sequence.rb +3 -4
  48. data/lib/ruote/exp/fe_set.rb +16 -7
  49. data/lib/ruote/exp/fe_subprocess.rb +23 -1
  50. data/lib/ruote/exp/fe_that.rb +92 -0
  51. data/lib/ruote/exp/fe_undo.rb +3 -3
  52. data/lib/ruote/exp/fe_unregisterp.rb +71 -0
  53. data/lib/ruote/exp/fe_wait.rb +2 -2
  54. data/lib/ruote/exp/flowexpression.rb +153 -78
  55. data/lib/ruote/exp/iterator.rb +2 -2
  56. data/lib/ruote/exp/merge.rb +2 -2
  57. data/lib/ruote/exp/ro_attributes.rb +14 -12
  58. data/lib/ruote/exp/ro_filters.rb +136 -0
  59. data/lib/ruote/exp/ro_persist.rb +51 -35
  60. data/lib/ruote/exp/ro_variables.rb +18 -27
  61. data/lib/ruote/fei.rb +73 -33
  62. data/lib/ruote/id/mnemo_wfid_generator.rb +1 -1
  63. data/lib/ruote/id/wfid_generator.rb +11 -4
  64. data/lib/ruote/log/default_history.rb +122 -0
  65. data/lib/ruote/log/pretty.rb +36 -8
  66. data/lib/ruote/log/storage_history.rb +37 -5
  67. data/lib/ruote/log/test_logger.rb +26 -24
  68. data/lib/ruote/log/wait_logger.rb +5 -3
  69. data/lib/ruote/part/block_participant.rb +22 -11
  70. data/lib/ruote/part/engine_participant.rb +6 -7
  71. data/lib/ruote/part/local_participant.rb +6 -12
  72. data/lib/ruote/part/no_op_participant.rb +4 -4
  73. data/lib/ruote/part/null_participant.rb +4 -4
  74. data/lib/ruote/part/smtp_participant.rb +4 -4
  75. data/lib/ruote/part/storage_participant.rb +40 -20
  76. data/lib/ruote/part/template.rb +4 -4
  77. data/lib/ruote/participant.rb +0 -1
  78. data/lib/ruote/{parser.rb → reader.rb} +30 -25
  79. data/lib/ruote/{parser → reader}/ruby_dsl.rb +28 -11
  80. data/lib/ruote/{parser → reader}/xml.rb +6 -5
  81. data/lib/ruote/receiver/base.rb +35 -13
  82. data/lib/ruote/storage/base.rb +20 -18
  83. data/lib/ruote/storage/composite_storage.rb +10 -10
  84. data/lib/ruote/storage/fs_storage.rb +17 -10
  85. data/lib/ruote/storage/hash_storage.rb +29 -18
  86. data/lib/ruote/svc/dispatch_pool.rb +41 -14
  87. data/lib/ruote/svc/dollar_sub.rb +50 -17
  88. data/lib/ruote/svc/error_handler.rb +19 -11
  89. data/lib/ruote/svc/expression_map.rb +4 -4
  90. data/lib/ruote/svc/participant_list.rb +105 -100
  91. data/lib/ruote/svc/tracker.rb +58 -18
  92. data/lib/ruote/svc/treechecker.rb +51 -24
  93. data/lib/ruote/tree_dot.rb +4 -4
  94. data/lib/ruote/util/filter.rb +440 -0
  95. data/lib/ruote/util/hashdot.rb +4 -4
  96. data/lib/ruote/util/look.rb +2 -6
  97. data/lib/ruote/util/lookup.rb +9 -7
  98. data/lib/ruote/util/misc.rb +40 -8
  99. data/lib/ruote/util/ometa.rb +1 -1
  100. data/lib/ruote/util/serializer.rb +4 -4
  101. data/lib/ruote/util/subprocess.rb +29 -9
  102. data/lib/ruote/util/time.rb +4 -4
  103. data/lib/ruote/util/tree.rb +3 -3
  104. data/lib/ruote/version.rb +2 -2
  105. data/lib/ruote/worker.rb +55 -32
  106. data/lib/ruote/workitem.rb +64 -11
  107. data/ruote.gemspec +31 -302
  108. data/test/bm/launch_bench.rb +37 -0
  109. data/test/functional/base.rb +60 -18
  110. data/test/functional/concurrent_base.rb +2 -2
  111. data/test/functional/ct_0_concurrence.rb +1 -1
  112. data/test/functional/ct_1_iterator.rb +1 -1
  113. data/test/functional/ct_2_cancel.rb +1 -1
  114. data/test/functional/eft_0_process_definition.rb +2 -2
  115. data/test/functional/eft_10_cancel_process.rb +1 -1
  116. data/test/functional/eft_11_wait.rb +19 -11
  117. data/test/functional/eft_12_listen.rb +79 -13
  118. data/test/functional/eft_13_iterator.rb +13 -10
  119. data/test/functional/eft_14_cursor.rb +98 -9
  120. data/test/functional/eft_15_loop.rb +6 -4
  121. data/test/functional/eft_16_if.rb +12 -0
  122. data/test/functional/eft_18_concurrent_iterator.rb +31 -32
  123. data/test/functional/eft_19_reserve.rb +4 -4
  124. data/test/functional/eft_1_echo.rb +9 -0
  125. data/test/functional/eft_20_save.rb +4 -4
  126. data/test/functional/{eft_28_when.rb → eft_28_once.rb} +33 -7
  127. data/test/functional/eft_30_ref.rb +17 -2
  128. data/test/functional/eft_31_registerp.rb +130 -0
  129. data/test/functional/eft_32_lose.rb +93 -0
  130. data/test/functional/eft_33_let.rb +31 -0
  131. data/test/functional/eft_34_given.rb +123 -0
  132. data/test/functional/eft_35_filter.rb +269 -0
  133. data/test/functional/eft_3_participant.rb +4 -6
  134. data/test/functional/eft_4_set.rb +16 -2
  135. data/test/functional/eft_5_subprocess.rb +2 -4
  136. data/test/functional/eft_6_concurrence.rb +29 -29
  137. data/test/functional/eft_8_undo.rb +39 -3
  138. data/test/functional/eft_9_redo.rb +94 -2
  139. data/test/functional/ft_10_dollar.rb +81 -2
  140. data/test/functional/ft_11_recursion.rb +13 -17
  141. data/test/functional/ft_12_launchitem.rb +9 -5
  142. data/test/functional/ft_13_variables.rb +7 -9
  143. data/test/functional/ft_14_re_apply.rb +6 -9
  144. data/test/functional/ft_15_timeout.rb +18 -18
  145. data/test/functional/ft_16_participant_params.rb +1 -3
  146. data/test/functional/ft_17_conditional.rb +25 -2
  147. data/test/functional/ft_18_kill.rb +65 -12
  148. data/test/functional/ft_1_process_status.rb +147 -71
  149. data/test/functional/ft_20_storage_participant.rb +0 -1
  150. data/test/functional/ft_21_forget.rb +82 -1
  151. data/test/functional/{ft_24_block_participants.rb → ft_24_block_participant.rb} +42 -11
  152. data/test/functional/ft_25_receiver.rb +47 -17
  153. data/test/functional/{ft_26_participant_timeout.rb → ft_26_participant_rtimeout.rb} +56 -19
  154. data/test/functional/ft_29_part_template.rb +6 -5
  155. data/test/functional/ft_2_errors.rb +21 -37
  156. data/test/functional/ft_30_smtp_participant.rb +1 -1
  157. data/test/functional/ft_31_part_blocking.rb +8 -6
  158. data/test/functional/ft_34_cursor_rewind.rb +13 -10
  159. data/test/functional/ft_35_add_service.rb +1 -1
  160. data/test/functional/ft_36_storage_history.rb +24 -1
  161. data/test/functional/ft_37_default_history.rb +109 -0
  162. data/test/functional/ft_38_participant_more.rb +10 -10
  163. data/test/functional/ft_39_wait_for.rb +12 -9
  164. data/test/functional/ft_3_participant_registration.rb +111 -32
  165. data/test/functional/ft_40_wait_logger.rb +2 -1
  166. data/test/functional/ft_41_participants.rb +30 -4
  167. data/test/functional/ft_43_participant_on_reply.rb +6 -23
  168. data/test/functional/ft_45_participant_accept.rb +4 -4
  169. data/test/functional/ft_46_launch_single.rb +36 -2
  170. data/test/functional/ft_47_wfid_generator.rb +54 -0
  171. data/test/functional/ft_48_lose.rb +112 -0
  172. data/test/functional/ft_49_engine_on_error.rb +201 -0
  173. data/test/functional/ft_4_cancel.rb +66 -6
  174. data/test/functional/ft_50_engine_config.rb +22 -0
  175. data/test/functional/ft_51_misc.rb +67 -0
  176. data/test/functional/ft_52_case.rb +134 -0
  177. data/test/functional/ft_53_engine_on_terminate.rb +95 -0
  178. data/test/functional/ft_54_patterns.rb +104 -0
  179. data/test/functional/{ft_37_engine_participant.rb → ft_55_engine_participant.rb} +4 -5
  180. data/test/functional/ft_56_filter_attribute.rb +259 -0
  181. data/test/functional/ft_5_on_error.rb +77 -30
  182. data/test/functional/ft_6_on_cancel.rb +66 -11
  183. data/test/functional/ft_7_tags.rb +94 -5
  184. data/test/functional/ft_8_participant_consumption.rb +36 -5
  185. data/test/functional/ft_9_subprocesses.rb +10 -10
  186. data/test/functional/rt_1_listen.rb +3 -3
  187. data/test/functional/{rt_3_when.rb → rt_3_once.rb} +4 -4
  188. data/test/functional/storage_helper.rb +15 -13
  189. data/test/functional/test.rb +1 -3
  190. data/test/test_helper.rb +0 -8
  191. data/test/unit/storage.rb +154 -10
  192. data/test/unit/{ut_0_ruby_parser.rb → ut_0_ruby_reader.rb} +61 -11
  193. data/test/unit/ut_11_lookup.rb +7 -0
  194. data/test/unit/ut_13_serializer.rb +1 -1
  195. data/test/unit/ut_15_util.rb +23 -0
  196. data/test/unit/{ut_16_parser.rb → ut_16_reader.rb} +11 -13
  197. data/test/unit/ut_1_fei.rb +57 -10
  198. data/test/unit/ut_20_composite_storage.rb +25 -11
  199. data/test/unit/ut_21_participant_list.rb +47 -0
  200. data/test/unit/ut_22_filter.rb +903 -0
  201. data/test/unit/ut_3_wait_logger.rb +2 -6
  202. data/test/unit/ut_6_condition.rb +164 -17
  203. data/test/unit/ut_7_workitem.rb +28 -0
  204. data/test/unit/ut_8_tree_to_dot.rb +1 -1
  205. data/test/unit/{ut_9_xml_parser.rb → ut_9_xml_reader.rb} +5 -5
  206. metadata +108 -84
  207. data/.gitignore +0 -4
  208. data/examples/barley.rb +0 -391
  209. data/examples/flickr_report.rb +0 -107
  210. data/examples/pong.rb +0 -37
  211. data/examples/ruote_quickstart.rb +0 -43
  212. data/examples/web_first_page.rb +0 -68
  213. data/lib/ruote/part/hash_participant.rb +0 -91
  214. data/test/README.rdoc +0 -15
  215. data/test/functional/crunner.sh +0 -19
  216. data/test/pdef.xml +0 -7
  217. data/test/unit/ut_2_wfidgen.rb +0 -21
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2005-2010, John Mettraux, jmettraux@gmail.com
2
+ # Copyright (c) 2005-2011, John Mettraux, jmettraux@gmail.com
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  # of this software and associated documentation files (the "Software"), to deal
@@ -39,7 +39,7 @@ module Ruote
39
39
 
40
40
  attr_reader :h
41
41
 
42
- def initialize (h)
42
+ def initialize(h)
43
43
 
44
44
  @h = h
45
45
  class << @h; include Ruote::HashDot; end
@@ -47,10 +47,10 @@ module Ruote
47
47
  #class << @h['fields']
48
48
  # alias_method :__get, :[]
49
49
  # alias_method :__set, :[]=
50
- # def [] (key)
50
+ # def [](key)
51
51
  # __get(key.to_s)
52
52
  # end
53
- # def []= (key, value)
53
+ # def []=(key, value)
54
54
  # __set(key.to_s, value)
55
55
  # end
56
56
  #end
@@ -118,7 +118,7 @@ module Ruote
118
118
  #
119
119
  # Remember : the fields must be a JSONifiable hash.
120
120
  #
121
- def fields= (fields)
121
+ def fields=(fields)
122
122
 
123
123
  @h['fields'] = fields
124
124
  end
@@ -137,7 +137,7 @@ module Ruote
137
137
  #
138
138
  # See #result
139
139
  #
140
- def result= (r)
140
+ def result=(r)
141
141
 
142
142
  fields['__result__'] = r
143
143
  end
@@ -151,7 +151,7 @@ module Ruote
151
151
 
152
152
  # Warning : equality is based on fei and not on payload !
153
153
  #
154
- def == (other)
154
+ def ==(other)
155
155
 
156
156
  return false if other.class != self.class
157
157
  self.h['fei'] == other.h['fei']
@@ -182,7 +182,7 @@ module Ruote
182
182
  #
183
183
  # workitem.fields['toto']['address']
184
184
  #
185
- def lookup (key, container_lookup=false)
185
+ def lookup(key, container_lookup=false)
186
186
 
187
187
  Ruote.lookup(@h['fields'], key, container_lookup)
188
188
  end
@@ -200,7 +200,7 @@ module Ruote
200
200
  # or are not hashes, set_field will simply create a "customer.address.city"
201
201
  # field and set its value to "Pleasantville".
202
202
  #
203
- def set_field (key, value)
203
+ def set_field(key, value)
204
204
 
205
205
  Ruote.set(@h['fields'], key, value)
206
206
  end
@@ -254,13 +254,66 @@ module Ruote
254
254
  # __command__ is read by the 'cursor' and the 'iterator' expressions
255
255
  # when a workitem reaches it (apply and reply).
256
256
  #
257
- def command= (com)
257
+ def command=(com)
258
258
 
259
259
  com = com.is_a?(Array) ? com : com.split(' ')
260
- com[1] = com[1].to_i if com[1]
260
+ com = [ com.first, com.last ]
261
+ com[1] = com[1].to_i if com[1] and com[0] != 'jump'
261
262
 
262
263
  @h['fields']['__command__'] = com
263
264
  end
265
+
266
+ # Shortcut for wi.fields['__tags__']
267
+ #
268
+ def tags
269
+
270
+ @h['fields']['__tags__'] || []
271
+ end
272
+
273
+ # Used by FlowExpression when entering a tag.
274
+ #
275
+ def self.add_tag(hworkitem, tag)
276
+
277
+ (hworkitem['fields']['__tags__'] ||= []) << tag
278
+ end
279
+
280
+ # Used by FlowExpression when leaving a tag.
281
+ #
282
+ def self.remove_tag(hworkitem, tag)
283
+
284
+ # it's a bit convoluted... trying to cope with potential inconsistencies
285
+ #
286
+ # normally, it should only be a tags.pop(), but since user have
287
+ # access to the workitem and its fields... better be safe than sorry
288
+
289
+ tags = (hworkitem['fields']['__tags__'] || [])
290
+
291
+ if index = tags.rindex(tag)
292
+ tags.delete_at(index)
293
+ end
294
+ end
295
+
296
+ # Encodes this workitem as JSON. If pretty is set to true, will output
297
+ # prettified JSON.
298
+ #
299
+ def as_json(pretty=false)
300
+
301
+ pretty ? Rufus::Json.pretty_encode(@h) : Rufus::Json.encode(@h)
302
+ end
303
+
304
+ # Given a JSON String, decodes and returns a Ruote::Workitem instance.3
305
+ # If the decode thing is not an object/hash, will raise an ArgumentError.
306
+ #
307
+ def self.from_json(json)
308
+
309
+ h = Rufus::Json.decode(json)
310
+
311
+ raise ArgumentError(
312
+ "Arg not a JSON hash/object, but a #{h.class}. Cannot create workitem"
313
+ ) unless h.is_a?(Hash)
314
+
315
+ self.new(h)
316
+ end
264
317
  end
265
318
  end
266
319
 
data/ruote.gemspec CHANGED
@@ -1,310 +1,39 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
1
+ # encoding: utf-8
5
2
 
6
3
  Gem::Specification.new do |s|
7
- s.name = %q{ruote}
8
- s.version = "2.1.11"
9
4
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["John Mettraux", "Kenneth Kalmer", "Torsten Schoenebaum"]
12
- s.date = %q{2010-10-01}
13
- s.description = %q{
14
- ruote is an open source ruby workflow engine.
15
- }
16
- s.email = %q{jmettraux@gmail.com}
17
- s.extra_rdoc_files = [
18
- "LICENSE.txt",
19
- "README.rdoc"
20
- ]
21
- s.files = [
22
- ".gitignore",
23
- "CHANGELOG.txt",
24
- "CREDITS.txt",
25
- "LICENSE.txt",
26
- "README.rdoc",
27
- "Rakefile",
28
- "TODO.txt",
29
- "examples/barley.rb",
30
- "examples/flickr_report.rb",
31
- "examples/pong.rb",
32
- "examples/ruote_quickstart.rb",
33
- "examples/web_first_page.rb",
34
- "lib/ruote.rb",
35
- "lib/ruote/context.rb",
36
- "lib/ruote/engine.rb",
37
- "lib/ruote/engine/process_error.rb",
38
- "lib/ruote/engine/process_status.rb",
39
- "lib/ruote/exp/command.rb",
40
- "lib/ruote/exp/commanded.rb",
41
- "lib/ruote/exp/condition.rb",
42
- "lib/ruote/exp/fe_add_branches.rb",
43
- "lib/ruote/exp/fe_apply.rb",
44
- "lib/ruote/exp/fe_cancel_process.rb",
45
- "lib/ruote/exp/fe_command.rb",
46
- "lib/ruote/exp/fe_concurrence.rb",
47
- "lib/ruote/exp/fe_concurrent_iterator.rb",
48
- "lib/ruote/exp/fe_cron.rb",
49
- "lib/ruote/exp/fe_cursor.rb",
50
- "lib/ruote/exp/fe_define.rb",
51
- "lib/ruote/exp/fe_echo.rb",
52
- "lib/ruote/exp/fe_equals.rb",
53
- "lib/ruote/exp/fe_error.rb",
54
- "lib/ruote/exp/fe_forget.rb",
55
- "lib/ruote/exp/fe_if.rb",
56
- "lib/ruote/exp/fe_inc.rb",
57
- "lib/ruote/exp/fe_iterator.rb",
58
- "lib/ruote/exp/fe_listen.rb",
59
- "lib/ruote/exp/fe_noop.rb",
60
- "lib/ruote/exp/fe_participant.rb",
61
- "lib/ruote/exp/fe_redo.rb",
62
- "lib/ruote/exp/fe_ref.rb",
63
- "lib/ruote/exp/fe_reserve.rb",
64
- "lib/ruote/exp/fe_restore.rb",
65
- "lib/ruote/exp/fe_save.rb",
66
- "lib/ruote/exp/fe_sequence.rb",
67
- "lib/ruote/exp/fe_set.rb",
68
- "lib/ruote/exp/fe_subprocess.rb",
69
- "lib/ruote/exp/fe_undo.rb",
70
- "lib/ruote/exp/fe_wait.rb",
71
- "lib/ruote/exp/fe_when.rb",
72
- "lib/ruote/exp/flowexpression.rb",
73
- "lib/ruote/exp/iterator.rb",
74
- "lib/ruote/exp/merge.rb",
75
- "lib/ruote/exp/ro_attributes.rb",
76
- "lib/ruote/exp/ro_persist.rb",
77
- "lib/ruote/exp/ro_variables.rb",
78
- "lib/ruote/fei.rb",
79
- "lib/ruote/id/mnemo_wfid_generator.rb",
80
- "lib/ruote/id/wfid_generator.rb",
81
- "lib/ruote/log/pretty.rb",
82
- "lib/ruote/log/storage_history.rb",
83
- "lib/ruote/log/test_logger.rb",
84
- "lib/ruote/log/wait_logger.rb",
85
- "lib/ruote/parser.rb",
86
- "lib/ruote/parser/ruby_dsl.rb",
87
- "lib/ruote/parser/xml.rb",
88
- "lib/ruote/part/block_participant.rb",
89
- "lib/ruote/part/engine_participant.rb",
90
- "lib/ruote/part/hash_participant.rb",
91
- "lib/ruote/part/local_participant.rb",
92
- "lib/ruote/part/no_op_participant.rb",
93
- "lib/ruote/part/null_participant.rb",
94
- "lib/ruote/part/smtp_participant.rb",
95
- "lib/ruote/part/storage_participant.rb",
96
- "lib/ruote/part/template.rb",
97
- "lib/ruote/participant.rb",
98
- "lib/ruote/receiver/base.rb",
99
- "lib/ruote/storage/base.rb",
100
- "lib/ruote/storage/composite_storage.rb",
101
- "lib/ruote/storage/fs_storage.rb",
102
- "lib/ruote/storage/hash_storage.rb",
103
- "lib/ruote/svc/dispatch_pool.rb",
104
- "lib/ruote/svc/dollar_sub.rb",
105
- "lib/ruote/svc/error_handler.rb",
106
- "lib/ruote/svc/expression_map.rb",
107
- "lib/ruote/svc/participant_list.rb",
108
- "lib/ruote/svc/tracker.rb",
109
- "lib/ruote/svc/treechecker.rb",
110
- "lib/ruote/tree_dot.rb",
111
- "lib/ruote/util/hashdot.rb",
112
- "lib/ruote/util/look.rb",
113
- "lib/ruote/util/lookup.rb",
114
- "lib/ruote/util/misc.rb",
115
- "lib/ruote/util/ometa.rb",
116
- "lib/ruote/util/serializer.rb",
117
- "lib/ruote/util/subprocess.rb",
118
- "lib/ruote/util/time.rb",
119
- "lib/ruote/util/tree.rb",
120
- "lib/ruote/version.rb",
121
- "lib/ruote/worker.rb",
122
- "lib/ruote/workitem.rb",
123
- "phil.txt",
124
- "ruote.gemspec",
125
- "test/README.rdoc",
126
- "test/bm/ci.rb",
127
- "test/bm/ici.rb",
128
- "test/bm/juuman.rb",
129
- "test/bm/load_26c.rb",
130
- "test/bm/mega.rb",
131
- "test/bm/seq_thousand.rb",
132
- "test/bm/t.rb",
133
- "test/functional/base.rb",
134
- "test/functional/concurrent_base.rb",
135
- "test/functional/crunner.rb",
136
- "test/functional/crunner.sh",
137
- "test/functional/ct_0_concurrence.rb",
138
- "test/functional/ct_1_iterator.rb",
139
- "test/functional/ct_2_cancel.rb",
140
- "test/functional/eft_0_process_definition.rb",
141
- "test/functional/eft_10_cancel_process.rb",
142
- "test/functional/eft_11_wait.rb",
143
- "test/functional/eft_12_listen.rb",
144
- "test/functional/eft_13_iterator.rb",
145
- "test/functional/eft_14_cursor.rb",
146
- "test/functional/eft_15_loop.rb",
147
- "test/functional/eft_16_if.rb",
148
- "test/functional/eft_17_equals.rb",
149
- "test/functional/eft_18_concurrent_iterator.rb",
150
- "test/functional/eft_19_reserve.rb",
151
- "test/functional/eft_1_echo.rb",
152
- "test/functional/eft_20_save.rb",
153
- "test/functional/eft_21_restore.rb",
154
- "test/functional/eft_22_noop.rb",
155
- "test/functional/eft_23_apply.rb",
156
- "test/functional/eft_24_add_branches.rb",
157
- "test/functional/eft_25_command.rb",
158
- "test/functional/eft_26_error.rb",
159
- "test/functional/eft_27_inc.rb",
160
- "test/functional/eft_28_when.rb",
161
- "test/functional/eft_29_cron.rb",
162
- "test/functional/eft_2_sequence.rb",
163
- "test/functional/eft_30_ref.rb",
164
- "test/functional/eft_3_participant.rb",
165
- "test/functional/eft_4_set.rb",
166
- "test/functional/eft_5_subprocess.rb",
167
- "test/functional/eft_6_concurrence.rb",
168
- "test/functional/eft_7_forget.rb",
169
- "test/functional/eft_8_undo.rb",
170
- "test/functional/eft_9_redo.rb",
171
- "test/functional/ft_0_worker.rb",
172
- "test/functional/ft_10_dollar.rb",
173
- "test/functional/ft_11_recursion.rb",
174
- "test/functional/ft_12_launchitem.rb",
175
- "test/functional/ft_13_variables.rb",
176
- "test/functional/ft_14_re_apply.rb",
177
- "test/functional/ft_15_timeout.rb",
178
- "test/functional/ft_16_participant_params.rb",
179
- "test/functional/ft_17_conditional.rb",
180
- "test/functional/ft_18_kill.rb",
181
- "test/functional/ft_19_alias.rb",
182
- "test/functional/ft_1_process_status.rb",
183
- "test/functional/ft_20_storage_participant.rb",
184
- "test/functional/ft_21_forget.rb",
185
- "test/functional/ft_22_process_definitions.rb",
186
- "test/functional/ft_23_load_defs.rb",
187
- "test/functional/ft_24_block_participants.rb",
188
- "test/functional/ft_25_receiver.rb",
189
- "test/functional/ft_26_participant_timeout.rb",
190
- "test/functional/ft_27_var_indirection.rb",
191
- "test/functional/ft_28_null_noop_participants.rb",
192
- "test/functional/ft_29_part_template.rb",
193
- "test/functional/ft_2_errors.rb",
194
- "test/functional/ft_30_smtp_participant.rb",
195
- "test/functional/ft_31_part_blocking.rb",
196
- "test/functional/ft_33_participant_subprocess_priority.rb",
197
- "test/functional/ft_34_cursor_rewind.rb",
198
- "test/functional/ft_35_add_service.rb",
199
- "test/functional/ft_36_storage_history.rb",
200
- "test/functional/ft_37_engine_participant.rb",
201
- "test/functional/ft_38_participant_more.rb",
202
- "test/functional/ft_39_wait_for.rb",
203
- "test/functional/ft_3_participant_registration.rb",
204
- "test/functional/ft_40_wait_logger.rb",
205
- "test/functional/ft_41_participants.rb",
206
- "test/functional/ft_42_storage_copy.rb",
207
- "test/functional/ft_43_participant_on_reply.rb",
208
- "test/functional/ft_44_var_participant.rb",
209
- "test/functional/ft_45_participant_accept.rb",
210
- "test/functional/ft_46_launch_single.rb",
211
- "test/functional/ft_4_cancel.rb",
212
- "test/functional/ft_5_on_error.rb",
213
- "test/functional/ft_6_on_cancel.rb",
214
- "test/functional/ft_7_tags.rb",
215
- "test/functional/ft_8_participant_consumption.rb",
216
- "test/functional/ft_9_subprocesses.rb",
217
- "test/functional/restart_base.rb",
218
- "test/functional/rt_0_wait.rb",
219
- "test/functional/rt_1_listen.rb",
220
- "test/functional/rt_2_errors.rb",
221
- "test/functional/rt_3_when.rb",
222
- "test/functional/rt_4_cron.rb",
223
- "test/functional/rt_5_timeout.rb",
224
- "test/functional/rtest.rb",
225
- "test/functional/storage_helper.rb",
226
- "test/functional/test.rb",
227
- "test/functional/vertical.rb",
228
- "test/path_helper.rb",
229
- "test/pdef.xml",
230
- "test/test.rb",
231
- "test/test_helper.rb",
232
- "test/unit/storage.rb",
233
- "test/unit/storages.rb",
234
- "test/unit/test.rb",
235
- "test/unit/ut_0_ruby_parser.rb",
236
- "test/unit/ut_11_lookup.rb",
237
- "test/unit/ut_13_serializer.rb",
238
- "test/unit/ut_14_is_uri.rb",
239
- "test/unit/ut_15_util.rb",
240
- "test/unit/ut_16_parser.rb",
241
- "test/unit/ut_18_engine.rb",
242
- "test/unit/ut_19_part_template.rb",
243
- "test/unit/ut_1_fei.rb",
244
- "test/unit/ut_20_composite_storage.rb",
245
- "test/unit/ut_2_wfidgen.rb",
246
- "test/unit/ut_3_wait_logger.rb",
247
- "test/unit/ut_4_expmap.rb",
248
- "test/unit/ut_5_tree.rb",
249
- "test/unit/ut_6_condition.rb",
250
- "test/unit/ut_7_workitem.rb",
251
- "test/unit/ut_8_tree_to_dot.rb",
252
- "test/unit/ut_9_xml_parser.rb"
253
- ]
254
- s.homepage = %q{http://ruote.rubyforge.org}
255
- s.rdoc_options = ["--charset=UTF-8"]
256
- s.require_paths = ["lib"]
257
- s.rubyforge_project = %q{ruote}
258
- s.rubygems_version = %q{1.3.6}
259
- s.summary = %q{an open source ruby workflow engine}
260
- s.test_files = [
261
- "test/test.rb"
5
+ s.name = 'ruote'
6
+ s.version = File.read('lib/ruote/version.rb').match(/VERSION = '([^']+)'/)[1]
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = [ 'John Mettraux', 'Kenneth Kalmer', 'Torsten Schoenebaum' ]
9
+ s.email = [ 'jmettraux@gmail.com' ]
10
+ s.homepage = 'http://ruote.rubyforge.org'
11
+ s.rubyforge_project = 'ruote'
12
+ s.summary = 'an open source Ruby workflow engine'
13
+ s.description = %{
14
+ ruote is an open source Ruby workflow engine
15
+ }
16
+
17
+ #s.files = `git ls-files`.split("\n")
18
+ s.files = Dir[
19
+ 'Rakefile',
20
+ 'lib/**/*.rb', 'spec/**/*.rb', 'test/**/*.rb',
21
+ '*.gemspec', '*.txt', '*.rdoc', '*.md'
262
22
  ]
263
23
 
264
- if s.respond_to? :specification_version then
265
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
266
- s.specification_version = 3
24
+ s.add_runtime_dependency 'sourcify', '0.4.2'
25
+ s.add_runtime_dependency 'rufus-json', '>= 0.2.5'
26
+ s.add_runtime_dependency 'rufus-cloche', '>= 0.1.20'
27
+ s.add_runtime_dependency 'rufus-dollar', '>= 1.0.4'
28
+ s.add_runtime_dependency 'rufus-mnemo', '>= 1.1.0'
29
+ s.add_runtime_dependency 'rufus-scheduler', '>= 2.0.8'
30
+ s.add_runtime_dependency 'rufus-treechecker', '>= 1.0.4'
31
+
32
+ s.add_development_dependency 'rake'
33
+ s.add_development_dependency 'json'
34
+ s.add_development_dependency 'builder'
35
+ s.add_development_dependency 'mailtrap'
267
36
 
268
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
269
- s.add_runtime_dependency(%q<rufus-json>, [">= 0.2.5"])
270
- s.add_runtime_dependency(%q<rufus-cloche>, [">= 0.1.20"])
271
- s.add_runtime_dependency(%q<rufus-dollar>, [">= 0"])
272
- s.add_runtime_dependency(%q<rufus-mnemo>, [">= 1.1.0"])
273
- s.add_runtime_dependency(%q<rufus-scheduler>, [">= 2.0.5"])
274
- s.add_runtime_dependency(%q<rufus-treechecker>, [">= 1.0.3"])
275
- s.add_development_dependency(%q<rake>, [">= 0"])
276
- s.add_development_dependency(%q<yard>, [">= 0"])
277
- s.add_development_dependency(%q<json>, [">= 0"])
278
- s.add_development_dependency(%q<builder>, [">= 0"])
279
- s.add_development_dependency(%q<mailtrap>, [">= 0"])
280
- s.add_development_dependency(%q<jeweler>, [">= 0"])
281
- else
282
- s.add_dependency(%q<rufus-json>, [">= 0.2.5"])
283
- s.add_dependency(%q<rufus-cloche>, [">= 0.1.20"])
284
- s.add_dependency(%q<rufus-dollar>, [">= 0"])
285
- s.add_dependency(%q<rufus-mnemo>, [">= 1.1.0"])
286
- s.add_dependency(%q<rufus-scheduler>, [">= 2.0.5"])
287
- s.add_dependency(%q<rufus-treechecker>, [">= 1.0.3"])
288
- s.add_dependency(%q<rake>, [">= 0"])
289
- s.add_dependency(%q<yard>, [">= 0"])
290
- s.add_dependency(%q<json>, [">= 0"])
291
- s.add_dependency(%q<builder>, [">= 0"])
292
- s.add_dependency(%q<mailtrap>, [">= 0"])
293
- s.add_dependency(%q<jeweler>, [">= 0"])
294
- end
295
- else
296
- s.add_dependency(%q<rufus-json>, [">= 0.2.5"])
297
- s.add_dependency(%q<rufus-cloche>, [">= 0.1.20"])
298
- s.add_dependency(%q<rufus-dollar>, [">= 0"])
299
- s.add_dependency(%q<rufus-mnemo>, [">= 1.1.0"])
300
- s.add_dependency(%q<rufus-scheduler>, [">= 2.0.5"])
301
- s.add_dependency(%q<rufus-treechecker>, [">= 1.0.3"])
302
- s.add_dependency(%q<rake>, [">= 0"])
303
- s.add_dependency(%q<yard>, [">= 0"])
304
- s.add_dependency(%q<json>, [">= 0"])
305
- s.add_dependency(%q<builder>, [">= 0"])
306
- s.add_dependency(%q<mailtrap>, [">= 0"])
307
- s.add_dependency(%q<jeweler>, [">= 0"])
308
- end
37
+ s.require_path = 'lib'
309
38
  end
310
39