cucumber_analytics 1.5.0 → 1.5.1

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.
data/History.rdoc CHANGED
@@ -1,3 +1,11 @@
1
+ === Version 1.5.1 / 2014-05-26
2
+
3
+ * Version ranges have been removed for the gherkin gem. Since this gem can work
4
+ with any version of gherkin, ensuring that the avaialble version of the
5
+ gherkin gem actually works on the user's version of Ruby is left as a concern
6
+ best handled externally.
7
+
8
+
1
9
  === Version 1.5.0 / 2014-02-04
2
10
 
3
11
  * Version ranges have been added for gem dependencies.
data/Rakefile CHANGED
@@ -3,6 +3,16 @@ require "bundler/gem_tasks"
3
3
  require 'cucumber/rake/task'
4
4
  require 'rspec/core/rake_task'
5
5
 
6
+
7
+ def set_cucumber_options(options)
8
+ ENV['CUCUMBER_OPTS'] = options
9
+ end
10
+
11
+ def combine_options(set_1, set_2)
12
+ set_2 ? "#{set_1} #{set_2}" : set_1
13
+ end
14
+
15
+
6
16
  task :clear_coverage do
7
17
  code_coverage_directory = "#{File.dirname(__FILE__)}/coverage"
8
18
 
@@ -10,9 +20,10 @@ task :clear_coverage do
10
20
  end
11
21
 
12
22
  desc 'Run all acceptance tests for the gem'
13
- Cucumber::Rake::Task.new(:tests) do |t|
14
- t.cucumber_opts = "-t ~@wip -t ~@off -f progress"
23
+ task :tests, [:options] do |t, args|
24
+ set_cucumber_options(combine_options("-t ~@wip -t ~@off -f progress", args[:options]))
15
25
  end
26
+ Cucumber::Rake::Task.new(:tests)
16
27
 
17
28
  desc 'Run all API specifications for the gem'
18
29
  RSpec::Core::RakeTask.new(:specs) do |t|
@@ -22,7 +33,7 @@ end
22
33
  desc 'Run All The Things'
23
34
  task :everything => :clear_coverage do
24
35
  Rake::Task[:specs].invoke
25
- Rake::Task[:tests].invoke
36
+ Rake::Task[:tests].invoke('-t ~@redundant')
26
37
  end
27
38
 
28
39
  task :default => :everything
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.require_paths = ['lib']
18
18
  gem.version = CucumberAnalytics::VERSION
19
19
 
20
- gem.add_runtime_dependency('gherkin', '~> 2.11.0')
20
+ gem.add_runtime_dependency('gherkin')
21
21
  gem.add_runtime_dependency('json', '~> 1.0')
22
22
  gem.add_runtime_dependency('multi_json', '~> 1.0')
23
23
 
@@ -63,6 +63,7 @@ Feature: Background elements can be modeled.
63
63
  Scenario: Convenient output of a background
64
64
  Then the background has convenient output
65
65
 
66
+ @redundant
66
67
  Scenario Outline: Background models pass all other specifications
67
68
  Exact specifications detailing the API for background models.
68
69
  Given that there are "<additional specifications>" detailing models
@@ -108,6 +108,7 @@ Feature: Directories can be modeled.
108
108
  Scenario: Convenient output of a directory
109
109
  Then the directory has convenient output
110
110
 
111
+ @redundant
111
112
  Scenario Outline: Directory models pass all other specifications
112
113
  Exact specifications detailing the API for directory models.
113
114
  Given that there are "<additional specifications>" detailing models
@@ -51,6 +51,7 @@ Feature: Doc string elements can be modeled.
51
51
  Scenario: Convenient output of an a doc string
52
52
  Then the doc string has convenient output
53
53
 
54
+ @redundant
54
55
  Scenario Outline: Doc string models pass all other specifications
55
56
  Exact specifications detailing the API for doc string models.
56
57
  Given that there are "<additional specifications>" detailing models
@@ -99,6 +99,7 @@ Feature: Example elements can be modeled.
99
99
  Scenario: Convenient output of an example block
100
100
  Then the example block has convenient output
101
101
 
102
+ @redundant
102
103
  Scenario Outline: Example models pass all other specifications
103
104
  Exact specifications detailing the API for example block models.
104
105
  Given that there are "<additional specifications>" detailing models
