closer 0.1.2 → 0.1.3

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: 579c6360b851bd60375954afc2e765991229488a
4
- data.tar.gz: f007e7596be6ddb7cd5978e540b0a67c7a87a148
3
+ metadata.gz: 6dff4afe01f734e75665276bbb408f992c108a2e
4
+ data.tar.gz: 9f7f601676d2ff3e6a261db0d4972318fb19773c
5
5
  SHA512:
6
- metadata.gz: 7a48bd5843d1b08b7cf7e9a9fd65f7cfc78104e8ee47fa7d97cba2da3f33ef99cfaa70e7fdb6e03782a6961e1425cefb3af53f1dcafc640fadecec2eaa0ff58c
7
- data.tar.gz: c5da32b388f1533fa37e5f9f20ab8d2f5eeea4816b6f7922df7a400580213a9f38c86e4caf9786e233257ea6cf3e4a69d1ea4e48b7e57f4da0b67878fa0a9c58
6
+ metadata.gz: 642c8b5dfcf36801dd23a4e68da0488b7229a6ca5aa717a1127e6b7cfa9bb4e569664f1ed38a8c368657b1a58fc9d36a4ad7ca489a8c5a1af12af1380c44e8ce
7
+ data.tar.gz: 2a5062e867ac2d43cbd28b57d6958c82db7f52fa1be0a4b2e74ed9cbd47c642f9b3104b86619747914dc28260ae2a54b0cb0455f7a9dd429a4665a992929de20
@@ -6,4 +6,8 @@ if defined?(Rails)
6
6
  end
7
7
 
8
8
  module Closer
9
+
10
+ def self.config
11
+ @@config ||= Closer::Config.new
12
+ end
9
13
  end
@@ -0,0 +1,7 @@
1
+ class Closer::Config
2
+ attr_accessor :merge_timeout
3
+
4
+ def merge_timeout
5
+ @merge_timeout || 3600
6
+ end
7
+ end
@@ -4,7 +4,7 @@ if true_values.include?(ENV["COVERAGE"].to_s.downcase) and true_values.include?(
4
4
  require 'simplecov-rcov'
5
5
  SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
6
6
  SimpleCov.command_name(ENV['COMMAND_NAME'] || 'Cucumber')
7
- SimpleCov.merge_timeout(3600)
7
+ SimpleCov.merge_timeout(Closer.config.merge_timeout)
8
8
  SimpleCov.start 'rails'
9
9
  end
10
10
 
@@ -1,3 +1,3 @@
1
1
  module Closer
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
@@ -16,12 +16,15 @@ task :close => dependencies do |t, args|
16
16
  end
17
17
  end
18
18
 
19
- feature_dir = 'features'
19
+ feature_dir = 'features'
20
20
  if features.first
21
- dir = File.dirname(features.first)
22
- feature_dir = dir == '.' ? File.basename(features.first) : dir
21
+ dir = features.first
22
+ while dir != '.'
23
+ feature_dir = dir
24
+ dir = File.dirname(dir)
25
+ end
23
26
  end
24
- puts "using features in directory #{feature_dir}"
27
+ puts "using features in directory #{feature_dir}" unless feature_dir == 'features'
25
28
 
26
29
  format = ENV['FORMAT'] || 'Closer::Formatter::Html'
27
30
  unless format.empty?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: closer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-03 00:00:00.000000000 Z
11
+ date: 2015-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -66,6 +66,7 @@ files:
66
66
  - Rakefile
67
67
  - closer.gemspec
68
68
  - lib/closer.rb
69
+ - lib/closer/config.rb
69
70
  - lib/closer/formatter/closer.css
70
71
  - lib/closer/formatter/closer.js
71
72
  - lib/closer/formatter/closer_html.rb
@@ -98,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
99
  version: '0'
99
100
  requirements: []
100
101
  rubyforge_project:
101
- rubygems_version: 2.4.5
102
+ rubygems_version: 2.4.7
102
103
  signing_key:
103
104
  specification_version: 4
104
105
  summary: Cucumber test execution tool