wx_sugar 0.1.18 → 0.1.19

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.
@@ -1,3 +1,3 @@
1
1
  module WxSugar
2
- VERSION = '0.1.18'
2
+ VERSION = '0.1.19'
3
3
  end
@@ -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.18
7
- date: 2007-10-23 00:00:00 +01:00
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