@@ -52,6 +52,7 @@ Feature: Feature files can be modeled.
52
52
  Scenario: Convenient output of a feature file
53
53
  Then the feature file has convenient output
54
54
 
55
+ @redundant
55
56
  Scenario Outline: Feature file models pass all other specifications
56
57
  Exact specifications detailing the API for .feature file models.
57
58
  Given that there are "<additional specifications>" detailing models
@@ -152,6 +152,7 @@ Feature: Features can be modeled.
152
152
  Scenario: Convenient output of a feature
153
153
  Then the feature has convenient output
154
154
 
155
+ @redundant
155
156
  Scenario Outline: Feature models pass all other specifications
156
157
  Exact specifications detailing the API for feature models.
157
158
  Given that there are "<additional specifications>" detailing models
@@ -88,6 +88,7 @@ Feature: Outline elements can be modeled.
88
88
  Scenario: Convenient output of an an outline
89
89
  Then the outline has convenient output
90
90
 
91
+ @redundant
91
92
  Scenario Outline: Outline models pass all other specifications
92
93
  Exact specifications detailing the API for outline models.
93
94
  Given that there are "<additional specifications>" detailing models
@@ -66,6 +66,7 @@ Feature: Row elements can be modeled.
66
66
  Scenario: Convenient output of a row
67
67
  Then the row has convenient output
68
68
 
69
+ @redundant
69
70
  Scenario Outline: Row models pass all other specifications
70
71
  Exact specifications detailing the API for Row models.
71
72
  Given that there are "<additional specifications>" detailing models
@@ -77,6 +77,7 @@ Feature: Scenario elements can be modeled.
77
77
  Scenario: Convenient output of a scenario
78
78
  Then the scenario has convenient output
79
79
 
80
+ @redundant
80
81
  Scenario Outline: Scenario models pass all other specifications
81
82
  Exact specifications detailing the API for scenario models.
82
83
  Given that there are "<additional specifications>" detailing models
@@ -73,6 +73,7 @@ Feature: Step elements can be modeled.
73
73
  Scenario: Convenient output of a step
74
74
  Then the step has convenient output
75
75
 
76
+ @redundant
76
77
  Scenario Outline: Step models pass all other specifications
77
78
  Exact specifications detailing the API for step models.
78
79
  Given that there are "<additional specifications>" detailing models
@@ -40,6 +40,7 @@ Feature: Table elements can be modeled.
40
40
  Scenario: Convenient output of a table
41
41
  Then the table has convenient output
42
42
 
43
+ @redundant
43
44
  Scenario Outline: Table models pass all other specifications
44
45
  Exact specifications detailing the API for table models.
45
46
  Given that there are "<additional specifications>" detailing models
@@ -55,6 +55,7 @@ Feature: Table Row elements can be modeled.
55
55
  Scenario: Convenient output of a table row
56
56
  Then the table row has convenient output
57
57
 
58
+ @redundant
58
59
  Scenario Outline: Table row models pass all other specifications
59
60
  Exact specifications detailing the API for table table row models.
60
61
  Given that there are "<additional specifications>" detailing models
@@ -46,6 +46,7 @@ Feature: Tag elements can be modeled.
46
46
  Scenario: Convenient output of a tag
47
47
  Then the tag has convenient output
48
48
 
49
+ @redundant
49
50
  Scenario Outline: Tag models pass all other specifications
50
51
  Exact specifications detailing the API for tag models.
51
52
  Given that there are "<additional specifications>" detailing models
@@ -1,3 +1,3 @@
1
1
  module CucumberAnalytics
2
- VERSION = '1.5.0'
2
+ VERSION = '1.5.1'
3
3
  end
metadata CHANGED
@@ -1,134 +1,135 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cucumber_analytics
3
- version: !ruby/object:Gem::Version
4
- hash: 3
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.5.1
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 5
9
- - 0
10
- version: 1.5.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Eric Kessler
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2014-02-04 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2014-05-27 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: gherkin
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
22
23
  prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: json
32
+ requirement: !ruby/object:Gem::Requirement
24
33
  none: false
25
- requirements:
34
+ requirements:
26
35
  - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 35
29
- segments:
30
- - 2
31
- - 11
32
- - 0
33
- version: 2.11.0
36
+ - !ruby/object:Gem::Version
37
+ version: '1.0'
34
38
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: json
38
39
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
40
41
  none: false
