cronofy 0.34.0 → 0.35.0

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
  SHA256:
3
- metadata.gz: 78e9782a7bdba695815ed3931c13185e37fa84d20f450e922ebd906eb4ba74e0
4
- data.tar.gz: 5b43ef1fb59f670be1c8b59316b2b837d56ab9eb94f165c8b7764047d945780b
3
+ metadata.gz: c20768b0500ee2cb9e902443eada181d2cddafad064febfe1d9e89481fc3d242
4
+ data.tar.gz: 822d3f453e190ef16b42a07a24ceeba06375bc8641d544cf09085d79f6fce101
5
5
  SHA512:
6
- metadata.gz: 159294f3efa6c0ff5ce443e1610a532d2e4ede0758589a1b38abddd134b0e7f88ad63525f471dd0d6f002966b111503ce14b00d67ceca487f58b6bab3534d06c
7
- data.tar.gz: 040d8238dd7a35ea6810279da80453f45efcad258459bf49c68b959f5c54ee07816e8e437b82c040e1b3fa29a0a74a75e8b3919a0bee6e68a2ffa8c1733b08d1
6
+ metadata.gz: 4992da5ff0a8becd7237982e8867b67b8f32e56d5293c3758b05494b38f05307b841e9109f1299cd968e4d0b1f9f6d16da463553d8167d6bc8113c613440f122
7
+ data.tar.gz: 505d13d30dfced6e3c7524ceecd7efcaa51bbede71761f948a3583c91d4c35e65d3481d8851da78a03ed28ad870307bbc30ec6f18a8b0a5904926204aae17f62
@@ -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
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Cronofy
2
- VERSION = "0.34.0".freeze
2
+ VERSION = "0.35.0".freeze
3
3
  end
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.34.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: 2019-11-06 00:00:00.000000000 Z
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.6
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