datagnan 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/datagnan.rb +4 -1
  3. metadata +17 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f42662d14b652fc9a1a7893a01f899b0110bfad
4
- data.tar.gz: 90b00872e0458397ea67b4c3bde7160dc449a08b
3
+ metadata.gz: 61cb1a3b24ff1ca759c01d5a5934f92ed8feaf21
4
+ data.tar.gz: 212dc29ae4e8d7c479b4ff13c207a5dddc4a8607
5
5
  SHA512:
6
- metadata.gz: 8aaced078aecc27dad66a30074e2fad86e4a7445a6962e98b0eca6c54f6690f6e568ad7c14e964f6fe6471848377cb848e7d276d7142d009cbb72fa98980c26d
7
- data.tar.gz: cf76b2ab34cc0d65c894e9328205fa5df747862513d898a006d15475f0048b2d24bd37a1caf5962b70e294497b8b0558f97b2948afe91ce76596927ceb3e12b8
6
+ metadata.gz: 39be95e5c5db5a4551ed636b9f516eb0239261286af2c2c50ca195a96094b0682f15c10367b0721d8e4310935b3ebbe48a8796453a8f86c476a2eee687e089ec
7
+ data.tar.gz: 2b364f95fe17e9ff0c58943fa131b69209488df1304a31ec4024d55ee8a92de0253688b4a12c24854970ea5214ab4836a9b4b6aa7e07f6633f9b2f548bea9717
@@ -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.0
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-20 00:00:00.000000000 Z
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: []