parallizer 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/parallizer/method_call_notifier.rb +1 -0
- data/parallizer.gemspec +3 -2
- data/test/parallizer/method_call_notifier_test.rb +23 -0
- metadata +4 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/parallizer.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "parallizer"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Pearce"]
|
12
|
-
s.date = "2012-07-
|
12
|
+
s.date = "2012-07-29"
|
13
13
|
s.description = "Execute your service layer in parallel."
|
14
14
|
s.email = "michael.pearce@bookrenter.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -27,6 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
"lib/parallizer/method_call_notifier.rb",
|
28
28
|
"lib/parallizer/proxy.rb",
|
29
29
|
"parallizer.gemspec",
|
30
|
+
"test/parallizer/method_call_notifier_test.rb",
|
30
31
|
"test/parallizer/proxy_test.rb",
|
31
32
|
"test/parallizer_test.rb",
|
32
33
|
"test/test_helper.rb"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Parallizer::MethodCallNotifierTest < Test::Unit::TestCase
|
4
|
+
context ".method_missing" do
|
5
|
+
setup do
|
6
|
+
@notifier = Parallizer::MethodCallNotifier.new do |*args|
|
7
|
+
@callback_args = args
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
execute do
|
12
|
+
@method_call_result = @notifier.call_a_method('with args')
|
13
|
+
end
|
14
|
+
|
15
|
+
should "call block on method call" do
|
16
|
+
assert_equal [:call_a_method, 'with args'], @callback_args
|
17
|
+
end
|
18
|
+
|
19
|
+
should "return the notifier" do
|
20
|
+
assert_equal @notifier, @method_call_result
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- lib/parallizer/method_call_notifier.rb
|
110
110
|
- lib/parallizer/proxy.rb
|
111
111
|
- parallizer.gemspec
|
112
|
+
- test/parallizer/method_call_notifier_test.rb
|
112
113
|
- test/parallizer/proxy_test.rb
|
113
114
|
- test/parallizer_test.rb
|
114
115
|
- test/test_helper.rb
|
@@ -127,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
128
|
version: '0'
|
128
129
|
segments:
|
129
130
|
- 0
|
130
|
-
hash: -
|
131
|
+
hash: -990104623543114705
|
131
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
133
|
none: false
|
133
134
|
requirements:
|