typed_form 0.1.5 → 0.1.6

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
2
  SHA1:
3
- metadata.gz: dea2e5cf910569b3daf3dff7eff7645b5abf8e33
4
- data.tar.gz: b8bb58ad56431e0655909db568b0ae4e3e8347ae
3
+ metadata.gz: 0fa63d51ebfecbbd843f9d9fa3ca563d65c8372b
4
+ data.tar.gz: 82d801cb3fd3c7aa84729b8129a41b25d6eb8c56
5
5
  SHA512:
6
- metadata.gz: f0b4b12cffa15dc3c4534401a54cf9602b213f225e413e09473ecf66877c29d4b9755c2b93202b844871afcade0500ef5ef992ba6a26a8a4c62c52d593f0bfe7
7
- data.tar.gz: 8b5360f05bb2581acb6b313599c5dee1dd94d1686d7d5708fcbdd58cc1f5a43984f3a44a91da396bd6bef6b5aaddde629066e3762d056d8cbe3479a9f33b4785
6
+ metadata.gz: 200a54b79112d5772d257f43ee8ea57db9dcb65203b79c5e4ecd4a2394ce9f463e752622c1c5e14ba05e7cbb9f0ea426067e3178bdc225ff17ee125efc1a848a
7
+ data.tar.gz: b563c6f709f1b67b2e87b7dd952eae76faed4f5dba602d360c460188dd86be4bcd9ab715d96d56cf50786c0f7eb21dfe713afd47f5027b98175f12c730127360
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ### [0.1.6] - 2017-03-22
4
+
5
+ Fixes NoMethodError: undefined method `[]' for nil:NilClass error when normalizing optional date fields that are left blank (which translates to nil in Typeform Data).
6
+
3
7
  ### [0.1.5] - 2017-03-20
4
8
 
5
9
  Update Arendelle.
@@ -112,6 +112,7 @@ module TypedForm
112
112
  end
113
113
 
114
114
  def typecast_answer(answer:, type:)
115
+ return nil if answer.nil?
115
116
  case type
116
117
  when "date" then normalized_date(answer)
117
118
  when "number" then answer.to_i
@@ -1,4 +1,4 @@
1
1
  module TypedForm
2
2
  # Up-to-date version of gem.
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typed_form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Cole
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-03-21 00:00:00.000000000 Z
12
+ date: 2017-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty