rmpd 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rmpd/response.rb CHANGED
@@ -128,8 +128,8 @@ module Rmpd
128
128
  value.split(":", 3).map(&:to_i)
129
129
  end
130
130
 
131
- def define_getter(key)
132
- self.class.send(:define_method, key.to_s.gsub(/-/, "_")) {self[key]}
131
+ def define_getter(key, instance=self)
132
+ instance.class.send(:define_method, key.to_s.gsub(/-/, "_")) {self[key]}
133
133
  end
134
134
 
135
135
  end
@@ -159,7 +159,7 @@ module Rmpd
159
159
  else
160
160
  @first_key ||= key
161
161
  @temp[key] = val
162
- define_getter(key)
162
+ define_getter(key, @temp)
163
163
  end
164
164
  end
165
165
 
data/lib/rmpd/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rmpd
2
- VERSION = "1.1.7"
2
+ VERSION = "1.1.8"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmpd
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 7
10
- version: 1.1.7
9
+ - 8
10
+ version: 1.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eric Wollesen