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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fa63d51ebfecbbd843f9d9fa3ca563d65c8372b
4
- data.tar.gz: 82d801cb3fd3c7aa84729b8129a41b25d6eb8c56
3
+ metadata.gz: 31a6f06e1de4ee8e65b282673f608b242320829c
4
+ data.tar.gz: a09a80c364f5d80d08b9706e13a0522f455b8bf4
5
5
  SHA512:
6
- metadata.gz: 200a54b79112d5772d257f43ee8ea57db9dcb65203b79c5e4ecd4a2394ce9f463e752622c1c5e14ba05e7cbb9f0ea426067e3178bdc225ff17ee125efc1a848a
7
- data.tar.gz: b563c6f709f1b67b2e87b7dd952eae76faed4f5dba602d360c460188dd86be4bcd9ab715d96d56cf50786c0f7eb21dfe713afd47f5027b98175f12c730127360
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
@@ -86,7 +86,7 @@ form = TypedForm::Form.find_form_by(
86
86
  )
87
87
 
88
88
  # Or, load from existing JSON
89
- form = TypedForm::Form.build_form_from(json: your_json_source)
89
+ form = TypedForm::Form.new(json: your_json_source)
90
90
  questions = form.questions
91
91
 
92
92
  questions.first.text
@@ -18,7 +18,7 @@ module TypedForm
18
18
 
19
19
  # Creates a new instance of a Form, to allow querying
20
20
  #
21
- # @params [String] json Typeform Data API JSON input for form.
21
+ # @param [String] json Typeform Data API JSON input for form.
22
22
  def initialize(json:)
23
23
  @raw_json = json
24
24
  end
@@ -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("\\u00a0", " ").gsub(/[[:space:]]/, " ")
7
+ text.gsub(/(\\u00a0|\\xC2\\xA0)/, " ").gsub(/[[:space:]]/, " ")
8
8
  end
9
9
  end
10
10
  end
@@ -1,4 +1,4 @@
1
1
  module TypedForm
2
2
  # Up-to-date version of gem.
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
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.6
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-03-23 00:00:00.000000000 Z
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.8
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