appengine-utils 0.1.7 → 0.1.8

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 CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
@@ -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.7"
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-09}
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.destroy(self.#{name}_id)
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
- #if valid?
76
- #end
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
@@ -97,8 +97,10 @@ describe DataMapper::Model::Relationship do
97
97
 
98
98
  key = model.test_blob_id
99
99
 
100
+ model.destroy
101
+
100
102
  @entity = AppEngineUtils::Datastore::Blob.new
101
- @entity.read(key).should_not be_nil
103
+ @entity.read(key).should be_nil
102
104
  end
103
105
  end
104
106
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 7
9
- version: 0.1.7
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-09 00:00:00 +01:00
17
+ date: 2011-02-14 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency