viewcumber 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/viewcumber.rb +4 -2
  3. data/viewcumber.gemspec +2 -2
  4. metadata +6 -6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -43,8 +43,10 @@ class Viewcumber < Cucumber::Formatter::Json
43
43
  # The JSON formatter adds the background as a feature element,
44
44
  # we only want full scenarios so lets delete all with type 'background'
45
45
  def after_feature(feature)
46
- @gf.gherkin_object['elements'].delete_if do |element|
47
- element['type'] == 'background'
46
+ if @gf.gherkin_object['elements']
47
+ @gf.gherkin_object['elements'].delete_if do |element|
48
+ element['type'] == 'background'
49
+ end
48
50
  end
49
51
  super(feature)
50
52
  end
@@ -5,10 +5,10 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "viewcumber"
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["gregbell", "pcreux", "samuelreh"]
11
+ s.authors = ["Greg Bell", "Philippe Creux", "Samuel Reh"]
12
12
  s.date = "2011-12-01"
13
13
  s.executables = ["viewcumber"]
14
14
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viewcumber
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
- - gregbell
14
- - pcreux
15
- - samuelreh
13
+ - Greg Bell
14
+ - Philippe Creux
15
+ - Samuel Reh
16
16
  autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []