viewcumber 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source :rubygems
2
+
3
+ gemspec
4
+ gem 'jeweler'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/lib/viewcumber.rb CHANGED
@@ -11,6 +11,8 @@ if respond_to? :AfterStep
11
11
  if !@email.blank?
12
12
  Viewcumber.last_step_html = Viewcumber.rewrite_css_and_image_references(@email)
13
13
  @email = nil
14
+ elsif Capybara.page.driver.respond_to? :source
15
+ Viewcumber.last_step_html = Viewcumber.rewrite_css_and_image_references(Capybara.page.driver.source.to_s)
14
16
  elsif Capybara.page.driver.respond_to? :html
15
17
  Viewcumber.last_step_html = Viewcumber.rewrite_css_and_image_references(Capybara.page.driver.html.to_s)
16
18
  end
@@ -61,7 +63,7 @@ class Viewcumber < Cucumber::Formatter::Json
61
63
  def rewrite_css_and_image_references(response_html) # :nodoc:
62
64
  return response_html unless Capybara.asset_root
63
65
  directories = Dir.new(Capybara.asset_root).entries.inject([]) do |list, name|
64
- list << name if File.directory?(name) and not name.to_s =~ /^\./
66
+ list << name if File.directory?(File.join(Capybara.asset_root, name)) and not name.to_s =~ /^\./
65
67
  list
66
68
  end
