sequel-search-path 0.0.2 → 0.0.3

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: c98ec7ab896fb2f8de627e16b47b78d91bb6a3d9
4
- data.tar.gz: 677da84f06d218143fe1d3b4e8a95d08e225f207
3
+ metadata.gz: 68eb94cbeaf450e1216c6d31df55200d4927adfd
4
+ data.tar.gz: 70defcebff83c90f5b80dc3f92556848b873bbf5
5
5
  SHA512:
6
- metadata.gz: d475528e60a3cd94d82da175724d147635c5dafeeadf7383167dbf85cffd3f6a44f112ca0c42d56a204028d57303e0ae194e3ceaf78ef9ceed81308e8bed7b50
7
- data.tar.gz: a95c356ff77eb8d993870cab1c05f7c424c52fbc51ba56cb040331edf95dbc74ba99657dd8faac7bf4e26dbaa2b9f93ccf215cb5a05765a16b88f17d5d93f7c5
6
+ metadata.gz: 3f872305591d28fbc04f27eeaef095f72965a043e8c423c148f084199ddb3bb16217c26ed672f8046686ae3349c186076743f1486feda4e57f5ad7b336baaf3a
7
+ data.tar.gz: af14404e4fcaa575e4f829a668045274585940bcf1a321b220cec61a47a76793ec39ed0183ce44e20a1d11348e1399afc60e9b88eef2d9c1ba5559f8d6e696d4
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module SearchPath
3
- VERSION = '0.0.2'.freeze
3
+ VERSION = '0.0.3'.freeze
4
4
  end
5
5
  end
@@ -49,17 +49,17 @@ module Sequel
49
49
  end
50
50
  alias :show_search_path :get_search_path
51
51
 
52
- private
53
-
54
- def schemas_key
55
- @schemas_key ||= "sequel-search-path-#{object_id}".to_sym
56
- end
57
-
58
52
  def set_search_path
59
53
  placeholders = schemas.map{'?'}.join(', ')
60
54
  placeholders = "''" if placeholders.empty?
61
55
  self["SET search_path TO #{placeholders}", *schemas].get
62
56
  end
57
+
58
+ private
59
+
60
+ def schemas_key
61
+ @schemas_key ||= "sequel-search-path-#{object_id}".to_sym
62
+ end
63
63
  end
64
64
 
65
65
  Database.register_extension(:search_path){|db| db.extend(Sequel::SearchPath)}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-search-path
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Hanks