advantage_quickbase 1.0.4 → 1.0.5

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/quickbase.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61a3d33b3261bb7f5c36e64c4a7dc3dcaf571183
4
- data.tar.gz: 6b22685398d9a39a46310ecfb6c3a13dc32860e8
3
+ metadata.gz: 21a5794063e93f64c57f3d9aca617ee43935f453
4
+ data.tar.gz: a153e713071fb6b41a60411c418bd67ce4da64d0
5
5
  SHA512:
6
- metadata.gz: 24ed9ea5778d8718a06a881cf65db321b333e3db3cf7d8c194a966a8d1af3a8414630726ef461975d5343db9f8fbb2d5de009e7d730c7cc72dd576feedf6ae58
7
- data.tar.gz: 1df7f2d1cf3b80674a6d3086dc70f9dfb47efe6a02bed02bfec11ee883a875a91d61f91393edb72b4c9e49c540277c3a442db405e6e4977ff8b76108ca32b782
6
+ metadata.gz: b86c8526fee3750ec2bed834f9488586afcaa8712a04fc97f0d379042e6b655742002be2833c23c2fb47748b19b3009c821c636e01a73cce9771fbfc34370f52
7
+ data.tar.gz: 2c80e29e75f607baa871c28c4f38f271e6ce3c60d143c86ab3fded22a84af749e4deed769f8bbb95ecdc15ad8ac374a659194b55edc614e17d5d5ea4296291f3
@@ -334,7 +334,7 @@ module AdvantageQuickbase
334
334
 
335
335
  new_values = new_values.map do |field_id, value|
336
336
  # Values that are hashes with name and file are encoded seperately
337
- if value.is_a?( Hash ) && value.length == 2 && value[:name] && value[:file]
337
+ if value.is_a?( Hash ) && (value.length == 2 || value.length == 3) && value[:name] && value[:file]
338
338
  file = !value[:bypass_encoding] ? encode_file( value[:file] ) : value[:file]
339
339
 
340
340
  "<field fid='#{field_id}' filename='#{value[:name]}'>#{file}</field>"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advantage_quickbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Roux