67
69
  response_html.gsub!(/("|')\/(#{directories.join('|')})/, '\1public/\2')
data/screenshot.png ADDED
Binary file
data/viewcumber.gemspec CHANGED
@@ -4,13 +4,12 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{viewcumber}
8
- s.version = "0.1.2"
7
+ s.name = "viewcumber"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["gregbell", "pcreux", "samuelreh"]
12
- s.date = %q{2011-01-05}
13
- s.default_executable = %q{viewcumber}
12
+ s.date = "2011-12-01"
14
13
  s.executables = ["viewcumber"]
15
14
  s.extra_rdoc_files = [
16
15
  "LICENSE",
@@ -18,6 +17,7 @@ Gem::Specification.new do |s|
18
17
  ]
19
18
  s.files = [
20
19
  ".document",
20
+ "Gemfile",
21
21
  "LICENSE",
22
22
  "README.rdoc",
23
23
  "Rakefile",
@@ -900,6 +900,7 @@ Gem::Specification.new do |s|
900
900
  "build/Resources/spinner.gif",
901
901
  "build/index.html",
902
902
  "lib/viewcumber.rb",
903
+ "screenshot.png",
903
904
  "src/AppController.j",
904
905
  "src/Email.j",
905
906
  "src/FeatureFile.j",
@@ -1786,28 +1787,33 @@ Gem::Specification.new do |s|
1786
1787
  "test/test_viewcumber.rb",
1787
1788
  "viewcumber.gemspec"
1788
1789
  ]
1789
- s.homepage = %q{http://github.com/versapay/viewcumber}
1790
+ s.homepage = "http://github.com/versapay/viewcumber"
1790
1791
  s.require_paths = ["lib"]
1791
- s.rubygems_version = %q{1.3.7}
1792
- s.summary = %q{Cucumber formatter for easily viewing each step of your scenarios}
1792
+ s.rubygems_version = "1.8.11"
1793
+ s.summary = "Cucumber formatter for easily viewing each step of your scenarios"
1793
1794
  s.test_files = [
1794
1795
  "test/helper.rb",
1795
1796
  "test/test_viewcumber.rb"
1796
1797
  ]
1797
1798
 
1798
1799
  if s.respond_to? :specification_version then
1799
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
1800
1800
  s.specification_version = 3
1801
1801
 
1802
1802
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
1803
- s.add_runtime_dependency(%q<cucumber>, [">= 0.8.5"])
1803
+ s.add_runtime_dependency(%q<viewcumber>, [">= 0"])
1804
+ s.add_runtime_dependency(%q<jeweler>, [">= 0"])
1805
+ s.add_runtime_dependency(%q<cucumber>, ["< 0.10.0", ">= 0.8.5"])
1804
1806
  s.add_runtime_dependency(%q<capybara>, [">= 0.3"])
1805
1807
  else
1806
- s.add_dependency(%q<cucumber>, [">= 0.8.5"])
1808
+ s.add_dependency(%q<viewcumber>, [">= 0"])
1809
+ s.add_dependency(%q<jeweler>, [">= 0"])
1810
+ s.add_dependency(%q<cucumber>, ["< 0.10.0", ">= 0.8.5"])
1807
1811
  s.add_dependency(%q<capybara>, [">= 0.3"])
1808
1812
  end
1809
1813
  else
1810
- s.add_dependency(%q<cucumber>, [">= 0.8.5"])
1814
+ s.add_dependency(%q<viewcumber>, [">= 0"])
1815
+ s.add_dependency(%q<jeweler>, [">= 0"])
1816
+ s.add_dependency(%q<cucumber>, ["< 0.10.0", ">= 0.8.5"])
1811
1817
  s.add_dependency(%q<capybara>, [">= 0.3"])
1812
1818
  end
1813
1819
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viewcumber
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
4
+ hash: 29
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - gregbell
@@ -17,15 +17,48 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-01-05 00:00:00 -08:00
21
- default_executable: viewcumber
20
+ date: 2011-12-01 00:00:00 Z
22
21
  dependencies:
23
22
  - !ruby/object:Gem::Dependency
24
- name: cucumber
23
+ version_requirements: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
32
+ name: viewcumber
25
33
  prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
34
+ type: :runtime
35
+ requirement: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
27
38
  none: false
28
39
  requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ name: jeweler
47
+ prerelease: false
48
+ type: :runtime
49
+ requirement: *id002
50
+ - !ruby/object:Gem::Dependency
51
+ version_requirements: &id003 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - <
55
+ - !ruby/object:Gem::Version
56
+ hash: 55
57
+ segments:
58
+ - 0
59
+ - 10
60
+ - 0
61
+ version: 0.10.0
29
62
  - - ">="
30
63
  - !ruby/object:Gem::Version
31
64
  hash: 53
@@ -34,12 +67,12 @@ dependencies:
34
67
  - 8
35
68
  - 5
36
69
  version: 0.8.5
70
+ name: cucumber
71
+ prerelease: false
37
72
  type: :runtime
38
- version_requirements: *id001
73
+ requirement: *id003
39
74
  - !ruby/object:Gem::Dependency
40
- name: capybara
41
- prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
75
+ version_requirements: &id004 !ruby/object:Gem::Requirement
43
76
  none: false
44
77
  requirements:
45
78
  - - ">="
@@ -49,8 +82,10 @@ dependencies:
49
82
  - 0
50
83
  - 3
51
84
  version: "0.3"
85
+ name: capybara
86
+ prerelease: false
52
87
  type: :runtime
53
- version_requirements: *id002
88
+ requirement: *id004
54
89
  description:
55
90
  email:
56
91
  executables:
@@ -62,6 +97,7 @@ extra_rdoc_files:
62
97
  - README.rdoc
63
98
  files:
64
99
  - .document
100
+ - Gemfile
65
101
  - LICENSE
66
102
  - README.rdoc
67
103
  - Rakefile
@@ -944,6 +980,7 @@ files:
944
980
  - build/Resources/spinner.gif
945
981
  - build/index.html
946
982
  - lib/viewcumber.rb
983
+ - screenshot.png
947
984
  - src/AppController.j
948
985
  - src/Email.j
949
986
  - src/FeatureFile.j
@@ -1829,7 +1866,6 @@ files:
1829
1866
  - test/helper.rb
1830
1867
  - test/test_viewcumber.rb
1831
1868
  - viewcumber.gemspec
1832
- has_rdoc: true
1833
1869
  homepage: http://github.com/versapay/viewcumber
1834
1870
  licenses: []
1835
1871
 
@@ -1859,7 +1895,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1859
1895
  requirements: []
1860
1896
 
1861
1897
  rubyforge_project:
1862
- rubygems_version: 1.3.7
1898
+ rubygems_version: 1.8.11
1863
1899
  signing_key:
1864
1900
  specification_version: 3
1865
1901
  summary: Cucumber formatter for easily viewing each step of your scenarios