Permalink
Browse files

Merge pull request #2 from appscape-forks/master

Minor cleanup
  • Loading branch information...
2 parents 9f537d6 + 97627f1 commit 8c7d7f01a6508857fdf18b38f0137948281d5580 @pvh committed Jan 31, 2012
Showing with 4 additions and 7 deletions.
  1. +1 −0 .gitignore
  2. +1 −5 lib/hstore/hstore.rb
  3. +1 −2 lib/sequel-hstore.rb
  4. +1 −0 test.rb
View
@@ -0,0 +1 @@
+.rbx
@@ -18,7 +18,7 @@ def self.parse_quotable_string(scanner)
end
def self.skip_key_value_delimiter(scanner)
- scanner.skip(/\s*=>\s*/)
+ scanner.skip(/\s*=>\s*/)
end
def self.skip_pair_delimiter(scanner)
@@ -44,10 +44,6 @@ def self.new_from_string(string)
self[hash]
end
- def initialize(hash)
- @hash = hash
- end
-
def to_s_escaped(str)
str.to_s.gsub(/\\(?!")/) {'\\\\'}.gsub(/"/, '\"').gsub(/'/, "''")
end
@@ -14,5 +14,4 @@ def self.===(other)
end
end
-Sequel::Postgres::PG_NAMED_TYPES[:hstore] = lambda{|s| Sequel::Postgres::HStore.new_from_string(s) }
-
+Sequel::Postgres::PG_NAMED_TYPES[:hstore] = lambda{|s| Sequel::Postgres::HStore.new_from_string(s) }
View
@@ -1,3 +1,4 @@
+require 'rspec'
require 'sequel'
require './lib/sequel-hstore'

0 comments on commit 8c7d7f0

Please sign in to comment.