cucumber-json 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -21,8 +21,8 @@ Jeweler::Tasks.new do |gem|
21
21
  gem.email = "jnewland@gmail.com"
22
22
  gem.homepage = "http://github.com/jnewland/cucumber-json"
23
23
  gem.authors = ["Jesse Newland"]
24
- gem.add_dependency "cucumber", "~> 0.6.3"
25
- gem.add_dependency "json", "~> 1.2.1"
24
+ gem.add_dependency "cucumber", "~> 0.7.3"
25
+ gem.add_dependency "json_pure", "~> 1.4.3"
26
26
  gem.test_files.include 'features/**/*'
27
27
  gem.test_files.exclude 'examples/self_test/tmp/features'
28
28
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cucumber-json}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jesse Newland"]
@@ -48,15 +48,15 @@ Gem::Specification.new do |s|
48
48
  s.specification_version = 3
49
49
 
50
50
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
- s.add_runtime_dependency(%q<cucumber>, ["~> 0.6.3"])
52
- s.add_runtime_dependency(%q<json>, ["~> 1.2.1"])
51
+ s.add_runtime_dependency(%q<cucumber>, ["~> 0.7.3"])
52
+ s.add_runtime_dependency(%q<json_pure>, ["~> 1.4.3"])
53
53
  else
54
- s.add_dependency(%q<cucumber>, ["~> 0.6.3"])
55
- s.add_dependency(%q<json>, ["~> 1.2.1"])
54
+ s.add_dependency(%q<cucumber>, ["~> 0.7.3"])
55
+ s.add_dependency(%q<json_pure>, ["~> 1.4.3"])
56
56
  end
57
57
  else
58
- s.add_dependency(%q<cucumber>, ["~> 0.6.3"])
59
- s.add_dependency(%q<json>, ["~> 1.2.1"])
58
+ s.add_dependency(%q<cucumber>, ["~> 0.7.3"])
59
+ s.add_dependency(%q<json_pure>, ["~> 1.4.3"])
60
60
  end
61
61
  end
62
62
 
@@ -1 +1 @@
1
- {"failing_features":[],"features":[" Scenario:: One Failing Feature\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/one_failure.feature\n Then the output should contain \"output['status_counts']['failed']\" set to \"1\"\n And the output should contain \"output['status_counts']['passed']\" set to \"1\"\n And the output should contain \"output['status_counts']['undefined']\" set to \"1\"\n And the output should contain \"output['status_counts']['pending']\" set to \"1\"\n And the output should contain the failing feature\n \"\"\"\n Scenario:: Failing\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/one_failure.feature:4:in `Given failing'\n\n \"\"\"\n"," Scenario:: Multiple Failing Features\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/multiple_failures.feature\n Then the output should contain \"output['status_counts']['failed']\" set to \"3\"\n And the output should contain \"output['status_counts']['passed']\" set to \"1\"\n And the output should contain the failing feature\n \"\"\"\n Scenario:: Failing\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:4:in `Given failing'\n\n \"\"\"\n And the output should contain the failing feature\n \"\"\"\n Scenario:: Failing2\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:7:in `Given failing'\n\n \"\"\"\n And the output should contain the failing feature\n \"\"\"\n Scenario:: Failing3\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:10:in `Given failing'\n\n \"\"\"\n"," Scenario:: All Features Passing\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/all_passing.feature\n Then the output should contain \"output['status_counts']['passed']\" set to \"2\"\n And the output should contain no failing features\n"],"status_counts":{"passed":35}}
1
+ {"failing_features":[],"features":[" Scenario: One Failing Feature\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/one_failure.feature\n Then the output should contain \"output['status_counts']['failed']\" set to \"1\"\n And the output should contain \"output['status_counts']['passed']\" set to \"1\"\n And the output should contain \"output['status_counts']['undefined']\" set to \"1\"\n And the output should contain \"output['status_counts']['pending']\" set to \"1\"\n And the output should contain the failing feature\n \"\"\"\n Scenario: Failing\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/one_failure.feature:4:in `Given failing'\n\n \"\"\"\n"," Scenario: Multiple Failing Features\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/multiple_failures.feature\n Then the output should contain \"output['status_counts']['failed']\" set to \"3\"\n And the output should contain \"output['status_counts']['passed']\" set to \"1\"\n And the output should contain the failing feature\n \"\"\"\n Scenario: Failing\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:4:in `Given failing'\n\n \"\"\"\n And the output should contain the failing feature\n \"\"\"\n Scenario: Failing2\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:7:in `Given failing'\n\n \"\"\"\n And the output should contain the failing feature\n \"\"\"\n Scenario: Failing3\n Given failing # features/step_definitions/steps.rb:1\n FAIL (RuntimeError)\n ./features/step_definitions/steps.rb:2:in `/failing/'\n features/multiple_failures.feature:10:in `Given failing'\n\n \"\"\"\n"," Scenario: All Features Passing\n When I run cucumber -r ../../../lib -r features/step_definitions -f Cucumber::Formatter::JSON features/all_passing.feature\n Then the output should contain \"output['status_counts']['passed']\" set to \"2\"\n And the output should contain no failing features\n"],"status_counts":{"passed":35}}
@@ -71,7 +71,7 @@ Feature: JSON formatter
71
71
  And the output should contain "output['status_counts']['pending']" set to "1"
