lopata 0.0.12 → 0.0.13

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: 6ec4aa1bccc0150d8e7a5efc60f794113d9aa24f
4
- data.tar.gz: 76cff79433e4cf5b71c9f4d4b67ebd4c98212a47
3
+ metadata.gz: f1668668379d6464dd89850026c55ebf57c7fcdd
4
+ data.tar.gz: 7655a319eabf7ef4490d95482fdf2bfcace7e660
5
5
  SHA512:
6
- metadata.gz: 16c797100f05e2fc8059c5a8f05fdf358a4ed13a470601259bdaabfe2c7a66527b2752da5f23a73d18bbcab120b8923af15af889ba57c777ba0c6aa437be81e7
7
- data.tar.gz: 0f0e9062fc97e5dfe783db95ce892881e753c7deaf33958a67eaf21092de9eeac895476f0e1f35ddce24673b3f5574fac72f26e6736bf9ea991a2d170173b821
6
+ metadata.gz: 84c1c1f5853df2b43ee9e81a1ab35df0aab1e003b1a077d5b8c4783f184264097e1e5d728e40831fadf8bf537d1e9f27393dbbd1e2c8ffcbb5ce37d86e3d80dc
7
+ data.tar.gz: 278ddaa6fd5c9e217e9011b13702962b49056ba11fc30954d4704bfffafdaecdf69d89008cb67410e87c5dae8a69fd5bdff7aa41f45fdaa53a5f4aabdfaa7613
data/lib/lopata/config.rb CHANGED
@@ -34,6 +34,7 @@ module Lopata
34
34
  c.include Lopata::RSpec::DSL
35
35
  c.include Lopata::RSpec::Role
36
36
  end
37
+ init_rspec_filters
37
38
  end
38
39
 
39
40
  def init_active_record
@@ -57,6 +58,19 @@ module Lopata
57
58
  end
58
59
  end
59
60
 
61
+ def init_rspec_filters
62
+ filters = {}
63
+ filters[:focus] = true if ops[:focus]
64
+ if ops[:rerun]
65
+ filters[:full_description] = build_rerun_filter_proc
66
+ end
67
+ unless filters.blank?
68
+ ::RSpec.configure do |c|
69
+ c.inclusion_filter = filters
70
+ end
71
+ end
72
+ end
73
+
60
74
  def build_rerun_filter_proc
61
75
  to_rerun = Lopata::Client.new(Lopata::Config.build_number).to_rerun
62
76
  Proc.new do |desc|
@@ -1,7 +1,7 @@
1
1
  module Lopata
2
2
  module RSpec
3
3
  module Version
4
- STRING = '0.0.12'
4
+ STRING = '0.0.13'
5
5
  end
6
6
  end
7
7
  end
data/lib/lopata/runner.rb CHANGED
@@ -28,7 +28,6 @@ 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]
32
31
 
33
32
  ::RSpec::Core::Runner.run ['spec']
34
33
  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.12
4
+ version: 0.0.13
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-11-02 00:00:00.000000000 Z
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -83,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.2.5
86
+ rubygems_version: 2.5.2
87
87
  signing_key:
88
88
  specification_version: 4
89
- summary: lopata-0.0.12
89
+ summary: lopata-0.0.13
90
90
  test_files: []