searchlogic 2.5.7 → 2.5.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 5
4
- :patch: 7
4
+ :patch: 8
5
5
  :build: !!null
@@ -101,13 +101,12 @@ module Searchlogic
101
101
 
102
102
  if Time.zone && casted_value.is_a?(Time)
103
103
  if value.is_a?(String)
104
- (casted_value + (Time.zone.utc_offset * -1)).in_time_zone
104
+ # if its a string, we should assume the user means the local time
105
+ # we need to update the object to include the proper time zone without changing
106
+ # the time
107
+ (casted_value + (Time.zone.utc_offset * -1)).in_time_zone(Time.zone)
105
108
  else
106
- if options[:skip_conversion]
107
- casted_value.utc
108
- else
109
- casted_value.in_time_zone
110
- end
109
+ casted_value.in_time_zone
111
110
  end
112
111
  else
113
112
  casted_value
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{searchlogic}
8
- s.version = "2.5.7"
8
+ s.version = "2.5.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Ben Johnson of Binary Logic"]
12
- s.date = %q{2011-08-14}
11
+ s.authors = [%q{Ben Johnson of Binary Logic}]
12
+ s.date = %q{2011-08-15}
13
13
  s.description = %q{Searchlogic makes using ActiveRecord named scopes easier and less repetitive.}
14
14
  s.email = %q{bjohnson@binarylogic.com}
15
15
  s.extra_rdoc_files = [
@@ -64,8 +64,8 @@ Gem::Specification.new do |s|
64
64
  "spec/spec_helper.rb"
65
65
  ]
66
66
  s.homepage = %q{http://github.com/binarylogic/searchlogic}
67
- s.require_paths = ["lib"]
68
- s.rubygems_version = %q{1.6.2}
67
+ s.require_paths = [%q{lib}]
68
+ s.rubygems_version = %q{1.8.6}
69
69
  s.summary = %q{Searchlogic makes using ActiveRecord named scopes easier and less repetitive.}
70
70
 
71
71
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: searchlogic
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.7
4
+ version: 2.5.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-14 00:00:00.000000000 -04:00
13
- default_executable:
12
+ date: 2011-08-15 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: activerecord
17
- requirement: &70173063739320 !ruby/object:Gem::Requirement
16
+ requirement: &70201945599980 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ~>
@@ -22,10 +21,10 @@ dependencies:
22
21
  version: 2.3.12
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *70173063739320
24
+ version_requirements: *70201945599980
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: activerecord
28
- requirement: &70173063738640 !ruby/object:Gem::Requirement
27
+ requirement: &70201945599340 !ruby/object:Gem::Requirement
29
28
  none: false
30
29
  requirements:
31
30
  - - ~>
@@ -33,7 +32,7 @@ dependencies:
33
32
  version: 2.3.12
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: *70173063738640
35
+ version_requirements: *70201945599340
37
36
  description: Searchlogic makes using ActiveRecord named scopes easier and less repetitive.
38
37
  email: bjohnson@binarylogic.com
39
38
  executables: []
@@ -87,7 +86,6 @@ files:
87
86
  - spec/searchlogic/named_scopes/ordering_spec.rb
88
87
  - spec/searchlogic/search_spec.rb
89
88
  - spec/spec_helper.rb
90
- has_rdoc: true
91
89
  homepage: http://github.com/binarylogic/searchlogic
92
90
  licenses: []
93
91
  post_install_message:
@@ -102,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
100
  version: '0'
103
101
  segments:
104
102
  - 0
105
- hash: -218814993959786403
103
+ hash: -4287621832088109185
106
104
  required_rubygems_version: !ruby/object:Gem::Requirement
107
105
  none: false
108
106
  requirements:
@@ -111,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
109
  version: '0'
112
110
  requirements: []
113
111
  rubyforge_project:
114
- rubygems_version: 1.6.2
112
+ rubygems_version: 1.8.6
115
113
  signing_key:
116
114
  specification_version: 3
117
115
  summary: Searchlogic makes using ActiveRecord named scopes easier and less repetitive.