orchestrated 0.0.9 → 0.0.10
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.
- checksums.yaml +8 -8
- data/lib/orchestrated/base.rb +2 -1
- data/lib/orchestrated/version.rb +1 -1
- data/spec/unit/proxy_spec.rb +36 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmMxZTE5M2Y3OTBhMTMyNGMyODk1MWFjNDVlMDcxYjlhNWEzMTk0NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDQ2N2UxYzFhYjE4OTYzMjY2NzkwM2ExYzMyOTBmOTExM2EzNjI5Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTU5MmVkZGM0Y2MwN2I4ZjUyM2Y3M2EzNGFjMDcwMDY5OTUxNWJiZGU3MGE0
|
10
|
+
N2ZhYjY0NzU1MzA4NjU5YTkwOGYwNjYwNDdlM2NkNzU2MmExNTY4NjE1YTRm
|
11
|
+
OTMxN2U3N2JkNTI2OThlNWQ5MDEyNjQ3NTU4NTVlZWJkNzJhZWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTE4ZTRhYjkzYTFlMGE3MmNiZjlmMGM3MzdlZWVlZmNkNjhjNjI4NDhkNjI2
|
14
|
+
N2JjMWYzYjYxOWRhYTRiYmIwZWI1ZGJjMmQzMmY2ZWFmZmM5MDJkM2E1NmU3
|
15
|
+
M2NlZjdlMDhiZGQyODNmZTUzNTdiMDE2ZmQ3NjhjYWVkYjU4ZDY=
|
data/lib/orchestrated/base.rb
CHANGED
data/lib/orchestrated/version.rb
CHANGED
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'orchestrated'
|
3
|
+
|
4
|
+
class Object
|
5
|
+
def my_crazy_proxy_test_method
|
6
|
+
raise Exception.new("uh, we shouldn't get this")
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
class MyProxyTestHarness
|
11
|
+
acts_as_orchestrated
|
12
|
+
|
13
|
+
def my_crazy_proxy_test_method
|
14
|
+
4
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe Orchestrated::Proxy do
|
19
|
+
|
20
|
+
subject { MyProxyTestHarness.new }
|
21
|
+
|
22
|
+
describe "when delegating methods" do
|
23
|
+
before(:each) do
|
24
|
+
Orchestrated::Orchestration.stub(:create)
|
25
|
+
end
|
26
|
+
|
27
|
+
it "ignores ::Object monkey patches" do
|
28
|
+
expect {subject.orchestrate.my_crazy_proxy_test_method }.to_not raise_error
|
29
|
+
end
|
30
|
+
|
31
|
+
it "doesn't immediately call the method" do
|
32
|
+
subject.should_not_receive(:my_crazy_proxy_test_method)
|
33
|
+
subject.orchestrate.my_crazy_proxy_test_method
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orchestrated
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bill Burcham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: delayed_job_active_record
|
@@ -200,6 +200,7 @@ files:
|
|
200
200
|
- spec/unit/delayed_job_spec.rb
|
201
201
|
- spec/unit/failure_spec.rb
|
202
202
|
- spec/unit/orchestrated_spec.rb
|
203
|
+
- spec/unit/proxy_spec.rb
|
203
204
|
- spec/unit/rspec_spec.rb
|
204
205
|
- spec/unit/static_analysis_spec.rb
|
205
206
|
homepage: https://github.com/paydici/orchestrated
|
@@ -242,5 +243,6 @@ test_files:
|
|
242
243
|
- spec/unit/delayed_job_spec.rb
|
243
244
|
- spec/unit/failure_spec.rb
|
244
245
|
- spec/unit/orchestrated_spec.rb
|
246
|
+
- spec/unit/proxy_spec.rb
|
245
247
|
- spec/unit/rspec_spec.rb
|
246
248
|
- spec/unit/static_analysis_spec.rb
|