polyrex 0.8.22 → 0.8.23

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/lib/polyrex.rb +1 -2
  2. metadata +2 -2
data/lib/polyrex.rb CHANGED
@@ -162,7 +162,7 @@ class Polyrex
162
162
 
163
163
  def polyrex_new(schema)
164
164
  # -- required for the parsing feature
165
- doc = Rexle.new(PolyrexSchema.new(schema).to_s)
165
+ doc = PolyrexSchema.new(schema).to_doc
166
166
  @format_masks = doc.root.xpath('//format_mask/text()')
167
167
 
168
168
  schema_rpath = schema.gsub(/\[[^\]]+\]/,'')
@@ -262,7 +262,6 @@ class Polyrex
262
262
 
263
263
  if line[/\w+\s*---/] then
264
264
 
265
- yaml = YAML.load x.join("\n")
266
265
  node_name = line.sub(/\s*---/,'')
267
266
  ynode = Rexle::Element.new(node_name).add_text("---\n" + x.join("\n"))
268
267
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: polyrex
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.22
5
+ version: 0.8.23
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-07-27 00:00:00 Z
13
+ date: 2012-11-11 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: polyrex-schema