nunchaku 0.1.0 → 0.1.1
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.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/README.md +4 -4
- data/lib/nunchaku/checker.rb +1 -1
- data/lib/nunchaku/version.rb +1 -1
- data/nunchaku.gemspec +1 -2
- metadata +4 -17
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ddf5bc35da29a3edf8f2a56e1b574440bff21ff
|
|
4
|
+
data.tar.gz: adb9b9f66db78361eb081d2b24d8cb5a91bf06c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26884c9fb005cc9d5d705ad3b0e5048958c18ab669b18ad70d792f104b40071f390c500721325bfb7e8baa0774f1af585cd8fae7b886a9b1f2920e13dff1b0ad
|
|
7
|
+
data.tar.gz: d7e97333fd2f5390a893d68a9f1db22ce2160ccc1cede513af58962f08ca7f6109282e0aa26caa291eb52c0476eb8758f12d05daf698a1e22a3fa600a00cfa4e
|
data/.travis.yml
ADDED
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Nunchaku
|
|
1
|
+
# Nunchaku [](http://travis-ci.org/sitevalidator/nunchaku) [](https://codeclimate.com/github/sitevalidator/nunchaku) [](https://gemnasium.com/sitevalidator/nunchaku)
|
|
2
2
|
|
|
3
3
|
Nunchaku is a Ruby client for the [Nu HTML Checker](https://github.com/validator/validator). It lets you easily check HTML markup of web pages, by querying a remote instance of the checker.
|
|
4
4
|
|
|
@@ -32,7 +32,7 @@ Then, you can check the JSON response like this:
|
|
|
32
32
|
|
|
33
33
|
```ruby
|
|
34
34
|
checker.raw # {
|
|
35
|
-
# "url": "http://
|
|
35
|
+
# "url": "http://example.com",
|
|
36
36
|
# "messages": [{
|
|
37
37
|
# "type": "error",
|
|
38
38
|
# "lastLine": 73,
|
|
@@ -65,10 +65,10 @@ The `messages` array contains all messages returned by the checker, but you'll t
|
|
|
65
65
|
|
|
66
66
|
## Using an alternate server
|
|
67
67
|
|
|
68
|
-
By default, Nunchaku will query the Nu HTML Checker at
|
|
68
|
+
By default, Nunchaku will query the Nu HTML Checker at http://validator.w3.org/nu but you're encouraged to install your own instance and use it instead. You can follow the [Nu installation instructions](https://github.com/validator/validator) and then specify the alternate server like this:
|
|
69
69
|
|
|
70
70
|
```ruby
|
|
71
|
-
|
|
71
|
+
Nunchaku.check('http://example.com', checker_uri: 'http://yourchecker.com')
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
## Development
|
data/lib/nunchaku/checker.rb
CHANGED
data/lib/nunchaku/version.rb
CHANGED
data/nunchaku.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["jaimeiniesta@gmail.com"]
|
|
11
11
|
|
|
12
12
|
spec.summary = %q{Ruby client for the Nu HTML Checker}
|
|
13
|
-
spec.description = %q{Ruby client to check HTML markup using the Nu HTML Checker at
|
|
13
|
+
spec.description = %q{Ruby client to check HTML markup using the Nu HTML Checker at http://validator.w3.org/nu/}
|
|
14
14
|
spec.homepage = "https://github.com/sitevalidator/nunchaku"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
|
|
|
21
21
|
|
|
22
22
|
spec.add_runtime_dependency "httparty", "~> 0.13"
|
|
23
23
|
|
|
24
|
-
spec.add_development_dependency "bundler", "~> 1.8"
|
|
25
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
|
26
25
|
spec.add_development_dependency "rspec", "~> 3.2"
|
|
27
26
|
spec.add_development_dependency "webmock", "~> 1.20"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nunchaku
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jaime Iniesta
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-03-
|
|
11
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -24,20 +24,6 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '0.13'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: bundler
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.8'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '1.8'
|
|
41
27
|
- !ruby/object:Gem::Dependency
|
|
42
28
|
name: rake
|
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -80,7 +66,7 @@ dependencies:
|
|
|
80
66
|
- - "~>"
|
|
81
67
|
- !ruby/object:Gem::Version
|
|
82
68
|
version: '1.20'
|
|
83
|
-
description: Ruby client to check HTML markup using the Nu HTML Checker at
|
|
69
|
+
description: Ruby client to check HTML markup using the Nu HTML Checker at http://validator.w3.org/nu/
|
|
84
70
|
email:
|
|
85
71
|
- jaimeiniesta@gmail.com
|
|
86
72
|
executables: []
|
|
@@ -88,6 +74,7 @@ extensions: []
|
|
|
88
74
|
extra_rdoc_files: []
|
|
89
75
|
files:
|
|
90
76
|
- ".gitignore"
|
|
77
|
+
- ".travis.yml"
|
|
91
78
|
- CODE_OF_CONDUCT.md
|
|
92
79
|
- Gemfile
|
|
93
80
|
- LICENSE.txt
|