flounder 0.4.1 → 0.5.0

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: 9fa808fa17085d2e8f7c70a808ec4aa6c3b3ffe7
4
- data.tar.gz: 47ab3d8800befc2e6864cb077cf715fbe1c20621
3
+ metadata.gz: 484ff8cd8a8111a3d280cad0dc9d4fff81d53df5
4
+ data.tar.gz: 87115495df74ecf98166c0f801c787ee1457554f
5
5
  SHA512:
6
- metadata.gz: 2c7fdedda33c494affe87c3392049e901caa969c1a1cea7592ca3b0aad20fe1da296bb8157bcf6915a1ab626b994ced623fe952ecacab955271f25bb3385ebce
7
- data.tar.gz: e2e96f3d0a887444b56212e3cef71434bbb9929b257be45c75b09089113708565890356b54a071cc7244cf68b3af5f190127aab6281c078800650ae5a70f42cc
6
+ metadata.gz: 0f145748074a522cdef6ae67e6148701cd6c256e885f30c4f301e101c4cda1c1a26f47bc013397caf92c45c433474d2982f1afd5c4ecc4bb881d49655412f0da
7
+ data.tar.gz: 24104884f69252858840d7ff839db49f1a25f8e3720daf49f38ae467f881f7851aa90882d350171a21da164431ebd943af88a554e9ca26f0313692b32bb976da
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.4.1'
5
+ s.version = '0.5.0'
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/laboratory_flounder"
@@ -8,6 +8,7 @@ module Flounder
8
8
  OID_SMALLINT = 21
9
9
  OID_INTEGER = 23
10
10
  OID_TEXT = 25
11
+ OID_FLOAT = 701
11
12
  OID_VARCHAR = 1043
12
13
  OID_TIMESTAMP = 1114
13
14
  OID_DATE = 1082
@@ -24,6 +25,8 @@ module Flounder
24
25
  value && Time.parse(value)
25
26
  when OID_INTEGER, OID_SMALLINT
26
27
  value.to_i
28
+ when OID_FLOAT
29
+ value.to_f
27
30
  when OID_BOOLEAN
28
31
  value == 't'
29
32
  when OID_TEXT
@@ -43,6 +46,8 @@ module Flounder
43
46
  :time
44
47
  when OID_INTEGER, OID_SMALLINT
45
48
  :integer
49
+ when OID_FLOAT
50
+ :float
46
51
  when OID_VARCHAR, OID_TEXT
47
52
  :string
48
53
  when OID_BOOLEAN
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.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaspar Schiess