41
- requirements:
42
+ requirements:
42
43
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 15
45
- segments:
46
- - 1
47
- - 0
48
- version: "1.0"
49
- type: :runtime
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
44
+ - !ruby/object:Gem::Version
45
+ version: '1.0'
46
+ - !ruby/object:Gem::Dependency
52
47
  name: multi_json
53
- prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
55
49
  none: false
56
- requirements:
50
+ requirements:
57
51
  - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 15
60
- segments:
61
- - 1
62
- - 0
63
- version: "1.0"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.0'
64
54
  type: :runtime
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: rake
68
55
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rake
64
+ requirement: !ruby/object:Gem::Requirement
70
65
  none: false
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- hash: 3
75
- segments:
76
- - 0
77
- version: "0"
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
78
70
  type: :development
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- name: cucumber
82
71
  prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: cucumber
80
+ requirement: !ruby/object:Gem::Requirement
84
81
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- hash: 3
89
- segments:
90
- - 0
91
- version: "0"
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
92
86
  type: :development
93
- version_requirements: *id005
94
- - !ruby/object:Gem::Dependency
95
- name: rspec
96
87
  prerelease: false
97
- requirement: &id006 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: rspec
96
+ requirement: !ruby/object:Gem::Requirement
98
97
  none: false
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- hash: 3
103
- segments:
104
- - 0
105
- version: "0"
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
106
102
  type: :development
107
- version_requirements: *id006
108
- - !ruby/object:Gem::Dependency
109
- name: simplecov
110
103
  prerelease: false
111
- requirement: &id007 !ruby/object:Gem::Requirement
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: simplecov
112
+ requirement: !ruby/object:Gem::Requirement
112
113
  none: false
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- hash: 3
117
- segments:
118
- - 0
119
- version: "0"
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
120
118
  type: :development
121
- version_requirements: *id007
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
122
126
  description: Static analysis of Cucumber tests made easy.
123
- email:
127
+ email:
124
128
  - morrow748@gmail.com
125
129
  executables: []
126
-
127
130
  extensions: []
128
-
129
131
  extra_rdoc_files: []
130
-
131
- files:
132
+ files:
132
133
  - .gitignore
133
134
  - .simplecov
134
135
  - Gemfile
@@ -257,39 +258,32 @@ files:
257
258
  - spec/unit/test_element_unit_specs.rb
258
259
  - spec/unit/world_unit_spec.rb
259
260
  homepage: https://github.com/enkessler/cucumber_analytics
260
- licenses:
261
+ licenses:
261
262
  - MIT
262
263
  post_install_message:
263
264
  rdoc_options: []
264
-
265
- require_paths:
265
+ require_paths:
266
266
  - lib
267
- required_ruby_version: !ruby/object:Gem::Requirement
267
+ required_ruby_version: !ruby/object:Gem::Requirement
268
268
  none: false
269
- requirements:
270
- - - ">="
271
- - !ruby/object:Gem::Version
272
- hash: 3
273
- segments:
274
- - 0
275
- version: "0"
276
- required_rubygems_version: !ruby/object:Gem::Requirement
269
+ requirements:
270
+ - - ! '>='
271
+ - !ruby/object:Gem::Version
272
+ version: '0'
273
+ required_rubygems_version: !ruby/object:Gem::Requirement
277
274
  none: false
278
- requirements:
279
- - - ">="
280
- - !ruby/object:Gem::Version
281
- hash: 3
282
- segments:
283
- - 0
284
- version: "0"
275
+ requirements:
276
+ - - ! '>='
277
+ - !ruby/object:Gem::Version
278
+ version: '0'
285
279
  requirements: []
286
-
287
280
  rubyforge_project:
288
- rubygems_version: 1.8.25
281
+ rubygems_version: 1.8.28
289
282
  signing_key:
290
283
  specification_version: 3
291
- summary: This gem provides an API to programmatically break down Cucumber feature files so that they can be inspected and analyzed in a straightforward manner.
292
- test_files:
284
+ summary: This gem provides an API to programmatically break down Cucumber feature
285
+ files so that they can be inspected and analyzed in a straightforward manner.
286
+ test_files:
293
287
  - features/analysis/directory_collection.feature
294
288
  - features/analysis/feature_collection.feature
295
289
  - features/analysis/feature_file_collection.feature