flounder 0.8.0 → 0.8.1
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.
- checksums.yaml +4 -4
- data/flounder.gemspec +1 -1
- data/lib/flounder/insert.rb +2 -2
- data/lib/flounder/update.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d747ac7404138eb5d0dd5adf3e1a936f70381c84
|
4
|
+
data.tar.gz: 6186aeaf643c3f6a2e7f42d18bc7d3b903d3038c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54e0c5140cbef2595cd5b32333166220f233098c8e5f158f8499538009f2f8a306f5fd6fee026297f509b401e2662998aac17e02b6de4a3ffc6b87b1f21f2a75
|
7
|
+
data.tar.gz: 5bf99fed4005c03b21df75d39adffe4099b83ab032bb207689cdbf249434237db92f577a2927668a15b4a997b0e5061faf8407959d0fe3ed5b9a1deecb491240
|
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.8.
|
5
|
+
s.version = '0.8.1'
|
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"
|
data/lib/flounder/insert.rb
CHANGED
data/lib/flounder/update.rb
CHANGED
@@ -59,8 +59,8 @@ module Flounder
|
|
59
59
|
|
60
60
|
private
|
61
61
|
|
62
|
-
# Called on each key/value pair of an
|
63
|
-
# hash that can be passed to Arel #
|
62
|
+
# Called on each key/value pair of an update clause, this returns a
|
63
|
+
# hash that can be passed to Arel #update.
|
64
64
|
#
|
65
65
|
def transform_hash_keys field, value
|
66
66
|
if value.kind_of? Field
|
@@ -68,8 +68,8 @@ module Flounder
|
|
68
68
|
end
|
69
69
|
|
70
70
|
case field
|
71
|
-
when Symbol
|
72
|
-
[entity[field].arel_field, value]
|
71
|
+
when Symbol, String
|
72
|
+
[entity[field.to_sym].arel_field, value]
|
73
73
|
when Flounder::Field
|
74
74
|
[field.arel_field, value]
|
75
75
|
else
|
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.8.
|
4
|
+
version: 0.8.1
|
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-
|
12
|
+
date: 2014-08-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: arel
|