xpather 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/xpather/xpather.c +6 -0
- metadata +2 -2
data/ext/xpather/xpather.c
CHANGED
@@ -102,6 +102,11 @@ static VALUE initialize(VALUE self, VALUE xmlStr)
|
|
102
102
|
return self;
|
103
103
|
}
|
104
104
|
|
105
|
+
static VALUE xml_str(VALUE self)
|
106
|
+
{
|
107
|
+
return rb_iv_get(self, "@xml_str");
|
108
|
+
}
|
109
|
+
|
105
110
|
VALUE constructor(VALUE self, VALUE xmlStr)
|
106
111
|
{
|
107
112
|
xmlDocPtr doc;
|
@@ -128,4 +133,5 @@ void Init_xpather(void)
|
|
128
133
|
rb_define_method(klass, "initialize", initialize, 1);
|
129
134
|
rb_define_method(klass, "search", search, 1);
|
130
135
|
rb_define_method(klass, "get", get, 1);
|
136
|
+
rb_define_method(klass, "xml_str", xml_str, 0);
|
131
137
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xpather
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
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: 2012-09-
|
12
|
+
date: 2012-09-18 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Quick and painless XPath searching for Ruby using libxml2
|
15
15
|
email:
|