rec 1.3.1 → 1.3.2

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ === Version 1.3.2
2
+ - Removed debug statement for State::find
3
+ - make printing to $stdout explicit to support presetting file descriptors
4
+
1
5
  === Version 1.3.1
2
6
  - fixed defect in State#find referring to class method of same name
3
7
 
@@ -148,6 +148,7 @@ class Correlator
148
148
  end
149
149
  $stderr.puts("%-8d %-8d %-8d %-8s %-8d" % [rid, checked[rid], matched[rid], freq, reacted[rid]])
150
150
  }
151
+ $stderr.flush()
151
152
  end
152
153
 
153
154
  end
data/lib/rec/state.rb CHANGED
@@ -146,7 +146,6 @@ class State
146
146
  # - state is the current state
147
147
  def self.find(template, state)
148
148
  title = template.sprinth(state.details)
149
- puts("finding state '#{title}'")
150
149
  @@states[title]
151
150
  end
152
151
 
@@ -257,8 +256,8 @@ class State
257
256
  message = @params[sym].sprinth(stats())
258
257
  if message.length > 0
259
258
  event = "%s %s" % [@updated.iso8601, message] + @logs.join("\n")
260
- print("> ") if $debug
261
- puts(event)
259
+ $stdout.print("> ") if $debug
260
+ $stdout.puts(event)
262
261
  @@eventsOut = @@eventsOut + 1
263
262
  end
264
263
  message
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 1
10
- version: 1.3.1
9
+ - 2
10
+ version: 1.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Kernahan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-03 00:00:00 Z
18
+ date: 2012-10-06 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: xmpp4r