flounder 0.11.1 → 0.11.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: bebf705b64f42741d7a218d8a8deec495228b9b3
4
- data.tar.gz: f11eba4e515486212a345b17a845cdfa9b1c1cf8
3
+ metadata.gz: e079992becc4bd6e98eca9e16ae711fe4deb8a95
4
+ data.tar.gz: b1a2bea366240854948b9267ba3f96b5eeaefbc1
5
5
  SHA512:
6
- metadata.gz: 149d35c4af68907002233dda0c2aa9708852aced08a97fa13604d99974479347a1034434e48073d90c5a27bcb0847d87524809bab3c9403eedc199482cb30310
7
- data.tar.gz: e30b31d789d5af1243faf3e4fdbe7f33944fe95ae30f29ce252c8d95d8d2c8d1a7829859a683e9ad3a4ff64008871ff64fffae7f5f873072a59298f2f9711142
6
+ metadata.gz: 1b5068f9033c63dc84be648f1d484d0a21b90750d3e271a08ed6874df0ec28f2eef4242b5dba6bb5ffe65aaea1926df9c6b6f6257859b28df861db8efc2413cf
7
+ data.tar.gz: 18fc4a0a6cb0ab7c164735ccf344039d7169a66fc026719918ca14d4562b14714256586673d4470877bab78f4f38c74b0827dd4ac55779da63744a591dc43427
data/Gemfile.lock CHANGED
@@ -1,11 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- flounder (0.9.8)
4
+ flounder (0.11.1)
5
5
  arel (~> 5, > 5.0.1)
6
6
  connection_pool (~> 2)
7
7
  hashie (~> 3, >= 3.2)
8
8
  pg (~> 0.17)
9
+ pg-hstore (~> 1.2.0)
9
10
 
10
11
  GEM
11
12
  remote: https://rubygems.org/
@@ -17,8 +18,9 @@ GEM
17
18
  brass (1.2.1)
18
19
  connection_pool (2.0.0)
19
20
  facets (2.9.3)
20
- hashie (3.2.0)
21
+ hashie (3.3.1)
21
22
  pg (0.17.1)
23
+ pg-hstore (1.2.0)
22
24
  qed (2.9.1)
23
25
  ansi
24
26
  brass
data/HISTORY CHANGED
@@ -3,6 +3,7 @@
3
3
  + #anchor now only affects the interpretation of #on, doesn't modify return
4
4
  value.
5
5
  + #hoist is the opposite of #anchor - it reverts to the original entity.
6
+ + native treatment of hstore - returns you a hashie::mash.
6
7
 
7
8
  # 0.10
8
9
  + Datamapper interop is improved (also in #order_by)
data/flounder.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "flounder"
5
- s.version = '0.11.1'
5
+ s.version = '0.11.2'
6
6
  s.summary = "Flounder is a way to write SQL simply in Ruby. It deals with everything BUT object relational mapping. "
7
7
  s.email = "kaspar.schiess@technologyastronauts.ch"
8
8
  s.homepage = "https://bitbucket.org/technologyastronauts/oss_flounder"
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.add_runtime_dependency 'pg', '~> 0.17'
19
19
  s.add_runtime_dependency 'hashie', '~> 3', '>= 3.2'
20
20
  s.add_runtime_dependency 'connection_pool', '~> 2'
21
+ s.add_runtime_dependency 'pg-hstore', '~> 1.2.0'
21
22
 
22
23
  s.files = Dir['**/*']
23
24
  s.test_files = Dir['qed/**/*']
@@ -1,6 +1,7 @@
1
1
 
2
2
  require 'time'
3
3
  require 'date'
4
+ require 'pg_hstore'
4
5
 
5
6
  module Flounder
6
7
  module PostgresUtils
@@ -13,6 +14,7 @@ module Flounder
13
14
  OID_TIMESTAMP = 1114
14
15
  OID_DATE = 1082
15
16
  OID_TIME = 1083
17
+ OID_HSTORE = 133538
16
18
 
17
19
  def typecast type_oid, value
18
20
  return nil unless value
@@ -33,6 +35,8 @@ module Flounder
33
35
  value == 't'
34
36
  when OID_TEXT
35
37
  value.to_s
38
+ when OID_HSTORE
39
+ PgHstore.load(value)
36
40
  else
37
41
  value
38
42
  end
@@ -54,6 +58,8 @@ module Flounder
54
58
  :string
55
59
  when OID_BOOLEAN
56
60
  :boolean
61
+ when OID_HSTORE
62
+ :hash
57
63
  else
58
64
  nil
59
65
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flounder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaspar Schiess
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-31 00:00:00.000000000 Z
12
+ date: 2014-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: arel
@@ -79,6 +79,20 @@ dependencies:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
81
  version: '2'
82
+ - !ruby/object:Gem::Dependency
83
+ name: pg-hstore
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: 1.2.0
89
+ type: :runtime
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: 1.2.0
82
96
  description: " Flounder is the missing piece between the database and your Ruby
83
97
  code. It \n allows very simple access to database tables without going all the
84
98
  way to\n begin an object mapper. \n"
@@ -172,4 +186,3 @@ test_files:
172
186
  - qed/results.md
173
187
  - qed/selects.md
174
188
  - qed/updates.md
175
- has_rdoc: