cronofy 0.34.0 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/cronofy/errors.rb +15 -0
- data/lib/cronofy/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c20768b0500ee2cb9e902443eada181d2cddafad064febfe1d9e89481fc3d242
|
4
|
+
data.tar.gz: 822d3f453e190ef16b42a07a24ceeba06375bc8641d544cf09085d79f6fce101
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4992da5ff0a8becd7237982e8867b67b8f32e56d5293c3758b05494b38f05307b841e9109f1299cd968e4d0b1f9f6d16da463553d8167d6bc8113c613440f122
|
7
|
+
data.tar.gz: 505d13d30dfced6e3c7524ceecd7efcaa51bbede71761f948a3583c91d4c35e65d3481d8851da78a03ed28ad870307bbc30ec6f18a8b0a5904926204aae17f62
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [0.35.0]
|
2
|
+
|
3
|
+
* Add specific errors for network issues [#77]
|
4
|
+
|
1
5
|
## [0.34.0]
|
2
6
|
|
3
7
|
* Support removing a participant from a Smart Invite [#75]
|
@@ -157,6 +161,7 @@
|
|
157
161
|
[0.32.0]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.32.0
|
158
162
|
[0.33.0]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.33.0
|
159
163
|
[0.34.0]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.34.0
|
164
|
+
[0.35.0]: https://github.com/cronofy/cronofy-ruby/releases/tag/v0.35.0
|
160
165
|
|
161
166
|
[#13]: https://github.com/cronofy/cronofy-ruby/pull/13
|
162
167
|
[#16]: https://github.com/cronofy/cronofy-ruby/pull/16
|
@@ -195,3 +200,4 @@
|
|
195
200
|
[#73]: https://github.com/cronofy/cronofy-ruby/pull/73
|
196
201
|
[#74]: https://github.com/cronofy/cronofy-ruby/pull/74
|
197
202
|
[#75]: https://github.com/cronofy/cronofy-ruby/pull/75
|
203
|
+
[#77]: https://github.com/cronofy/cronofy-ruby/pull/77
|
data/lib/cronofy/errors.rb
CHANGED
@@ -68,6 +68,18 @@ module Cronofy
|
|
68
68
|
class PaymentRequiredError < APIError
|
69
69
|
end
|
70
70
|
|
71
|
+
class ServiceUnreachableError < APIError
|
72
|
+
end
|
73
|
+
|
74
|
+
class BadGatewayError < ServiceUnreachableError
|
75
|
+
end
|
76
|
+
|
77
|
+
class ServiceUnavailableError < ServiceUnreachableError
|
78
|
+
end
|
79
|
+
|
80
|
+
class GatewayTimeoutError < ServiceUnreachableError
|
81
|
+
end
|
82
|
+
|
71
83
|
class UnknownError < APIError
|
72
84
|
end
|
73
85
|
|
@@ -83,6 +95,9 @@ module Cronofy
|
|
83
95
|
423 => AccountLockedError,
|
84
96
|
429 => TooManyRequestsError,
|
85
97
|
500 => ServerError,
|
98
|
+
502 => BadGatewayError,
|
99
|
+
503 => ServiceUnavailableError,
|
100
|
+
504 => GatewayTimeoutError,
|
86
101
|
}.freeze
|
87
102
|
|
88
103
|
def self.map_error(error)
|
data/lib/cronofy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cronofy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.35.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergii Paryzhskyi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-02-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
156
156
|
- !ruby/object:Gem::Version
|
157
157
|
version: '0'
|
158
158
|
requirements: []
|
159
|
-
rubygems_version: 3.0.
|
159
|
+
rubygems_version: 3.0.3
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: Cronofy - one API for all the calendars
|