tableschema 1.0.0 → 1.0.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
- SHA1:
3
- metadata.gz: 084a0d926c82c01ca8421cfec2eb0cf0b1c9a1b4
4
- data.tar.gz: 352fcb05b714d61c51331690627528eac4ea9d9f
2
+ SHA256:
3
+ metadata.gz: edca79caa98a0fb2cda2c2e583f5a9145685b41f2fad214a5cee30371b2d4279
4
+ data.tar.gz: 770a48fe09d1abba43429eec39707ba25b219fc9f79d08f143faec9044635b81
5
5
  SHA512:
6
- metadata.gz: 2e416ee54ef29f58760011a08d7035d55b404e8bd807667ba5399948f2f22c7ba7a1d175f641dc5c16dc39341a688b6131ab783fb47551603ebb6383bc92e384
7
- data.tar.gz: 6cfdb8854ce7954f6eb1190895625ddb130c0ca8243dbc8a4ca47ee822c652799d7757e85d86ad17fea7c702c94c466c127404eb83596b93a55a6c03179cbf68
6
+ metadata.gz: fb3ed88aa349b8804cf814578b045a6ecd1c1eb9234ef75059f88d019045a57fdc9754574fc5552bb90ca709ac6859f377aae61bfe0df008d399658d488da788
7
+ data.tar.gz: 4e567956e7e54ce9c9610d1a1a3e1f433878811d403baba9c566d74fb7bfad5bbf9a16f841d0d023ae9882408a182ef39cc6dbb66bebf294fff61739585f8a53
@@ -22,7 +22,7 @@ module TableSchema
22
22
  end
23
23
 
24
24
  def cast_default(value)
25
- if value.is_a?(type)
25
+ if value.nil? || value.is_a?(type)
26
26
  value
27
27
  else
28
28
  bare_number = @field.fetch(:bareNumber, TableSchema::DEFAULTS[:bare_number])
@@ -1,3 +1,3 @@
1
1
  module TableSchema
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tableschema
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Open Knowledge Foundation
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-04 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -240,8 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  - !ruby/object:Gem::Version
241
241
  version: '0'
242
242
  requirements: []
243
- rubyforge_project:
244
- rubygems_version: 2.6.11
243
+ rubygems_version: 3.0.3
245
244
  signing_key:
246
245
  specification_version: 4
247
246
  summary: A Ruby library for working with Table Schema. Formerly known as 'jsontableschema'