flounder 0.8.0 → 0.8.1

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: a4825945deccb5f4203a803ecab116bdcc524314
4
- data.tar.gz: bd2ba46841e6f4712b910dcbd4a08ccab9a3ca21
3
+ metadata.gz: d747ac7404138eb5d0dd5adf3e1a936f70381c84
4
+ data.tar.gz: 6186aeaf643c3f6a2e7f42d18bc7d3b903d3038c
5
5
  SHA512:
6
- metadata.gz: 828e529a485e1714fa19f9986a4c27eeaf264f5edbc92ffe6a41760f59034494049ad05873a5067d7eb734413ad3e6ed8f8ba1367344dac0421d1c86be203e6b
7
- data.tar.gz: 5d4d28be3d8dea21684440d9ad18b2365860022c2e848aeac637ab38de7b9d8ad333392d5111bfcc3d706d741994e2d6a264ed43d9e7d6a50fab203d5de110ee
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.0'
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"
@@ -61,8 +61,8 @@ module Flounder
61
61
  end
62
62
 
63
63
  case field
64
- when Symbol
65
- [into_entity[field].arel_field, value]
64
+ when Symbol, String
65
+ [into_entity[field.to_sym].arel_field, value]
66
66
  when Flounder::Field
67
67
  [field.arel_field, value]
68
68
  else
@@ -59,8 +59,8 @@ module Flounder
59
59
 
60
60
  private
61
61
 
62
- # Called on each key/value pair of an insert clause, this returns a
63
- # hash that can be passed to Arel #insert.
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.0
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-08 00:00:00.000000000 Z
12
+ date: 2014-08-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: arel