redact 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README +7 -5
  3. data/lib/redact.rb +4 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b4920a30f30707dd2e3dc66e8d42f49e7876aa5
4
- data.tar.gz: 8cecbebad2961e3b3b6d80b209a7a9379397f344
3
+ metadata.gz: 92fe2cc4165eba5df9ffb49350fbe5587fd2ed29
4
+ data.tar.gz: db2eb0b34a3ce23652c943583871d36bcc0f76a5
5
5
  SHA512:
6
- metadata.gz: e7009e06e5775b20378c19241b29cccc5f9e551987fded43187b0e48d129b76abc48065939d0b67372ab43e5dc479b70ff563d0f95236a0b30832360de65dc9a
7
- data.tar.gz: 460b2a1791d4f36455cd90cba768cf5e97babbb0ec5c6f857a45edd16da9e0ccefdb3085a69099087f212b638ca2228befc71e98e614dc45da2215f765d8b329
6
+ metadata.gz: e942b6787910841de8aa3f62f2c4cd207aad94e4aff42d6c2598db7a4cb8fb3f3445d53e0711672646e0aa2ef46394f138778dda56675cd74c0e174bd04faeeb
7
+ data.tar.gz: 4acfc6e935e61db87cc1d9fe844866eb3894cc3b2bbe3896e42a04a2f9a5f4130cb61cdf1a32eba9cde07ffe7cbd87bfcf5507b6b7e57d8b4c22d6381afe697d
data/README CHANGED
@@ -3,17 +3,19 @@ your work as a set of tasks that are dependent on other tasks, and to execute
3
3
  runs across this graph, in such a way that all dependencies for a task are
4
4
  guaranteed to be satisfied before the task itself is executed.
5
5
 
6
- It does everything you'd expect from a production planner system:
7
- * You can make use of arbitrary number of worker processes.
8
- * You can have arbitrary concurrent runs through the task graph.
6
+ It does everything you'd expect from a production system:
7
+ * You can have an arbitrary number of worker processes.
8
+ * You can have an arbitrary number of concurrent runs through the task graph.
9
9
  * An application exception causes the task to be retried a fixed number of times.
10
10
  * Tasks lost as part of an application crash or Ruby segfault are recoverable.
11
11
 
12
12
  For debugging purposes, you can use Redact#enqueued_tasks, #in_progress_tasks,
13
13
  and #done_tasks to iterate over all tasks, past and present. Note that the
14
14
  output from these methods may change rapidly, and that calls are not guaranteed
15
- to be consisent with each other. The gem provides a simple webserver,
16
- redact-monitor, for visualizing the current state of the planner.
15
+ to be consisent with each other.
16
+
17
+ The gem provides a simple web server (bin/redact-monitor) for visualizing the
18
+ current state of the planner and worker processes.
17
19
 
18
20
  == Synopsis
19
21
 
data/lib/redact.rb CHANGED
@@ -49,9 +49,10 @@ class Redact
49
49
  ##
50
50
  ## Raises a CyclicDependencyError exception if adding these dependencies
51
51
  ## would result in a cyclic dependency.
52
- def add_task what, *deps deps = deps.flatten # be nice and allow arrays to be
53
- passed in raise ArgumentError, "expecting dependencies to be zero or more
54
- task ids" unless deps.all? { |x| x.is_a?(Symbol) } @dag[what] = deps
52
+ def add_task what, *deps
53
+ deps = deps.flatten # be nice and allow arrays to be passed in
54
+ raise ArgumentError, "expecting dependencies to be zero or more task ids" unless deps.all? { |x| x.is_a?(Symbol) }
55
+ @dag[what] = deps
55
56
 
56
57
  @dag.strongly_connected_components.each do |x|
57
58
  raise CyclicDependencyError, "cyclic dependency #{x.inspect}" if x.size != 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redact
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Morgan