frameworks-capybara 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- frameworks-capybara (0.2.2)
4
+ frameworks-capybara (0.2.3)
5
5
  capybara (>= 1.0.0)
6
6
  capybara-celerity
7
7
  capybara-mechanize (>= 0.3.0)
data/README.rdoc CHANGED
@@ -1,3 +1,5 @@
1
+ = Build Status {<img src="https://secure.travis-ci.org/mcrmfc/frameworks-capybara.png"/>}[https://secure.travis-ci.org/mcrmfc/frameworks-capybara]
2
+
1
3
  = frameworks-capybara
2
4
 
3
5
  Gem to simplify the configuration of Capybara when using multiple drivers, also exposes other useful utility methods.
@@ -44,20 +44,21 @@ module Frameworks
44
44
 
45
45
  @validator.set_doctype!(:xhtml)
46
46
  begin
47
+
47
48
  results = @validator.validate_text(src)
48
- rescue Net::HTTPFatalError => e
49
- puts "WARNING - OUTGOING NETWORK ERROR FROM FORGE TO W3C - Validation Not Performed"
50
- end
51
49
 
52
- if results.errors.length > 0
53
- results.errors.each do |err|
54
- puts err.to_s
50
+ if results.errors.length > 0
51
+ results.errors.each do |err|
52
+ puts err.to_s
53
+ end
54
+ raise "W3C Validation of " + current_url + " failed."
55
55
  end
56
- raise "W3C Validation of " + current_url + " failed."
56
+
57
+ rescue Net::HTTPFatalError => e
58
+ puts "WARNING - OUTGOING NETWORK ERROR FROM FORGE TO W3C - Validation Not Performed"
57
59
  end
58
60
  end
59
61
 
60
-
61
62
  def set_scheme
62
63
  ENV['SCHEME']=='https' ? scheme = 'https' : scheme = 'http'
63
64
  @www_prefix = "#{scheme}://www."
data/lib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module FrameworksCapybara
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frameworks-capybara
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - matt robbins
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-27 00:00:00 +01:00
18
+ date: 2012-04-30 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency