wx_sugar 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/wx_sugar/version.rb +1 -1
- data/lib/wx_sugar/xrc/xml_resource.rb +3 -0
- metadata +2 -2
data/lib/wx_sugar/version.rb
CHANGED
@@ -8,6 +8,9 @@ class XRCResource
|
|
8
8
|
def initialize(xrc_file)
|
9
9
|
@xrc_file = xrc_file
|
10
10
|
xml_content = File.read(xrc_file)
|
11
|
+
# workaround for an ?bug in recent REXML, which fails to match
|
12
|
+
# certain XPath expressions when xmlns is declared
|
13
|
+
xml_content.sub!(/xmlns="[^"]+"/, '')
|
11
14
|
@xml_doc = REXML::Document.new(xml_content)
|
12
15
|
@classes = []
|
13
16
|
REXML::XPath.each(@xml_doc.root, "/resource/object") do | elem |
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: wx_sugar
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.1.19
|
7
|
+
date: 2007-11-08 00:00:00 +00:00
|
8
8
|
summary: Syntax extensions for WxRuby.
|
9
9
|
require_paths:
|
10
10
|
- lib
|