hurray 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hurray.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab99a98864ed63a1e5521bb3d84a3afe0cf24402
4
- data.tar.gz: bc639a89fd691bd14f1aea6ffe438a42c433a456
3
+ metadata.gz: bd0f2c81bf9a04283a55f121a4ca88f07b2bfd2c
4
+ data.tar.gz: 162aed609890f899eb56e547f02cbb573250b1a2
5
5
  SHA512:
6
- metadata.gz: 9e0689d961d4b314d7b007a50235f97fd80e87531bf895776fa6b2f318fa932ab827a26012dd66a72def9b1243107193a3f3ed9d2f0cc735c5fb5af6faad8746
7
- data.tar.gz: caa65fbae448ad67ae42b4f71f91da36c6acde772059236ef626fbd01914de77bc3c26f82be3b639e153b72c001889ee5b53fefbd9e25bec4545f4a09e8d6316
6
+ metadata.gz: 448be0b01c83d076707c42a1baed9e7631917f25a724eec3eba57b5aa8afd90f98e162731aeff828d8f846ff2c3ebd97bffa00de8412a882ce44f443ef7afd78
7
+ data.tar.gz: 41a57794864e1f7cdef1c5fa7bdb90c22f8950fe352daa27b3295d471258db854eccdddc60bf684f9a42593565dee5dec37a0afdeba9a4a4772f617c5d87ea01
data/lib/hurray.rb CHANGED
@@ -39,7 +39,7 @@ module Hurray
39
39
  if v.is_a? Hash
40
40
  parse_ordered_with_params(k.to_s, v, params)
41
41
  else
42
- params << { table: table, column: k.to_s, array: v }
42
+ params << { table: table, column: k.to_s, array: v } unless v.empty? || v.nil?
43
43
  end
44
44
  end
45
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hurray
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Kotov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-22 00:00:00.000000000 Z
11
+ date: 2016-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord