ruby-trello 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -26
- data/lib/trello/comment.rb +9 -6
- data/spec/cassettes/can_get_comments_board.yml +109 -0
- data/spec/cassettes/can_get_comments_card.yml +111 -0
- data/spec/cassettes/can_get_comments_list.yml +109 -0
- data/spec/cassettes/comment_delete.yml +331 -0
- data/spec/cassettes/comment_find_with_id.yml +116 -0
- data/spec/integration/comment/association/board_spec.rb +17 -0
- data/spec/integration/comment/association/card_spec.rb +17 -0
- data/spec/integration/comment/association/list_spec.rb +17 -0
- data/spec/integration/comment/delete_spec.rb +20 -0
- data/spec/integration/comment/find_spec.rb +17 -0
- metadata +22 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c36f88684585632f2f1fc785ea06cd651b6ba61105c1326e49cc9e4cbf1f5080
|
4
|
+
data.tar.gz: 1aeafd0ed644ac395d71ea296feac980ebd013f1b915c1caa99845c86c24d2b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4305a964e59f049220842e64dbd9df87dc4f94ff3a43825700178d2efeeae069dd607f718c6d1e027556921b20b6a2e187e92076d5debd85e314c916a61c5845
|
7
|
+
data.tar.gz: ba6056ba114bfb48cae07fad2acc4742641c3ef9c0adecdfbf0ee7f6aa4e6e08375ebbff6978918e4f1979c9a2b6ed33d29c1a846b6e89446b848e0cfb84576d
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Ruby Trello API
|
2
2
|
|
3
|
-
[![
|
4
|
-
[![security](https://hakiri.io/github/jeremytregunna/ruby-trello/master.svg)](https://hakiri.io/github/jeremytregunna/ruby-trello/master)
|
3
|
+
[![Ruby](https://github.com/jeremytregunna/ruby-trello/actions/workflows/main.yml/badge.svg)](https://github.com/jeremytregunna/ruby-trello/actions/workflows/main.yml)
|
5
4
|
[![Code Climate](https://codeclimate.com/github/jeremytregunna/ruby-trello/badges/gpa.svg)](https://codeclimate.com/github/jeremytregunna/ruby-trello)
|
6
5
|
|
7
6
|
This library implements the [Trello](http://www.trello.com/) [API](https://developers.trello.com/).
|
@@ -16,7 +15,16 @@ to, please just [create an issue](https://github.com/jeremytregunna/ruby-trello/
|
|
16
15
|
|
17
16
|
## Requirements
|
18
17
|
|
19
|
-
|
18
|
+
| Ruby \ ActiveModel | 4.2 | 5.2 | 6.0 | 6.1 | 7.0 |
|
19
|
+
| ---- | ---- | ---- | ---- | ---- | ---- |
|
20
|
+
| 2.5 | ✅ | ✅ | ✅ | ✅ | ❌ |
|
21
|
+
| 2.6 | ✅ | ✅ | ✅ | ✅ | ❌ |
|
22
|
+
| 2.7 | ❌ | ✅ | ✅ | ✅ | ✅ |
|
23
|
+
| 3.0 | ❌ | ❌ | ✅ | ✅ | ✅ |
|
24
|
+
| 3.1 | ❌ | ❌ | ✅ | ✅ | ✅ |
|
25
|
+
| jRuby 9.3 | ✅ | ✅ | ✅ | ✅ | ❌ |
|
26
|
+
|
27
|
+
Use the newest version for Ruby 2.5.0 or newer support.
|
20
28
|
|
21
29
|
Use version 2.2.1 or earlier for Ruby 2.1 ~ 2.4 support.
|
22
30
|
|
@@ -188,46 +196,41 @@ Please see the `CONTRIBUTING.md` file for more information.
|
|
188
196
|
|
189
197
|
## Local Development
|
190
198
|
|
191
|
-
|
199
|
+
Use [matrixeval-ruby](https://github.com/MatrixEval/matrixeval-ruby) to test code againsts different ruby and active_model versions on local.
|
192
200
|
|
193
|
-
|
194
|
-
make init
|
195
|
-
```
|
196
|
-
|
197
|
-
Bundle install for all Ruby versions
|
201
|
+
Check available commands with:
|
198
202
|
|
199
203
|
```bash
|
200
|
-
|
204
|
+
matrixeval --help
|
205
|
+
# Or
|
206
|
+
meval --help
|
201
207
|
```
|
202
208
|
|
203
|
-
|
209
|
+
### Some examples:
|
210
|
+
|
211
|
+
Generate MatrixEval config file
|
204
212
|
|
205
213
|
```bash
|
206
|
-
|
214
|
+
matrixeval init
|
207
215
|
```
|
208
216
|
|
209
|
-
Run
|
217
|
+
Run bundle install
|
210
218
|
|
211
219
|
```bash
|
212
|
-
|
213
|
-
make test:ruby_2_6
|
214
|
-
make test:ruby_2_7
|
215
|
-
make test:ruby_3_0
|
216
|
-
make test:jruby_9_2
|
220
|
+
matrixeval --all bundle install
|
217
221
|
```
|
218
222
|
|
219
|
-
|
223
|
+
Run tests
|
220
224
|
|
221
225
|
```bash
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
make dev:ruby_3_0
|
226
|
-
make dev:jruby_9_2
|
226
|
+
matrixeval --all rspec
|
227
|
+
matrixeval --ruby 3.0 rspec spec/a_spec.rb
|
228
|
+
matrixeval --ruby 3.0 --active_model 7.0 rspec
|
227
229
|
```
|
228
230
|
|
229
|
-
|
231
|
+
Bash
|
230
232
|
|
231
233
|
```bash
|
232
|
-
|
234
|
+
matrixeval bash
|
235
|
+
matrixeval --ruby 3.0 --active_model 7.0 bash
|
233
236
|
```
|
data/lib/trello/comment.rb
CHANGED
@@ -36,33 +36,36 @@ module Trello
|
|
36
36
|
attribute :text, update_only: true
|
37
37
|
end
|
38
38
|
|
39
|
-
validates_presence_of :
|
39
|
+
validates_presence_of :id, :text, :date, :creator_id
|
40
40
|
validates_length_of :text, in: 1..16384
|
41
41
|
|
42
42
|
class << self
|
43
43
|
def find(action_id)
|
44
|
-
client.
|
44
|
+
response = client.get("/actions/#{action_id}")
|
45
|
+
self.parse response do |data|
|
46
|
+
data.client = client
|
47
|
+
end
|
45
48
|
end
|
46
49
|
end
|
47
50
|
|
48
51
|
# Returns the board this comment is located
|
49
52
|
def board
|
50
|
-
Board.from_response client.get("/actions/#{
|
53
|
+
Board.from_response client.get("/actions/#{id}/board")
|
51
54
|
end
|
52
55
|
|
53
56
|
# Returns the card the comment is located
|
54
57
|
def card
|
55
|
-
Card.from_response client.get("/actions/#{
|
58
|
+
Card.from_response client.get("/actions/#{id}/card")
|
56
59
|
end
|
57
60
|
|
58
61
|
# Returns the list the comment is located
|
59
62
|
def list
|
60
|
-
List.from_response client.get("/actions/#{
|
63
|
+
List.from_response client.get("/actions/#{id}/list")
|
61
64
|
end
|
62
65
|
|
63
66
|
# Deletes the comment from the card
|
64
67
|
def delete
|
65
|
-
ruta = "/actions/#{
|
68
|
+
ruta = "/actions/#{id}"
|
66
69
|
client.delete(ruta)
|
67
70
|
end
|
68
71
|
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.trello.com/1/actions/61faa73dd180eb86947af0fd/board?key=DEVELOPER_PUBLIC_KEY&token=MEMBER_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (linux x86_64) ruby/3.0.0p0
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Host:
|
17
|
+
- api.trello.com
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
X-Dns-Prefetch-Control:
|
24
|
+
- 'off'
|
25
|
+
X-Frame-Options:
|
26
|
+
- DENY
|
27
|
+
X-Download-Options:
|
28
|
+
- noopen
|
29
|
+
X-Permitted-Cross-Domain-Policies:
|
30
|
+
- none
|
31
|
+
Referrer-Policy:
|
32
|
+
- strict-origin-when-cross-origin
|
33
|
+
Surrogate-Control:
|
34
|
+
- no-store
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, must-revalidate, no-cache, no-store
|
37
|
+
Pragma:
|
38
|
+
- no-cache
|
39
|
+
Expires:
|
40
|
+
- Thu, 01 Jan 1970 00:00:00
|
41
|
+
X-Trello-Version:
|
42
|
+
- 1.111614.0
|
43
|
+
X-Trello-Environment:
|
44
|
+
- Production
|
45
|
+
Set-Cookie:
|
46
|
+
- dsc=set_cookie_dsc; Path=/; Expires=Sat, 05 Feb 2022 16:00:16 GMT; Secure
|
47
|
+
- preAuthProps=s%3A5e679b808e6e8828784b30e1%3AisEnterpriseAdmin%3Dfalse.oSQJRIF9RziQFo1wvRya3fIryaPvbkhBP%2F03d0%2F%2FuwE;
|
48
|
+
Path=/; HttpOnly
|
49
|
+
Access-Control-Allow-Origin:
|
50
|
+
- "*"
|
51
|
+
Access-Control-Allow-Methods:
|
52
|
+
- GET, PUT, POST, DELETE
|
53
|
+
Access-Control-Allow-Headers:
|
54
|
+
- Authorization, Accept, Content-Type
|
55
|
+
Access-Control-Expose-Headers:
|
56
|
+
- x-rate-limit-api-key-interval-ms, x-rate-limit-api-key-max, x-rate-limit-api-key-remaining,
|
57
|
+
x-rate-limit-api-token-interval-ms, x-rate-limit-api-token-max, x-rate-limit-api-token-remaining
|
58
|
+
X-Rate-Limit-Api-Token-Interval-Ms:
|
59
|
+
- '10000'
|
60
|
+
X-Rate-Limit-Api-Token-Max:
|
61
|
+
- '100'
|
62
|
+
X-Rate-Limit-Api-Token-Remaining:
|
63
|
+
- '99'
|
64
|
+
X-Rate-Limit-Api-Key-Interval-Ms:
|
65
|
+
- '10000'
|
66
|
+
X-Rate-Limit-Api-Key-Max:
|
67
|
+
- '300'
|
68
|
+
X-Rate-Limit-Api-Key-Remaining:
|
69
|
+
- '299'
|
70
|
+
X-Rate-Limit-Member-Interval-Ms:
|
71
|
+
- '10000'
|
72
|
+
X-Rate-Limit-Member-Max:
|
73
|
+
- '375'
|
74
|
+
X-Rate-Limit-Member-Remaining:
|
75
|
+
- '374'
|
76
|
+
X-Server-Time:
|
77
|
+
- '1643817616469'
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
Date:
|
81
|
+
- Wed, 02 Feb 2022 16:00:16 GMT
|
82
|
+
X-Envoy-Upstream-Service-Time:
|
83
|
+
- '112'
|
84
|
+
Expect-Ct:
|
85
|
+
- report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/trello-edge",
|
86
|
+
max-age=86400
|
87
|
+
Strict-Transport-Security:
|
88
|
+
- max-age=63072000; preload
|
89
|
+
X-Content-Type-Options:
|
90
|
+
- nosniff
|
91
|
+
X-Xss-Protection:
|
92
|
+
- 1; mode=block
|
93
|
+
Atl-Traceid:
|
94
|
+
- 8927791bbd7ca38c
|
95
|
+
Report-To:
|
96
|
+
- '{"group": "endpoint-1", "max_age": 600, "endpoints": [{"url": "https://dj9s4kmieytgz.cloudfront.net"}],
|
97
|
+
"include_subdomains": true}'
|
98
|
+
Nel:
|
99
|
+
- '{"report_to": "endpoint-1", "max_age": 600, "include_subdomains": true, "failure_fraction":
|
100
|
+
0.001}'
|
101
|
+
Server:
|
102
|
+
- globaledge-envoy
|
103
|
+
Transfer-Encoding:
|
104
|
+
- chunked
|
105
|
+
body:
|
106
|
+
encoding: ASCII-8BIT
|
107
|
+
string: '{"id":"5e93ba98614ac22d22f085c4","name":"IT 2","desc":"","descData":null,"closed":false,"dateClosed":null,"idOrganization":"5e93ba154634282b6df23bcc","shortLink":"y1TF9GTa","powerUps":[],"dateLastActivity":"2022-02-02T15:46:05.569Z","idTags":[],"datePluginDisable":null,"creationMethod":null,"idBoardSource":null,"idMemberCreator":"5e679b808e6e8828784b30e1","idEnterprise":null,"pinned":false,"starred":true,"url":"https://trello.com/b/y1TF9GTa/it-2","shortUrl":"https://trello.com/b/y1TF9GTa","enterpriseOwned":false,"premiumFeatures":["additionalBoardBackgrounds","additionalStickers","customBoardBackgrounds","customEmoji","customStickers","plugins"],"ixUpdate":"121","limits":{"attachments":{"perBoard":{"status":"ok","disableAt":36000,"warnAt":28800},"perCard":{"status":"ok","disableAt":1000,"warnAt":800}},"boards":{"totalMembersPerBoard":{"status":"ok","disableAt":1600,"warnAt":1280},"totalAccessRequestsPerBoard":{"status":"ok","disableAt":4000,"warnAt":3200}},"cards":{"openPerBoard":{"status":"ok","disableAt":5000,"warnAt":4000},"openPerList":{"status":"ok","disableAt":5000,"warnAt":4000},"totalPerBoard":{"status":"ok","disableAt":2000000,"warnAt":1600000},"totalPerList":{"status":"ok","disableAt":1000000,"warnAt":800000}},"checklists":{"perBoard":{"status":"ok","disableAt":1800000,"warnAt":1440000},"perCard":{"status":"ok","disableAt":500,"warnAt":400}},"checkItems":{"perChecklist":{"status":"ok","disableAt":200,"warnAt":160}},"customFields":{"perBoard":{"status":"ok","disableAt":50,"warnAt":40}},"customFieldOptions":{"perField":{"status":"ok","disableAt":50,"warnAt":40}},"labels":{"perBoard":{"status":"ok","disableAt":1000,"warnAt":800}},"lists":{"openPerBoard":{"status":"ok","disableAt":500,"warnAt":400},"totalPerBoard":{"status":"ok","disableAt":3000,"warnAt":2400}},"stickers":{"perCard":{"status":"ok","disableAt":70,"warnAt":56}},"reactions":{"perAction":{"status":"ok","disableAt":900,"warnAt":720},"uniquePerAction":{"status":"ok","disableAt":17,"warnAt":14}}},"memberships":[{"id":"5e93ba98614ac22d22f085c5","idMember":"5e679b808e6e8828784b30e1","memberType":"admin","unconfirmed":false,"deactivated":false}],"subscribed":false,"dateLastView":"2022-02-02T15:51:08.226Z","templateGallery":null,"prefs":{"permissionLevel":"org","hideVotes":false,"voting":"disabled","comments":"members","invitations":"members","selfJoin":true,"cardCovers":true,"isTemplate":false,"cardAging":"regular","calendarFeedEnabled":false,"hiddenPluginBoardButtons":[],"background":"5e9093e2134e6987494c7ca8","backgroundImage":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/2300ad88b61e46629c4063e0095bf986/photo-1586462175816-c0e709898f01","backgroundImageScaled":[{"width":140,"height":93,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/140x93/08d5092270be6b5bb40247b7a7f5a924/photo-1586462175816-c0e709898f01.jpg"},{"width":256,"height":171,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/256x171/08d5092270be6b5bb40247b7a7f5a924/photo-1586462175816-c0e709898f01.jpg"},{"width":480,"height":320,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/480x320/08d5092270be6b5bb40247b7a7f5a924/photo-1586462175816-c0e709898f01.jpg"},{"width":960,"height":640,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/960x640/08d5092270be6b5bb40247b7a7f5a924/photo-1586462175816-c0e709898f01.jpg"},{"width":1024,"height":683,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1024x683/08d5092270be6b5bb40247b7a7f5a924/photo-1586462175816-c0e709898f01.jpg"},{"width":1280,"height":854,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1280x854/08d5092270be6b5bb40247b7a7f5a924/photo-1586462175816-c0e709898f01.jpg"},{"width":1920,"height":1280,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1920x1280/08d5092270be6b5bb40247b7a7f5a924/photo-1586462175816-c0e709898f01.jpg"},{"width":2048,"height":1366,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/2048x1366/08d5092270be6b5bb40247b7a7f5a924/photo-1586462175816-c0e709898f01.jpg"},{"width":2400,"height":1600,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/2400x1600/08d5092270be6b5bb40247b7a7f5a924/photo-1586462175816-c0e709898f01.jpg"},{"width":2560,"height":1707,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/2300ad88b61e46629c4063e0095bf986/photo-1586462175816-c0e709898f01"}],"backgroundTile":false,"backgroundBrightness":"light","backgroundBottomColor":"#92d3ca","backgroundTopColor":"#d9e3eb","canBePublic":true,"canBeEnterprise":true,"canBeOrg":true,"canBePrivate":true,"canInvite":true},"labelNames":{"green":"","yellow":"","orange":"","red":"","purple":"","blue":"","sky":"","lime":"","pink":"","black":""}}'
|
108
|
+
recorded_at: Wed, 02 Feb 2022 16:00:16 GMT
|
109
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,111 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.trello.com/1/actions/61faa73dd180eb86947af0fd/card?key=DEVELOPER_PUBLIC_KEY&token=MEMBER_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (linux x86_64) ruby/3.0.0p0
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Host:
|
17
|
+
- api.trello.com
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
X-Dns-Prefetch-Control:
|
24
|
+
- 'off'
|
25
|
+
X-Frame-Options:
|
26
|
+
- DENY
|
27
|
+
X-Download-Options:
|
28
|
+
- noopen
|
29
|
+
X-Permitted-Cross-Domain-Policies:
|
30
|
+
- none
|
31
|
+
Referrer-Policy:
|
32
|
+
- strict-origin-when-cross-origin
|
33
|
+
Surrogate-Control:
|
34
|
+
- no-store
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, must-revalidate, no-cache, no-store
|
37
|
+
Pragma:
|
38
|
+
- no-cache
|
39
|
+
Expires:
|
40
|
+
- Thu, 01 Jan 1970 00:00:00
|
41
|
+
X-Trello-Version:
|
42
|
+
- 1.111614.0
|
43
|
+
X-Trello-Environment:
|
44
|
+
- Production
|
45
|
+
Set-Cookie:
|
46
|
+
- dsc=set_cookie_dsc; Path=/; Expires=Sat, 05 Feb 2022 15:58:29 GMT; Secure
|
47
|
+
- preAuthProps=s%3A5e679b808e6e8828784b30e1%3AisEnterpriseAdmin%3Dfalse.oSQJRIF9RziQFo1wvRya3fIryaPvbkhBP%2F03d0%2F%2FuwE;
|
48
|
+
Path=/; HttpOnly
|
49
|
+
Access-Control-Allow-Origin:
|
50
|
+
- "*"
|
51
|
+
Access-Control-Allow-Methods:
|
52
|
+
- GET, PUT, POST, DELETE
|
53
|
+
Access-Control-Allow-Headers:
|
54
|
+
- Authorization, Accept, Content-Type
|
55
|
+
Access-Control-Expose-Headers:
|
56
|
+
- x-rate-limit-api-key-interval-ms, x-rate-limit-api-key-max, x-rate-limit-api-key-remaining,
|
57
|
+
x-rate-limit-api-token-interval-ms, x-rate-limit-api-token-max, x-rate-limit-api-token-remaining
|
58
|
+
X-Rate-Limit-Api-Token-Interval-Ms:
|
59
|
+
- '10000'
|
60
|
+
X-Rate-Limit-Api-Token-Max:
|
61
|
+
- '100'
|
62
|
+
X-Rate-Limit-Api-Token-Remaining:
|
63
|
+
- '99'
|
64
|
+
X-Rate-Limit-Api-Key-Interval-Ms:
|
65
|
+
- '10000'
|
66
|
+
X-Rate-Limit-Api-Key-Max:
|
67
|
+
- '300'
|
68
|
+
X-Rate-Limit-Api-Key-Remaining:
|
69
|
+
- '299'
|
70
|
+
X-Rate-Limit-Member-Interval-Ms:
|
71
|
+
- '10000'
|
72
|
+
X-Rate-Limit-Member-Max:
|
73
|
+
- '375'
|
74
|
+
X-Rate-Limit-Member-Remaining:
|
75
|
+
- '374'
|
76
|
+
X-Server-Time:
|
77
|
+
- '1643817509671'
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
Date:
|
81
|
+
- Wed, 02 Feb 2022 15:58:29 GMT
|
82
|
+
X-Envoy-Upstream-Service-Time:
|
83
|
+
- '107'
|
84
|
+
Expect-Ct:
|
85
|
+
- report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/trello-edge",
|
86
|
+
max-age=86400
|
87
|
+
Strict-Transport-Security:
|
88
|
+
- max-age=63072000; preload
|
89
|
+
X-Content-Type-Options:
|
90
|
+
- nosniff
|
91
|
+
X-Xss-Protection:
|
92
|
+
- 1; mode=block
|
93
|
+
Atl-Traceid:
|
94
|
+
- 8af5e6fa0ddce319
|
95
|
+
Report-To:
|
96
|
+
- '{"group": "endpoint-1", "max_age": 600, "endpoints": [{"url": "https://dj9s4kmieytgz.cloudfront.net"}],
|
97
|
+
"include_subdomains": true}'
|
98
|
+
Nel:
|
99
|
+
- '{"report_to": "endpoint-1", "max_age": 600, "include_subdomains": true, "failure_fraction":
|
100
|
+
0.001}'
|
101
|
+
Server:
|
102
|
+
- globaledge-envoy
|
103
|
+
Transfer-Encoding:
|
104
|
+
- chunked
|
105
|
+
body:
|
106
|
+
encoding: ASCII-8BIT
|
107
|
+
string: '{"id":"5f4f98b06183211be96855cb","address":null,"checkItemStates":[],"closed":false,"coordinates":null,"creationMethod":null,"dateLastActivity":"2022-02-02T15:46:05.573Z","desc":"testing
|
108
|
+
card create","descData":null,"dueReminder":null,"idBoard":"5e93ba98614ac22d22f085c4","idLabels":["5e93ba987669b2254983d69d","5e93ba987669b2254983d69e"],"idList":"5e93bac014d40e501ee46b8d","idMembersVoted":[],"idShort":6,"idAttachmentCover":null,"locationName":null,"manualCoverAttachment":false,"name":"Test
|
109
|
+
Trello::Card.create","pos":2048,"shortLink":"JlpJt3gF","isTemplate":false,"cardRole":null,"dueComplete":false,"due":null,"email":null,"shortUrl":"https://trello.com/c/JlpJt3gF","staticMapUrl":null,"start":null,"url":"https://trello.com/c/JlpJt3gF/6-test-trellocardcreate","cover":{"idAttachment":null,"color":null,"idUploadedBackground":null,"size":"normal","brightness":"light","idPlugin":null},"idMembers":["5e679b808e6e8828784b30e1"],"limits":{"attachments":{"perCard":{"status":"ok","disableAt":1000,"warnAt":800}},"checklists":{"perCard":{"status":"ok","disableAt":500,"warnAt":400}},"stickers":{"perCard":{"status":"ok","disableAt":70,"warnAt":56}}},"labels":[{"id":"5e93ba987669b2254983d69d","idBoard":"5e93ba98614ac22d22f085c4","name":"","color":"green"},{"id":"5e93ba987669b2254983d69e","idBoard":"5e93ba98614ac22d22f085c4","name":"","color":"orange"}],"idChecklists":[],"badges":{"attachmentsByType":{"trello":{"board":0,"card":0}},"location":false,"votes":0,"viewingMemberVoted":false,"subscribed":true,"fogbugz":"","checkItems":0,"checkItemsChecked":0,"checkItemsEarliestDue":null,"comments":3,"attachments":0,"description":true,"due":null,"dueComplete":false,"start":null},"subscribed":true}'
|
110
|
+
recorded_at: Wed, 02 Feb 2022 15:58:29 GMT
|
111
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.trello.com/1/actions/61faa73dd180eb86947af0fd/list?key=DEVELOPER_PUBLIC_KEY&token=MEMBER_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (linux x86_64) ruby/3.0.0p0
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Host:
|
17
|
+
- api.trello.com
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
X-Dns-Prefetch-Control:
|
24
|
+
- 'off'
|
25
|
+
X-Frame-Options:
|
26
|
+
- DENY
|
27
|
+
X-Download-Options:
|
28
|
+
- noopen
|
29
|
+
X-Permitted-Cross-Domain-Policies:
|
30
|
+
- none
|
31
|
+
Referrer-Policy:
|
32
|
+
- strict-origin-when-cross-origin
|
33
|
+
Surrogate-Control:
|
34
|
+
- no-store
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, must-revalidate, no-cache, no-store
|
37
|
+
Pragma:
|
38
|
+
- no-cache
|
39
|
+
Expires:
|
40
|
+
- Thu, 01 Jan 1970 00:00:00
|
41
|
+
X-Trello-Version:
|
42
|
+
- 1.111614.0
|
43
|
+
X-Trello-Environment:
|
44
|
+
- Production
|
45
|
+
Set-Cookie:
|
46
|
+
- dsc=set_cookie_dsc; Path=/; Expires=Sat, 05 Feb 2022 16:00:45 GMT; Secure
|
47
|
+
- preAuthProps=s%3A5e679b808e6e8828784b30e1%3AisEnterpriseAdmin%3Dfalse.oSQJRIF9RziQFo1wvRya3fIryaPvbkhBP%2F03d0%2F%2FuwE;
|
48
|
+
Path=/; HttpOnly
|
49
|
+
Access-Control-Allow-Origin:
|
50
|
+
- "*"
|
51
|
+
Access-Control-Allow-Methods:
|
52
|
+
- GET, PUT, POST, DELETE
|
53
|
+
Access-Control-Allow-Headers:
|
54
|
+
- Authorization, Accept, Content-Type
|
55
|
+
Access-Control-Expose-Headers:
|
56
|
+
- x-rate-limit-api-key-interval-ms, x-rate-limit-api-key-max, x-rate-limit-api-key-remaining,
|
57
|
+
x-rate-limit-api-token-interval-ms, x-rate-limit-api-token-max, x-rate-limit-api-token-remaining
|
58
|
+
X-Rate-Limit-Api-Token-Interval-Ms:
|
59
|
+
- '10000'
|
60
|
+
X-Rate-Limit-Api-Token-Max:
|
61
|
+
- '100'
|
62
|
+
X-Rate-Limit-Api-Token-Remaining:
|
63
|
+
- '99'
|
64
|
+
X-Rate-Limit-Api-Key-Interval-Ms:
|
65
|
+
- '10000'
|
66
|
+
X-Rate-Limit-Api-Key-Max:
|
67
|
+
- '300'
|
68
|
+
X-Rate-Limit-Api-Key-Remaining:
|
69
|
+
- '299'
|
70
|
+
X-Rate-Limit-Member-Interval-Ms:
|
71
|
+
- '10000'
|
72
|
+
X-Rate-Limit-Member-Max:
|
73
|
+
- '375'
|
74
|
+
X-Rate-Limit-Member-Remaining:
|
75
|
+
- '374'
|
76
|
+
X-Server-Time:
|
77
|
+
- '1643817645931'
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
Date:
|
81
|
+
- Wed, 02 Feb 2022 16:00:45 GMT
|
82
|
+
X-Envoy-Upstream-Service-Time:
|
83
|
+
- '131'
|
84
|
+
Expect-Ct:
|
85
|
+
- report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/trello-edge",
|
86
|
+
max-age=86400
|
87
|
+
Strict-Transport-Security:
|
88
|
+
- max-age=63072000; preload
|
89
|
+
X-Content-Type-Options:
|
90
|
+
- nosniff
|
91
|
+
X-Xss-Protection:
|
92
|
+
- 1; mode=block
|
93
|
+
Atl-Traceid:
|
94
|
+
- 9a52105231902ee1
|
95
|
+
Report-To:
|
96
|
+
- '{"group": "endpoint-1", "max_age": 600, "endpoints": [{"url": "https://dj9s4kmieytgz.cloudfront.net"}],
|
97
|
+
"include_subdomains": true}'
|
98
|
+
Nel:
|
99
|
+
- '{"report_to": "endpoint-1", "max_age": 600, "include_subdomains": true, "failure_fraction":
|
100
|
+
0.001}'
|
101
|
+
Server:
|
102
|
+
- globaledge-envoy
|
103
|
+
Transfer-Encoding:
|
104
|
+
- chunked
|
105
|
+
body:
|
106
|
+
encoding: ASCII-8BIT
|
107
|
+
string: '{"id":"5e93bac014d40e501ee46b8d","name":"L1","closed":false,"pos":65535,"softLimit":null,"creationMethod":null,"idBoard":"5e93ba98614ac22d22f085c4","limits":{"cards":{"openPerList":{"status":"ok","disableAt":5000,"warnAt":4000},"totalPerList":{"status":"ok","disableAt":1000000,"warnAt":800000}}},"subscribed":false}'
|
108
|
+
recorded_at: Wed, 02 Feb 2022 16:00:46 GMT
|
109
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,331 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.trello.com/1/actions/61faa73dd180eb86947af0fd?key=DEVELOPER_PUBLIC_KEY&token=MEMBER_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (linux x86_64) ruby/3.0.0p0
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Host:
|
17
|
+
- api.trello.com
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
X-Dns-Prefetch-Control:
|
24
|
+
- 'off'
|
25
|
+
X-Frame-Options:
|
26
|
+
- DENY
|
27
|
+
X-Download-Options:
|
28
|
+
- noopen
|
29
|
+
X-Permitted-Cross-Domain-Policies:
|
30
|
+
- none
|
31
|
+
Referrer-Policy:
|
32
|
+
- strict-origin-when-cross-origin
|
33
|
+
Surrogate-Control:
|
34
|
+
- no-store
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, must-revalidate, no-cache, no-store
|
37
|
+
Pragma:
|
38
|
+
- no-cache
|
39
|
+
Expires:
|
40
|
+
- Thu, 01 Jan 1970 00:00:00
|
41
|
+
X-Trello-Version:
|
42
|
+
- 1.111614.0
|
43
|
+
X-Trello-Environment:
|
44
|
+
- Production
|
45
|
+
Set-Cookie:
|
46
|
+
- dsc=set_cookie_dsc; Path=/; Expires=Sat, 05 Feb 2022 16:17:21 GMT; Secure
|
47
|
+
- preAuthProps=s%3A5e679b808e6e8828784b30e1%3AisEnterpriseAdmin%3Dfalse.oSQJRIF9RziQFo1wvRya3fIryaPvbkhBP%2F03d0%2F%2FuwE;
|
48
|
+
Path=/; HttpOnly
|
49
|
+
Access-Control-Allow-Origin:
|
50
|
+
- "*"
|
51
|
+
Access-Control-Allow-Methods:
|
52
|
+
- GET, PUT, POST, DELETE
|
53
|
+
Access-Control-Allow-Headers:
|
54
|
+
- Authorization, Accept, Content-Type
|
55
|
+
Access-Control-Expose-Headers:
|
56
|
+
- x-rate-limit-api-key-interval-ms, x-rate-limit-api-key-max, x-rate-limit-api-key-remaining,
|
57
|
+
x-rate-limit-api-token-interval-ms, x-rate-limit-api-token-max, x-rate-limit-api-token-remaining
|
58
|
+
X-Rate-Limit-Api-Token-Interval-Ms:
|
59
|
+
- '10000'
|
60
|
+
X-Rate-Limit-Api-Token-Max:
|
61
|
+
- '100'
|
62
|
+
X-Rate-Limit-Api-Token-Remaining:
|
63
|
+
- '99'
|
64
|
+
X-Rate-Limit-Api-Key-Interval-Ms:
|
65
|
+
- '10000'
|
66
|
+
X-Rate-Limit-Api-Key-Max:
|
67
|
+
- '300'
|
68
|
+
X-Rate-Limit-Api-Key-Remaining:
|
69
|
+
- '299'
|
70
|
+
X-Rate-Limit-Member-Interval-Ms:
|
71
|
+
- '10000'
|
72
|
+
X-Rate-Limit-Member-Max:
|
73
|
+
- '375'
|
74
|
+
X-Rate-Limit-Member-Remaining:
|
75
|
+
- '374'
|
76
|
+
X-Server-Time:
|
77
|
+
- '1643818641053'
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
Date:
|
81
|
+
- Wed, 02 Feb 2022 16:17:21 GMT
|
82
|
+
X-Envoy-Upstream-Service-Time:
|
83
|
+
- '99'
|
84
|
+
Expect-Ct:
|
85
|
+
- report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/trello-edge",
|
86
|
+
max-age=86400
|
87
|
+
Strict-Transport-Security:
|
88
|
+
- max-age=63072000; preload
|
89
|
+
X-Content-Type-Options:
|
90
|
+
- nosniff
|
91
|
+
X-Xss-Protection:
|
92
|
+
- 1; mode=block
|
93
|
+
Atl-Traceid:
|
94
|
+
- b49e26c74840dba3
|
95
|
+
Report-To:
|
96
|
+
- '{"group": "endpoint-1", "max_age": 600, "endpoints": [{"url": "https://dj9s4kmieytgz.cloudfront.net"}],
|
97
|
+
"include_subdomains": true}'
|
98
|
+
Nel:
|
99
|
+
- '{"report_to": "endpoint-1", "max_age": 600, "include_subdomains": true, "failure_fraction":
|
100
|
+
0.001}'
|
101
|
+
Server:
|
102
|
+
- globaledge-envoy
|
103
|
+
Transfer-Encoding:
|
104
|
+
- chunked
|
105
|
+
body:
|
106
|
+
encoding: ASCII-8BIT
|
107
|
+
string: '{"id":"61faa73dd180eb86947af0fd","idMemberCreator":"5e679b808e6e8828784b30e1","data":{"text":"why
|
108
|
+
I can''t get action","textData":{"emoji":{}},"card":{"id":"5f4f98b06183211be96855cb","name":"Test
|
109
|
+
Trello::Card.create","idShort":6,"shortLink":"JlpJt3gF"},"board":{"id":"5e93ba98614ac22d22f085c4","name":"IT
|
110
|
+
2","shortLink":"y1TF9GTa"},"list":{"id":"5e93bac014d40e501ee46b8d","name":"L1"}},"type":"commentCard","date":"2022-02-02T15:46:05.589Z","appCreator":null,"limits":{"reactions":{"perAction":{"status":"ok","disableAt":900,"warnAt":720},"uniquePerAction":{"status":"ok","disableAt":17,"warnAt":14}}},"display":{"translationKey":"action_comment_on_card","entities":{"contextOn":{"type":"translatable","translationKey":"action_on","hideIfContext":true,"idContext":"5f4f98b06183211be96855cb"},"card":{"type":"card","hideIfContext":true,"id":"5f4f98b06183211be96855cb","shortLink":"JlpJt3gF","text":"Test
|
111
|
+
Trello::Card.create"},"comment":{"type":"comment","text":"why I can''t get
|
112
|
+
action"},"memberCreator":{"type":"member","id":"5e679b808e6e8828784b30e1","username":"hoppertest","text":"Hopper
|
113
|
+
Test"}}},"memberCreator":{"id":"5e679b808e6e8828784b30e1","activityBlocked":false,"avatarHash":null,"avatarUrl":null,"fullName":"Hopper
|
114
|
+
Test","idMemberReferrer":null,"initials":"HT","nonPublic":{},"nonPublicAvailable":true,"username":"hoppertest"}}'
|
115
|
+
recorded_at: Wed, 02 Feb 2022 16:17:21 GMT
|
116
|
+
- request:
|
117
|
+
method: delete
|
118
|
+
uri: https://api.trello.com/1/actions/61faa73dd180eb86947af0fd?key=DEVELOPER_PUBLIC_KEY&token=MEMBER_TOKEN
|
119
|
+
body:
|
120
|
+
encoding: US-ASCII
|
121
|
+
string: ''
|
122
|
+
headers:
|
123
|
+
Accept:
|
124
|
+
- "*/*"
|
125
|
+
User-Agent:
|
126
|
+
- rest-client/2.1.0 (linux x86_64) ruby/3.0.0p0
|
127
|
+
Accept-Encoding:
|
128
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
129
|
+
Host:
|
130
|
+
- api.trello.com
|
131
|
+
response:
|
132
|
+
status:
|
133
|
+
code: 200
|
134
|
+
message: OK
|
135
|
+
headers:
|
136
|
+
X-Dns-Prefetch-Control:
|
137
|
+
- 'off'
|
138
|
+
X-Frame-Options:
|
139
|
+
- DENY
|
140
|
+
X-Download-Options:
|
141
|
+
- noopen
|
142
|
+
X-Permitted-Cross-Domain-Policies:
|
143
|
+
- none
|
144
|
+
Referrer-Policy:
|
145
|
+
- strict-origin-when-cross-origin
|
146
|
+
Surrogate-Control:
|
147
|
+
- no-store
|
148
|
+
Cache-Control:
|
149
|
+
- max-age=0, must-revalidate, no-cache, no-store
|
150
|
+
Pragma:
|
151
|
+
- no-cache
|
152
|
+
Expires:
|
153
|
+
- Thu, 01 Jan 1970 00:00:00
|
154
|
+
X-Trello-Version:
|
155
|
+
- 1.111614.0
|
156
|
+
X-Trello-Environment:
|
157
|
+
- Production
|
158
|
+
Access-Control-Allow-Origin:
|
159
|
+
- "*"
|
160
|
+
Access-Control-Allow-Methods:
|
161
|
+
- GET, PUT, POST, DELETE
|
162
|
+
Access-Control-Allow-Headers:
|
163
|
+
- Authorization, Accept, Content-Type
|
164
|
+
Access-Control-Expose-Headers:
|
165
|
+
- x-rate-limit-api-key-interval-ms, x-rate-limit-api-key-max, x-rate-limit-api-key-remaining,
|
166
|
+
x-rate-limit-api-token-interval-ms, x-rate-limit-api-token-max, x-rate-limit-api-token-remaining
|
167
|
+
X-Rate-Limit-Api-Token-Interval-Ms:
|
168
|
+
- '10000'
|
169
|
+
X-Rate-Limit-Api-Token-Max:
|
170
|
+
- '100'
|
171
|
+
X-Rate-Limit-Api-Token-Remaining:
|
172
|
+
- '98'
|
173
|
+
X-Rate-Limit-Action-Interval-Ms:
|
174
|
+
- '3600000'
|
175
|
+
X-Rate-Limit-Action-Max:
|
176
|
+
- '15000'
|
177
|
+
X-Rate-Limit-Action-Remaining:
|
178
|
+
- '14999'
|
179
|
+
X-Rate-Limit-Api-Key-Interval-Ms:
|
180
|
+
- '10000'
|
181
|
+
X-Rate-Limit-Api-Key-Max:
|
182
|
+
- '300'
|
183
|
+
X-Rate-Limit-Api-Key-Remaining:
|
184
|
+
- '298'
|
185
|
+
X-Rate-Limit-Member-Interval-Ms:
|
186
|
+
- '10000'
|
187
|
+
X-Rate-Limit-Member-Max:
|
188
|
+
- '375'
|
189
|
+
X-Rate-Limit-Member-Remaining:
|
190
|
+
- '373'
|
191
|
+
Set-Cookie:
|
192
|
+
- preAuthProps=s%3A5e679b808e6e8828784b30e1%3AisEnterpriseAdmin%3Dfalse.oSQJRIF9RziQFo1wvRya3fIryaPvbkhBP%2F03d0%2F%2FuwE;
|
193
|
+
Path=/; HttpOnly
|
194
|
+
X-Server-Time:
|
195
|
+
- '1643818641840'
|
196
|
+
Content-Type:
|
197
|
+
- application/json; charset=utf-8
|
198
|
+
Date:
|
199
|
+
- Wed, 02 Feb 2022 16:17:21 GMT
|
200
|
+
X-Envoy-Upstream-Service-Time:
|
201
|
+
- '140'
|
202
|
+
Expect-Ct:
|
203
|
+
- report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/trello-edge",
|
204
|
+
max-age=86400
|
205
|
+
Strict-Transport-Security:
|
206
|
+
- max-age=63072000; preload
|
207
|
+
X-Content-Type-Options:
|
208
|
+
- nosniff
|
209
|
+
X-Xss-Protection:
|
210
|
+
- 1; mode=block
|
211
|
+
Atl-Traceid:
|
212
|
+
- 8ffdb0eeb6ff1cda
|
213
|
+
Report-To:
|
214
|
+
- '{"group": "endpoint-1", "max_age": 600, "endpoints": [{"url": "https://dj9s4kmieytgz.cloudfront.net"}],
|
215
|
+
"include_subdomains": true}'
|
216
|
+
Nel:
|
217
|
+
- '{"report_to": "endpoint-1", "max_age": 600, "include_subdomains": true, "failure_fraction":
|
218
|
+
0.001}'
|
219
|
+
Server:
|
220
|
+
- globaledge-envoy
|
221
|
+
Transfer-Encoding:
|
222
|
+
- chunked
|
223
|
+
body:
|
224
|
+
encoding: ASCII-8BIT
|
225
|
+
string: '{"_value":null}
|
226
|
+
|
227
|
+
'
|
228
|
+
recorded_at: Wed, 02 Feb 2022 16:17:21 GMT
|
229
|
+
- request:
|
230
|
+
method: get
|
231
|
+
uri: https://api.trello.com/1/actions/61faa73dd180eb86947af0fd?key=DEVELOPER_PUBLIC_KEY&token=MEMBER_TOKEN
|
232
|
+
body:
|
233
|
+
encoding: US-ASCII
|
234
|
+
string: ''
|
235
|
+
headers:
|
236
|
+
Accept:
|
237
|
+
- "*/*"
|
238
|
+
User-Agent:
|
239
|
+
- rest-client/2.1.0 (linux x86_64) ruby/3.0.0p0
|
240
|
+
Accept-Encoding:
|
241
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
242
|
+
Host:
|
243
|
+
- api.trello.com
|
244
|
+
response:
|
245
|
+
status:
|
246
|
+
code: 404
|
247
|
+
message: Not Found
|
248
|
+
headers:
|
249
|
+
X-Dns-Prefetch-Control:
|
250
|
+
- 'off'
|
251
|
+
X-Frame-Options:
|
252
|
+
- DENY
|
253
|
+
X-Download-Options:
|
254
|
+
- noopen
|
255
|
+
X-Permitted-Cross-Domain-Policies:
|
256
|
+
- none
|
257
|
+
Referrer-Policy:
|
258
|
+
- strict-origin-when-cross-origin
|
259
|
+
Surrogate-Control:
|
260
|
+
- no-store
|
261
|
+
Cache-Control:
|
262
|
+
- no-store, no-cache, must-revalidate, proxy-revalidate
|
263
|
+
Pragma:
|
264
|
+
- no-cache
|
265
|
+
Expires:
|
266
|
+
- '0'
|
267
|
+
X-Trello-Version:
|
268
|
+
- 1.111614.0
|
269
|
+
X-Trello-Environment:
|
270
|
+
- Production
|
271
|
+
Set-Cookie:
|
272
|
+
- dsc=set_cookie_dsc; Path=/; Expires=Sat, 05 Feb 2022 16:17:22 GMT; Secure
|
273
|
+
Access-Control-Allow-Origin:
|
274
|
+
- "*"
|
275
|
+
Access-Control-Allow-Methods:
|
276
|
+
- GET, PUT, POST, DELETE
|
277
|
+
Access-Control-Allow-Headers:
|
278
|
+
- Authorization, Accept, Content-Type
|
279
|
+
Access-Control-Expose-Headers:
|
280
|
+
- x-rate-limit-api-key-interval-ms, x-rate-limit-api-key-max, x-rate-limit-api-key-remaining,
|
281
|
+
x-rate-limit-api-token-interval-ms, x-rate-limit-api-token-max, x-rate-limit-api-token-remaining
|
282
|
+
X-Rate-Limit-Api-Token-Interval-Ms:
|
283
|
+
- '10000'
|
284
|
+
X-Rate-Limit-Api-Token-Max:
|
285
|
+
- '100'
|
286
|
+
X-Rate-Limit-Api-Token-Remaining:
|
287
|
+
- '97'
|
288
|
+
X-Rate-Limit-Api-Key-Interval-Ms:
|
289
|
+
- '10000'
|
290
|
+
X-Rate-Limit-Api-Key-Max:
|
291
|
+
- '300'
|
292
|
+
X-Rate-Limit-Api-Key-Remaining:
|
293
|
+
- '297'
|
294
|
+
X-Rate-Limit-Member-Interval-Ms:
|
295
|
+
- '10000'
|
296
|
+
X-Rate-Limit-Member-Max:
|
297
|
+
- '375'
|
298
|
+
X-Rate-Limit-Member-Remaining:
|
299
|
+
- '372'
|
300
|
+
Content-Type:
|
301
|
+
- text/plain; charset=utf-8
|
302
|
+
Content-Length:
|
303
|
+
- '37'
|
304
|
+
Date:
|
305
|
+
- Wed, 02 Feb 2022 16:17:22 GMT
|
306
|
+
X-Envoy-Upstream-Service-Time:
|
307
|
+
- '86'
|
308
|
+
Expect-Ct:
|
309
|
+
- report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/trello-edge",
|
310
|
+
max-age=86400
|
311
|
+
Strict-Transport-Security:
|
312
|
+
- max-age=63072000; preload
|
313
|
+
X-Content-Type-Options:
|
314
|
+
- nosniff
|
315
|
+
X-Xss-Protection:
|
316
|
+
- 1; mode=block
|
317
|
+
Atl-Traceid:
|
318
|
+
- f0fa637a7466a1af
|
319
|
+
Report-To:
|
320
|
+
- '{"group": "endpoint-1", "max_age": 600, "endpoints": [{"url": "https://dj9s4kmieytgz.cloudfront.net"}],
|
321
|
+
"include_subdomains": true}'
|
322
|
+
Nel:
|
323
|
+
- '{"report_to": "endpoint-1", "max_age": 600, "include_subdomains": true, "failure_fraction":
|
324
|
+
0.001}'
|
325
|
+
Server:
|
326
|
+
- globaledge-envoy
|
327
|
+
body:
|
328
|
+
encoding: UTF-8
|
329
|
+
string: The requested resource was not found.
|
330
|
+
recorded_at: Wed, 02 Feb 2022 16:17:22 GMT
|
331
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,116 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.trello.com/1/actions/61faa73dd180eb86947af0fd?key=DEVELOPER_PUBLIC_KEY&token=MEMBER_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (linux x86_64) ruby/3.0.0p0
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Host:
|
17
|
+
- api.trello.com
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
X-Dns-Prefetch-Control:
|
24
|
+
- 'off'
|
25
|
+
X-Frame-Options:
|
26
|
+
- DENY
|
27
|
+
X-Download-Options:
|
28
|
+
- noopen
|
29
|
+
X-Permitted-Cross-Domain-Policies:
|
30
|
+
- none
|
31
|
+
Referrer-Policy:
|
32
|
+
- strict-origin-when-cross-origin
|
33
|
+
Surrogate-Control:
|
34
|
+
- no-store
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, must-revalidate, no-cache, no-store
|
37
|
+
Pragma:
|
38
|
+
- no-cache
|
39
|
+
Expires:
|
40
|
+
- Thu, 01 Jan 1970 00:00:00
|
41
|
+
X-Trello-Version:
|
42
|
+
- 1.111614.0
|
43
|
+
X-Trello-Environment:
|
44
|
+
- Production
|
45
|
+
Set-Cookie:
|
46
|
+
- dsc=set_cookie_dsc; Path=/; Expires=Sat, 05 Feb 2022 16:03:17 GMT; Secure
|
47
|
+
- preAuthProps=s%3A5e679b808e6e8828784b30e1%3AisEnterpriseAdmin%3Dfalse.oSQJRIF9RziQFo1wvRya3fIryaPvbkhBP%2F03d0%2F%2FuwE;
|
48
|
+
Path=/; HttpOnly
|
49
|
+
Access-Control-Allow-Origin:
|
50
|
+
- "*"
|
51
|
+
Access-Control-Allow-Methods:
|
52
|
+
- GET, PUT, POST, DELETE
|
53
|
+
Access-Control-Allow-Headers:
|
54
|
+
- Authorization, Accept, Content-Type
|
55
|
+
Access-Control-Expose-Headers:
|
56
|
+
- x-rate-limit-api-key-interval-ms, x-rate-limit-api-key-max, x-rate-limit-api-key-remaining,
|
57
|
+
x-rate-limit-api-token-interval-ms, x-rate-limit-api-token-max, x-rate-limit-api-token-remaining
|
58
|
+
X-Rate-Limit-Api-Token-Interval-Ms:
|
59
|
+
- '10000'
|
60
|
+
X-Rate-Limit-Api-Token-Max:
|
61
|
+
- '100'
|
62
|
+
X-Rate-Limit-Api-Token-Remaining:
|
63
|
+
- '99'
|
64
|
+
X-Rate-Limit-Api-Key-Interval-Ms:
|
65
|
+
- '10000'
|
66
|
+
X-Rate-Limit-Api-Key-Max:
|
67
|
+
- '300'
|
68
|
+
X-Rate-Limit-Api-Key-Remaining:
|
69
|
+
- '299'
|
70
|
+
X-Rate-Limit-Member-Interval-Ms:
|
71
|
+
- '10000'
|
72
|
+
X-Rate-Limit-Member-Max:
|
73
|
+
- '375'
|
74
|
+
X-Rate-Limit-Member-Remaining:
|
75
|
+
- '374'
|
76
|
+
X-Server-Time:
|
77
|
+
- '1643817797732'
|
78
|
+
Content-Type:
|
79
|
+
- application/json; charset=utf-8
|
80
|
+
Date:
|
81
|
+
- Wed, 02 Feb 2022 16:03:17 GMT
|
82
|
+
X-Envoy-Upstream-Service-Time:
|
83
|
+
- '104'
|
84
|
+
Expect-Ct:
|
85
|
+
- report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/trello-edge",
|
86
|
+
max-age=86400
|
87
|
+
Strict-Transport-Security:
|
88
|
+
- max-age=63072000; preload
|
89
|
+
X-Content-Type-Options:
|
90
|
+
- nosniff
|
91
|
+
X-Xss-Protection:
|
92
|
+
- 1; mode=block
|
93
|
+
Atl-Traceid:
|
94
|
+
- '084617945389853c'
|
95
|
+
Report-To:
|
96
|
+
- '{"group": "endpoint-1", "max_age": 600, "endpoints": [{"url": "https://dj9s4kmieytgz.cloudfront.net"}],
|
97
|
+
"include_subdomains": true}'
|
98
|
+
Nel:
|
99
|
+
- '{"report_to": "endpoint-1", "max_age": 600, "include_subdomains": true, "failure_fraction":
|
100
|
+
0.001}'
|
101
|
+
Server:
|
102
|
+
- globaledge-envoy
|
103
|
+
Transfer-Encoding:
|
104
|
+
- chunked
|
105
|
+
body:
|
106
|
+
encoding: ASCII-8BIT
|
107
|
+
string: '{"id":"61faa73dd180eb86947af0fd","idMemberCreator":"5e679b808e6e8828784b30e1","data":{"text":"why
|
108
|
+
I can''t get action","textData":{"emoji":{}},"card":{"id":"5f4f98b06183211be96855cb","name":"Test
|
109
|
+
Trello::Card.create","idShort":6,"shortLink":"JlpJt3gF"},"board":{"id":"5e93ba98614ac22d22f085c4","name":"IT
|
110
|
+
2","shortLink":"y1TF9GTa"},"list":{"id":"5e93bac014d40e501ee46b8d","name":"L1"}},"type":"commentCard","date":"2022-02-02T15:46:05.589Z","appCreator":null,"limits":{"reactions":{"perAction":{"status":"ok","disableAt":900,"warnAt":720},"uniquePerAction":{"status":"ok","disableAt":17,"warnAt":14}}},"display":{"translationKey":"action_comment_on_card","entities":{"contextOn":{"type":"translatable","translationKey":"action_on","hideIfContext":true,"idContext":"5f4f98b06183211be96855cb"},"card":{"type":"card","hideIfContext":true,"id":"5f4f98b06183211be96855cb","shortLink":"JlpJt3gF","text":"Test
|
111
|
+
Trello::Card.create"},"comment":{"type":"comment","text":"why I can''t get
|
112
|
+
action"},"memberCreator":{"type":"member","id":"5e679b808e6e8828784b30e1","username":"hoppertest","text":"Hopper
|
113
|
+
Test"}}},"memberCreator":{"id":"5e679b808e6e8828784b30e1","activityBlocked":false,"avatarHash":null,"avatarUrl":null,"fullName":"Hopper
|
114
|
+
Test","idMemberReferrer":null,"initials":"HT","nonPublic":{},"nonPublicAvailable":true,"username":"hoppertest"}}'
|
115
|
+
recorded_at: Wed, 02 Feb 2022 16:03:17 GMT
|
116
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe 'Trello::Comment#board' do
|
4
|
+
include IntegrationHelpers
|
5
|
+
|
6
|
+
before { setup_trello }
|
7
|
+
|
8
|
+
it "can get the comment's board" do
|
9
|
+
VCR.use_cassette('can_get_comments_board') do
|
10
|
+
comment = Trello::Comment.new(id: "61faa73dd180eb86947af0fd")
|
11
|
+
|
12
|
+
board = comment.board
|
13
|
+
expect(board.id).not_to be_nil
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe 'Trello::Comment#card' do
|
4
|
+
include IntegrationHelpers
|
5
|
+
|
6
|
+
before { setup_trello }
|
7
|
+
|
8
|
+
it "can get the comment's card" do
|
9
|
+
VCR.use_cassette('can_get_comments_card') do
|
10
|
+
comment = Trello::Comment.new(id: "61faa73dd180eb86947af0fd")
|
11
|
+
|
12
|
+
card = comment.card
|
13
|
+
expect(card.id).not_to be_nil
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe 'Trello::Comment#list' do
|
4
|
+
include IntegrationHelpers
|
5
|
+
|
6
|
+
before { setup_trello }
|
7
|
+
|
8
|
+
it "can get the comment's list" do
|
9
|
+
VCR.use_cassette('can_get_comments_list') do
|
10
|
+
comment = Trello::Comment.new(id: "61faa73dd180eb86947af0fd")
|
11
|
+
|
12
|
+
list = comment.list
|
13
|
+
expect(list.id).not_to be_nil
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe 'Trello::Comment#delete' do
|
4
|
+
include IntegrationHelpers
|
5
|
+
|
6
|
+
before { setup_trello }
|
7
|
+
|
8
|
+
it 'can successfully delete a comment' do
|
9
|
+
VCR.use_cassette('comment_delete') do
|
10
|
+
comment = Trello::Comment.find('61faa73dd180eb86947af0fd')
|
11
|
+
expect(comment.id).to eq('61faa73dd180eb86947af0fd')
|
12
|
+
|
13
|
+
comment.delete
|
14
|
+
expect {
|
15
|
+
Trello::Comment.find('61faa73dd180eb86947af0fd')
|
16
|
+
}.to raise_error("The requested resource was not found.")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe 'Trello::Comment#find' do
|
4
|
+
include IntegrationHelpers
|
5
|
+
|
6
|
+
before { setup_trello }
|
7
|
+
|
8
|
+
it 'find with id' do
|
9
|
+
VCR.use_cassette('comment_find_with_id') do
|
10
|
+
comment = Trello::Comment.find('61faa73dd180eb86947af0fd')
|
11
|
+
|
12
|
+
expect(comment).to be_a(Trello::Comment)
|
13
|
+
expect(comment.id).to eq('61faa73dd180eb86947af0fd')
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-trello
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Tregunna
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -175,6 +175,9 @@ files:
|
|
175
175
|
- spec/cassettes/can_get_cards_of_member.yml
|
176
176
|
- spec/cassettes/can_get_checklists_of_board.yml
|
177
177
|
- spec/cassettes/can_get_comments.yml
|
178
|
+
- spec/cassettes/can_get_comments_board.yml
|
179
|
+
- spec/cassettes/can_get_comments_card.yml
|
180
|
+
- spec/cassettes/can_get_comments_list.yml
|
178
181
|
- spec/cassettes/can_get_custom_field_options_of_custom_field.yml
|
179
182
|
- spec/cassettes/can_get_custom_fields_of_board.yml
|
180
183
|
- spec/cassettes/can_get_label_names_of_board.yml
|
@@ -237,6 +240,8 @@ files:
|
|
237
240
|
- spec/cassettes/checklist_can_add_an_item.yml
|
238
241
|
- spec/cassettes/checklist_can_update_the_item_state.yml
|
239
242
|
- spec/cassettes/checklist_find_with_id_and_get_all_fields.yml
|
243
|
+
- spec/cassettes/comment_delete.yml
|
244
|
+
- spec/cassettes/comment_find_with_id.yml
|
240
245
|
- spec/cassettes/custom_field_find_with_id_and_get_all_fields.yml
|
241
246
|
- spec/cassettes/custom_field_find_with_id_and_get_specific_fields.yml
|
242
247
|
- spec/cassettes/custom_field_item_save_1.yml
|
@@ -332,6 +337,11 @@ files:
|
|
332
337
|
- spec/integration/checklist/find_spec.rb
|
333
338
|
- spec/integration/checklist/update!_spec.rb
|
334
339
|
- spec/integration/checklist/update_item_state_spec.rb
|
340
|
+
- spec/integration/comment/association/board_spec.rb
|
341
|
+
- spec/integration/comment/association/card_spec.rb
|
342
|
+
- spec/integration/comment/association/list_spec.rb
|
343
|
+
- spec/integration/comment/delete_spec.rb
|
344
|
+
- spec/integration/comment/find_spec.rb
|
335
345
|
- spec/integration/custom_field/association/board_spec.rb
|
336
346
|
- spec/integration/custom_field/association/custom_field_options_spec.rb
|
337
347
|
- spec/integration/custom_field/create_spec.rb
|
@@ -472,6 +482,9 @@ test_files:
|
|
472
482
|
- spec/cassettes/can_get_cards_of_member.yml
|
473
483
|
- spec/cassettes/can_get_checklists_of_board.yml
|
474
484
|
- spec/cassettes/can_get_comments.yml
|
485
|
+
- spec/cassettes/can_get_comments_board.yml
|
486
|
+
- spec/cassettes/can_get_comments_card.yml
|
487
|
+
- spec/cassettes/can_get_comments_list.yml
|
475
488
|
- spec/cassettes/can_get_custom_field_options_of_custom_field.yml
|
476
489
|
- spec/cassettes/can_get_custom_fields_of_board.yml
|
477
490
|
- spec/cassettes/can_get_label_names_of_board.yml
|
@@ -534,6 +547,8 @@ test_files:
|
|
534
547
|
- spec/cassettes/checklist_can_add_an_item.yml
|
535
548
|
- spec/cassettes/checklist_can_update_the_item_state.yml
|
536
549
|
- spec/cassettes/checklist_find_with_id_and_get_all_fields.yml
|
550
|
+
- spec/cassettes/comment_delete.yml
|
551
|
+
- spec/cassettes/comment_find_with_id.yml
|
537
552
|
- spec/cassettes/custom_field_find_with_id_and_get_all_fields.yml
|
538
553
|
- spec/cassettes/custom_field_find_with_id_and_get_specific_fields.yml
|
539
554
|
- spec/cassettes/custom_field_item_save_1.yml
|
@@ -629,6 +644,11 @@ test_files:
|
|
629
644
|
- spec/integration/checklist/find_spec.rb
|
630
645
|
- spec/integration/checklist/update!_spec.rb
|
631
646
|
- spec/integration/checklist/update_item_state_spec.rb
|
647
|
+
- spec/integration/comment/association/board_spec.rb
|
648
|
+
- spec/integration/comment/association/card_spec.rb
|
649
|
+
- spec/integration/comment/association/list_spec.rb
|
650
|
+
- spec/integration/comment/delete_spec.rb
|
651
|
+
- spec/integration/comment/find_spec.rb
|
632
652
|
- spec/integration/custom_field/association/board_spec.rb
|
633
653
|
- spec/integration/custom_field/association/custom_field_options_spec.rb
|
634
654
|
- spec/integration/custom_field/create_spec.rb
|