statham 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e38adf86a8b69b7b7c0a084a658b0abd00904cd
4
- data.tar.gz: 137db91c43083ab60c1702f6bc36c920a6e1b5a3
3
+ metadata.gz: a6416303d3bcbeb8cfe0342f29ded044aa259cc5
4
+ data.tar.gz: c5c71a1b6aae26ae0b58acd14b20ed14c5e1311d
5
5
  SHA512:
6
- metadata.gz: bfe03b7dde3a96808ef142deff82b332000e97ca760376201e97c6001c2ad4e385cae9d2d5ebd3c7d6e19b27d4f74583bf9dbe63b8d4db6adc3b1ffac620f043
7
- data.tar.gz: 4d3905daf80514b356d7d33e653c44d33f185923a8c2b39aa19d85fc3c00b9a4ea8e9d4a189a12ec1a29e29c2ea199ac83b75e3e43bb6dfa336ce2d9f17441e8
6
+ metadata.gz: 3195ffe3daf9df99e9d7141ef3cd9a58158b012331fcb8a9b493bf841ecde2d2419f421c0578323d03021824f2d87c9aaa1c77985d9f8fbda97b41a94a47e0d1
7
+ data.tar.gz: e36dcc66f17214fa19ad7776710af34b71d68563ae384aafd17062044f5c50a5804c170e4cf425e6d3fb98bb1c0a71470d8cebb6eabe6d47f56bd3cca2680b07
@@ -41,9 +41,13 @@ module Statham
41
41
  #
42
42
  # Returns true if type is json, false otherwise.
43
43
  def json_type_column?(column_name)
44
- columns.detect do |column|
45
- column.name == column_name.to_s
46
- end.type == :json
44
+ begin
45
+ columns.detect do |column|
46
+ column.name == column_name.to_s
47
+ end.type == :json
48
+ rescue
49
+ # Failed to fetch columns: Database have not been loaded nor migrated.
50
+ end
47
51
  end
48
52
 
49
53
  # Internal: Collection of JSON attributes used as parent attributes for a
@@ -1,3 +1,3 @@
1
1
  module Statham
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statham
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inbeom Hwang