pg-hstore 1.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  require 'strscan'
2
2
 
3
- module HStore
3
+ module PgHstore
4
4
  extend self
5
5
 
6
6
  def parse(string)
metadata CHANGED
@@ -1,11 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg-hstore
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Peter van Hardenberg
9
+ - Seamus Abshere
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
@@ -27,16 +28,16 @@ dependencies:
27
28
  - - ~>
28
29
  - !ruby/object:Gem::Version
29
30
  version: 2.5.0
30
- description: postgresql hstore parser/deparser
31
+ description: postgresql hstore parser/deparser - provides PgHstore.dump and PgHstore.parse
31
32
  email:
32
33
  - pvh@heroku.com
34
+ - seamus@abshere.net
33
35
  executables: []
34
36
  extensions: []
35
37
  extra_rdoc_files: []
36
38
  files:
37
- - lib/hstore.rb
38
- - lib/sequel-hstore.rb
39
- homepage: http://github.com/pvh/pg-hstore
39
+ - lib/pg_hstore.rb
40
+ homepage: https://github.com/seamusabshere/pg-hstore
40
41
  licenses: []
41
42
  post_install_message:
42
43
  rdoc_options: []
data/lib/sequel-hstore.rb DELETED
@@ -1,18 +0,0 @@
1
- # This is an awful monkey patch lifted from some other project. Can we improve on this somehow?
2
- # (See github.com/couchrest/couchrest-core(?))
3
- require 'sequel/adapters/postgres'
4
- require_relative 'hstore/hstore'
5
-
6
- class Hash
7
- def to_hstore
8
- Sequel::Postgres::HStore[self]
9
- end
10
-
11
- def self.===(other)
12
- return false if self == Hash && other.is_a?(Sequel::Postgres::HStore)
13
- super
14
- end
15
- end
16
-
17
- Sequel::Postgres::PG_NAMED_TYPES[:hstore] = lambda{|s| Sequel::Postgres::HStore.new_from_string(s) }
18
-