datagnan 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/datagnan.rb +4 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61cb1a3b24ff1ca759c01d5a5934f92ed8feaf21
|
4
|
+
data.tar.gz: 212dc29ae4e8d7c479b4ff13c207a5dddc4a8607
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39be95e5c5db5a4551ed636b9f516eb0239261286af2c2c50ca195a96094b0682f15c10367b0721d8e4310935b3ebbe48a8796453a8f86c476a2eee687e089ec
|
7
|
+
data.tar.gz: 2b364f95fe17e9ff0c58943fa131b69209488df1304a31ec4024d55ee8a92de0253688b4a12c24854970ea5214ab4836a9b4b6aa7e07f6633f9b2f548bea9717
|
data/lib/datagnan.rb
CHANGED
@@ -8,7 +8,10 @@ class Datagnan
|
|
8
8
|
## Constructor
|
9
9
|
def initialize(file_path, options = {}, locals = {})
|
10
10
|
## TODO: return fragment, not full html with auto-tags
|
11
|
-
@doc = Nokogiri::HTML(File.read(file_path))
|
11
|
+
@doc = Nokogiri::HTML(File.read(file_path)) do |config|
|
12
|
+
## Because "Tag header invalid" and many other HTML5 tags
|
13
|
+
config.noerror
|
14
|
+
end
|
12
15
|
puts @doc.errors if (@doc.errors.any?)
|
13
16
|
## debug
|
14
17
|
# puts "-- @doc = #{@doc}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datagnan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Popov
|
@@ -9,8 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-04-
|
13
|
-
dependencies:
|
12
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: nokogiri
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
14
28
|
description: Make HTML-templates without strange tags.
|
15
29
|
email: alex.wayfer@gmail.com
|
16
30
|
executables: []
|