remodel-h 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -42,7 +42,7 @@ module Remodel
42
42
  raise EntityNotSaved unless @key
43
43
  Remodel.redis.hdel(@context, @key)
44
44
  instance_variables.each do |var|
45
- Remodel.redis.hdel(@context, var.sub('@association', @key)) if var =~ /^@association_/
45
+ Remodel.redis.hdel(@context, var.to_s.sub('@association', @key)) if var =~ /^@association_/
46
46
  end
47
47
  end
48
48
 
data/remodel-h.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{remodel-h}
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tim Lossen"]
12
- s.date = %q{2010-09-24}
12
+ s.date = %q{2010-10-28}
13
13
  s.default_executable = %q{redis-monitor.rb}
14
14
  s.description = %q{persist your objects to redis hashes.}
15
15
  s.email = %q{tim@lossen.de}
data/test/test_entity.rb CHANGED
@@ -14,8 +14,8 @@ class TestEntity < Test::Unit::TestCase
14
14
  context "new" do
15
15
  should "set properties" do
16
16
  foo = Foo.new('cx', :x => 1, :y => 2)
17
- assert 1, foo.x
18
- assert 2, foo.y
17
+ assert_equal 1, foo.x
18
+ assert_equal 2, foo.y
19
19
  end
20
20
 
21
21
  should "ignore undefined properties" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remodel-h
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Lossen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-09-24 00:00:00 +02:00
12
+ date: 2010-10-28 00:00:00 +02:00
13
13
  default_executable: redis-monitor.rb
14
14
  dependencies: []
15
15