nokogumbo 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,9 @@ 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
+ # link to the library to prevent: nokogumbo.c:(.text+0x26a): undefined reference to `Nokogiri_wrap_xml_document'
24
+ $LDFLAGS += " -L#{nokogiri_ext} -l:nokogiri.so"
22
25
  end
23
26
  end
24
27
 
@@ -18,7 +18,9 @@
18
18
 
19
19
  #ifndef GUMBO_ERROR_H_
20
20
  #define GUMBO_ERROR_H_
21
-
21
+ #ifdef _MSC_VER
22
+ #define _CRT_SECURE_NO_WARNINGS
23
+ #endif
22
24
  #include <stdint.h>
23
25
 
24
26
  #include "gumbo.h"
@@ -42,6 +42,11 @@
42
42
  #ifndef GUMBO_GUMBO_H_
43
43
  #define GUMBO_GUMBO_H_
44
44
 
45
+ #ifdef _MSC_VER
46
+ #define _CRT_SECURE_NO_WARNINGS
47
+ #define fileno _fileno
48
+ #endif
49
+
45
50
  #include <stdbool.h>
46
51
  #include <stddef.h>
47
52
 
@@ -19,10 +19,14 @@
19
19
 
20
20
  #ifndef GUMBO_UTIL_H_
21
21
  #define GUMBO_UTIL_H_
22
-
22
+ #ifdef _MSC_VER
23
+ #define _CRT_SECURE_NO_WARNINGS
24
+ #endif
23
25
  #include <stdbool.h>
24
26
  #include <stddef.h>
25
27
 
28
+
29
+
26
30
  #ifdef __cplusplus
27
31
  extern "C" {
28
32
  #endif
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogumbo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Sam Ruby
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-04-07 00:00:00.000000000 Z
12
+ date: 2014-06-05 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: nokogiri
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ! '>='
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ! '>='
25
28
  - !ruby/object:Gem::Version
@@ -65,25 +68,26 @@ files:
65
68
  homepage: https://github.com/rubys/nokogumbo/#readme
66
69
  licenses:
67
70
  - Apache 2.0
68
- metadata: {}
69
71
  post_install_message:
70
72
  rdoc_options: []
71
73
  require_paths:
72
74
  - lib
73
75
  required_ruby_version: !ruby/object:Gem::Requirement
76
+ none: false
74
77
  requirements:
75
78
  - - ! '>='
76
79
  - !ruby/object:Gem::Version
77
80
  version: '0'
78
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
+ none: false
79
83
  requirements:
80
84
  - - ! '>='
81
85
  - !ruby/object:Gem::Version
82
86
  version: '0'
83
87
  requirements: []
84
88
  rubyforge_project:
85
- rubygems_version: 2.0.7
89
+ rubygems_version: 1.8.23
86
90
  signing_key:
87
- specification_version: 4
91
+ specification_version: 3
88
92
  summary: Nokogiri interface to the Gumbo HTML5 parser
89
93
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTlkMTQ4NDgzYWU1Y2U0Nzk4Mjk5MjZkNjJkMDI0Mjg1MDRjMjZlMg==
5
- data.tar.gz: !binary |-
6
- Njg0ZWQwNTY5MGM0MDdjYTkxNjU0YTM4YTJkOGRlMzU1MmIxMmE5OQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- N2NhMDEwY2QwODBlMjMxYmNjODUyYjJkMGMxODQ3NDc3OTM2YzA5ZjYyN2Jl
10
- YjhjN2VkN2I0YTE5NjA4NjhjOWYwNzJlMThkOTlmYWM0YjYxMWViYmY0MDk1
11
- MzhhNzMyNGZlOTU0Njk0MDQ2MGZlZTlmNmJjODkwYWViOGE2MDQ=
12
- data.tar.gz: !binary |-
13
- NzRlODBjMWQ1MDhhODNjYWY5MTNlMDE5NmJhY2ZhYTg1Y2M3YmM1ZWNiOWM1
14
- N2I0YjhjNDkwOWUwYTMxODk3ODUxNGEyODg4MTU1ZDcxZGNjYjNmMDA3YTU4
15
- MWRhZTU5ZGU3MjgxMzlkOTJhMzE0NTNjMGZiNmYwMTBkYTFlZmE=