typed_form 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/typed_form/form.rb +1 -1
- data/lib/typed_form/util.rb +1 -1
- data/lib/typed_form/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31a6f06e1de4ee8e65b282673f608b242320829c
|
4
|
+
data.tar.gz: a09a80c364f5d80d08b9706e13a0522f455b8bf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06ec3df659c962719dadea1a89a99923a5afa6f640964bbd050d8cf2af27e607cfbf0340d0279f3b2b756e9696c986bdcc114184de72640785b8896735bb0d6f
|
7
|
+
data.tar.gz: a5032ffaba5ed36c9d243a0b2a50c2fcfd2ce171e1322a1f1f69f3b2665879261d8ebbe414e983b7872f0a57a679758a4eef73a0379277d16e2575addc48cb91
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
### [0.1.7] - 2017-08-10
|
4
|
+
|
5
|
+
Fixes issues interpreting `\xC2\xA0` by replacing it with a standard space (alternate representation of `\u00a0` initially removed in 0.1.2).
|
6
|
+
|
3
7
|
### [0.1.6] - 2017-03-22
|
4
8
|
|
5
9
|
Fixes NoMethodError: undefined method `[]' for nil:NilClass error when normalizing optional date fields that are left blank (which translates to nil in Typeform Data).
|
data/README.md
CHANGED
data/lib/typed_form/form.rb
CHANGED
@@ -18,7 +18,7 @@ module TypedForm
|
|
18
18
|
|
19
19
|
# Creates a new instance of a Form, to allow querying
|
20
20
|
#
|
21
|
-
# @
|
21
|
+
# @param [String] json Typeform Data API JSON input for form.
|
22
22
|
def initialize(json:)
|
23
23
|
@raw_json = json
|
24
24
|
end
|
data/lib/typed_form/util.rb
CHANGED
@@ -4,7 +4,7 @@ module TypedForm
|
|
4
4
|
# Removes non-breaking spaces (character point 160) from TypeForm data
|
5
5
|
# before beginning processing.
|
6
6
|
def self.normalize_spaces(text)
|
7
|
-
text.gsub(
|
7
|
+
text.gsub(/(\\u00a0|\\xC2\\xA0)/, " ").gsub(/[[:space:]]/, " ")
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
data/lib/typed_form/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.7
|
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-
|
12
|
+
date: 2017-08-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
requirements: []
|
167
167
|
rubyforge_project:
|
168
|
-
rubygems_version: 2.6.
|
168
|
+
rubygems_version: 2.6.11
|
169
169
|
signing_key:
|
170
170
|
specification_version: 4
|
171
171
|
summary: typed_form provides an interface for retrieving results from Typeform surveys
|