watirsplash 1.4.1 → 1.4.2

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.
@@ -1,3 +1,7 @@
1
+ === Version 1.4.2 / 2011-06-01
2
+
3
+ * handle correctly RSpec shared examples by html formatter
4
+
1
5
  === Version 1.4.1 / 2011-06-01
2
6
 
3
7
  * bump rspec dependency to 2.6.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.2
@@ -99,7 +99,7 @@ module WatirSplash
99
99
 
100
100
  def append_extra_information_to_description(example_group)
101
101
  date = Time.now.strftime("%d.%m.%Y")
102
- spec_location, line_no = example_group.metadata[:example_group][:block].to_s.scan(/@(.*)(:\d+)>$/).flatten
102
+ spec_location, line_no = extract_example_group_metadata example_group.metadata[:example_group]
103
103
  return unless spec_location
104
104
  spec_location = Pathname.new(spec_location)
105
105
  relative_spec_path = spec_location.relative_path_from(Pathname.new(Dir.pwd + "/spec")).to_s
@@ -107,5 +107,12 @@ module WatirSplash
107
107
  example_group.metadata[:example_group][:description] += appended_description
108
108
  end
109
109
 
110
+ def extract_example_group_metadata example_group
111
+ unless example_group[:example_group]
112
+ example_group[:block].to_s.scan(/@(.*)(:\d+)>$/).flatten
113
+ else
114
+ example_group_metadata example_group[:example_group]
115
+ end
116
+ end
110
117
  end
111
118
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watirsplash
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 1
10
- version: 1.4.1
9
+ - 2
10
+ version: 1.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jarmo Pertman
@@ -131,7 +131,7 @@ licenses: []
131
131
  post_install_message: |-
132
132
  *************************
133
133
 
134
- Thank you for installing WatirSplash 1.4.1! Don't forget to take a look at the README and History files!
134
+ Thank you for installing WatirSplash 1.4.2! Don't forget to take a look at the README and History files!
135
135
 
136
136
  Execute `watirsplash new` under your project's directory to generate a default project structure.
137
137
 
@@ -169,7 +169,7 @@ rubyforge_project:
169
169
  rubygems_version: 1.8.4
170
170
  signing_key:
171
171
  specification_version: 3
172
- summary: watirsplash 1.4.1
172
+ summary: watirsplash 1.4.2
173
173
  test_files:
174
174
  - spec/file_helper_spec.rb
175
175
  - spec/rspec_patches_spec.rb