kelredd-resourceful 0.5.0 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,7 @@ module Resourceful
31
31
 
32
32
  def push_resource(verb, path, opts, body, block)
33
33
  opts[:body] = body
34
+ opts[:force] = true
34
35
  call_resource(verb, path, opts, block)
35
36
  end
36
37
 
@@ -30,7 +30,12 @@ module Resourceful
30
30
 
31
31
  def attributes(force=false)
32
32
  if @attributes.nil? || force
33
- @attributes = @@attributes[self.class.name].inject({}) { |hsh, key| hsh[key] = self.send(key); hsh }
33
+ @attributes = {}
34
+ self.class.ancestors.each do |anc|
35
+ if @@attributes[anc.to_s]
36
+ @attributes.merge!(@@attributes[anc.to_s].inject({}) { |hsh, key| hsh[key] = self.send(key); hsh })
37
+ end
38
+ end
34
39
  end
35
40
  @attributes
36
41
  end
@@ -3,7 +3,7 @@ module Resourceful
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 5
6
- TINY = 0
6
+ TINY = 3
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-resourceful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Redding
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-11 00:00:00 -07:00
12
+ date: 2009-08-12 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency