hiroeorz-rspec-w3c-matchers 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/rspec_w3c_matchers.rb +11 -1
  3. metadata +2 -2
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 3
4
+ :patch: 4
@@ -8,10 +8,12 @@ require "w3c_validators"
8
8
 
9
9
  class BeW3CValidHtml
10
10
  include W3CValidators
11
+
12
+ @@charset = :utf8
11
13
 
12
14
  def initialize(format = nil)
13
15
  @html_validator = MarkupValidator.new
14
- @html_validator.set_charset!(:utf_8)
16
+ @html_validator.set_charset!(@@charset)
15
17
  @html_validator.set_doctype!(format) if format
16
18
  @html_validator.set_debug!(true)
17
19
  end
@@ -57,6 +59,14 @@ class BeW3CValidHtml
57
59
  def failure_message_for_should_not
58
60
  "expected not be xhtml 1.0 strict, but was validated.\n"
59
61
  end
62
+
63
+ def charset
64
+ @@charset
65
+ end
66
+
67
+ def charset=(value)
68
+ @@charset = value
69
+ end
60
70
  end
61
71
 
62
72
  def be_valid_html(format = nil)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiroeorz-rspec-w3c-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - hiroeorz
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-21 00:00:00 -07:00
12
+ date: 2009-04-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15