nokogiri-maglev- 1.5.5 → 1.5.5.20120817130721
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/nokogiri/xml_node.c +2 -2
- data/ext/nokogiri/xml_xpath_context.c +7 -7
- metadata +54 -54
data/ext/nokogiri/xml_node.c
CHANGED
@@ -1386,8 +1386,8 @@ VALUE Nokogiri_wrap_xml_node(VALUE klass, xmlNodePtr node)
|
|
1386
1386
|
|
1387
1387
|
mark_method = node_has_a_document ? mark : NULL ;
|
1388
1388
|
|
1389
|
-
if (DOC_RUBY_OBJECT_TEST(
|
1390
|
-
VALUE ref = DOC_RUBY_OBJECT(
|
1389
|
+
if (DOC_RUBY_OBJECT_TEST(doc)) { // maglev workaround , no gc mark
|
1390
|
+
VALUE ref = DOC_RUBY_OBJECT(doc);
|
1391
1391
|
if (ref != 0 && ref != Qnil && sym_iv_doc != Qnil) {
|
1392
1392
|
rb_node = Data_Wrap_Struct(klass, NULL, debug_node_dealloc, node) ;
|
1393
1393
|
rb_ivar_set(rb_node, sym_iv_doc, ref);
|
@@ -62,7 +62,7 @@ void Nokogiri_marshal_xpath_funcall_and_return_values(xmlXPathParserContextPtr c
|
|
62
62
|
assert(ctx->context->doc);
|
63
63
|
assert(DOC_RUBY_OBJECT_TEST(ctx->context->doc));
|
64
64
|
|
65
|
-
|
65
|
+
argv = (VALUE *)calloc((size_t)nargs, sizeof(VALUE));
|
66
66
|
// for (i = 0 ; i < nargs ; ++i) {
|
67
67
|
// rb_gc_register_address(&argv[i]);
|
68
68
|
// }
|
@@ -75,19 +75,19 @@ void Nokogiri_marshal_xpath_funcall_and_return_values(xmlXPathParserContextPtr c
|
|
75
75
|
obj = valuePop(ctx);
|
76
76
|
switch(obj->type) {
|
77
77
|
case XPATH_STRING:
|
78
|
-
|
78
|
+
argv[i] = NOKOGIRI_STR_NEW2(obj->stringval);
|
79
79
|
break;
|
80
80
|
case XPATH_BOOLEAN:
|
81
|
-
|
81
|
+
argv[i] = obj->boolval == 1 ? Qtrue : Qfalse;
|
82
82
|
break;
|
83
83
|
case XPATH_NUMBER:
|
84
|
-
|
84
|
+
argv[i] = rb_float_new(obj->floatval);
|
85
85
|
break;
|
86
86
|
case XPATH_NODESET:
|
87
|
-
|
87
|
+
argv[i] = Nokogiri_wrap_xml_node_set(obj->nodesetval, doc);
|
88
88
|
break;
|
89
89
|
default:
|
90
|
-
|
90
|
+
argv[i] = NOKOGIRI_STR_NEW2(xmlXPathCastToString(obj));
|
91
91
|
}
|
92
92
|
xmlXPathFreeNodeSetList(obj);
|
93
93
|
} while(i-- > 0);
|
@@ -98,7 +98,7 @@ void Nokogiri_marshal_xpath_funcall_and_return_values(xmlXPathParserContextPtr c
|
|
98
98
|
// for (i = 0 ; i < nargs ; ++i) {
|
99
99
|
// rb_gc_unregister_address(&argv[i]);
|
100
100
|
//}
|
101
|
-
|
101
|
+
free(argv);
|
102
102
|
|
103
103
|
MagRubyType tp = TYPE(result) ; // maglev debugging
|
104
104
|
switch(tp) {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nokogiri-maglev-
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.5
|
4
|
+
version: 1.5.5.20120817130721
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,11 +12,11 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2012-08-
|
15
|
+
date: 2012-08-17 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: hoe-bundler
|
19
|
-
requirement: &
|
19
|
+
requirement: &70176535987620 !ruby/object:Gem::Requirement
|
20
20
|
none: false
|
21
21
|
requirements:
|
22
22
|
- - ! '>='
|
@@ -24,10 +24,10 @@ dependencies:
|
|
24
24
|
version: '1.1'
|
25
25
|
type: :development
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *70176535987620
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: hoe-debugging
|
30
|
-
requirement: &
|
30
|
+
requirement: &70176535987040 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
33
|
- - ! '>='
|
@@ -35,10 +35,10 @@ dependencies:
|
|
35
35
|
version: 1.0.3
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
|
-
version_requirements: *
|
38
|
+
version_requirements: *70176535987040
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: hoe-gemspec
|
41
|
-
requirement: &
|
41
|
+
requirement: &70176535986480 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
44
|
- - ! '>='
|
@@ -46,10 +46,10 @@ dependencies:
|
|
46
46
|
version: '1.0'
|
47
47
|
type: :development
|
48
48
|
prerelease: false
|
49
|
-
version_requirements: *
|
49
|
+
version_requirements: *70176535986480
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: hoe-git
|
52
|
-
requirement: &
|
52
|
+
requirement: &70176535985680 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
55
|
- - ! '>='
|
@@ -57,10 +57,10 @@ dependencies:
|
|
57
57
|
version: '1.4'
|
58
58
|
type: :development
|
59
59
|
prerelease: false
|
60
|
-
version_requirements: *
|
60
|
+
version_requirements: *70176535985680
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: mini_portile
|
63
|
-
requirement: &
|
63
|
+
requirement: &70176536010160 !ruby/object:Gem::Requirement
|
64
64
|
none: false
|
65
65
|
requirements:
|
66
66
|
- - ! '>='
|
@@ -68,10 +68,10 @@ dependencies:
|
|
68
68
|
version: 0.2.2
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
|
-
version_requirements: *
|
71
|
+
version_requirements: *70176536010160
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: minitest
|
74
|
-
requirement: &
|
74
|
+
requirement: &70176536009680 !ruby/object:Gem::Requirement
|
75
75
|
none: false
|
76
76
|
requirements:
|
77
77
|
- - ~>
|
@@ -79,10 +79,10 @@ dependencies:
|
|
79
79
|
version: 2.2.2
|
80
80
|
type: :development
|
81
81
|
prerelease: false
|
82
|
-
version_requirements: *
|
82
|
+
version_requirements: *70176536009680
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
|
-
requirement: &
|
85
|
+
requirement: &70176536009100 !ruby/object:Gem::Requirement
|
86
86
|
none: false
|
87
87
|
requirements:
|
88
88
|
- - ! '>='
|
@@ -90,10 +90,10 @@ dependencies:
|
|
90
90
|
version: '0.9'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
|
-
version_requirements: *
|
93
|
+
version_requirements: *70176536009100
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
name: rake-compiler
|
96
|
-
requirement: &
|
96
|
+
requirement: &70176536008360 !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
99
99
|
- - =
|
@@ -101,10 +101,10 @@ dependencies:
|
|
101
101
|
version: 0.8.0
|
102
102
|
type: :development
|
103
103
|
prerelease: false
|
104
|
-
version_requirements: *
|
104
|
+
version_requirements: *70176536008360
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
106
|
name: racc
|
107
|
-
requirement: &
|
107
|
+
requirement: &70176536007680 !ruby/object:Gem::Requirement
|
108
108
|
none: false
|
109
109
|
requirements:
|
110
110
|
- - ! '>='
|
@@ -112,10 +112,10 @@ dependencies:
|
|
112
112
|
version: 1.4.6
|
113
113
|
type: :development
|
114
114
|
prerelease: false
|
115
|
-
version_requirements: *
|
115
|
+
version_requirements: *70176536007680
|
116
116
|
- !ruby/object:Gem::Dependency
|
117
117
|
name: rexical
|
118
|
-
requirement: &
|
118
|
+
requirement: &70176536007200 !ruby/object:Gem::Requirement
|
119
119
|
none: false
|
120
120
|
requirements:
|
121
121
|
- - ! '>='
|
@@ -123,10 +123,10 @@ dependencies:
|
|
123
123
|
version: 1.0.5
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
|
-
version_requirements: *
|
126
|
+
version_requirements: *70176536007200
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: rdoc
|
129
|
-
requirement: &
|
129
|
+
requirement: &70176536006700 !ruby/object:Gem::Requirement
|
130
130
|
none: false
|
131
131
|
requirements:
|
132
132
|
- - ~>
|
@@ -134,10 +134,10 @@ dependencies:
|
|
134
134
|
version: '3.10'
|
135
135
|
type: :development
|
136
136
|
prerelease: false
|
137
|
-
version_requirements: *
|
137
|
+
version_requirements: *70176536006700
|
138
138
|
- !ruby/object:Gem::Dependency
|
139
139
|
name: hoe
|
140
|
-
requirement: &
|
140
|
+
requirement: &70176536006140 !ruby/object:Gem::Requirement
|
141
141
|
none: false
|
142
142
|
requirements:
|
143
143
|
- - ~>
|
@@ -145,7 +145,7 @@ dependencies:
|
|
145
145
|
version: '2.16'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
|
-
version_requirements: *
|
148
|
+
version_requirements: *70176536006140
|
149
149
|
description: ! 'Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri''s
|
150
150
|
|
151
151
|
many features is the ability to search documents via XPath or CSS3 selectors.
|
@@ -180,30 +180,30 @@ extra_rdoc_files:
|
|
180
180
|
- ext/nokogiri/xml_entity_decl.c
|
181
181
|
- ext/nokogiri/xml_libxml2_hacks.c
|
182
182
|
- ext/nokogiri/xml_sax_parser.c
|
183
|
-
- ext/nokogiri/st.c
|
184
|
-
- ext/nokogiri/xml_reader.c
|
185
|
-
- ext/nokogiri/xml_relax_ng.c
|
186
|
-
- ext/nokogiri/xml_sax_push_parser.c
|
187
|
-
- ext/nokogiri/xml_schema.c
|
188
|
-
- ext/nokogiri/xml_syntax_error.c
|
189
183
|
- ext/nokogiri/html_document.c
|
190
184
|
- ext/nokogiri/html_sax_push_parser.c
|
191
|
-
- ext/nokogiri/
|
192
|
-
- ext/nokogiri/
|
193
|
-
- ext/nokogiri/xslt_stylesheet.c
|
194
|
-
- ext/nokogiri/xml_sax_parser_context.c
|
195
|
-
- ext/nokogiri/xml_node_set.c
|
196
|
-
- ext/nokogiri/html_sax_parser_context.c
|
185
|
+
- ext/nokogiri/nokogiri.c
|
186
|
+
- ext/nokogiri/st.c
|
197
187
|
- ext/nokogiri/xml_attr.c
|
198
188
|
- ext/nokogiri/xml_cdata.c
|
199
189
|
- ext/nokogiri/xml_comment.c
|
200
190
|
- ext/nokogiri/xml_document_fragment.c
|
201
191
|
- ext/nokogiri/xml_entity_reference.c
|
192
|
+
- ext/nokogiri/xml_io.c
|
193
|
+
- ext/nokogiri/xml_namespace.c
|
202
194
|
- ext/nokogiri/xml_processing_instruction.c
|
195
|
+
- ext/nokogiri/xml_reader.c
|
196
|
+
- ext/nokogiri/xml_relax_ng.c
|
197
|
+
- ext/nokogiri/xml_sax_push_parser.c
|
198
|
+
- ext/nokogiri/xml_schema.c
|
199
|
+
- ext/nokogiri/xml_syntax_error.c
|
203
200
|
- ext/nokogiri/xml_text.c
|
204
|
-
- ext/nokogiri/
|
201
|
+
- ext/nokogiri/html_sax_parser_context.c
|
202
|
+
- ext/nokogiri/xml_node_set.c
|
203
|
+
- ext/nokogiri/xml_sax_parser_context.c
|
204
|
+
- ext/nokogiri/xslt_stylesheet.c
|
205
205
|
- ext/nokogiri/xml_document.c
|
206
|
-
- ext/nokogiri/
|
206
|
+
- ext/nokogiri/xml_xpath_context.c
|
207
207
|
- ext/nokogiri/xml_node.c
|
208
208
|
files:
|
209
209
|
- .autotest
|
@@ -475,14 +475,14 @@ test_files:
|
|
475
475
|
- test/css/test_parser.rb
|
476
476
|
- test/css/test_xpath_visitor.rb
|
477
477
|
- test/decorators/test_slop.rb
|
478
|
-
- test/html/sax/test_parser_context.rb
|
479
478
|
- test/html/sax/test_parser.rb
|
479
|
+
- test/html/sax/test_parser_context.rb
|
480
480
|
- test/html/test_document_encoding.rb
|
481
481
|
- test/html/test_named_characters.rb
|
482
482
|
- test/html/test_node_encoding.rb
|
483
483
|
- test/html/test_builder.rb
|
484
|
-
- test/html/test_element_description.rb
|
485
484
|
- test/html/test_document_fragment.rb
|
485
|
+
- test/html/test_element_description.rb
|
486
486
|
- test/html/test_node.rb
|
487
487
|
- test/html/test_document.rb
|
488
488
|
- test/test_convert_xpath.rb
|
@@ -509,26 +509,26 @@ test_files:
|
|
509
509
|
- test/xml/test_builder.rb
|
510
510
|
- test/xml/test_c14n.rb
|
511
511
|
- test/xml/test_cdata.rb
|
512
|
+
- test/xml/test_document.rb
|
512
513
|
- test/xml/test_document_encoding.rb
|
513
|
-
- test/xml/
|
514
|
-
- test/xml/
|
514
|
+
- test/xml/test_document_fragment.rb
|
515
|
+
- test/xml/test_dtd.rb
|
515
516
|
- test/xml/test_node_inheritance.rb
|
517
|
+
- test/xml/test_node_reparenting.rb
|
518
|
+
- test/xml/test_node_set.rb
|
519
|
+
- test/xml/test_parse_options.rb
|
516
520
|
- test/xml/test_reader_encoding.rb
|
517
521
|
- test/xml/test_text.rb
|
518
522
|
- test/xml/test_unparented_node.rb
|
519
523
|
- test/xml/test_xinclude.rb
|
520
|
-
- test/xml/test_document_fragment.rb
|
521
|
-
- test/xml/test_node_set.rb
|
522
|
-
- test/xml/test_parse_options.rb
|
523
|
-
- test/xml/test_node.rb
|
524
|
-
- test/xml/test_dtd.rb
|
525
|
-
- test/xml/test_entity_reference.rb
|
526
|
-
- test/xml/test_node_reparenting.rb
|
527
524
|
- test/xml/test_xpath.rb
|
528
|
-
- test/xml/
|
525
|
+
- test/xml/test_entity_reference.rb
|
526
|
+
- test/xml/test_namespace.rb
|
527
|
+
- test/xml/test_node.rb
|
528
|
+
- test/xml/test_node_attributes.rb
|
529
529
|
- test/xslt/test_exception_handling.rb
|
530
530
|
- test/xslt/test_custom_functions.rb
|
531
|
-
- test/test_nokogiri.rb
|
532
531
|
- test/test_memory_leak.rb
|
533
|
-
- test/
|
532
|
+
- test/test_nokogiri.rb
|
534
533
|
- test/test_reader.rb
|
534
|
+
- test/test_xslt_transforms.rb
|