appengine-utils 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/appengine-utils.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{appengine-utils}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Marcel Schlimper"]
|
12
|
-
s.date = %q{2011-02-
|
12
|
+
s.date = %q{2011-02-14}
|
13
13
|
s.description = %q{some helper and util stuff for the jruby wrapper for the google app engine to make life easy}
|
14
14
|
s.email = %q{mschlimp@googlemail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -58,7 +58,7 @@ module DataMapper
|
|
58
58
|
def before_save_#{name}
|
59
59
|
if self.#{name}_id
|
60
60
|
blob = AppEngineUtils::Datastore::Blob.new
|
61
|
-
blob.
|
61
|
+
blob.delete(self.#{name}_id)
|
62
62
|
end
|
63
63
|
if #{name}
|
64
64
|
blob = AppEngineUtils::Datastore::Blob.new
|
@@ -72,8 +72,10 @@ module DataMapper
|
|
72
72
|
def add_before_destroy_method(name)
|
73
73
|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
74
74
|
def before_destroy_#{name}
|
75
|
-
|
76
|
-
|
75
|
+
if self.#{name}_id
|
76
|
+
blob = AppEngineUtils::Datastore::Blob.new
|
77
|
+
blob.delete(self.#{name}_id)
|
78
|
+
end
|
77
79
|
end
|
78
80
|
RUBY
|
79
81
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 8
|
9
|
+
version: 0.1.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Marcel Schlimper
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-02-
|
17
|
+
date: 2011-02-14 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|