dm-is-searchable 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.9.9 / 2009-01-04
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Use key.first instead of :id for search
6
+
1
7
  === 0.9.8 / 2008-12-07
2
8
 
3
9
  * No changes this version
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  require 'pathname'
4
4
 
5
5
  # Add all external dependencies for the plugin here
6
- gem 'dm-core', '~>0.9.8'
6
+ gem 'dm-core', '~>0.9.9'
7
7
  require 'dm-core'
8
8
 
9
9
  # Require plugin-files
@@ -30,7 +30,7 @@ module DataMapper
30
30
  def search(search_options = {}, options = {})
31
31
  docs = repository(@search_repository) { self.all(search_options) }
32
32
  ids = docs.collect { |doc| doc[:id] }
33
- self.all(options.merge(:id => ids))
33
+ self.all(options.merge(key.first => ids))
34
34
  end
35
35
  end # module ClassMethods
36
36
 
@@ -1,7 +1,7 @@
1
1
  module DataMapper
2
2
  module Is
3
3
  module Searchable
4
- VERSION = '0.9.8'
4
+ VERSION = '0.9.9'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-is-searchable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernerd Schaefer
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-07 00:00:00 -08:00
12
+ date: 2009-01-04 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 0.9.8
23
+ version: 0.9.9
24
24
  version:
25
25
  description: A DataMapper plugin for searching
26
26
  email: