fuubar-cucumber 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.0.20 ##
2
+
3
+ ### enhancements
4
+ * Update cucumber depedency to `~> 1.3.0` (by [@nashby](https://github.com/nashby))
5
+
1
6
  ## 0.0.19 (March 9, 2013) ##
2
7
 
3
8
  ### bug fix
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "fuubar-cucumber"
3
- s.version = '0.0.19'
3
+ s.version = '0.0.20'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ["Marcin Ciunelis", "Vasiliy Ermolovich"]
6
6
  s.email = ["marcin.ciunelis@gmail.com", "younash@gmail.com"]
@@ -14,6 +14,6 @@ Gem::Specification.new do |s|
14
14
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
15
15
  s.require_paths = ["lib"]
16
16
 
17
- s.add_dependency 'cucumber', ["~> 1.2.0"]
17
+ s.add_dependency 'cucumber', ["~> 1.3.0"]
18
18
  s.add_dependency 'ruby-progressbar', ["~> 1.0.0"]
19
19
  end
@@ -25,7 +25,7 @@ module Cucumber
25
25
  end
26
26
 
27
27
  def before_features(features)
28
- @step_count = get_step_count(features)
28
+ @step_count = features.step_count
29
29
  @progress_bar = ProgressBar.create(:format => ' %c/%C |%w>%i| %e ', :total => @step_count, :output => @io)
30
30
  end
31
31
 
@@ -91,37 +91,6 @@ module Cucumber
91
91
  end
92
92
  end
93
93
 
94
- def get_step_count(features)
95
- count = 0
96
- features = features.instance_variable_get("@features")
97
- features.each do |feature|
98
- background_size = 0
99
- if feature.instance_variable_get("@background")
100
- background = feature.instance_variable_get("@background")
101
- background.init
102
- background_steps = background.instance_variable_get("@steps").instance_variable_get("@steps")
103
- end
104
- feature.instance_variable_get("@feature_elements").each do |scenario|
105
- scenario.init
106
- steps = scenario.instance_variable_get("@steps").instance_variable_get("@steps")
107
- scenario_size = steps.size
108
- if background_steps && scenario.is_a?(Cucumber::Ast::ScenarioOutline)
109
- background_size = background_steps.size
110
- end
111
- examples = scenario.instance_variable_get("@examples_array")
112
- if examples
113
- examples.each do |example|
114
- example_matrix = example.instance_variable_get("@outline_table").instance_variable_get("@cell_matrix")
115
- count += (scenario_size + background_size)*(example_matrix.size - 1)
116
- end
117
- else
118
- count += scenario_size
119
- end
120
- end
121
- end
122
- return count
123
- end
124
-
125
94
  def with_colors(color, &block)
126
95
  @io.print color if colors_enabled?
127
96
  yield
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuubar-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-03-09 00:00:00.000000000 Z
13
+ date: 2013-06-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cucumber
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ~>
21
21
  - !ruby/object:Gem::Version
22
- version: 1.2.0
22
+ version: 1.3.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ~>
29
29
  - !ruby/object:Gem::Version
30
- version: 1.2.0
30
+ version: 1.3.0
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: ruby-progressbar
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -78,7 +78,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: 4550578054227818056
81
+ hash: 2550712797166058890
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
@@ -87,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
87
  version: '0'
88
88
  segments:
89
89
  - 0
90
- hash: 4550578054227818056
90
+ hash: 2550712797166058890
91
91
  requirements: []
92
92
  rubyforge_project:
93
93
  rubygems_version: 1.8.24