activerecord-sort 1.0.1 → 5.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64d26616c5be5b175e976284d70e5dcc6b79990b
4
- data.tar.gz: 7ffa19e030b2e7de432f52187d4dec524a68b96b
3
+ metadata.gz: 88a4c74b00810b9fca1fa8a887dff77f0cb41b2d
4
+ data.tar.gz: 615d95d5da8a5159e5817cb836fcf7c66089e78c
5
5
  SHA512:
6
- metadata.gz: 1da137f286a3a2d0005cef33b91534cda3caab256e1cf9dbb105aed2c851f01a81ccb0e2b4104b2daabad1f5ac8726c56efa8b975dc166428c5299807f3ca503
7
- data.tar.gz: 3ee7ff9be612e95a2906f4a559d3661aba387c238c25409334cc1f8a6290122b2f890103dcf74360a448875afec2a637aced2d448e11fff9f6f635d5e1991885
6
+ metadata.gz: a845ec7bedb90e31e80bae20cdfa22ceac01104d95350d3f9fcc265ad4262a7c3cba0a607fbe652a2fba35ed3ec88f802b00f565413a5d21aa1275f9e4980cb5
7
+ data.tar.gz: 413c3556dcf7fc8bd6342be9e6ac6daa73bce75d37f71ef977eea1c552548f12cb000eccd7a061d2e7f4639ea524b4098884e96c52645e3c2f9daf9e2eca58ea
@@ -1,5 +1,9 @@
1
- class ActiveRecord::Base
2
- class << self
1
+ require 'active_record'
2
+ require 'active_record/relation'
3
+
4
+ module ActiveRecord
5
+ module QueryMethods
6
+ # class << self
3
7
 
4
8
  # ordering:
5
9
  # :id
@@ -109,4 +113,4 @@ class ActiveRecord::Base
109
113
  end
110
114
 
111
115
  end
112
- end
116
+ end
@@ -5,3 +5,5 @@ require File.expand_path(File.join(__FILE__, '../../../ext/arel/nodes/ascending'
5
5
  require File.expand_path(File.join(__FILE__, '../../../ext/arel/nodes/descending'))
6
6
  require File.expand_path(File.join(__FILE__, '../../../ext/arel/visitors/postgresql'))
7
7
  require File.expand_path(File.join(__FILE__, '../../../ext/active_record/base'))
8
+
9
+ ActiveRecord::Querying.delegate :sort, to: :all
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module Sort
3
- VERSION = '1.0.1'
3
+ VERSION = '5.0.0.beta1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-sort
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 5.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-04 00:00:00.000000000 Z
11
+ date: 2016-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.0'
33
+ version: 5.0.0.beta1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '4.0'
40
+ version: 5.0.0.beta1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -170,12 +170,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  requirements:
173
- - - ">="
173
+ - - ">"
174
174
  - !ruby/object:Gem::Version
175
- version: '0'
175
+ version: 1.3.1
176
176
  requirements: []
177
177
  rubyforge_project:
178
- rubygems_version: 2.4.5
178
+ rubygems_version: 2.5.1
179
179
  signing_key:
180
180
  specification_version: 4
181
181
  summary: A safe way to accept user parameters and order against your ActiveRecord