pg-hstore 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/pg_hstore.rb +4 -2
  2. metadata +1 -1
@@ -1,6 +1,8 @@
1
1
  module PgHstore
2
2
  SINGLE_QUOTE = "'"
3
3
  DOUBLE_QUOTE = '"'
4
+ HASHROCKET = '=>'
5
+ COMMA = ','
4
6
 
5
7
  QUOTED_LITERAL = /"[^"\\]*(?:\\.[^"\\]*)*"/
6
8
  UNQUOTED_LITERAL = /[^\s=,][^\s=,\\]*(?:\\.[^\s=,\\]*|=[^,>])*/
@@ -37,8 +39,8 @@ module PgHstore
37
39
  k = escape_single_quotes k
38
40
  end
39
41
  k = DOUBLE_QUOTE + k + DOUBLE_QUOTE
40
- [k, v].join ' => '
41
- end.join(', ')
42
+ [k, v].join HASHROCKET
43
+ end.join(COMMA)
42
44
  if for_parameter
43
45
  memo
44
46
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg-hstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: