cukeforker 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6d03e238b71431b30c8f05c48e123ea3e85c5a63
4
+ data.tar.gz: 04eae12de5cb6df297f997bcd51b3ccd574cce6f
5
+ SHA512:
6
+ metadata.gz: f580a26bd8a34850e9b81ba28cc3b20efbe3d37e3108f35784187ea77698418d8550ffefdf55bba0cae80bf999b862bc1e733718db9572d803eaa4768ee46233
7
+ data.tar.gz: d18e7ae8b58348e2edb0447567ca99712014daa536973a3234054765b202af3e6d481b10c6117d9b44902f8c1142f41a1051f1d8ff5e558f79ccbae2a94070f4
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Jari Bakken
1
+ Copyright (c) 2011-2013 Jari Bakken
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.mdown CHANGED
@@ -35,5 +35,5 @@ Note on Patches/Pull Requests
35
35
  Copyright
36
36
  =========
37
37
 
38
- Copyright (c) 2011 Jari Bakken. See LICENSE for details.
38
+ Copyright (c) 2011-2013 Jari Bakken. See LICENSE for details.
39
39
 
@@ -10,12 +10,14 @@ module CukeForker
10
10
  end
11
11
 
12
12
  def visit_feature_element(feature_element)
13
- if @tag_expression.eval feature_element.source_tags
14
- if feature_element.respond_to? :line
15
- @scenarios << "#{feature_element.feature.file}:#{feature_element.line}"
16
- else
17
- @scenarios << "#{feature_element.feature.file}:#{feature_element.instance_variable_get(:@line)}"
18
- end
13
+ if @tag_expression.evaluate(feature_element.source_tags)
14
+ line_number = if feature_element.respond_to?(:line)
15
+ feature_element.line
16
+ else
17
+ feature_element.location.line
18
+ end
19
+
20
+ @scenarios << [feature_element.feature.file, line_number].join(':')
19
21
  end
20
22
  end
21
23
 
@@ -23,4 +25,4 @@ module CukeForker
23
25
  end
24
26
  end
25
27
  end
26
- end
28
+ end
@@ -1,3 +1,3 @@
1
1
  module CukeForker
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require File.expand_path("../../../spec_helper", __FILE__)
2
+ require 'cucumber/ast/scenario_outline'
2
3
 
3
4
  module CukeForker::Formatters
4
5
  describe ScenarioLineLogger do
@@ -25,14 +26,10 @@ module CukeForker::Formatters
25
26
  it "returns scenario names and line numbers for a scenario outline" do
26
27
  logger = ScenarioLineLogger.new
27
28
 
28
- class FakeScenarioOutline
29
- def initialize
30
- @line = 4
31
- end
32
- end
33
-
34
29
  feature = mock("Cucumber::Ast::Feature")
35
- feature_element = FakeScenarioOutline.new
30
+ location = mock("Cucumber::Ast::Location", :line => 4)
31
+ feature_element = Cucumber::Ast::ScenarioOutline.new(*Array.new(11) {|a| stub(a, :each => true) })
32
+ feature_element.stub(:location => location)
36
33
 
37
34
  feature.should_receive(:file).and_return('features/test1.feature')
38
35
  feature_element.should_receive(:source_tags).and_return('')
@@ -44,4 +41,4 @@ module CukeForker::Formatters
44
41
  logger.scenarios[0].should == "features/test1.feature:4"
45
42
  end
46
43
  end
47
- end
44
+ end
@@ -64,4 +64,4 @@ module CukeForker
64
64
  all_scenarios[0].should == "features/test1.feature:3"
65
65
  end
66
66
  end
67
- end
67
+ end
metadata CHANGED
@@ -1,52 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cukeforker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
5
- prerelease:
4
+ version: 0.1.9
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jari Bakken
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-31 00:00:00.000000000 Z
11
+ date: 2013-06-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: cucumber
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 1.1.5
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 1.1.5
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: vnctools
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: 0.0.5
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: 0.0.5
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,23 +55,20 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: simplecov
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rake
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -132,27 +121,26 @@ files:
132
121
  - spec/spec_helper.rb
133
122
  homepage: ''
134
123
  licenses: []
124
+ metadata: {}
135
125
  post_install_message:
136
126
  rdoc_options: []
137
127
  require_paths:
138
128
  - lib
139
129
  required_ruby_version: !ruby/object:Gem::Requirement
140
- none: false
141
130
  requirements:
142
- - - ! '>='
131
+ - - '>='
143
132
  - !ruby/object:Gem::Version
144
133
  version: '0'
145
134
  required_rubygems_version: !ruby/object:Gem::Requirement
146
- none: false
147
135
  requirements:
148
- - - ! '>='
136
+ - - '>='
149
137
  - !ruby/object:Gem::Version
150
138
  version: '0'
151
139
  requirements: []
152
140
  rubyforge_project: cukeforker
153
- rubygems_version: 1.8.24
141
+ rubygems_version: 2.0.0
154
142
  signing_key:
155
- specification_version: 3
143
+ specification_version: 4
156
144
  summary: Library to maintain a forking queue of Cucumber processes
157
145
  test_files:
158
146
  - spec/cukeforker/formatters/scenario_line_logger_spec.rb