fastapi 0.1.22 → 0.1.23
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/lib/fastapi.rb +8 -0
- 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: eacd51a98a309fbfd8f03899ca0ded1ffcdd5feb
|
4
|
+
data.tar.gz: 160819b60e934f842fdceda21183ff6aa9cb8e0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eeb5d0f5fa6d2d5f33284361604085f6e1492043fea09434a2dbc775db801ce11936f2d0d4d03777a9b6bd89f2594def05e861db604650f72fa453d1fedc19bf
|
7
|
+
data.tar.gz: f0ff100e3ead2f5a3ea3aedc4d9bb77c134c52282b06efeb3998c9105c6b332a0ee67a51abf3adcd0cde9fbbf169feb9df09c86bd7c1ae6f517c1e98dd9efb5b
|
data/lib/fastapi.rb
CHANGED
@@ -352,6 +352,10 @@ class FastAPI
|
|
352
352
|
|
353
353
|
def parse_postgres_array(str)
|
354
354
|
|
355
|
+
unless str.is_a? String
|
356
|
+
return []
|
357
|
+
end
|
358
|
+
|
355
359
|
i = 0
|
356
360
|
len = str.length
|
357
361
|
|
@@ -429,6 +433,10 @@ class FastAPI
|
|
429
433
|
|
430
434
|
def parse_many(str, fields = [], types = [])
|
431
435
|
|
436
|
+
unless str.is_a? String
|
437
|
+
return []
|
438
|
+
end
|
439
|
+
|
432
440
|
rows = []
|
433
441
|
cur_row = {}
|
434
442
|
entry_index = 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Horwood
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|