remodel-h 0.2.9 → 0.2.10
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.
- data/VERSION +1 -1
- data/lib/remodel/entity.rb +3 -5
- metadata +3 -4
- data/remodel-h.gemspec +0 -73
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.10
|
data/lib/remodel/entity.rb
CHANGED
@@ -41,11 +41,9 @@ module Remodel
|
|
41
41
|
|
42
42
|
def delete
|
43
43
|
raise EntityNotSaved unless @key
|
44
|
-
Remodel.redis.
|
45
|
-
|
46
|
-
|
47
|
-
Remodel.redis.hdel(@context, "#{@key}_#{name}")
|
48
|
-
end
|
44
|
+
Remodel.redis.hdel(@context, @key)
|
45
|
+
self.class.associations.each do |name|
|
46
|
+
Remodel.redis.hdel(@context, "#{@key}_#{name}")
|
49
47
|
end
|
50
48
|
end
|
51
49
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 10
|
9
|
+
version: 0.2.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tim Lossen
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
17
|
+
date: 2011-05-18 00:00:00 +02:00
|
18
18
|
default_executable: redis-monitor.rb
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -40,7 +40,6 @@ files:
|
|
40
40
|
- lib/remodel/entity.rb
|
41
41
|
- lib/remodel/has_many.rb
|
42
42
|
- lib/remodel/mapper.rb
|
43
|
-
- remodel-h.gemspec
|
44
43
|
- test/helper.rb
|
45
44
|
- test/test_entity.rb
|
46
45
|
- test/test_entity_defaults.rb
|
data/remodel-h.gemspec
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{remodel-h}
|
8
|
-
s.version = "0.2.9"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Tim Lossen"]
|
12
|
-
s.date = %q{2011-04-18}
|
13
|
-
s.default_executable = %q{redis-monitor.rb}
|
14
|
-
s.description = %q{persist your objects to redis hashes.}
|
15
|
-
s.email = %q{tim@lossen.de}
|
16
|
-
s.executables = ["redis-monitor.rb"]
|
17
|
-
s.extra_rdoc_files = [
|
18
|
-
"LICENSE",
|
19
|
-
"README.md"
|
20
|
-
]
|
21
|
-
s.files = [
|
22
|
-
"LICENSE",
|
23
|
-
"README.md",
|
24
|
-
"Rakefile",
|
25
|
-
"VERSION",
|
26
|
-
"bin/redis-monitor.rb",
|
27
|
-
"docs/docco.css",
|
28
|
-
"docs/remodel.html",
|
29
|
-
"example/book.rb",
|
30
|
-
"lib/remodel-h.rb",
|
31
|
-
"lib/remodel/entity.rb",
|
32
|
-
"lib/remodel/has_many.rb",
|
33
|
-
"lib/remodel/mapper.rb",
|
34
|
-
"remodel-h.gemspec",
|
35
|
-
"test/helper.rb",
|
36
|
-
"test/test_entity.rb",
|
37
|
-
"test/test_entity_defaults.rb",
|
38
|
-
"test/test_entity_delete.rb",
|
39
|
-
"test/test_many_to_many.rb",
|
40
|
-
"test/test_many_to_one.rb",
|
41
|
-
"test/test_mappers.rb",
|
42
|
-
"test/test_monkeypatches.rb",
|
43
|
-
"test/test_one_to_many.rb",
|
44
|
-
"test/test_one_to_one.rb"
|
45
|
-
]
|
46
|
-
s.homepage = %q{http://github.com/tlossen/remodel}
|
47
|
-
s.require_paths = ["lib"]
|
48
|
-
s.rubygems_version = %q{1.3.7}
|
49
|
-
s.summary = %q{remodel variant which uses hashes}
|
50
|
-
s.test_files = [
|
51
|
-
"test/helper.rb",
|
52
|
-
"test/test_entity.rb",
|
53
|
-
"test/test_entity_defaults.rb",
|
54
|
-
"test/test_entity_delete.rb",
|
55
|
-
"test/test_many_to_many.rb",
|
56
|
-
"test/test_many_to_one.rb",
|
57
|
-
"test/test_mappers.rb",
|
58
|
-
"test/test_monkeypatches.rb",
|
59
|
-
"test/test_one_to_many.rb",
|
60
|
-
"test/test_one_to_one.rb"
|
61
|
-
]
|
62
|
-
|
63
|
-
if s.respond_to? :specification_version then
|
64
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
65
|
-
s.specification_version = 3
|
66
|
-
|
67
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
68
|
-
else
|
69
|
-
end
|
70
|
-
else
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|