calendlyr 0.7.1 → 0.7.2
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 +4 -4
- data/README.md +2 -2
- data/lib/calendlyr/error.rb +6 -0
- data/lib/calendlyr/version.rb +1 -1
- data/test/fixtures/resources/424.json +1 -4
- data/test/fixtures/resources/429.json +4 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9d08b30cddb6172f8941fa8c8841a6dacb46754187c8c2b03292298b92a0e0d
|
4
|
+
data.tar.gz: 3ba42d35d1d5e7cb9c97d7cb59eacfc32daea9e07581109bc5023309702d669b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b624f9496806b7058589d2775424b7a7f117c0679c484c5178be7b7a185ce6ca60bb6717d740ce57e6177f399ae5eb13bd35c0858ef0b71abefa452d3a56d40
|
7
|
+
data.tar.gz: 027d776e027168addd7e5d13330eb3a5a88cf7c7aa41c3f8703afe88d215c0d654871935cb679067fe90e266d925745f39100a79276f57c7bca4673e970877d3
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[](https://codecov.io/gh/araluce/calendlyr)
|
4
4
|

|
5
5
|
[](https://badge.fury.io/rb/calendlyr)
|
6
|
-
](https://img.shields.io/gem/dv/calendlyr/0.7.2)
|
7
7
|
|
8
8
|
# Calendly API Rubygem
|
9
9
|
|
@@ -24,7 +24,7 @@ We understand the importance of not adding unwanted dependencies.
|
|
24
24
|
Add this line to your application's Gemfile:
|
25
25
|
|
26
26
|
```ruby
|
27
|
-
gem 'calendlyr', '0.7.
|
27
|
+
gem 'calendlyr', '0.7.2'
|
28
28
|
```
|
29
29
|
|
30
30
|
And then execute:
|
data/lib/calendlyr/error.rb
CHANGED
@@ -26,6 +26,8 @@ module Calendlyr
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def error
|
29
|
+
return too_many_requests_error if @code == "429"
|
30
|
+
|
29
31
|
error_type.new("[Error #{@code}] #{@body["title"]}. #{@body["message"]}")
|
30
32
|
end
|
31
33
|
|
@@ -36,5 +38,9 @@ module Calendlyr
|
|
36
38
|
|
37
39
|
ERROR_TYPES[@code]
|
38
40
|
end
|
41
|
+
|
42
|
+
def too_many_requests_error
|
43
|
+
error_type.new("[Error #{@code}] Too many requests, please try again later.")
|
44
|
+
end
|
39
45
|
end
|
40
46
|
end
|
data/lib/calendlyr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: calendlyr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- araluce
|
@@ -298,6 +298,7 @@ files:
|
|
298
298
|
- test/fixtures/resources/403_payment_required.json
|
299
299
|
- test/fixtures/resources/404.json
|
300
300
|
- test/fixtures/resources/424.json
|
301
|
+
- test/fixtures/resources/429.json
|
301
302
|
- test/fixtures/resources/500.json
|
302
303
|
- test/fixtures/routing_forms/list.json
|
303
304
|
- test/fixtures/routing_forms/list_routing_form_submission.json
|