calendly 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +23 -0
- data/CHANGELOG.md +10 -0
- data/lib/calendly/client.rb +20 -0
- data/lib/calendly/models/event.rb +13 -0
- data/lib/calendly/version.rb +1 -1
- metadata +4 -4
- data/.github/workflows/test.yml +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 976f8715cad3cc60600eb17a6dec0b364ff90c048d04e69e3f2fc7c5acec7390
|
4
|
+
data.tar.gz: c2213ebf1d5fc3cb346aff8ef08127721b3a55ff3cf4ac6e6fbf3bdebaaabdba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ea3809ac9f67a07c28f714f3428ea8af22a9c511214bfe4dfe6be4776e07e7b1835da89893b954db34225b4b2745136af2f99b549ea4d474b05efd60b1cbc61
|
7
|
+
data.tar.gz: 638f8e513175d41704678f5325f01a3f8d8f7003a6aa450f84b8156eef43b18fe20812b03cdf6d2ab94ecc01368bb67ec2d53d6f97b486c54cb39072191272d0
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: Ruby CI
|
2
|
+
on: [push]
|
3
|
+
|
4
|
+
jobs:
|
5
|
+
test:
|
6
|
+
runs-on: ubuntu-latest
|
7
|
+
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
ruby-version: ['2.5', '2.6', '2.7', '3.0', '3.1']
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v3
|
14
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: ${{ matrix.ruby-version }}
|
18
|
+
- name: Install dependencies
|
19
|
+
run: bundle install
|
20
|
+
- name: Run tests
|
21
|
+
run: bundle exec rake test
|
22
|
+
env:
|
23
|
+
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.11.0 - 2022-05-02
|
4
|
+
|
5
|
+
- supported a API `POST /scheduled_events/{uuid}/cancellation`. (#48)
|
6
|
+
- changed files:
|
7
|
+
- Client
|
8
|
+
- (Add method) cancel_event
|
9
|
+
- Event
|
10
|
+
- (Add method) cancel
|
11
|
+
- improved CI to test by multiple Ruby versions.
|
12
|
+
|
3
13
|
## 0.10.0 - 2022-04-15
|
4
14
|
|
5
15
|
- supported a API `POST /data_compliance/deletion/invitees`. (#28)
|
data/lib/calendly/client.rb
CHANGED
@@ -204,6 +204,26 @@ module Calendly
|
|
204
204
|
[evs, next_page_params(body)]
|
205
205
|
end
|
206
206
|
|
207
|
+
#
|
208
|
+
# Cancels specified event.
|
209
|
+
#
|
210
|
+
# @param [String] uuid the event's unique indentifier.
|
211
|
+
# @param [Hash] options the optional request parameters. Optional.
|
212
|
+
# @option options [String] :reason reason for cancellation.
|
213
|
+
# @return [InviteeCancellation]
|
214
|
+
# @raise [Calendly::Error] if the uuid arg is empty.
|
215
|
+
# @raise [Calendly::ApiError] if the api returns error code.
|
216
|
+
# @since 0.11.0
|
217
|
+
def cancel_event(uuid, options: nil)
|
218
|
+
check_not_empty uuid, 'uuid'
|
219
|
+
|
220
|
+
opts_keys = %i[reason]
|
221
|
+
params = merge_options options, opts_keys
|
222
|
+
|
223
|
+
body = request :post, "scheduled_events/#{uuid}/cancellation", body: params
|
224
|
+
InviteeCancellation.new body[:resource], self
|
225
|
+
end
|
226
|
+
|
207
227
|
#
|
208
228
|
# Get List of scheduled events belonging to a specific user.
|
209
229
|
#
|
@@ -85,6 +85,19 @@ module Calendly
|
|
85
85
|
client.scheduled_event uuid
|
86
86
|
end
|
87
87
|
|
88
|
+
#
|
89
|
+
# Cancels specified event.
|
90
|
+
#
|
91
|
+
# @param [Hash] options the optional request parameters. Optional.
|
92
|
+
# @option options [String] :reason reason for cancellation.
|
93
|
+
# @return [InviteeCancellation]
|
94
|
+
# @raise [Calendly::Error] if the uuid is empty.
|
95
|
+
# @raise [Calendly::ApiError] if the api returns error code.
|
96
|
+
# @since 0.11.0
|
97
|
+
def cancel(options: nil)
|
98
|
+
client.cancel_event uuid, options: options
|
99
|
+
end
|
100
|
+
|
88
101
|
#
|
89
102
|
# Returns all Event Invitees associated with self.
|
90
103
|
#
|
data/lib/calendly/version.rb
CHANGED
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.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenji Koshikawa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|
@@ -129,8 +129,8 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
+
- ".github/workflows/ci.yml"
|
132
133
|
- ".github/workflows/gem-push.yml"
|
133
|
-
- ".github/workflows/test.yml"
|
134
134
|
- ".gitignore"
|
135
135
|
- ".rubocop.yml"
|
136
136
|
- CHANGELOG.md
|
@@ -176,7 +176,7 @@ metadata:
|
|
176
176
|
homepage_uri: https://github.com/koshilife/calendly-api-ruby-client
|
177
177
|
source_code_uri: https://github.com/koshilife/calendly-api-ruby-client
|
178
178
|
changelog_uri: https://github.com/koshilife/calendly-api-ruby-client/blob/master/CHANGELOG.md
|
179
|
-
documentation_uri: https://www.rubydoc.info/gems/calendly/0.
|
179
|
+
documentation_uri: https://www.rubydoc.info/gems/calendly/0.11.0
|
180
180
|
post_install_message:
|
181
181
|
rdoc_options: []
|
182
182
|
require_paths:
|
data/.github/workflows/test.yml
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
name: Test
|
2
|
-
|
3
|
-
on: pull_request
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
test:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
|
9
|
-
steps:
|
10
|
-
- uses: actions/checkout@v2
|
11
|
-
- name: Set up Ruby
|
12
|
-
uses: ruby/setup-ruby@v1
|
13
|
-
with:
|
14
|
-
ruby-version: 2.6
|
15
|
-
- name: Build and test
|
16
|
-
run: |
|
17
|
-
gem install bundler
|
18
|
-
bundle install --jobs 4 --retry 3
|
19
|
-
bundle exec rake test
|
20
|
-
env:
|
21
|
-
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
|