wsdsl 0.3.0 → 0.3.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/lib/response.rb CHANGED
@@ -309,7 +309,12 @@ class WSDSL
309
309
  meta_attribute({name => type}.merge(opts))
310
310
  else
311
311
  # with a fallback to the @type ivar
312
- meta_attributes.find{|att| att.type == type} || @type
312
+ meta = meta_attributes.find{|att| att.type == type}
313
+ if meta
314
+ meta.value
315
+ else
316
+ instance_variable_get("@#{type}")
317
+ end
313
318
  end
314
319
  end
315
320
 
@@ -87,6 +87,8 @@ describe "WSDSL JSON response description" do
87
87
  meta.should_not be_nil
88
88
  meta.value.should == value
89
89
  end
90
+ @root_node.key.should == :id
91
+ @root_node.type.should == :Voucher
90
92
  end
91
93
 
92
94
  end
data/wsdsl.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wsdsl}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Matt Aimonetti}]
12
- s.date = %q{2011-09-09}
12
+ s.date = %q{2011-09-10}
13
13
  s.description = %q{A Ruby DSL describing Web Services without implementation details.}
14
14
  s.email = %q{mattaimonetti@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wsdsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
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: 2011-09-09 00:00:00.000000000Z
12
+ date: 2011-09-10 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: A Ruby DSL describing Web Services without implementation details.
15
15
  email: mattaimonetti@gmail.com