72
72
  And the output should contain the failing feature
73
73
  """
74
- Scenario:: Failing
74
+ Scenario: Failing
75
75
  Given failing # features/step_definitions/steps.rb:1
76
76
  FAIL (RuntimeError)
77
77
  ./features/step_definitions/steps.rb:2:in `/failing/'
@@ -84,7 +84,7 @@ Feature: JSON formatter
84
84
  And the output should contain "output['status_counts']['passed']" set to "1"
85
85
  And the output should contain the failing feature
86
86
  """
87
- Scenario:: Failing
87
+ Scenario: Failing
88
88
  Given failing # features/step_definitions/steps.rb:1
89
89
  FAIL (RuntimeError)
90
90
  ./features/step_definitions/steps.rb:2:in `/failing/'
@@ -93,7 +93,7 @@ Feature: JSON formatter
93
93
  """
94
94
  And the output should contain the failing feature
95
95
  """
96
- Scenario:: Failing2
96
+ Scenario: Failing2
97
97
  Given failing # features/step_definitions/steps.rb:1
98
98
  FAIL (RuntimeError)
99
99
  ./features/step_definitions/steps.rb:2:in `/failing/'
@@ -102,7 +102,7 @@ Feature: JSON formatter
102
102
  """
103
103
  And the output should contain the failing feature
104
104
  """
105
- Scenario:: Failing3
105
+ Scenario: Failing3
106
106
  Given failing # features/step_definitions/steps.rb:1
107
107
  FAIL (RuntimeError)
108
108
  ./features/step_definitions/steps.rb:2:in `/failing/'
@@ -227,10 +227,10 @@ module Cucumber
227
227
  end
228
228
 
229
229
  if status == :passed
230
- line = keyword + ' ' + step_match.format_args("%s")
230
+ line = keyword + step_match.format_args("%s")
231
231
  format_string(line, status)
232
232
  else
233
- line = keyword + ' ' + step_match.format_args("%s") + comment
233
+ line = keyword + step_match.format_args("%s") + comment
234
234
  format_string(line, status)
235
235
  end
236
236
  end
@@ -1,7 +1,7 @@
1
1
  module Cucumber
2
2
  module Formatter
3
3
  class JSON
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jesse Newland
@@ -26,13 +26,13 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  segments:
28
28
  - 0
29
- - 6
29
+ - 7
30
30
  - 3
31
- version: 0.6.3
31
+ version: 0.7.3
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency
35
- name: json
35
+ name: json_pure
36
36
  prerelease: false
37
37
  requirement: &id002 !ruby/object:Gem::Requirement
38
38
  requirements:
@@ -40,9 +40,9 @@ dependencies:
40
40
  - !ruby/object:Gem::Version
41
41
  segments:
42
42
  - 1
43
- - 2
44
- - 1
45
- version: 1.2.1
43
+ - 4
44
+ - 3
45
+ version: 1.4.3
46
46
  type: :runtime
47
47
  version_requirements: *id002
48
48
  description: A cucumber formatter that outputs JSON