calendlyr 0.7.1 → 0.7.2

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
  SHA256:
3
- metadata.gz: 4e919a79ee8a607c497ff0e9b7a3dbf8e035d31c2c1687303806c5fd80de1f55
4
- data.tar.gz: adf1ff59d69fdcf9c6e34804b7d352d27e499a62765d488ee9acf9418ed997e3
3
+ metadata.gz: e9d08b30cddb6172f8941fa8c8841a6dacb46754187c8c2b03292298b92a0e0d
4
+ data.tar.gz: 3ba42d35d1d5e7cb9c97d7cb59eacfc32daea9e07581109bc5023309702d669b
5
5
  SHA512:
6
- metadata.gz: 7dbea6a806ad7cc8ce2e661d1af464d184d54cfbba44dae35c33d3e7a07e67c58a7f7fd8c6c33fc08b0663cef10d35fc69f442bc964b7eb0d28f6541137cbb49
7
- data.tar.gz: 12a946f4b07d17598560d3307e2c18acabc39714484b934af3aa46a764ea40e5a2cf7f8ec4cbc3ff291ab5f04264f82b873b24dec11390213d17f24e1169d93a
6
+ metadata.gz: 8b624f9496806b7058589d2775424b7a7f117c0679c484c5178be7b7a185ce6ca60bb6717d740ce57e6177f399ae5eb13bd35c0858ef0b71abefa452d3a56d40
7
+ data.tar.gz: 027d776e027168addd7e5d13330eb3a5a88cf7c7aa41c3f8703afe88d215c0d654871935cb679067fe90e266d925745f39100a79276f57c7bca4673e970877d3
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![codecov](https://codecov.io/gh/araluce/calendlyr/branch/master/graph/badge.svg?token=YSUU4PHM6Y)](https://codecov.io/gh/araluce/calendlyr)
4
4
  ![example workflow](https://github.com/araluce/calendlyr/actions/workflows/ci.yml/badge.svg)
5
5
  [![Gem Version](https://badge.fury.io/rb/calendlyr.svg)](https://badge.fury.io/rb/calendlyr)
6
- ![Gem Downloads (for specified version)](https://img.shields.io/gem/dv/calendlyr/0.7.0)
6
+ ![Gem Downloads (for specified version)](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.1'
27
+ gem 'calendlyr', '0.7.2'
28
28
  ```
29
29
 
30
30
  And then execute:
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Calendlyr
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
@@ -1,4 +1 @@
1
- {
2
- "title": "External Calendar Error",
3
- "message": "There is a problem accessing your calendar."
4
- }
1
+ {}
@@ -0,0 +1,4 @@
1
+ {
2
+ "title": "External Calendar Error",
3
+ "message": "There is a problem accessing your calendar."
4
+ }
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.1
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