dm-persevere-adapter 0.38.0 → 0.39.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.38.0
1
+ 0.39.0
@@ -24,6 +24,7 @@ module DataMapper
24
24
  json_hash = { "type" => tm[type][:primitive] }
25
25
  json_hash.merge!( tm[type].reject{ |key,value| key == :primitive } )
26
26
  json_hash.merge!({ "optional" => true }) unless required? == true
27
+ json_hash.merge!({ "unique" => true}) if unique? == true
27
28
  json_hash.merge!({"position" => @position }) unless @position.nil?
28
29
  # MIN
29
30
  # MAX
@@ -239,6 +239,13 @@ describe DataMapper::Adapters::PersevereAdapter do
239
239
  Bozon.all(:title => "Name with Space").length.should eql(1)
240
240
  end
241
241
 
242
+ it "should find by DateTime" do
243
+ b = Bozon.create(:title => "To Search with Date Time", :author => 'Bloo Reguard')
244
+ created_at_time = b.created_at
245
+ debugger
246
+ Bozon.all(:created_at => created_at_time).length.should eql(1)
247
+ end
248
+
242
249
  after(:all) do
243
250
  Bozon.auto_migrate_down!
244
251
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 38
7
+ - 39
8
8
  - 0
9
- version: 0.38.0
9
+ version: 0.39.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ivan R. Judson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-02-26 00:00:00 -07:00
18
+ date: 2010-03-01 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency