sequel-select-order-clauses 0.0.1 → 0.0.2
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 73437c322b841c0fd74dd56c0529731eb9de5823
|
|
4
|
+
data.tar.gz: 99a8ddeaf8918d728b78b5eaf729c8525a74b303
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a1538ea7a6ddbe1d4a83da19c4506f1a5143aa6f39c902048a9e1fd27ba3f1d38453d518a6ba3841203e0a4163cc75e3588297c403d444292b8a958d5ebc7c2
|
|
7
|
+
data.tar.gz: e9ce0921e9f400691b068dc198b4aab3bccbb3896f5aa72742dadd749cedcd0a86bd1bebde5abf2e70267ac1d3873305afad935098082b0f2228acf31d04be57
|
|
@@ -81,7 +81,7 @@ module Sequel
|
|
|
81
81
|
# Order expressions can be simple references to aliases, which is a
|
|
82
82
|
# pretty simple and useful case to check for. In other words:
|
|
83
83
|
# `SELECT function() AS my_value FROM table ORDER BY my_value`
|
|
84
|
-
if e.is_a?(Symbol) && s.
|
|
84
|
+
if e.is_a?(Symbol) && s.alias == e
|
|
85
85
|
true
|
|
86
86
|
else
|
|
87
87
|
# Otherwise, see whether the expression being aliased does what we
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sequel-select-order-clauses
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Hanks
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|