wonkavision 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +2 -0
- data/lib/wonkavision/event.rb +32 -32
- data/lib/wonkavision/event_coordinator.rb +1 -1
- data/lib/wonkavision/event_namespace.rb +15 -8
- data/lib/wonkavision/event_path_segment.rb +0 -1
- data/lib/wonkavision/version.rb +1 -1
- data/test/event_handler_test.rb +15 -2
- data/test/event_namespace_test.rb +108 -108
- data/test/event_path_segment_test.rb +41 -55
- data/test/log/test.log +2539 -0
- data/test/test_activity_models.rb +6 -2
- data/wonkavision.gemspec +2 -2
- metadata +4 -4
@@ -13,12 +13,16 @@ unless defined?(::TestEventHandler)
|
|
13
13
|
event_namespace :vermicious
|
14
14
|
|
15
15
|
handle :knid do |data,path|
|
16
|
+
puts "Handling #{path}. Before: #{TestEventHandler.knids.inspect}"
|
16
17
|
TestEventHandler.knids << [data,path]
|
18
|
+
puts "After: #{TestEventHandler.knids.inspect}"
|
17
19
|
end
|
18
20
|
|
19
21
|
#handle events in the vermicious namespace
|
20
22
|
handle "*" do |data,path|
|
23
|
+
puts "Handling #{path}. Before: #{TestEventHandler.knids.inspect}"
|
21
24
|
TestEventHandler.knids << [data,path] if path !~ /.*knid/
|
25
|
+
puts "After: #{TestEventHandler.knids.inspect}"
|
22
26
|
end
|
23
27
|
|
24
28
|
#handle ALL events in any namespace
|
@@ -52,5 +56,5 @@ unless defined?(::TestEventHandler)
|
|
52
56
|
string 'test_id'
|
53
57
|
date 'event_time'
|
54
58
|
end
|
55
|
-
|
56
|
-
end
|
59
|
+
|
60
|
+
end
|
data/wonkavision.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{wonkavision}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nathan Stults"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-20}
|
13
13
|
s.description = %q{Wonkavision is a small gem that allows you to publish}
|
14
14
|
s.email = %q{hereiam@sonic.net}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wonkavision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 1
|
10
|
+
version: 0.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nathan Stults
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-20 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|