lopata 0.0.8 → 0.0.9

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: fcaa837beab28f6b3a0f5659539bd9779e7e029d
4
- data.tar.gz: c2e6882d56da903a83e6ae84c812725d0fac5b53
3
+ metadata.gz: 94e028b9795d7d5e3f269440dd9631cbeb00b09a
4
+ data.tar.gz: dd1bc87e7077e712d44334e08670b863aafad08a
5
5
  SHA512:
6
- metadata.gz: d10d3e4149c28bd794b7d68f52f7f0760680294fd09033b5d0dd050eb48dc5d476e0c291616423a3456671f53bfdd957824b60b9430f73352a77930b7f5ee3e1
7
- data.tar.gz: 3496b8a1fdca826dbaad3377c71a1aee76effcd9a7e94138931433604a9fe306b71be9958259827b123f2acec5e78b5c5d23eb29d65704c6e6a43fdaa6a6a73f
6
+ metadata.gz: 243f782b3fa41d46826343d123d76867f7e6eb77a13df0ad375e57998ad6cfc4eae93c10ce1e380cff9c0b6f41dfe5ddce509bb3a5c2b60ddba3a69cbf96ba29
7
+ data.tar.gz: 73cded7276ad5a50fca5bcf72f14ccd4a84e644b12a90008db2005a47942d89c31a2f57fe704b654b3867c697e265c384283274dadae21434b2a743eed6dd3b4
data/lib/lopata/config.rb CHANGED
@@ -47,6 +47,19 @@ module Lopata
47
47
  end
48
48
  end
49
49
 
50
+ def init_rerun
51
+ ::RSpec.configure do |c|
52
+ c.inclusion_filter = { full_description: build_rerun_filter_proc }
53
+ end
54
+ end
55
+
56
+ def build_rerun_filter_proc
57
+ to_rerun = Lopata::Client.new(Lopata::Config.build_number).to_rerun
58
+ Proc.new do |desc|
59
+ to_rerun.include?(desc)
60
+ end
61
+ end
62
+
50
63
  def before_start(&block)
51
64
  @before_start = block
52
65
  end
@@ -1,7 +1,7 @@
1
1
  module Lopata
2
2
  module RSpec
3
3
  module Version
4
- STRING = '0.0.8'
4
+ STRING = '0.0.9'
5
5
  end
6
6
  end
7
7
  end
data/lib/lopata/runner.rb CHANGED
@@ -28,6 +28,7 @@ module Lopata
28
28
  Lopata::Config.init(options[:env])
29
29
  Lopata::Config.initialize_test
30
30
  Lopata::Config.init_rspec
31
+ Lopata::Config.init_rerun if options[:rerun]
31
32
 
32
33
  ::RSpec::Core::Runner.run ['spec']
33
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lopata
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Volochnev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2016-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -86,5 +86,5 @@ rubyforge_project:
86
86
  rubygems_version: 2.2.5
87
87
  signing_key:
88
88
  specification_version: 4
89
- summary: lopata-0.0.8
89
+ summary: lopata-0.0.9
90
90
  test_files: []