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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42be77fc3302846ea5024d902c5b5d54e5a51691
4
- data.tar.gz: 898c87cbc1341f97922696e85b883a4bb4c8a0a5
3
+ metadata.gz: 6b42e6beee529d0a63621593c6592e1ea1adc13b
4
+ data.tar.gz: 49ad5cc0347890dafdecb11ea6e86facb6b32f90
5
5
  SHA512:
6
- metadata.gz: b5bcc6fd2fa5e4323fe1afc0dbe83cf8a0c0b525728bc51f16af17821b66e3e18986e6457f4aa3c0587ac0fdc670025776b3c0c231bbcc256cb39c3e07b0e894
7
- data.tar.gz: 61bcd4a087be0c3283c138728ac3880dce307324d51bbe217aed85da627ccacde05686fcdec21404ea3bc733c01a41691a88fa271f28080fab2f9d01c44e198d
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', github: "colszowka/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", group: :test, require: nil
20
+ gem "codeclimate-test-reporter", require: nil
21
21
  end
data/circle.yml CHANGED
@@ -2,4 +2,8 @@ database:
2
2
  override:
3
3
  # We don't actually use a DB but it is included in the internal rails app
4
4
  # for specs. So override default behavior to do nothing
5
- - echo "Skip DB"
5
+ - echo "Skip DB"
6
+
7
+ test:
8
+ post:
9
+ - bundle exec codeclimate-test-reporter
@@ -30,7 +30,7 @@ module Scorpion
30
30
 
31
31
  # @see Scorpion#replicate
32
32
  def replicate
33
- self.class.new scorpions
33
+ self.class.new *scorpions.map( &:replicate )
34
34
  end
35
35
 
36
36
  # @see Scorpion#hunt
@@ -1,5 +1,5 @@
1
1
  module Scorpion
2
- VERSION_NUMBER = "0.5.18"
2
+ VERSION_NUMBER = "0.5.19"
3
3
  VERSION_SUFFIX = ""
4
4
  VERSION = "#{VERSION_NUMBER}#{VERSION_SUFFIX}"
5
5
  end
@@ -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
@@ -1,10 +1,6 @@
1
1
  require 'simplecov'
2
- if ENV['COVERAGE']
3
- require "codeclimate-test-reporter"
4
- CodeClimate::TestReporter.start
5
- else
6
- SimpleCov.start
7
- end
2
+ SimpleCov.start
3
+
8
4
  require 'pry'
9
5
  require 'bundler/setup'
10
6
  require 'combustion'
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.18
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: 2016-09-23 00:00:00.000000000 Z
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