closer 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f8618ef0b97d3f8305215138af7926c57e25113
4
- data.tar.gz: 5e91cd21beb37ade2da0f05526e3f97d7741fb6c
3
+ metadata.gz: 579c6360b851bd60375954afc2e765991229488a
4
+ data.tar.gz: f007e7596be6ddb7cd5978e540b0a67c7a87a148
5
5
  SHA512:
6
- metadata.gz: be1cc646677f7c2233936095715c044fb72964e0fa3fc220cbd218273f6f4ddd3317e38ce70a385f08f9b6f26342318ab95ee2bc959d5cb8f2de229ab7ed97f4
7
- data.tar.gz: cd32d3354cabf8119b2d12117f8051ea062953894dca1ec68b72e75ccefa121110d829a0da4f07f9c69cdda54732811cca2997832d55534e83d7fe212eeca96a
6
+ metadata.gz: 7a48bd5843d1b08b7cf7e9a9fd65f7cfc78104e8ee47fa7d97cba2da3f33ef99cfaa70e7fdb6e03782a6961e1425cefb3af53f1dcafc640fadecec2eaa0ff58c
7
+ data.tar.gz: c5da32b388f1533fa37e5f9f20ab8d2f5eeea4816b6f7922df7a400580213a9f38c86e4caf9786e233257ea6cf3e4a69d1ea4e48b7e57f4da0b67878fa0a9c58
@@ -1,3 +1,13 @@
1
+ true_values = %w{ true t 1 }
2
+ if true_values.include?(ENV["COVERAGE"].to_s.downcase) and true_values.include?(ENV['ACCEPTANCE_TEST'].to_s.downcase)
3
+ require 'simplecov'
4
+ require 'simplecov-rcov'
5
+ SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
6
+ SimpleCov.command_name(ENV['COMMAND_NAME'] || 'Cucumber')
7
+ SimpleCov.merge_timeout(3600)
8
+ SimpleCov.start 'rails'
9
+ end
10
+
1
11
  module Closer
2
12
  module Rails
3
13
  class Railtie < ::Rails::Railtie
@@ -1,3 +1,3 @@
1
1
  module Closer
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
data/lib/tasks/close.rake CHANGED
@@ -8,14 +8,6 @@ unless defined?(Rails)
8
8
  end
9
9
 
10
10
  task :close => dependencies do |t, args|
11
- options = [
12
- 'DRIVER=' + (ENV['DRIVER'] || 'poltergeist'),
13
- 'PAUSE=' + (ENV['PAUSE'] || '0'),
14
- 'COVERAGE=' + (ENV['COVERAGE'] || 'false'),
15
- 'ACCEPTANCE_TEST=true',
16
- 'EXPAND=' + (ENV['EXPAND'] || 'true')
17
- ].join(' ')
18
-
19
11
  features = []
20
12
  ARGV[1..-1].each do |arg|
21
13
  unless arg.index('=')
@@ -55,5 +47,14 @@ task :close => dependencies do |t, args|
55
47
  features.join(' ')
56
48
  ].join(' ')
57
49
 
50
+ options = [
51
+ 'DRIVER=' + (ENV['DRIVER'] || 'poltergeist'),
52
+ 'PAUSE=' + (ENV['PAUSE'] || '0'),
53
+ 'COVERAGE=' + (ENV['COVERAGE'] || 'false'),
54
+ 'ACCEPTANCE_TEST=true',
55
+ 'EXPAND=' + (ENV['EXPAND'] || 'true'),
56
+ 'COMMAND_NAME=' + (ENV['COMMAND_NAME'] || feature_dir.split('_').map{|a| a.capitalize }.join)
57
+ ].join(' ')
58
+
58
59
  fail unless system("bundle exec cucumber #{args} #{options}")
59
60
  end
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-24 00:00:00.000000000 Z
11
+ date: 2015-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber