typeform_data 0.0.3 → 0.0.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: f66614378d50f785ebb54f8e8739bb30ddbc5f48
4
- data.tar.gz: 91ef3fe46c067e7f11f5a503e6dc099ce1fe28d7
3
+ metadata.gz: 5f71a20725a1b7dc1a2d6aef5ddf5beda089c7db
4
+ data.tar.gz: dcfcca188cfb6f976c5d9ae12605f963dd572231
5
5
  SHA512:
6
- metadata.gz: 02d193b05183e53f3774df96873d6847e353b6f98e3042bd5344f9da37bf5a493e7e6a3c5eb6520646d6d54d8202aff81db045dfb91c0c065630e36c6e12f623
7
- data.tar.gz: 24f0f010677b83ca46d8b547ec11f66ec6cc95229789fafc01eb142bb9dd95d21e41bfb5beb383125af74e9e63e8f07f72bebf50262b4d8a06de93252518dc36
6
+ metadata.gz: f6c691c98b1222340f86cb5e7a9234aa3f41212d3f289d7008d8e42dde54dfb8a3d124738f363d6e1429d06da8bdf6a98974136dff6787e66d29fe513338bd67
7
+ data.tar.gz: 04eceaa69ec885857cdd7a3d0d569ce0307ac52fd192d7d4cd7fca48eab3443e4eae3d189994ba22797e3dadb5082696556d03724efb06807e6d35254afbf54d
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TypeformData
2
2
 
3
- A Ruby client for Typeform's [Data API](https://www.typeform.com/help/data-api/).
3
+ A Ruby client for Typeform's [Data API](https://www.typeform.com/help/data-api/). Our documentation is available [here](http://www.rubydoc.info/gems/typeform_data/TypeformData/Typeform).
4
4
 
5
5
  **Warning**: this is alpha software, and hasn't been thoroughly vetted in production yet. Use at your own risk :).
6
6
 
@@ -9,10 +9,16 @@ module TypeformData
9
9
  end
10
10
 
11
11
  def ==(other)
12
+ unless other.respond_to?(:sort_key) && other.respond_to?(:config)
13
+ raise ArgumentError, "#{other.inspect} does not specify a sort key and config"
14
+ end
12
15
  other.sort_key == sort_key && other.config == config
13
16
  end
14
17
 
15
18
  def <=>(other)
19
+ unless other.respond_to?(:sort_key)
20
+ raise ArgumentError, "#{other.inspect} does not specify a sort key"
21
+ end
16
22
  other.sort_key <=> sort_key
17
23
  end
18
24
 
@@ -19,7 +19,7 @@ module TypeformData
19
19
  # the past tense-- once a potential respondent leaves a Typeform unsubmitted, they can never
20
20
  # go back and complete it.
21
21
  def completed?
22
- @completed == 1
22
+ completed == '1'
23
23
  end
24
24
 
25
25
  def date_submitted
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module TypeformData
3
- VERSION = '0.0.3'
3
+ VERSION = '0.0.4'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typeform_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Wallace