eaal 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/eaal/result.rb +6 -2
  2. data/lib/eaal.rb +1 -1
  3. metadata +2 -2
data/lib/eaal/result.rb CHANGED
@@ -29,8 +29,12 @@ module EAAL
29
29
  end
30
30
 
31
31
  def to_hash
32
- hash = {}
33
- return hash.merge!(self.container)
32
+ if self.container == {}
33
+ vars = self.instance_variables
34
+ vars.delete_at(0) # delete container var name
35
+ vars.each {|v| self.container[v.to_s.gsub("@","")] = self.instance_variable_get v }
36
+ end
37
+ return self.container.dup
34
38
  end
35
39
  end
36
40
 
data/lib/eaal.rb CHANGED
@@ -35,7 +35,7 @@ require 'eaal/result'
35
35
  require 'eaal/rowset'
36
36
  module EAAL
37
37
  mattr_reader :version_string
38
- VERSION = "0.1.9" # fix for Hoe.spec 2.x
38
+ VERSION = "0.1.10" # fix for Hoe.spec 2.x
39
39
  @@version_string = "EAAL" + VERSION # the version string, used as client name in http requests
40
40
 
41
41
  mattr_accessor :api_base, :additional_request_parameters, :cache
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eaal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
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: 2012-08-31 00:00:00.000000000 Z
12
+ date: 2012-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport