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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35ac3d183de7028ab777f9456e5a6e0b23808473
4
- data.tar.gz: 8ac4fdafa29976a867510da067edb9e385abcb66
3
+ metadata.gz: 7075b50204a3ec70d0a4bde42f3b553b0d207a22
4
+ data.tar.gz: 890db32a9d4890f93d8860d5d0e9b44bb42c6f17
5
5
  SHA512:
6
- metadata.gz: c4e50d2605da25f2e7cec6b2587f5b00965c7c5386afe575b6f1bf51581d45bebc43fe374d29108dd4e071b815797b7baa55d140e6c5456ff3e312244f35bd65
7
- data.tar.gz: c5a8258ba6a92a1e6e28b989e212d96ca270f0eb7017a408de0bab11770f3535ceeba44fd0de4c71a1cfa7a4451a3a460995bc280d998d67ae62a49375ee6a8f
6
+ metadata.gz: 694ee8af2b14b23e425c102635a7cf65a409db3b2a2e2ffcc9b415a0c9c7b04715fe4ed3beab4b3f412294777df1fc390d347fbd1543752d38211325c7d772d4
7
+ data.tar.gz: dfe4ca55bb013f226d799d157893471c4c27b02797e0c3e0ea652faceb931c4298809d81062801ea46cf9c61491f04a2aa51db23f01079ff92e5cb78a7ad4cb1
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Rafał Rzepecki
1
+ Copyright (c) 2013 Conjur Inc.
2
2
 
3
3
  MIT License
4
4
 
@@ -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 return by current_schemas(false).
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
@@ -1,7 +1,7 @@
1
1
  module Sequel
2
2
  module Postgres
3
3
  module Schemata
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  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 = ["divided.mind@gmail.com"]
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"
@@ -20,7 +20,7 @@ describe Sequel::Postgres::Schemata do
20
20
 
21
21
  describe "#search_path=" do
22
22
  it "accepts a single symbol" do
23
- db.search_path = %i(bar)
23
+ db.search_path = :bar
24
24
  db.search_path.should == %i(bar)
25
25
  end
26
26
 
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.1
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-05 00:00:00.000000000 Z
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
- - divided.mind@gmail.com
85
+ - rafal@conjur.net
86
86
  executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []