calendly 0.8.0 → 0.8.1

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: 5e6b1e9a3e025d825c0fea46f89e00bff03a5ff64e075fae3794022aad9d6271
4
- data.tar.gz: efb1c10ff8a3e73f4799193a6225c31bfa74d200969699c305cb7aa815c09890
3
+ metadata.gz: 96fd8996d40912f340aa9fb36401dd23576718b728d9df0d33cebbaa8a4a847f
4
+ data.tar.gz: 35589e4bd03edb7f0d9848abb74025f1e62900bbc788c6295d4bedf977cc2102
5
5
  SHA512:
6
- metadata.gz: 6543fec0b13503100c112334d7fe2a32b9bfd69b263064334c52a7ac622ec6f16c0345b222b8d5e94e12912fbbbd841ea26328a5ccd36bdc27b8eb2103a1da0d
7
- data.tar.gz: c86ce5d7a1e7ccf1f60dd3a210aea4435e19910592ca75c7e7da5c357fbd7ab8aaec9e05f3a132c3b89bd9f481c560ec090151e719d21fe72a997b9e6855ef3c
6
+ metadata.gz: '0815e309cf6cc1bb4c383cd2a747b6d43a6e97b5b060ae5e6704dd0eff33568f2f192b17a45991cb140ab632394d5b30a09e88aae2b4dc7ecd5889f49514c899'
7
+ data.tar.gz: 99c9c10f9ab9dab0648419216d3781ac2417a5b43c20172e1ac7c1bb56727627f4ffb1c92a31fed53b194fb38320943ff2f280cd7d024461091a082496595e5d
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 0.8.0
3
+ ## 0.8.1 - 2021-10-20
4
+
5
+ - support new UUID format like 'bbc4f475-6125-435a-b713-2d1634651e10'. (#38, thanks to jameswilliamiii)
6
+
7
+ ## 0.8.0 - 2021-06-03
4
8
 
5
9
  - used keyword arguments for optional parameters, to be friendly for programmer.
6
10
  - changed methods are followings:
@@ -41,12 +45,12 @@
41
45
  - webhooks
42
46
  - webhooks!
43
47
 
44
- ## 0.7.0
48
+ ## 0.7.0 - 2021-06-03
45
49
 
46
- - supported a signing key parameter when creating webhooks. (#33)
50
+ - supported a signing key parameter when creating webhooks. (#33, thanks to ismael-texidor)
47
51
  - changed `user_uri` argument to keyword argument on Client#create_webhook.
48
52
 
49
- ## 0.6.0
53
+ ## 0.6.0 - 2021-05-30
50
54
 
51
55
  - supported new features until April 2021. (#29)
52
56
  - Client
@@ -84,16 +88,16 @@
84
88
  - fixed debug log encoding error. (#30)
85
89
  - improved inspect method to be more readable in CLI.
86
90
 
87
- ## 0.5.2
91
+ ## 0.5.2 - 2020-12-13
88
92
 
89
93
  - started to support a API
90
94
  - `POST /scheduling_links`
91
95
 
92
- ## 0.5.1
96
+ ## 0.5.1 - 2020-12-13
93
97
 
94
98
  - added method EventType#fetch
95
99
 
96
- ## 0.5.0
100
+ ## 0.5.0 - 2020-12-13
97
101
 
98
102
  - changed Calendly::Client#scheduled_events behavior (refs #21)
99
103
  - previous version:
@@ -102,7 +106,7 @@
102
106
  - getting all events belonging to a specific ORGANIZATION
103
107
  - added Calendly::Client#scheduled_events_by_user method instead_of the before behavior
104
108
 
105
- ## 0.4.2
109
+ ## 0.4.2 - 2020-11-26
106
110
 
107
111
  - added new following fields to Invitee model (refs #21)
108
112
  - :rescheduled
@@ -111,24 +115,24 @@
111
115
  - :cancel_url
112
116
  - :reschedule_url
113
117
 
114
- ## 0.4.1
118
+ ## 0.4.1 - 2020-11-22
115
119
 
116
120
  - started to support a API
117
121
  - `GET /event_types/{uuid}`
118
122
 
119
- ## 0.4.0
123
+ ## 0.4.0 - 2020-11-21
120
124
 
121
125
  - fixed a changes for Location fields such as `kind` to `type`. (refs #18)
122
126
 
123
- ## 0.3.0
127
+ ## 0.3.0 - 2020-11-18
124
128
 
125
129
  - removed zeitwerk dependency. (refs #16)
126
130
 
127
- ## 0.2.0
131
+ ## 0.2.0 - 2020-09-18
128
132
 
129
133
  - added caching features in object when fetching data. (refs #14)
130
134
 
131
- ## 0.1.3
135
+ ## 0.1.3 - 2020-09-17
132
136
 
133
137
  - support webhook APIs (refs #9)
134
138
  - `GET /webhook_subscriptions`
@@ -136,34 +140,34 @@
136
140
  - `POST /webhook_subscriptions`
137
141
  - `DELETE /webhook_subscriptions/{webhook_uuid}`
138
142
 
139
- ## 0.1.2
143
+ ## 0.1.2 - 2020-09-03
140
144
 
141
145
  - fixed rubocop warnings.
142
146
 
143
- ## 0.1.1
147
+ ## 0.1.1 - 2020-08-27
144
148
 
145
149
  - added tests to make coverage 100%.
146
150
 
147
- ## 0.1.0
151
+ ## 0.1.0 - 2020-08-25
148
152
 
149
153
  - defined methods to access associated resources with each model.
150
154
  - renamed methods:
151
155
  - `Calendly::Client#events` to `Calendly::Client#scheduled_events`
152
156
 
153
- ## 0.0.7.alpha
157
+ ## 0.0.7.alpha - 2020-08-23
154
158
 
155
159
  - started to support APIs
156
160
  - `POST /organizations/{uuid}/invitations`
157
161
  - `DELETE /organizations/{org_uuid}/invitations/{invitation_uuid}`
158
162
  - `DELETE /organization_memberships/{uuid}`
159
163
 
160
- ## 0.0.6.alpha
164
+ ## 0.0.6.alpha - 2020-08-22
161
165
 
162
166
  - started to support APIs
163
167
  - `GET /organizations/{uuid}/invitations`
164
168
  - `GET /organizations/{organization_uuid}/invitations/{invitation_uuid}`
165
169
 
166
- ## 0.0.5.alpha
170
+ ## 0.0.5.alpha - 2020-08-22
167
171
 
168
172
  - started to support APIs
169
173
  - `GET /organization_memberships`
@@ -172,24 +176,24 @@
172
176
  - Invitee#event to Invitee#event_uri
173
177
  - Event#event_type to Event#event_type_uri
174
178
 
175
- ## 0.0.4.alpha
179
+ ## 0.0.4.alpha - 2020-08-22
176
180
 
177
181
  - started to support APIs
178
182
  - `GET /scheduled_events/{event_uuid}/invitees`
179
183
  - `GET /scheduled_events/{event_uuid}/invitees/{invitee_uuid}`
180
184
 
181
- ## 0.0.3.alpha
185
+ ## 0.0.3.alpha - 2020-08-19
182
186
 
183
187
  - started to support APIs
184
188
  - `GET /scheduled_events`
185
189
  - `GET /scheduled_events/{uuid}`
186
190
 
187
- ## 0.0.2.alpha
191
+ ## 0.0.2.alpha - 2020-08-12
188
192
 
189
193
  - started to support APIs
190
194
  - `GET /event_types`
191
195
 
192
- ## 0.0.1.alpha
196
+ ## 0.0.1.alpha - 2020-08-09
193
197
 
194
198
  - Initial release
195
199
  - started to support a API
@@ -12,7 +12,7 @@ module Calendly
12
12
  # A meeting that has been scheduled.
13
13
  class Event
14
14
  include ModelUtils
15
- UUID_RE = %r{\A#{Client::API_HOST}/scheduled_events/(\w+)\z}.freeze
15
+ UUID_RE = %r{\A#{Client::API_HOST}/scheduled_events/(#{UUID_FORMAT})\z}.freeze
16
16
  TIME_FIELDS = %i[start_time end_time created_at updated_at].freeze
17
17
  ASSOCIATION = {
18
18
  event_type: EventType,
@@ -10,7 +10,7 @@ module Calendly
10
10
  # A configuration for a schedulable event.
11
11
  class EventType
12
12
  include ModelUtils
13
- UUID_RE = %r{\A#{Client::API_HOST}/event_types/(\w+)\z}.freeze
13
+ UUID_RE = %r{\A#{Client::API_HOST}/event_types/(#{UUID_FORMAT})\z}.freeze
14
14
  TIME_FIELDS = %i[created_at updated_at].freeze
15
15
  ASSOCIATION = {profile: EventTypeProfile, custom_questions: EventTypeCustomQuestion}.freeze
16
16
 
@@ -13,7 +13,7 @@ module Calendly
13
13
  # An individual who has been invited to meet with a Calendly member.
14
14
  class Invitee
15
15
  include ModelUtils
16
- UUID_RE = %r{\A#{Client::API_HOST}/scheduled_events/\w+/invitees/(\w+)\z}.freeze
16
+ UUID_RE = %r{\A#{Client::API_HOST}/scheduled_events/#{UUID_FORMAT}/invitees/(#{UUID_FORMAT})\z}.freeze
17
17
  TIME_FIELDS = %i[created_at updated_at].freeze
18
18
  ASSOCIATION = {
19
19
  event: Event,
@@ -6,6 +6,10 @@ require 'calendly/error'
6
6
  module Calendly
7
7
  # Calendly model utility.
8
8
  module ModelUtils
9
+ # UUID's format is ASCII.
10
+ # refs to official release note of October 2021.
11
+ UUID_FORMAT = '[[:ascii:]]+'
12
+
9
13
  # @param [Hash] attrs the attributes of the model.
10
14
  # @param [Calendly::Client] the api client.
11
15
  def initialize(attrs = nil, client = nil)
@@ -7,7 +7,7 @@ module Calendly
7
7
  # Calendly's organization model.
8
8
  class Organization
9
9
  include ModelUtils
10
- UUID_RE = %r{\A#{Client::API_HOST}/organizations/(\w+)\z}.freeze
10
+ UUID_RE = %r{\A#{Client::API_HOST}/organizations/(#{UUID_FORMAT})\z}.freeze
11
11
 
12
12
  # @return [String]
13
13
  # unique id of the Organization object.
@@ -9,7 +9,7 @@ module Calendly
9
9
  # Calendly's organization invitation model.
10
10
  class OrganizationInvitation
11
11
  include ModelUtils
12
- UUID_RE = %r{\A#{Client::API_HOST}/organizations/\w+/invitations/(\w+)\z}.freeze
12
+ UUID_RE = %r{\A#{Client::API_HOST}/organizations/#{UUID_FORMAT}/invitations/(#{UUID_FORMAT})\z}.freeze
13
13
  TIME_FIELDS = %i[created_at updated_at last_sent_at].freeze
14
14
  ASSOCIATION = {user: User, organization: Organization}.freeze
15
15
 
@@ -9,7 +9,7 @@ module Calendly
9
9
  # Calendly's organization membership model.
10
10
  class OrganizationMembership
11
11
  include ModelUtils
12
- UUID_RE = %r{\A#{Client::API_HOST}/organization_memberships/(\w+)\z}.freeze
12
+ UUID_RE = %r{\A#{Client::API_HOST}/organization_memberships/(#{UUID_FORMAT})\z}.freeze
13
13
  TIME_FIELDS = %i[created_at updated_at].freeze
14
14
  ASSOCIATION = {user: User, organization: Organization}.freeze
15
15
 
@@ -7,7 +7,7 @@ module Calendly
7
7
  # Calendly's team model.
8
8
  class Team
9
9
  include ModelUtils
10
- UUID_RE = %r{\A#{Client::API_HOST}/teams/(\w+)\z}.freeze
10
+ UUID_RE = %r{\A#{Client::API_HOST}/teams/(#{UUID_FORMAT})\z}.freeze
11
11
 
12
12
  # @return [String]
13
13
  # unique id of the Team object.
@@ -8,7 +8,7 @@ module Calendly
8
8
  # Primary account details of a specific user.
9
9
  class User
10
10
  include ModelUtils
11
- UUID_RE = %r{\A#{Client::API_HOST}/users/(\w+)\z}.freeze
11
+ UUID_RE = %r{\A#{Client::API_HOST}/users/(#{UUID_FORMAT})\z}.freeze
12
12
  TIME_FIELDS = %i[created_at updated_at].freeze
13
13
  ASSOCIATION = {current_organization: Organization}.freeze
14
14
 
@@ -9,7 +9,7 @@ module Calendly
9
9
  # Calendly's webhook model.
10
10
  class WebhookSubscription
11
11
  include ModelUtils
12
- UUID_RE = %r{\A#{Client::API_HOST}/webhook_subscriptions/(\w+)\z}.freeze
12
+ UUID_RE = %r{\A#{Client::API_HOST}/webhook_subscriptions/(#{UUID_FORMAT})\z}.freeze
13
13
  TIME_FIELDS = %i[created_at updated_at retry_started_at].freeze
14
14
  ASSOCIATION = {organization: Organization, user: User, creator: User}.freeze
15
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Calendly
4
- VERSION = '0.8.0'
4
+ VERSION = '0.8.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calendly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenji Koshikawa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-03 00:00:00.000000000 Z
11
+ date: 2021-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -161,7 +161,7 @@ metadata:
161
161
  homepage_uri: https://github.com/koshilife/calendly-api-ruby-client
162
162
  source_code_uri: https://github.com/koshilife/calendly-api-ruby-client
163
163
  changelog_uri: https://github.com/koshilife/calendly-api-ruby-client/blob/master/CHANGELOG.md
164
- documentation_uri: https://www.rubydoc.info/gems/calendly/0.8.0
164
+ documentation_uri: https://www.rubydoc.info/gems/calendly/0.8.1
165
165
  post_install_message:
166
166
  rdoc_options: []
167
167
  require_paths: