validator.nu 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +27 -0
- data/Rakefile +10 -10
- data/VERSION +1 -1
- data/lib/validator.nu.rb +1 -0
- data/spec/fixtures/fatal-error-post.json +1 -1
- data/spec/fixtures/fatal-error.json +1 -1
- data/spec/fixtures/info-post.json +1 -1
- data/spec/fixtures/info.json +1 -1
- data/spec/fixtures/no-message-post.json +1 -1
- data/spec/fixtures/no-message.json +1 -1
- data/spec/fixtures/precise-error-post.json +1 -1
- data/spec/fixtures/precise-error.json +1 -1
- data/spec/fixtures/range-error-post.json +1 -1
- data/spec/fixtures/range-error.json +1 -1
- data/spec/fixtures/warning-post.json +1 -1
- data/spec/fixtures/warning.json +1 -1
- data/spec/spec_helper.rb +15 -2
- data/spec/validator_spec.rb +27 -33
- data/validator.nu.gemspec +27 -5
- metadata +122 -6
- data/test/helper.rb +0 -10
- data/test/test_validator.nu.rb +0 -7
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
validator.nu (0.0.6)
|
5
|
+
validator.nu
|
6
|
+
yajl-ruby (= 1.1.0)
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
diff-lcs (1.1.3)
|
12
|
+
rspec (2.12.0)
|
13
|
+
rspec-core (~> 2.12.0)
|
14
|
+
rspec-expectations (~> 2.12.0)
|
15
|
+
rspec-mocks (~> 2.12.0)
|
16
|
+
rspec-core (2.12.2)
|
17
|
+
rspec-expectations (2.12.1)
|
18
|
+
diff-lcs (~> 1.1.3)
|
19
|
+
rspec-mocks (2.12.1)
|
20
|
+
yajl-ruby (1.1.0)
|
21
|
+
|
22
|
+
PLATFORMS
|
23
|
+
ruby
|
24
|
+
|
25
|
+
DEPENDENCIES
|
26
|
+
rspec
|
27
|
+
validator.nu!
|
data/Rakefile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
require '
|
2
|
-
require '
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rspec/core/rake_task'
|
3
3
|
|
4
4
|
begin
|
5
5
|
require 'jeweler'
|
@@ -10,6 +10,7 @@ begin
|
|
10
10
|
gem.email = "me@davidjrice.co.uk"
|
11
11
|
gem.homepage = "http://github.com/davidjrice/validator.nu"
|
12
12
|
gem.authors = ["David Rice"]
|
13
|
+
gem.add_dependency "yajl-ruby", "1.1.0"
|
13
14
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
14
15
|
end
|
15
16
|
Jeweler::GemcutterTasks.new
|
@@ -17,18 +18,17 @@ rescue LoadError
|
|
17
18
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
18
19
|
end
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
test.
|
23
|
-
test.pattern = 'test/**/test_*.rb'
|
21
|
+
RSpec::Core::RakeTask.new(:test) do |test|
|
22
|
+
# test.libs << 'lib' << 'spec'
|
23
|
+
test.pattern = 'spec/**/*_spec.rb'
|
24
24
|
test.verbose = true
|
25
25
|
end
|
26
26
|
|
27
27
|
begin
|
28
28
|
require 'rcov/rcovtask'
|
29
29
|
Rcov::RcovTask.new do |test|
|
30
|
-
test.libs << '
|
31
|
-
test.pattern = '
|
30
|
+
test.libs << 'lib' << 'spec'
|
31
|
+
test.pattern = 'spec/**/*_spec.rb'
|
32
32
|
test.verbose = true
|
33
33
|
end
|
34
34
|
rescue LoadError
|
@@ -37,11 +37,11 @@ rescue LoadError
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
task :test => :check_dependencies
|
40
|
+
# task :test => :check_dependencies
|
41
41
|
|
42
42
|
task :default => :test
|
43
43
|
|
44
|
-
require '
|
44
|
+
require 'rdoc/task'
|
45
45
|
Rake::RDocTask.new do |rdoc|
|
46
46
|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
47
47
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/lib/validator.nu.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"messages":[{"type":"info","message":"The Content-Type was “application/xhtml+xml”. Using the XML parser (not resolving external entities)."},{"type":"info","message":"Using the preset for XHTML5+
|
1
|
+
{"messages":[{"type":"info","message":"The Content-Type was “application/xhtml+xml”. Using the XML parser (not resolving external entities)."},{"type":"info","message":"Using the preset for XHTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1 based on the root namespace."},{"type":"error","lastLine":6,"lastColumn":10,"subType":"fatal","message":"name expected","extract":"body>\n<p>Fatal & error</p>\n</b","hiliteStart":15,"hiliteLength":1}]}
|
@@ -1 +1 @@
|
|
1
|
-
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/fatal.xhtml","messages":[{"type":"info","message":"The Content-Type was “application/xhtml+xml”. Using the XML parser (not resolving external entities)."},{"type":"info","message":"Using the preset for XHTML5+
|
1
|
+
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/fatal.xhtml","messages":[{"type":"info","message":"The Content-Type was “application/xhtml+xml”. Using the XML parser (not resolving external entities)."},{"type":"info","message":"Using the preset for XHTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1 based on the root namespace."},{"type":"error","lastLine":6,"lastColumn":10,"subType":"fatal","message":"name expected","extract":"body>\n<p>Fatal & error</p>\n</b","hiliteStart":15,"hiliteLength":1}]}
|
@@ -1 +1 @@
|
|
1
|
-
{"messages":[{"type":"info","message":"The Content-Type was “image/svg+xml”. Using the XML parser (not resolving external entities)."},{"type":"info","message":"Using the preset for SVG 1.1+IRI
|
1
|
+
{"messages":[{"type":"info","message":"The Content-Type was “image/svg+xml”. Using the XML parser (not resolving external entities)."},{"type":"info","message":"Using the preset for SVG 1.1 + IRI + XHTML5 + MathML 3.0 based on the root namespace."}]}
|
data/spec/fixtures/info.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/info.svg","messages":[{"type":"info","message":"The Content-Type was “image/svg+xml”. Using the XML parser (not resolving external entities)."},{"type":"info","message":"Using the preset for SVG 1.1+IRI
|
1
|
+
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/info.svg","messages":[{"type":"info","message":"The Content-Type was “image/svg+xml”. Using the XML parser (not resolving external entities)."},{"type":"info","message":"Using the preset for SVG 1.1 + IRI + XHTML5 + MathML 3.0 based on the root namespace."}]}
|
@@ -1 +1 @@
|
|
1
|
-
{"messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5+
|
1
|
+
{"messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1."}]}
|
@@ -1 +1 @@
|
|
1
|
-
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/no-message.html","messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5+
|
1
|
+
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/no-message.html","messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1."}]}
|
@@ -1 +1 @@
|
|
1
|
-
{"messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5+
|
1
|
+
{"messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1."},{"type":"error","lastLine":7,"lastColumn":4,"message":"“&” did not start a character reference. (“&” probably should have been escaped as “&”.)","extract":"ead>\n<body>\n<p>&a</p>\n</body>\n","hiliteStart":15,"hiliteLength":1}]}
|
@@ -1 +1 @@
|
|
1
|
-
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/precise-error.html","messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5+
|
1
|
+
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/precise-error.html","messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1."},{"type":"error","lastLine":7,"lastColumn":4,"message":"“&” did not start a character reference. (“&” probably should have been escaped as “&”.)","extract":"ead>\n<body>\n<p>&a</p>\n</body>\n","hiliteStart":15,"hiliteLength":1}]}
|
@@ -1 +1 @@
|
|
1
|
-
{"messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5+
|
1
|
+
{"messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1."},{"type":"error","lastLine":7,"lastColumn":13,"firstColumn":10,"message":"End tag “p” seen, but there were open elements.","extract":"\n<p><span></p>\n</bod","hiliteStart":10,"hiliteLength":4},{"type":"error","lastLine":7,"lastColumn":9,"firstColumn":4,"message":"Unclosed element “span”.","extract":"<body>\n<p><span></p>\n<","hiliteStart":10,"hiliteLength":6}]}
|
@@ -1 +1 @@
|
|
1
|
-
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/range-error.html","messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5+
|
1
|
+
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/range-error.html","messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1."},{"type":"error","lastLine":7,"lastColumn":13,"firstColumn":10,"message":"End tag “p” seen, but there were open elements.","extract":"\n<p><span></p>\n</bod","hiliteStart":10,"hiliteLength":4},{"type":"error","lastLine":7,"lastColumn":9,"firstColumn":4,"message":"Unclosed element “span”.","extract":"<body>\n<p><span></p>\n<","hiliteStart":10,"hiliteLength":6}]}
|
@@ -1 +1 @@
|
|
1
|
-
{"messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5+
|
1
|
+
{"messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1."},{"type":"error","lastLine":7,"lastColumn":13,"message":"“<” in an unquoted attribute value. Probable cause: Missing “>” immediately before.","extract":"y>\n<p class=foo<bar></p>\n</bod","hiliteStart":15,"hiliteLength":1}]}
|
data/spec/fixtures/warning.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/warning.html","messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5+
|
1
|
+
{"url":"http://hsivonen.iki.fi/test/moz/messages-types/warning.html","messages":[{"type":"info","message":"The Content-Type was “text/html”. Using the HTML parser."},{"type":"info","message":"Using the schema for HTML5 + SVG 1.1 + MathML 3.0 + RDFa Lite 1.1."},{"type":"error","lastLine":7,"lastColumn":13,"message":"“<” in an unquoted attribute value. Probable cause: Missing “>” immediately before.","extract":"y>\n<p class=foo<bar></p>\n</bod","hiliteStart":15,"hiliteLength":1}]}
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,17 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require
|
2
|
+
require 'bundler'
|
3
3
|
|
4
|
-
|
4
|
+
begin
|
5
|
+
Bundler.setup(:default, :development)
|
6
|
+
rescue Bundler::BundlerError => e
|
7
|
+
$stderr.puts e.message
|
8
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
9
|
+
exit e.status_code
|
10
|
+
end
|
11
|
+
|
12
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
13
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
14
|
+
require 'validator.nu'
|
15
|
+
|
16
|
+
require 'yajl'
|
17
|
+
require 'rspec'
|
data/spec/validator_spec.rb
CHANGED
@@ -3,69 +3,57 @@ require File.dirname(__FILE__) + '/spec_helper'
|
|
3
3
|
|
4
4
|
describe Validator do
|
5
5
|
|
6
|
+
def fixture(file)
|
7
|
+
path = "#{File.dirname(__FILE__)}/fixtures"
|
8
|
+
file = File.open("#{path}/#{file}.json").read
|
9
|
+
|
10
|
+
parser = Yajl::Parser.new
|
11
|
+
parser.parse(file)
|
12
|
+
end
|
6
13
|
|
7
14
|
describe "Validator.nu, get -ing" do
|
8
15
|
|
9
16
|
it "should receive a no message result" do
|
10
|
-
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/no-message.json").read
|
11
|
-
|
12
17
|
Validator.nu(
|
13
18
|
URI.parse("http://hsivonen.iki.fi/test/moz/messages-types/no-message.html")
|
14
|
-
).should == fixture
|
19
|
+
).should == fixture('no-message')
|
15
20
|
end
|
16
21
|
|
17
22
|
# http://hsivonen.iki.fi/test/moz/messages-types/info.svg
|
18
23
|
it "should receive an info result" do
|
19
|
-
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/info.json").read
|
20
|
-
|
21
|
-
|
22
24
|
Validator.nu(
|
23
25
|
URI.parse("http://hsivonen.iki.fi/test/moz/messages-types/info.svg")
|
24
|
-
).should == fixture
|
26
|
+
).should == fixture('info')
|
25
27
|
end
|
26
28
|
|
27
29
|
it "should receive a warning result" do
|
28
|
-
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/warning.json").read
|
29
|
-
|
30
|
-
|
31
30
|
Validator.nu(
|
32
31
|
URI.parse("http://hsivonen.iki.fi/test/moz/messages-types/warning.html")
|
33
|
-
).should == fixture
|
32
|
+
).should == fixture('warning')
|
34
33
|
end
|
35
34
|
|
36
35
|
it "should receive a non-document result" do
|
37
|
-
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/non-document-error.json").read
|
38
|
-
|
39
|
-
|
40
36
|
Validator.nu(
|
41
37
|
URI.parse("http://hsivonen.iki.fi/test/moz/messages-types/404.html")
|
42
|
-
).should == fixture
|
38
|
+
).should == fixture('non-document-error')
|
43
39
|
end
|
44
40
|
|
45
41
|
it "should receive a precise error result" do
|
46
|
-
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/precise-error.json").read
|
47
|
-
|
48
42
|
Validator.nu(
|
49
43
|
URI.parse("http://hsivonen.iki.fi/test/moz/messages-types/precise-error.html")
|
50
|
-
).should == fixture
|
44
|
+
).should == fixture('precise-error')
|
51
45
|
end
|
52
46
|
|
53
47
|
it "should receive a range error result" do
|
54
|
-
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/range-error.json").read
|
55
48
|
Validator.nu(
|
56
49
|
URI.parse("http://hsivonen.iki.fi/test/moz/messages-types/range-error.html")
|
57
|
-
).should == fixture
|
50
|
+
).should == fixture('range-error')
|
58
51
|
end
|
59
52
|
|
60
53
|
it "should receive a fatal error result" do
|
61
|
-
# fixture = File.open("#{File.dirname(__FILE__)}/fixtures/fatal-error.json").read
|
62
|
-
file = File.new("#{File.dirname(__FILE__)}/fixtures/fatal-error.json", 'r')
|
63
|
-
parser = Yajl::Parser.new
|
64
|
-
fixture = parser.parse(file)
|
65
|
-
|
66
54
|
Validator.nu(
|
67
55
|
URI.parse("http://hsivonen.iki.fi/test/moz/messages-types/fatal.xhtml")
|
68
|
-
).should == fixture
|
56
|
+
).should == fixture('fatal-error')
|
69
57
|
end
|
70
58
|
|
71
59
|
end
|
@@ -76,41 +64,45 @@ describe Validator do
|
|
76
64
|
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/no-message-post.json").read
|
77
65
|
html_fixture = File.open("#{File.dirname(__FILE__)}/fixtures/no-message.html").read
|
78
66
|
|
79
|
-
Validator.nu(html_fixture).should == fixture
|
67
|
+
Validator.nu(html_fixture).force_encoding("UTF-8").should == fixture
|
80
68
|
end
|
81
69
|
|
82
70
|
it "should receive an info result" do
|
83
71
|
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/info-post.json").read
|
84
72
|
html_fixture = File.open("#{File.dirname(__FILE__)}/fixtures/info.svg").read
|
85
73
|
|
86
|
-
Validator.nu(html_fixture,
|
74
|
+
Validator.nu(html_fixture, {
|
75
|
+
:content_type => 'image/svg+xml'
|
76
|
+
}).force_encoding("UTF-8").should == fixture
|
87
77
|
end
|
88
78
|
|
89
79
|
it "should receive a warning result" do
|
90
80
|
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/warning-post.json").read
|
91
81
|
html_fixture = File.open("#{File.dirname(__FILE__)}/fixtures/warning.html").read
|
92
82
|
|
93
|
-
Validator.nu(html_fixture).should == fixture
|
83
|
+
Validator.nu(html_fixture).force_encoding("UTF-8").should == fixture
|
94
84
|
end
|
95
85
|
|
96
86
|
it "should receive a precise error result" do
|
97
87
|
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/precise-error-post.json").read
|
98
88
|
html_fixture = File.open("#{File.dirname(__FILE__)}/fixtures/precise-error.html").read
|
99
89
|
|
100
|
-
Validator.nu(html_fixture).should == fixture
|
90
|
+
Validator.nu(html_fixture).force_encoding("UTF-8").should == fixture
|
101
91
|
end
|
102
92
|
|
103
93
|
it "should receive a range error result" do
|
104
94
|
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/range-error-post.json").read
|
105
95
|
html_fixture = File.open("#{File.dirname(__FILE__)}/fixtures/range-error.html").read
|
106
96
|
|
107
|
-
Validator.nu(html_fixture).should == fixture
|
97
|
+
Validator.nu(html_fixture).force_encoding("UTF-8").should == fixture
|
108
98
|
end
|
109
99
|
|
110
100
|
it "should receive a fatal error result" do
|
111
101
|
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/fatal-error-post.json").read
|
112
102
|
html_fixture = File.open("#{File.dirname(__FILE__)}/fixtures/fatal-error.html").read
|
113
|
-
Validator.nu( html_fixture,
|
103
|
+
Validator.nu( html_fixture, {
|
104
|
+
:content_type => 'application/xhtml+xml'
|
105
|
+
}).force_encoding("UTF-8").should == fixture
|
114
106
|
end
|
115
107
|
|
116
108
|
end
|
@@ -119,7 +111,9 @@ describe Validator do
|
|
119
111
|
fixture = File.open("#{File.dirname(__FILE__)}/fixtures/info-post.json").read
|
120
112
|
html_fixture = File.open("#{File.dirname(__FILE__)}/fixtures/info.svg").read
|
121
113
|
|
122
|
-
Validator.nu(html_fixture,
|
114
|
+
Validator.nu(html_fixture, {
|
115
|
+
:content_type => 'image/svg+xml', :gzip => true
|
116
|
+
}).force_encoding("UTF-8").should == fixture
|
123
117
|
|
124
118
|
end
|
125
119
|
|
data/validator.nu.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "validator.nu"
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["David Rice"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2013-01-15"
|
13
13
|
s.description = "ruby client library for the validator.nu HTML5 validation API"
|
14
14
|
s.email = "me@davidjrice.co.uk"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -18,6 +18,9 @@ Gem::Specification.new do |s|
|
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
|
+
".travis.yml",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
21
24
|
"LICENSE",
|
22
25
|
"README.rdoc",
|
23
26
|
"Rakefile",
|
@@ -45,22 +48,41 @@ Gem::Specification.new do |s|
|
|
45
48
|
"spec/fixtures/warning.json",
|
46
49
|
"spec/spec_helper.rb",
|
47
50
|
"spec/validator_spec.rb",
|
48
|
-
"test/helper.rb",
|
49
|
-
"test/test_validator.nu.rb",
|
50
51
|
"validator.nu.gemspec"
|
51
52
|
]
|
52
53
|
s.homepage = "http://github.com/davidjrice/validator.nu"
|
53
54
|
s.require_paths = ["lib"]
|
54
|
-
s.rubygems_version = "1.8.
|
55
|
+
s.rubygems_version = "1.8.24"
|
55
56
|
s.summary = "ruby client library for the validator.nu HTML5 validation API"
|
56
57
|
|
57
58
|
if s.respond_to? :specification_version then
|
58
59
|
s.specification_version = 3
|
59
60
|
|
60
61
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
62
|
+
s.add_runtime_dependency(%q<validator.nu>, [">= 0"])
|
63
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
64
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
65
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
66
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
67
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
68
|
+
s.add_runtime_dependency(%q<yajl-ruby>, ["= 1.1.0"])
|
61
69
|
else
|
70
|
+
s.add_dependency(%q<validator.nu>, [">= 0"])
|
71
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
72
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
73
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
74
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
75
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
76
|
+
s.add_dependency(%q<yajl-ruby>, ["= 1.1.0"])
|
62
77
|
end
|
63
78
|
else
|
79
|
+
s.add_dependency(%q<validator.nu>, [">= 0"])
|
80
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
81
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
82
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
83
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
84
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
85
|
+
s.add_dependency(%q<yajl-ruby>, ["= 1.1.0"])
|
64
86
|
end
|
65
87
|
end
|
66
88
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validator.nu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,120 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
dependencies:
|
12
|
+
date: 2013-01-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: validator.nu
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rspec
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rspec
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: yajl-ruby
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - '='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.1.0
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - '='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 1.1.0
|
14
126
|
description: ruby client library for the validator.nu HTML5 validation API
|
15
127
|
email: me@davidjrice.co.uk
|
16
128
|
executables: []
|
@@ -20,6 +132,9 @@ extra_rdoc_files:
|
|
20
132
|
- README.rdoc
|
21
133
|
files:
|
22
134
|
- .document
|
135
|
+
- .travis.yml
|
136
|
+
- Gemfile
|
137
|
+
- Gemfile.lock
|
23
138
|
- LICENSE
|
24
139
|
- README.rdoc
|
25
140
|
- Rakefile
|
@@ -47,8 +162,6 @@ files:
|
|
47
162
|
- spec/fixtures/warning.json
|
48
163
|
- spec/spec_helper.rb
|
49
164
|
- spec/validator_spec.rb
|
50
|
-
- test/helper.rb
|
51
|
-
- test/test_validator.nu.rb
|
52
165
|
- validator.nu.gemspec
|
53
166
|
homepage: http://github.com/davidjrice/validator.nu
|
54
167
|
licenses: []
|
@@ -62,6 +175,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
175
|
- - ! '>='
|
63
176
|
- !ruby/object:Gem::Version
|
64
177
|
version: '0'
|
178
|
+
segments:
|
179
|
+
- 0
|
180
|
+
hash: -1447407546592341601
|
65
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
182
|
none: false
|
67
183
|
requirements:
|
@@ -70,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
186
|
version: '0'
|
71
187
|
requirements: []
|
72
188
|
rubyforge_project:
|
73
|
-
rubygems_version: 1.8.
|
189
|
+
rubygems_version: 1.8.24
|
74
190
|
signing_key:
|
75
191
|
specification_version: 3
|
76
192
|
summary: ruby client library for the validator.nu HTML5 validation API
|
data/test/helper.rb
DELETED
data/test/test_validator.nu.rb
DELETED