typeform_data 0.0.3 → 0.0.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f71a20725a1b7dc1a2d6aef5ddf5beda089c7db
|
4
|
+
data.tar.gz: dcfcca188cfb6f976c5d9ae12605f963dd572231
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|