consistent_schema_rb 0.0.4 → 0.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24778530dc5512693897f2072e86fcbba2b933ef
|
4
|
+
data.tar.gz: 00cb0b38ee9f082baa78d52c302ee8ce1d34e895
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab4bba85f37e54add64a6e4a93688f457bd0f03753b44e3fdea02d78d4b304228f051b54618dae0180da7862789394b7641242cb2a8711f57af6b846b383c0be
|
7
|
+
data.tar.gz: 2ddb664fdfac8140488ff37273c81829e2144ddab22dcbec7b43e553c16a8fe7e7c8e2413505fec4bef85cde41084186fae7548fcfc1d529e5e5cc089bd3b4c0
|
@@ -9,17 +9,14 @@ module ActiveRecord
|
|
9
9
|
|
10
10
|
module ConnectionAdapters
|
11
11
|
class OrderedColumnPostgreSQLAdapterWrapper < Delegator
|
12
|
-
|
13
|
-
super
|
14
|
-
@postgresql_connection = postgresql_connection
|
15
|
-
end
|
12
|
+
attr_reader :postgresql_connection
|
16
13
|
|
17
14
|
def columns(table_name, name = nil)
|
18
|
-
|
15
|
+
postgresql_connection.columns(table_name, name).sort { |x,y| x.name <=> y.name }
|
19
16
|
end
|
20
17
|
|
21
18
|
def __getobj__
|
22
|
-
|
19
|
+
postgresql_connection
|
23
20
|
end
|
24
21
|
|
25
22
|
def __setobj__(obj)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consistent_schema_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Aitken
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|