filebase 0.3.5 → 0.3.6

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.
Files changed (2) hide show
  1. data/lib/filebase/model.rb +1 -1
  2. metadata +1 -1
@@ -29,7 +29,7 @@ class Filebase
29
29
  def []( key ) ; find( key ) ; end
30
30
  def save( object )
31
31
  raise( Filebase::Error.new, 'attempted to save an object with nil key' ) if object.key.nil? or object.key.empty?
32
- db.save( object.key, object.to_h )
32
+ db.save( object.key, object.to_h ) and object
33
33
  end
34
34
  def delete( object )
35
35
  raise( Filebase::Error.new, 'attempted to delete an object with nil key' ) if object.key.nil? or object.key.empty?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filebase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Yoder