customized-mongomapper-search 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGE_LOG CHANGED
@@ -1,3 +1,7 @@
1
+ 1.0.1
2
+ ------
3
+ - Changed the output format of attributes of class type Time so that it complies with Solr's date field type. The output format is now %Y-%m-%dT%H:%M:%SZ. e.g. 2001-06-11T00:00:00Z
4
+
1
5
  1.0.0
2
6
  ------
3
7
  - Major refactoring was done to modularize search. This should minimize the code that needs to be changed in the model if the modeling framework is to be switched. The search code is more generalized to accommodate Rails 3 attribute access that isn't specific to Mongo Mapper.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('customized-mongomapper-search', '1.0.0') do |p|
5
+ Echoe.new('customized-mongomapper-search', '1.0.1') do |p|
6
6
  p.description = "Easily integreate mongo mapper with enterprise search like solr. Based off of the original mongomapper-search gem (version 0.1.0) that written by Fernando Meyer and can be found at http://github.com/fmeyer/mongomapper-search."
7
7
  p.url = "http://github.com/tsxn26/customized-mongomapper-search"
8
8
  p.author = ["Thomas Nguyen"]
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{customized-mongomapper-search}
5
- s.version = "1.0.0"
5
+ s.version = "1.0.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Thomas Nguyen"]
9
- s.date = %q{2010-06-01}
9
+ s.date = %q{2010-06-11}
10
10
  s.description = %q{Easily integreate mongo mapper with enterprise search like solr. Based off of the original mongomapper-search gem (version 0.1.0) that written by Fernando Meyer and can be found at http://github.com/fmeyer/mongomapper-search.}
11
11
  s.email = %q{tsxn26@gmail.com}
12
12
  s.extra_rdoc_files = ["README.rdoc", "lib/customized-mongomapper-search.rb", "lib/search/indexable.rb", "lib/search/searchable.rb"]
@@ -90,6 +90,7 @@ module Search
90
90
  if self.class.idx_attrs != nil
91
91
  self.class.idx_attrs.each_pair do |x,y|
92
92
  fields[y] = self.attributes[x]
93
+ fields[y] = fields[y].strftime("%Y-%m-%dT%H:%M:%SZ") if fields[y].is_a?(Time)
93
94
  end
94
95
  end
95
96
  fields
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: customized-mongomapper-search
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 1
10
+ version: 1.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thomas Nguyen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-01 00:00:00 -07:00
18
+ date: 2010-06-11 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency