multi_type 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/multi_type/group.rb +4 -0
- data/lib/multi_type/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 629a1484c92cc74994972dadea22b83bbde645a5
|
4
|
+
data.tar.gz: 3c536ff19cda406925ac83a5e6fb512da09a4609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 522e8bbd21769ee613fc1b5d7b75b38d7f2f40fd08822736593270e53f60d4b03af10af3bc3c9a4249aa71a5a91229b85b5517c6909b2a3b99ecf61a2ed2ba3b
|
7
|
+
data.tar.gz: 3fb2f2afbfb0598c7926223e236214aa944370021bb9038e7b9f4d7bf679165ded422ea6c0a9a3ad43ae86125025229ace0f1c67e7e834af590f9a37391247d2
|
data/README.md
CHANGED
@@ -93,6 +93,15 @@ ConnectionErrors = MultiType[
|
|
93
93
|
SocketErrors # note that this is a multi type
|
94
94
|
]
|
95
95
|
|
96
|
+
# or like that. Does the same thing:
|
97
|
+
|
98
|
+
ConnectionErrors = SocketErrors.add(
|
99
|
+
Excon::Errors::ResponseParseError,
|
100
|
+
Excon::Errors::SocketError,
|
101
|
+
Excon::Errors::Timeout,
|
102
|
+
Net::HTTPBadResponse
|
103
|
+
)
|
104
|
+
|
96
105
|
# Now ConnectionErrors include all SocketErrors and a bunch of new types
|
97
106
|
```
|
98
107
|
|
data/lib/multi_type/group.rb
CHANGED
data/lib/multi_type/version.rb
CHANGED