stax 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 114290434dd6869b24cff528e7a193520aad34d7190c0042858b8364748605b0
4
- data.tar.gz: 70fea7145038a87a63ae83777af9dc4048759981ce65fda13a8a66548c0f8a0b
3
+ metadata.gz: 06f8aeb89322dc7d31c7b5bdc699520b29b4d640940e7779e2ba2f77de75e601
4
+ data.tar.gz: 8166f68815882ecd5dd364833b0acb84191e3c134b887cea891303f096ce2a27
5
5
  SHA512:
6
- metadata.gz: d7fd0e06fac3252285f63bc4007a070c9b2cf6d399e80dd8d98f24f78d30f9bf6830728a6eaac626d55af8756e1785c06042d48064de5b53f398adad1af0fa58
7
- data.tar.gz: cf9c59e814662e30aa74635f3671c23e08c4be9a5dbbd2437b771feb9b051caf253a32715ae625366942a2730c14166faa1cb8198760fdd5695a2b9ebebc9e5c
6
+ metadata.gz: 03dd97bda322adaeef60bc55160d1b09975e142902720e7b17954174a727d839877e3c4239bbc793db7bcb21ab06b555698ac1e96be80b1eb726b5e3fcd96caf
7
+ data.tar.gz: a13960b0bc841d7d9da7fba25820b520a1deab724828387a3a6a09a04e1bb082cac578b129cf8a380b1b653c55fb3353e0121a7db17f6f0eefd757d7e15fbca6
data/lib/stax/base.rb CHANGED
@@ -27,7 +27,8 @@ module Stax
27
27
 
28
28
  ## find or create a stack object
29
29
  def stack(id)
30
- object = Stax.const_get(id.to_s.capitalize)
30
+ c = id.to_s.split(/[_-]/).map(&:capitalize).join # convert symbol to class string
31
+ object = Stax.const_get(c)
31
32
  ObjectSpace.each_object(object).first || object.new([], options)
32
33
  end
33
34
 
data/lib/stax/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Stax
2
- VERSION = '0.0.14'
2
+ VERSION = '0.0.15'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Lister