dm-appengine 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +3 -5
  2. data/lib/appengine_adapter.rb +3 -3
  3. metadata +7 -4
data/Rakefile CHANGED
@@ -5,9 +5,7 @@ require 'date'
5
5
  require 'spec/rake/spectask'
6
6
 
7
7
  GEM = "dm-appengine"
8
- GEM_VERSION = "0.0.8"
9
- AUTHOR = "Ryan Brown"
10
- EMAIL = "ribrdb@gmail.com"
8
+ GEM_VERSION = "0.0.9"
11
9
  HOMEPAGE = "http://code.google.com/p/appengine-jruby"
12
10
  SUMMARY = "A DataMapper adapter for Google App Engine"
13
11
 
@@ -19,8 +17,8 @@ spec = Gem::Specification.new do |s|
19
17
  s.extra_rdoc_files = ["README.rdoc", "LICENSE"]
20
18
  s.summary = SUMMARY
21
19
  s.description = s.summary
22
- s.author = AUTHOR
23
- s.email = EMAIL
20
+ s.authors = ["Ryan Brown", "David Masover"]
21
+ s.email = ["ribrdb@google.com", "ninja@slaphack.com"]
24
22
  s.homepage = HOMEPAGE
25
23
 
26
24
  s.add_dependency("appengine-apis", ["~> 0.0.14"])
@@ -175,7 +175,7 @@ module DataMapper
175
175
  @must_be_get = false
176
176
  @keys = []
177
177
  @dm_query = query
178
- @adapter_name = adapter.name
178
+ @adapter = adapter
179
179
 
180
180
  @query = Datastore::Query.new(kind)
181
181
  parse_order(query.order)
@@ -195,7 +195,7 @@ module DataMapper
195
195
  if property.key?
196
196
  parse_key(property, value)
197
197
  else
198
- value
198
+ @adapter.convert_value(property, value)
199
199
  end
200
200
  end
201
201
 
@@ -388,7 +388,7 @@ module DataMapper
388
388
  end
389
389
 
390
390
  def run
391
- key_prop = @model.key(@adapter_name).first.field
391
+ key_prop = @model.key(@adapter.name).first.field
392
392
  entities = get_entities
393
393
  hashes = entities.map do |entity|
394
394
  entity_to_hash(key_prop, entity)
metadata CHANGED
@@ -5,16 +5,17 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ryan Brown
13
+ - David Masover
13
14
  autorequire: dm-appengine
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-12 00:00:00 -07:00
18
+ date: 2010-05-14 00:00:00 -07:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -46,7 +47,9 @@ dependencies:
46
47
  type: :runtime
47
48
  version_requirements: *id002
48
49
  description: A DataMapper adapter for Google App Engine
49
- email: ribrdb@gmail.com
50
+ email:
51
+ - ribrdb@google.com
52
+ - ninja@slaphack.com
50
53
  executables: []
51
54
 
52
55
  extensions: []