sequel-postgres-schemata 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/lib/sequel/postgres/schemata.rb +5 -1
- data/lib/sequel/postgres/schemata/version.rb +1 -1
- data/sequel-postgres-schemata.gemspec +1 -1
- data/spec/schemata_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7075b50204a3ec70d0a4bde42f3b553b0d207a22
|
4
|
+
data.tar.gz: 890db32a9d4890f93d8860d5d0e9b44bb42c6f17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 694ee8af2b14b23e425c102635a7cf65a409db3b2a2e2ffcc9b415a0c9c7b04715fe4ed3beab4b3f412294777df1fc390d347fbd1543752d38211325c7d772d4
|
7
|
+
data.tar.gz: dfe4ca55bb013f226d799d157893471c4c27b02797e0c3e0ea652faceb931c4298809d81062801ea46cf9c61491f04a2aa51db23f01079ff92e5cb78a7ad4cb1
|
data/LICENSE.txt
CHANGED
@@ -29,6 +29,8 @@ module Sequel
|
|
29
29
|
case search_path
|
30
30
|
when String
|
31
31
|
search_path = search_path.split(",").map{|s| s.strip}
|
32
|
+
when Symbol
|
33
|
+
search_path = [search_path]
|
32
34
|
when Array
|
33
35
|
# nil
|
34
36
|
else
|
@@ -37,7 +39,7 @@ module Sequel
|
|
37
39
|
self << "SET search_path = #{search_path.map{|s| "\"#{s.to_s.gsub('"', '""')}\""}.join(',')}"
|
38
40
|
end
|
39
41
|
|
40
|
-
# Returns the current schemata, as
|
42
|
+
# Returns the current schemata, as returned by current_schemas(false).
|
41
43
|
def current_schemata
|
42
44
|
metadata_dataset.select(Sequel::function(:current_schemas, false).
|
43
45
|
cast('varchar[]')).single_value.map(&:to_sym)
|
@@ -60,5 +62,7 @@ module Sequel
|
|
60
62
|
module DatabaseMethods
|
61
63
|
include ::Sequel::Postgres::Schemata::DatabaseMethods
|
62
64
|
end
|
65
|
+
|
66
|
+
Database.send :include, ::Sequel::Postgres::Schemata::DatabaseMethods if defined? Database
|
63
67
|
end
|
64
68
|
end
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "sequel-postgres-schemata"
|
8
8
|
spec.version = Sequel::Postgres::Schemata::VERSION
|
9
9
|
spec.authors = ["Rafał Rzepecki"]
|
10
|
-
spec.email = ["
|
10
|
+
spec.email = ["rafal@conjur.net"]
|
11
11
|
spec.description = %q{Allows easy manipulation of Postgres schemas from Ruby with Sequel}
|
12
12
|
spec.summary = %q{Postgres schema manipulation}
|
13
13
|
spec.homepage = "https://github.com/dividedmind/sequel-postgres-schemata"
|
data/spec/schemata_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel-postgres-schemata
|
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
|
- Rafał Rzepecki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sequel
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
version: '0.16'
|
83
83
|
description: Allows easy manipulation of Postgres schemas from Ruby with Sequel
|
84
84
|
email:
|
85
|
-
-
|
85
|
+
- rafal@conjur.net
|
86
86
|
executables: []
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|