xpather 0.1.1 → 0.1.2

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 (2) hide show
  1. data/ext/xpather/xpather.c +6 -0
  2. metadata +2 -2
@@ -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.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-17 00:00:00.000000000 Z
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: