nokogumbo 1.1.8 → 1.1.9

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.
Files changed (3) hide show
  1. data/README.md +2 -0
  2. data/ext/nokogumboc/extconf.rb +6 -1
  3. metadata +2 -2
data/README.md CHANGED
@@ -6,6 +6,8 @@ Nokogumbo provides the ability for a Ruby program to invoke the
6
6
  and to access the result as a
7
7
  [Nokogiri::HTML::Document](http://nokogiri.org/Nokogiri/HTML/Document.html).
8
8
 
9
+ [![Build Status](https://travis-ci.org/rubys/nokogumbo.svg)](https://travis-ci.org/rubys/nokogumbo)
10
+
9
11
  Usage
10
12
  -----
11
13
 
@@ -1,7 +1,7 @@
1
1
  require 'mkmf'
2
2
  $CFLAGS += " -std=c99"
3
3
 
4
- if have_library('xml2', 'xmlNewDoc')
4
+ if have_library('xml2', 'xmlNewDoc')
5
5
  # libxml2 libraries from http://www.xmlsoft.org/
6
6
  pkg_config('libxml-2.0')
7
7
 
@@ -19,6 +19,11 @@ if have_library('xml2', 'xmlNewDoc')
19
19
 
20
20
  # if found, enable direct calls to Nokogiri (and libxml2)
21
21
  $CFLAGS += ' -DNGLIB' if find_header('nokogiri.h', nokogiri_ext)
22
+
23
+ if File.exists?("/etc/gentoo-release")
24
+ # link to the library to prevent: nokogumbo.c:(.text+0x26a): undefined reference to `Nokogiri_wrap_xml_document'
25
+ $LDFLAGS += " -L#{nokogiri_ext} -l:nokogiri.so"
26
+ end
22
27
  end
23
28
  end
24
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogumbo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-06 00:00:00.000000000 Z
12
+ date: 2014-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri