searchlogic 2.5.9 → 2.5.10

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -3,4 +3,4 @@
3
3
  pkg/*
4
4
  coverage/*
5
5
  doc/*
6
- benchmarks/*
6
+ benchmarks/*
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- searchlogic (2.5.8)
4
+ searchlogic (2.5.9)
5
5
  activerecord (~> 2.3.12)
6
6
  activesupport (~> 2.3.12)
7
7
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Searchlogic
2
- VERSION = "2.5.9"
2
+ VERSION = "2.5.10"
3
3
  end
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 = Searchlogic::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.9
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-05 00:00:00.000000000 Z
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
data/VERSION.yml DELETED
@@ -1,5 +0,0 @@
1
- ---
2
- :major: 2
3
- :minor: 5
4
- :patch: 8
5
- :build: !!null