scorpion-ioc 0.5.18 → 0.5.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/circle.yml +5 -1
- data/lib/scorpion/chain_hunter.rb +1 -1
- data/lib/scorpion/version.rb +1 -1
- data/spec/lib/scorpion/chain_hunter_spec.rb +27 -0
- data/spec/spec_helper.rb +2 -6
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b42e6beee529d0a63621593c6592e1ea1adc13b
|
4
|
+
data.tar.gz: 49ad5cc0347890dafdecb11ea6e86facb6b32f90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3de53220f67f690ce02fb62ec91bdd4e32739159f0b1410b3cf640be4b0eeb78a7fdeea4830ec7a59e20868498c478b48242b8efc5c063424eb8c673331a8804
|
7
|
+
data.tar.gz: 1d0a4c014fd0f2c1971bc6d7399dc8c8020e75d22f9b635e20487dba6ad294e5c266beb1fb40e191f1911e75ec6ec2d94c9fbc09667f6721f722af5ede9d4937
|
data/Gemfile
CHANGED
@@ -12,10 +12,10 @@ group :test do
|
|
12
12
|
gem 'guard-rspec'
|
13
13
|
gem 'fuubar'
|
14
14
|
gem 'yard'
|
15
|
-
gem 'simplecov'
|
15
|
+
gem 'simplecov'
|
16
16
|
gem 'ruby_gntp', '~> 0.3.4'
|
17
17
|
gem 'awesome_print'
|
18
18
|
gem 'nokogiri', '1.6.7.2'
|
19
19
|
|
20
|
-
gem "codeclimate-test-reporter",
|
20
|
+
gem "codeclimate-test-reporter", require: nil
|
21
21
|
end
|
data/circle.yml
CHANGED
data/lib/scorpion/version.rb
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Scorpion::ChainHunter do
|
4
|
+
|
5
|
+
describe "#replicate" do
|
6
|
+
|
7
|
+
it "replicates all chained scorpions" do
|
8
|
+
scorpion = double( Scorpion::Hunter )
|
9
|
+
chained = Scorpion::ChainHunter.new( scorpion )
|
10
|
+
|
11
|
+
expect( scorpion ).to receive( :replicate )
|
12
|
+
chained.replicate
|
13
|
+
end
|
14
|
+
|
15
|
+
it "can execute after replication" do
|
16
|
+
scorpion = double( Scorpion::Hunter )
|
17
|
+
chained = Scorpion::ChainHunter.new( scorpion )
|
18
|
+
|
19
|
+
allow( scorpion ).to receive( :replicate ).and_return scorpion
|
20
|
+
expect( scorpion ).to receive( :execute )
|
21
|
+
|
22
|
+
replicated = chained.replicate
|
23
|
+
replicated.execute double( Scorpion::Hunt )
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scorpion-ioc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Alexander
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -178,6 +178,7 @@ files:
|
|
178
178
|
- spec/internal/public/favicon.ico
|
179
179
|
- spec/lib/scorpion/attribute_set_spec.rb
|
180
180
|
- spec/lib/scorpion/attribute_spec.rb
|
181
|
+
- spec/lib/scorpion/chain_hunter_spec.rb
|
181
182
|
- spec/lib/scorpion/dependency/argument_dependency_spec.rb
|
182
183
|
- spec/lib/scorpion/dependency/builder_dependency_spec.rb
|
183
184
|
- spec/lib/scorpion/dependency/captured_dependency_spec.rb
|
@@ -233,6 +234,7 @@ test_files:
|
|
233
234
|
- spec/internal/public/favicon.ico
|
234
235
|
- spec/lib/scorpion/attribute_set_spec.rb
|
235
236
|
- spec/lib/scorpion/attribute_spec.rb
|
237
|
+
- spec/lib/scorpion/chain_hunter_spec.rb
|
236
238
|
- spec/lib/scorpion/dependency/argument_dependency_spec.rb
|
237
239
|
- spec/lib/scorpion/dependency/builder_dependency_spec.rb
|
238
240
|
- spec/lib/scorpion/dependency/captured_dependency_spec.rb
|