searchlogic 2.5.9 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -1
- data/Gemfile.lock +1 -1
- data/lib/searchlogic/search/ordering.rb +5 -1
- data/lib/searchlogic/version.rb +1 -1
- data/searchlogic.gemspec +1 -1
- metadata +2 -3
- data/VERSION.yml +0 -5
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -3,7 +3,11 @@ module Searchlogic
|
|
|
3
3
|
module Ordering
|
|
4
4
|
# Returns the column we are currently ordering by
|
|
5
5
|
def ordering_by
|
|
6
|
-
order && order.to_s.gsub(/^(ascend|descend)_by_/, '')
|
|
6
|
+
@ordering_by ||= order && order.to_s.gsub(/^(ascend|descend)_by_/, '')
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def ordering_direction
|
|
10
|
+
@ordering_direction ||= order && order.to_s.match(/^(ascend|descend)_by_ass/).try(:[], 1)
|
|
7
11
|
end
|
|
8
12
|
end
|
|
9
13
|
end
|
data/lib/searchlogic/version.rb
CHANGED
data/searchlogic.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ require File.expand_path('../lib/searchlogic/version', __FILE__)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |s|
|
|
6
6
|
s.name = "searchlogic"
|
|
7
|
-
s.version
|
|
7
|
+
s.version = Searchlogic::VERSION
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
|
9
9
|
s.authors = ["Ben Johnson"]
|
|
10
10
|
s.email = ["bjohnson@binarylogic.com"]
|
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.
|
|
4
|
+
version: 2.5.10
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-04-
|
|
12
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|
|
@@ -105,7 +105,6 @@ files:
|
|
|
105
105
|
- LICENSE
|
|
106
106
|
- README.rdoc
|
|
107
107
|
- Rakefile
|
|
108
|
-
- VERSION.yml
|
|
109
108
|
- gemfiles/ar2.3.10.gemfile
|
|
110
109
|
- gemfiles/ar2.3.10.gemfile.lock
|
|
111
110
|
- gemfiles/ar2.3.11.gemfile
|