simply_stored 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Changelog
2
2
  =============
3
3
 
4
+ 0.6.4
5
+
6
+ - Restore Ruby 1.9.2 compatibility
7
+
4
8
  0.6.3
5
9
 
6
10
  - Compatible with CouchPotato 0.5.6
data/lib/simply_stored.rb CHANGED
@@ -5,7 +5,7 @@ unless defined?(SimplyStored)
5
5
  require File.expand_path(File.dirname(__FILE__) + '/simply_stored/class_methods_base')
6
6
 
7
7
  module SimplyStored
8
- VERSION = '0.6.3'
8
+ VERSION = '0.6.4'
9
9
  class Error < RuntimeError; end
10
10
  class RecordNotFound < RuntimeError; end
11
11
  end
@@ -80,7 +80,7 @@ module SimplyStored
80
80
  end
81
81
 
82
82
  define_method "#{name}_id=" do |new_foreign_id|
83
- super
83
+ super(new_foreign_id)
84
84
  value = instance_variable_get("@#{name}")
85
85
  remove_instance_variable("@#{name}") if instance_variable_defined?("@#{name}")
86
86
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simply_stored
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 3
10
- version: 0.6.3
9
+ - 4
10
+ version: 0.6.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mathias Meyer, Jonathan Weiss