dm-datastore-adapter 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'merb-core'
5
5
  require 'merb-core/tasks/merb'
6
6
 
7
7
  GEM_NAME = "dm-datastore-adapter"
8
- GEM_VERSION = "0.2.1"
8
+ GEM_VERSION = "0.2.2"
9
9
  AUTHOR = "Genki Takiuchi"
10
10
  EMAIL = "genki@s21g.com"
11
11
  HOMEPAGE = "http://jmerbist.appspot.com/"
@@ -197,8 +197,8 @@ module DataMapper
197
197
  raise InvalidConditionError,
198
198
  "OR condition is allowed only for :eql operator"
199
199
  end
200
- value[1..-1].each{|v| yield(:eql, property, v)}
201
- value = value.first
200
+ value, *posis = *value
201
+ yield(:eql, property, posis) unless posis.empty?
202
202
  end
203
203
  q = q.add_filter(property.field, ds_op, value)
204
204
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-datastore-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Takiuchi