benelux 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  BENELUX, CHANGES
2
2
 
3
+ #### 0.5.4 (2010-01-13) ###############################
4
+
5
+ * CHANGE: Timeline#add_message now supports objects of any type (not just Strings)
6
+
3
7
 
4
8
  #### 0.5.3 (2009-11-16) ###############################
5
9
 
@@ -1,7 +1,7 @@
1
1
  @spec = Gem::Specification.new do |s|
2
2
  s.name = "benelux"
3
3
  s.rubyforge_project = 'benelux'
4
- s.version = "0.5.3"
4
+ s.version = "0.5.4"
5
5
  s.summary = "Benelux: A mad timeline for Ruby codes"
6
6
  s.description = s.summary
7
7
  s.author = "Delano Mandelbaum"
@@ -5,7 +5,7 @@ require 'thwait'
5
5
  require 'selectable'
6
6
 
7
7
  module Benelux
8
- VERSION = "0.5.3"
8
+ VERSION = "0.5.4"
9
9
  NOTSUPPORTED = [Class, Object, Kernel]
10
10
 
11
11
  class BeneluxError < RuntimeError; end
@@ -138,8 +138,15 @@ module Benelux
138
138
  super
139
139
  end
140
140
 
141
- def add_message(str, tags={})
142
- msg = TaggableString.new str
141
+ # +msg+ is the message to store. This can be any type of
142
+ # object that includes Selectable::Object (so that tags
143
+ # can be added to the message to retreive it later). If
144
+ # +msg+ does not include Selectable::Object it will be
145
+ # converted to a TaggableString object.
146
+ def add_message(msg, tags={})
147
+ unless msg.kind_of?(Selectable::Object)
148
+ msg = TaggableString.new msg.to_s
149
+ end
143
150
  msg.add_tags self.default_tags
144
151
  msg.add_tags tags
145
152
  @messages << msg
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benelux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Delano Mandelbaum
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-16 00:00:00 -05:00
12
+ date: 2010-01-13 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency