meta_search 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitmodules +3 -3
- data/CHANGELOG +13 -0
- data/VERSION +1 -1
- data/lib/meta_search/utility.rb +6 -3
- data/meta_search.gemspec +4 -4
- metadata +11 -4
data/.gitmodules
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
[submodule "vendor/rails"]
|
2
|
-
path = vendor/rails
|
3
|
-
url = git://github.com/rails/rails.git
|
4
1
|
[submodule "vendor/arel"]
|
5
2
|
path = vendor/arel
|
6
3
|
url = git://github.com/rails/arel.git
|
4
|
+
[submodule "vendor/rails"]
|
5
|
+
path = vendor/rails
|
6
|
+
url = git://github.com/rails/rails.git
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
Changes since 0.9.1 (2010-08-24):
|
2
|
+
* Fix time column casts to account for current time zone.
|
3
|
+
|
4
|
+
Changes since 0.9.0 (2010-08-24):
|
5
|
+
* Fix the missing "2" in the Rails 3.0.0.rc2 dependency. Sorry!
|
6
|
+
|
7
|
+
Changes since 0.5.4 (2010-07-28):
|
8
|
+
* Fix equals Where against boolean columns
|
9
|
+
* Add is_true/is_false for booleans, is_present/is_blank for other types
|
10
|
+
* Add is_null/is_not_null for all types
|
11
|
+
* Remove deprecated metasearch_exclude_attr and friends
|
12
|
+
* delegate #size and #length to relation
|
13
|
+
|
1
14
|
Changes since 0.5.3 (2010-07-26):
|
2
15
|
* Add is_true/is_false for boolean columns
|
3
16
|
* Add is_present and is_blank for string/numeric columns
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.9.
|
1
|
+
0.9.2
|
data/lib/meta_search/utility.rb
CHANGED
@@ -37,11 +37,14 @@ module MetaSearch
|
|
37
37
|
Date.new(y,m,d) rescue nil
|
38
38
|
end
|
39
39
|
when *TIMES
|
40
|
-
if val.
|
41
|
-
val.to_time rescue nil
|
42
|
-
else
|
40
|
+
if val.is_a?(Array)
|
43
41
|
y, m, d, hh, mm, ss = *[val].flatten
|
44
42
|
Time.zone.local(y, m, d, hh, mm, ss) rescue nil
|
43
|
+
else
|
44
|
+
unless val.acts_like?(:time)
|
45
|
+
val = val.is_a?(String) ? Time.zone.parse(val) : val.to_time rescue val
|
46
|
+
end
|
47
|
+
val.in_time_zone rescue nil
|
45
48
|
end
|
46
49
|
when *BOOLEANS
|
47
50
|
ActiveRecord::ConnectionAdapters::Column.value_to_boolean(val)
|
data/meta_search.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{meta_search}
|
8
|
-
s.version = "0.9.
|
8
|
+
s.version = "0.9.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ernie Miller"]
|
12
|
-
s.date = %q{2010-08-
|
12
|
+
s.date = %q{2010-08-25}
|
13
13
|
s.description = %q{
|
14
14
|
Allows simple search forms to be created against an AR3 model
|
15
15
|
and its associations, has useful view helpers for sort links
|
@@ -62,7 +62,7 @@ Gem::Specification.new do |s|
|
|
62
62
|
s.homepage = %q{http://metautonomo.us/projects/metasearch/}
|
63
63
|
s.rdoc_options = ["--charset=UTF-8"]
|
64
64
|
s.require_paths = ["lib"]
|
65
|
-
s.rubygems_version = %q{1.3.
|
65
|
+
s.rubygems_version = %q{1.3.7}
|
66
66
|
s.summary = %q{ActiveRecord 3 object-based searching for your form_for enjoyment.}
|
67
67
|
s.test_files = [
|
68
68
|
"test/fixtures/company.rb",
|
@@ -80,7 +80,7 @@ Gem::Specification.new do |s|
|
|
80
80
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
81
81
|
s.specification_version = 3
|
82
82
|
|
83
|
-
if Gem::Version.new(Gem::
|
83
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
84
84
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
85
85
|
s.add_runtime_dependency(%q<activerecord>, ["~> 3.0.0.rc2"])
|
86
86
|
s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0.rc2"])
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
8
|
+
- 2
|
9
|
+
version: 0.9.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ernie Miller
|
@@ -14,13 +14,14 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-08-
|
17
|
+
date: 2010-08-25 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: shoulda
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
24
25
|
requirements:
|
25
26
|
- - ">="
|
26
27
|
- !ruby/object:Gem::Version
|
@@ -33,6 +34,7 @@ dependencies:
|
|
33
34
|
name: activerecord
|
34
35
|
prerelease: false
|
35
36
|
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
36
38
|
requirements:
|
37
39
|
- - ~>
|
38
40
|
- !ruby/object:Gem::Version
|
@@ -48,6 +50,7 @@ dependencies:
|
|
48
50
|
name: activesupport
|
49
51
|
prerelease: false
|
50
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
51
54
|
requirements:
|
52
55
|
- - ~>
|
53
56
|
- !ruby/object:Gem::Version
|
@@ -63,6 +66,7 @@ dependencies:
|
|
63
66
|
name: actionpack
|
64
67
|
prerelease: false
|
65
68
|
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
66
70
|
requirements:
|
67
71
|
- - ~>
|
68
72
|
- !ruby/object:Gem::Version
|
@@ -78,6 +82,7 @@ dependencies:
|
|
78
82
|
name: arel
|
79
83
|
prerelease: false
|
80
84
|
requirement: &id005 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
81
86
|
requirements:
|
82
87
|
- - ~>
|
83
88
|
- !ruby/object:Gem::Version
|
@@ -146,6 +151,7 @@ rdoc_options:
|
|
146
151
|
require_paths:
|
147
152
|
- lib
|
148
153
|
required_ruby_version: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
149
155
|
requirements:
|
150
156
|
- - ">="
|
151
157
|
- !ruby/object:Gem::Version
|
@@ -153,6 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
153
159
|
- 0
|
154
160
|
version: "0"
|
155
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
none: false
|
156
163
|
requirements:
|
157
164
|
- - ">="
|
158
165
|
- !ruby/object:Gem::Version
|
@@ -162,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
169
|
requirements: []
|
163
170
|
|
164
171
|
rubyforge_project:
|
165
|
-
rubygems_version: 1.3.
|
172
|
+
rubygems_version: 1.3.7
|
166
173
|
signing_key:
|
167
174
|
specification_version: 3
|
168
175
|
summary: ActiveRecord 3 object-based searching for your form_for enjoyment.
|