promiscuous 0.8.8 → 0.8.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ class Promiscuous::Publisher::Mock
23
23
  attr_accessor attr
24
24
  define_method("#{attr}=") do |value|
25
25
  instance_variable_set("@#{attr}", value)
26
- instance_variable_set("@#{attr}_id", value.id)
26
+ instance_variable_set("@#{attr}_id", value.nil? ? value : value.id)
27
27
  end
28
28
  end
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module Promiscuous
2
- VERSION = '0.8.8'
2
+ VERSION = '0.8.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promiscuous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.8
4
+ version: 0.8.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-13 00:00:00.000000000 Z
13
+ date: 2012-09-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport