ruby-trello 2.3.0 → 2.3.1

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: 9e1ea37b580763f0d19ff63872dd1f93cb07084de9bfe26ad391f540ec2b8d04
4
- data.tar.gz: 58e70f72fecd1dc5e318e065a6d368f7ec176df16816e78e12e8fb872933c326
3
+ metadata.gz: 7e7396e189c2f3b43af4bf1eacbdd78ec358ef684d2526d7c3537c1af1ca4abd
4
+ data.tar.gz: c8e2c74d10eaedb521829b3598e4500119c8fbfdd8c8cd71758254580eee1079
5
5
  SHA512:
6
- metadata.gz: dc1fa46dfff77359d8b6c9e233ae8410fed8a8219860efb9ce849e394071d3781f60b40ac14ab2557cb9f2293554013abe0c4c985cde8d089464eabb2a117efa
7
- data.tar.gz: 9d96fb20595f45782f52ba891278bbca256d41fde6e1ecef3718061e3dd0cba2fcbbaf9a4940f5a3a1e8f00518a2945149ffcc3ae280c6b1f109a3338cfe4de5
6
+ metadata.gz: 1d441be6f124b3dd47ff332da22ccbf71eb201ff90ddf82775fc3f208eb6621dd10acc2cff21c81d30231d9b50f4aa9cf867cf66d26e9c894e16f1a1596a11fa
7
+ data.tar.gz: 647e16d5104ba1cf8dc3a7811117f168d6e132503e4b0989e8316a8abd9b30f3401cc04814da202cb4fc74846c5b9dee88a80fc36358fa0cd9c5f65340aba97b
@@ -77,7 +77,7 @@ module Trello
77
77
 
78
78
  fields = {
79
79
  name: attributes[:name],
80
- description: attributes[:description],
80
+ desc: attributes[:description],
81
81
  closed: attributes[:closed],
82
82
  starred: attributes[:starred],
83
83
  idOrganization: attributes[:organization_id]
@@ -343,7 +343,7 @@ module Trello
343
343
  end
344
344
 
345
345
  it "puts all fields except id" do
346
- expected_fields = %w{ name description closed starred idOrganization}.map { |s| s.to_sym }
346
+ expected_fields = %w{ name desc closed starred idOrganization}.map { |s| s.to_sym }
347
347
 
348
348
  expect(client).to receive(:put) do |anything, body|
349
349
  expect(body.keys).to match expected_fields
@@ -395,7 +395,7 @@ module Trello
395
395
  .to receive(:put)
396
396
  .with("/boards/#{board.id}/", {
397
397
  name: "new name",
398
- description: "new description",
398
+ desc: "new description",
399
399
  closed: true,
400
400
  starred: true,
401
401
  idOrganization: nil })
@@ -0,0 +1,283 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.trello.com/1/boards/5e93ba403f1ab3603ba81a09?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-gnu x86_64) ruby/2.6.6p146
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
+ Strict-Transport-Security:
28
+ - max-age=15552000; includeSubDomains
29
+ X-Download-Options:
30
+ - noopen
31
+ Surrogate-Control:
32
+ - no-store
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Referrer-Policy:
36
+ - strict-origin-when-cross-origin
37
+ X-Xss-Protection:
38
+ - 1; mode=block
39
+ X-Trello-Version:
40
+ - 1.2083.0
41
+ X-Trello-Environment:
42
+ - Production
43
+ Access-Control-Allow-Origin:
44
+ - "*"
45
+ Access-Control-Allow-Methods:
46
+ - GET, PUT, POST, DELETE
47
+ Access-Control-Allow-Headers:
48
+ - Authorization, Accept, Content-Type
49
+ Access-Control-Expose-Headers:
50
+ - x-rate-limit-api-key-interval-ms, x-rate-limit-api-key-max, x-rate-limit-api-key-remaining,
51
+ x-rate-limit-api-token-interval-ms, x-rate-limit-api-token-max, x-rate-limit-api-token-remaining
52
+ X-Rate-Limit-Api-Key-Interval-Ms:
53
+ - '10000'
54
+ X-Rate-Limit-Api-Key-Max:
55
+ - '300'
56
+ X-Rate-Limit-Api-Key-Remaining:
57
+ - '299'
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-Member-Interval-Ms:
65
+ - '10000'
66
+ X-Rate-Limit-Member-Max:
67
+ - '200'
68
+ X-Rate-Limit-Member-Remaining:
69
+ - '199'
70
+ X-Server-Time:
71
+ - '1588865472527'
72
+ Content-Type:
73
+ - application/json; charset=utf-8
74
+ Vary:
75
+ - Accept-Encoding
76
+ Expires:
77
+ - Thu, 07 May 2020 15:31:12 GMT
78
+ Cache-Control:
79
+ - max-age=0, no-cache, no-store
80
+ Pragma:
81
+ - no-cache
82
+ Date:
83
+ - Thu, 07 May 2020 15:31:12 GMT
84
+ Content-Length:
85
+ - '2611'
86
+ Connection:
87
+ - keep-alive
88
+ Set-Cookie:
89
+ - dsc=set_cookie_dsc; Path=/; Expires=Sun, 10 May 2020 15:31:12 GMT; Secure
90
+ body:
91
+ encoding: UTF-8
92
+ string: '{"id":"5e93ba403f1ab3603ba81a09","name":"IT 1","desc":"","descData":{"emoji":{}},"closed":true,"idOrganization":"5e93ba154634282b6df23bcc","idEnterprise":null,"pinned":false,"url":"https://trello.com/b/0zx7ive1/it-1","shortUrl":"https://trello.com/b/0zx7ive1","labelNames":{"green":"","yellow":"","orange":"","red":"","purple":"","blue":"","sky":"","lime":"","pink":"","black":""},"prefs":{"permissionLevel":"org","hideVotes":false,"voting":"disabled","comments":"members","invitations":"members","selfJoin":true,"cardCovers":true,"isTemplate":false,"cardAging":"regular","calendarFeedEnabled":false,"background":"5e92397e6ab226460dadee8e","backgroundImage":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/c7d6b0f6d7ea90a4629be964056c1e3e/photo-1586596436497-8d6f8d1d921f","backgroundImageScaled":[{"width":67,"height":100,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/67x100/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":128,"height":192,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/128x192/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":320,"height":480,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/320x480/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":640,"height":960,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/640x960/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":683,"height":1024,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/683x1024/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":853,"height":1280,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/853x1280/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":1280,"height":1920,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1280x1920/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":1066,"height":1600,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1066x1600/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":1365,"height":2048,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/c7d6b0f6d7ea90a4629be964056c1e3e/photo-1586596436497-8d6f8d1d921f"}],"backgroundTile":false,"backgroundBrightness":"dark","backgroundBottomColor":"#842fbb","backgroundTopColor":"#c04e37","canBePublic":true,"canBeEnterprise":true,"canBeOrg":true,"canBePrivate":true,"canInvite":true}}'
93
+ http_version: null
94
+ recorded_at: Thu, 07 May 2020 15:31:12 GMT
95
+ - request:
96
+ method: put
97
+ uri: https://api.trello.com/1/boards/5e93ba403f1ab3603ba81a09/?key=DEVELOPER_PUBLIC_KEY&token=MEMBER_TOKEN
98
+ body:
99
+ encoding: UTF-8
100
+ string: name=IT+1+-+Changed&desc=This+is+a+test+board+called+IT+1&closed=false&pinned=true&idOrganization=5eb427016b5a464a74803f1c&prefs%2FpermissionLevel=org&prefs%2FhideVotes=false&prefs%2Fvoting=disabled&prefs%2Fcomments=members&prefs%2Finvitations=members&prefs%2FselfJoin=true&prefs%2FcardCovers=true&prefs%2FisTemplate=false&prefs%2FcardAging=regular&prefs%2FcalendarFeedEnabled=false&prefs%2Fbackground=5e92397e6ab226460dadee8e&prefs%2FbackgroundImage=https%3A%2F%2Ftrello-backgrounds.s3.amazonaws.com%2FSharedBackground%2Foriginal%2Fc7d6b0f6d7ea90a4629be964056c1e3e%2Fphoto-1586596436497-8d6f8d1d921f&prefs%2FbackgroundImageScaled[][width]=67&prefs%2FbackgroundImageScaled[][height]=100&prefs%2FbackgroundImageScaled[][url]=https%3A%2F%2Ftrello-backgrounds.s3.amazonaws.com%2FSharedBackground%2F67x100%2F44097ec60dd1549b6b98bf64d0e86eae%2Fphoto-1586596436497-8d6f8d1d921f.jpg&prefs%2FbackgroundImageScaled[][width]=128&prefs%2FbackgroundImageScaled[][height]=192&prefs%2FbackgroundImageScaled[][url]=https%3A%2F%2Ftrello-backgrounds.s3.amazonaws.com%2FSharedBackground%2F128x192%2F44097ec60dd1549b6b98bf64d0e86eae%2Fphoto-1586596436497-8d6f8d1d921f.jpg&prefs%2FbackgroundImageScaled[][width]=320&prefs%2FbackgroundImageScaled[][height]=480&prefs%2FbackgroundImageScaled[][url]=https%3A%2F%2Ftrello-backgrounds.s3.amazonaws.com%2FSharedBackground%2F320x480%2F44097ec60dd1549b6b98bf64d0e86eae%2Fphoto-1586596436497-8d6f8d1d921f.jpg&prefs%2FbackgroundImageScaled[][width]=640&prefs%2FbackgroundImageScaled[][height]=960&prefs%2FbackgroundImageScaled[][url]=https%3A%2F%2Ftrello-backgrounds.s3.amazonaws.com%2FSharedBackground%2F640x960%2F44097ec60dd1549b6b98bf64d0e86eae%2Fphoto-1586596436497-8d6f8d1d921f.jpg&prefs%2FbackgroundImageScaled[][width]=683&prefs%2FbackgroundImageScaled[][height]=1024&prefs%2FbackgroundImageScaled[][url]=https%3A%2F%2Ftrello-backgrounds.s3.amazonaws.com%2FSharedBackground%2F683x1024%2F44097ec60dd1549b6b98bf64d0e86eae%2Fphoto-1586596436497-8d6f8d1d921f.jpg&prefs%2FbackgroundImageScaled[][width]=853&prefs%2FbackgroundImageScaled[][height]=1280&prefs%2FbackgroundImageScaled[][url]=https%3A%2F%2Ftrello-backgrounds.s3.amazonaws.com%2FSharedBackground%2F853x1280%2F44097ec60dd1549b6b98bf64d0e86eae%2Fphoto-1586596436497-8d6f8d1d921f.jpg&prefs%2FbackgroundImageScaled[][width]=1280&prefs%2FbackgroundImageScaled[][height]=1920&prefs%2FbackgroundImageScaled[][url]=https%3A%2F%2Ftrello-backgrounds.s3.amazonaws.com%2FSharedBackground%2F1280x1920%2F44097ec60dd1549b6b98bf64d0e86eae%2Fphoto-1586596436497-8d6f8d1d921f.jpg&prefs%2FbackgroundImageScaled[][width]=1066&prefs%2FbackgroundImageScaled[][height]=1600&prefs%2FbackgroundImageScaled[][url]=https%3A%2F%2Ftrello-backgrounds.s3.amazonaws.com%2FSharedBackground%2F1066x1600%2F44097ec60dd1549b6b98bf64d0e86eae%2Fphoto-1586596436497-8d6f8d1d921f.jpg&prefs%2FbackgroundImageScaled[][width]=1365&prefs%2FbackgroundImageScaled[][height]=2048&prefs%2FbackgroundImageScaled[][url]=https%3A%2F%2Ftrello-backgrounds.s3.amazonaws.com%2FSharedBackground%2Foriginal%2Fc7d6b0f6d7ea90a4629be964056c1e3e%2Fphoto-1586596436497-8d6f8d1d921f&prefs%2FbackgroundTile=false&prefs%2FbackgroundBrightness=dark&prefs%2FbackgroundBottomColor=%23842fbb&prefs%2FbackgroundTopColor=%23c04e37&prefs%2FcanBePublic=true&prefs%2FcanBeEnterprise=true&prefs%2FcanBeOrg=true&prefs%2FcanBePrivate=true&prefs%2FcanInvite=true
101
+ headers:
102
+ Accept:
103
+ - "*/*"
104
+ User-Agent:
105
+ - rest-client/2.1.0 (linux-gnu x86_64) ruby/2.6.6p146
106
+ Content-Length:
107
+ - '3367'
108
+ Content-Type:
109
+ - application/x-www-form-urlencoded
110
+ Accept-Encoding:
111
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
112
+ Host:
113
+ - api.trello.com
114
+ response:
115
+ status:
116
+ code: 200
117
+ message: OK
118
+ headers:
119
+ X-Dns-Prefetch-Control:
120
+ - 'off'
121
+ X-Frame-Options:
122
+ - DENY
123
+ Strict-Transport-Security:
124
+ - max-age=15552000; includeSubDomains
125
+ X-Download-Options:
126
+ - noopen
127
+ Surrogate-Control:
128
+ - no-store
129
+ X-Content-Type-Options:
130
+ - nosniff
131
+ Referrer-Policy:
132
+ - strict-origin-when-cross-origin
133
+ X-Xss-Protection:
134
+ - 1; mode=block
135
+ X-Trello-Version:
136
+ - 1.2083.0
137
+ X-Trello-Environment:
138
+ - Production
139
+ Access-Control-Allow-Origin:
140
+ - "*"
141
+ Access-Control-Allow-Methods:
142
+ - GET, PUT, POST, DELETE
143
+ Access-Control-Allow-Headers:
144
+ - Authorization, Accept, Content-Type
145
+ Access-Control-Expose-Headers:
146
+ - x-rate-limit-api-key-interval-ms, x-rate-limit-api-key-max, x-rate-limit-api-key-remaining,
147
+ x-rate-limit-api-token-interval-ms, x-rate-limit-api-token-max, x-rate-limit-api-token-remaining
148
+ X-Rate-Limit-Api-Key-Interval-Ms:
149
+ - '10000'
150
+ X-Rate-Limit-Api-Key-Max:
151
+ - '300'
152
+ X-Rate-Limit-Api-Key-Remaining:
153
+ - '298'
154
+ X-Rate-Limit-Api-Token-Interval-Ms:
155
+ - '10000'
156
+ X-Rate-Limit-Api-Token-Max:
157
+ - '100'
158
+ X-Rate-Limit-Api-Token-Remaining:
159
+ - '98'
160
+ X-Rate-Limit-Member-Interval-Ms:
161
+ - '10000'
162
+ X-Rate-Limit-Member-Max:
163
+ - '200'
164
+ X-Rate-Limit-Member-Remaining:
165
+ - '198'
166
+ X-Server-Time:
167
+ - '1588865474112'
168
+ Content-Type:
169
+ - application/json; charset=utf-8
170
+ Vary:
171
+ - Accept-Encoding
172
+ Expires:
173
+ - Thu, 07 May 2020 15:31:14 GMT
174
+ Cache-Control:
175
+ - max-age=0, no-cache, no-store
176
+ Pragma:
177
+ - no-cache
178
+ Date:
179
+ - Thu, 07 May 2020 15:31:14 GMT
180
+ Content-Length:
181
+ - '2662'
182
+ Connection:
183
+ - keep-alive
184
+ body:
185
+ encoding: UTF-8
186
+ string: '{"id":"5e93ba403f1ab3603ba81a09","name":"IT 1 - Changed","desc":"This
187
+ is a test board called IT 1","descData":{"emoji":{}},"closed":false,"idOrganization":"5eb427016b5a464a74803f1c","idEnterprise":null,"pinned":false,"url":"https://trello.com/b/0zx7ive1/it-1-changed","shortUrl":"https://trello.com/b/0zx7ive1","prefs":{"permissionLevel":"org","hideVotes":false,"voting":"disabled","comments":"members","invitations":"members","selfJoin":true,"cardCovers":true,"isTemplate":false,"cardAging":"regular","calendarFeedEnabled":false,"background":"5e92397e6ab226460dadee8e","backgroundImage":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/c7d6b0f6d7ea90a4629be964056c1e3e/photo-1586596436497-8d6f8d1d921f","backgroundImageScaled":[{"width":67,"height":100,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/67x100/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":128,"height":192,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/128x192/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":320,"height":480,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/320x480/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":640,"height":960,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/640x960/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":683,"height":1024,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/683x1024/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":853,"height":1280,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/853x1280/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":1280,"height":1920,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1280x1920/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":1066,"height":1600,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1066x1600/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":1365,"height":2048,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/c7d6b0f6d7ea90a4629be964056c1e3e/photo-1586596436497-8d6f8d1d921f"}],"backgroundTile":false,"backgroundBrightness":"dark","backgroundBottomColor":"#842fbb","backgroundTopColor":"#c04e37","canBePublic":true,"canBeEnterprise":true,"canBeOrg":true,"canBePrivate":true,"canInvite":true},"labelNames":{"green":"","yellow":"","orange":"","red":"","purple":"","blue":"","sky":"","lime":"","pink":"","black":""}}'
188
+ http_version: null
189
+ recorded_at: Thu, 07 May 2020 15:31:14 GMT
190
+ - request:
191
+ method: get
192
+ uri: https://api.trello.com/1/boards/5e93ba403f1ab3603ba81a09?key=DEVELOPER_PUBLIC_KEY&token=MEMBER_TOKEN
193
+ body:
194
+ encoding: US-ASCII
195
+ string: ''
196
+ headers:
197
+ Accept:
198
+ - "*/*"
199
+ User-Agent:
200
+ - rest-client/2.1.0 (linux-gnu x86_64) ruby/2.6.6p146
201
+ Accept-Encoding:
202
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
203
+ Host:
204
+ - api.trello.com
205
+ response:
206
+ status:
207
+ code: 200
208
+ message: OK
209
+ headers:
210
+ X-Dns-Prefetch-Control:
211
+ - 'off'
212
+ X-Frame-Options:
213
+ - DENY
214
+ Strict-Transport-Security:
215
+ - max-age=15552000; includeSubDomains
216
+ X-Download-Options:
217
+ - noopen
218
+ Surrogate-Control:
219
+ - no-store
220
+ X-Content-Type-Options:
221
+ - nosniff
222
+ Referrer-Policy:
223
+ - strict-origin-when-cross-origin
224
+ X-Xss-Protection:
225
+ - 1; mode=block
226
+ X-Trello-Version:
227
+ - 1.2083.0
228
+ X-Trello-Environment:
229
+ - Production
230
+ Access-Control-Allow-Origin:
231
+ - "*"
232
+ Access-Control-Allow-Methods:
233
+ - GET, PUT, POST, DELETE
234
+ Access-Control-Allow-Headers:
235
+ - Authorization, Accept, Content-Type
236
+ Access-Control-Expose-Headers:
237
+ - x-rate-limit-api-key-interval-ms, x-rate-limit-api-key-max, x-rate-limit-api-key-remaining,
238
+ x-rate-limit-api-token-interval-ms, x-rate-limit-api-token-max, x-rate-limit-api-token-remaining
239
+ X-Rate-Limit-Api-Key-Interval-Ms:
240
+ - '10000'
241
+ X-Rate-Limit-Api-Key-Max:
242
+ - '300'
243
+ X-Rate-Limit-Api-Key-Remaining:
244
+ - '297'
245
+ X-Rate-Limit-Api-Token-Interval-Ms:
246
+ - '10000'
247
+ X-Rate-Limit-Api-Token-Max:
248
+ - '100'
249
+ X-Rate-Limit-Api-Token-Remaining:
250
+ - '97'
251
+ X-Rate-Limit-Member-Interval-Ms:
252
+ - '10000'
253
+ X-Rate-Limit-Member-Max:
254
+ - '200'
255
+ X-Rate-Limit-Member-Remaining:
256
+ - '196'
257
+ X-Server-Time:
258
+ - '1588865475248'
259
+ Content-Type:
260
+ - application/json; charset=utf-8
261
+ Vary:
262
+ - Accept-Encoding
263
+ Expires:
264
+ - Thu, 07 May 2020 15:31:15 GMT
265
+ Cache-Control:
266
+ - max-age=0, no-cache, no-store
267
+ Pragma:
268
+ - no-cache
269
+ Date:
270
+ - Thu, 07 May 2020 15:31:15 GMT
271
+ Content-Length:
272
+ - '2662'
273
+ Connection:
274
+ - keep-alive
275
+ Set-Cookie:
276
+ - dsc=set_cookie_dsc; Path=/; Expires=Sun, 10 May 2020 15:31:15 GMT; Secure
277
+ body:
278
+ encoding: UTF-8
279
+ string: '{"id":"5e93ba403f1ab3603ba81a09","name":"IT 1 - Changed","desc":"This
280
+ is a test board called IT 1","descData":{"emoji":{}},"closed":false,"idOrganization":"5eb427016b5a464a74803f1c","idEnterprise":null,"pinned":false,"url":"https://trello.com/b/0zx7ive1/it-1-changed","shortUrl":"https://trello.com/b/0zx7ive1","labelNames":{"green":"","yellow":"","orange":"","red":"","purple":"","blue":"","sky":"","lime":"","pink":"","black":""},"prefs":{"permissionLevel":"org","hideVotes":false,"voting":"disabled","comments":"members","invitations":"members","selfJoin":true,"cardCovers":true,"isTemplate":false,"cardAging":"regular","calendarFeedEnabled":false,"background":"5e92397e6ab226460dadee8e","backgroundImage":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/c7d6b0f6d7ea90a4629be964056c1e3e/photo-1586596436497-8d6f8d1d921f","backgroundImageScaled":[{"width":67,"height":100,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/67x100/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":128,"height":192,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/128x192/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":320,"height":480,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/320x480/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":640,"height":960,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/640x960/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":683,"height":1024,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/683x1024/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":853,"height":1280,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/853x1280/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":1280,"height":1920,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1280x1920/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":1066,"height":1600,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1066x1600/44097ec60dd1549b6b98bf64d0e86eae/photo-1586596436497-8d6f8d1d921f.jpg"},{"width":1365,"height":2048,"url":"https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/c7d6b0f6d7ea90a4629be964056c1e3e/photo-1586596436497-8d6f8d1d921f"}],"backgroundTile":false,"backgroundBrightness":"dark","backgroundBottomColor":"#842fbb","backgroundTopColor":"#c04e37","canBePublic":true,"canBeEnterprise":true,"canBeOrg":true,"canBePrivate":true,"canInvite":true}}'
281
+ http_version: null
282
+ recorded_at: Thu, 07 May 2020 15:31:15 GMT
283
+ recorded_with: VCR 5.1.0
@@ -0,0 +1,31 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe 'Trell::Board.update!' do
4
+ include IntegrationHelpers
5
+
6
+ before { setup_trello }
7
+
8
+ it 'can update! a card' do
9
+ VCR.use_cassette('can_success_update_bong_a_board') do
10
+ board = Trello::Board.find('5e93ba403f1ab3603ba81a09')
11
+
12
+ expect(board.name).to eq('IT 1')
13
+ expect(board.description).to eq('')
14
+ expect(board.closed).to eq(true)
15
+ expect(board.organization_id).to eq('5e93ba154634282b6df23bcc')
16
+
17
+ board.name = 'IT 1 - Changed'
18
+ board.description = 'This is a test board called IT 1'
19
+ board.closed = false
20
+ board.organization_id = '5eb427016b5a464a74803f1c'
21
+
22
+ board.update!
23
+
24
+ board = Trello::Board.find('5e93ba403f1ab3603ba81a09')
25
+ expect(board.name).to eq('IT 1 - Changed')
26
+ expect(board.description).to eq('This is a test board called IT 1')
27
+ expect(board.closed).to eq(false)
28
+ expect(board.organization_id).to eq('5eb427016b5a464a74803f1c')
29
+ end
30
+ end
31
+ 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: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Tregunna
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-02 00:00:00.000000000 Z
11
+ date: 2020-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -163,6 +163,7 @@ files:
163
163
  - spec/cassettes/can_success_create_new_checklist_to_a_card.yml
164
164
  - spec/cassettes/can_success_delete_card.yml
165
165
  - spec/cassettes/can_success_upate_a_card.yml
166
+ - spec/cassettes/can_success_update_bong_a_board.yml
166
167
  - spec/cassettes/can_success_update_bong_a_card.yml
167
168
  - spec/cassettes/can_upvote_on_a_card.yml
168
169
  - spec/cassettes/card_find_with_id_and_get_all_fields.yml
@@ -191,6 +192,7 @@ files:
191
192
  - spec/integration/basic_data/many_spec.rb
192
193
  - spec/integration/basic_data/one_spec.rb
193
194
  - spec/integration/basic_data/register_attributes_spec.rb
195
+ - spec/integration/board/update!_spec.rb
194
196
  - spec/integration/board_lists_spec.rb
195
197
  - spec/integration/card/add_and_remove_attachment_spec.rb
196
198
  - spec/integration/card/add_and_remove_label_spec.rb
@@ -253,7 +255,7 @@ licenses:
253
255
  - MIT
254
256
  metadata:
255
257
  changelog_uri: https://github.com/jeremytregunna/ruby-trello/blob/master/CHANGELOG.md
256
- post_install_message:
258
+ post_install_message:
257
259
  rdoc_options:
258
260
  - "--charset=UTF-8"
259
261
  require_paths:
@@ -269,8 +271,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
271
  - !ruby/object:Gem::Version
270
272
  version: '0'
271
273
  requirements: []
272
- rubygems_version: 3.1.2
273
- signing_key:
274
+ rubygems_version: 3.1.3
275
+ signing_key:
274
276
  specification_version: 4
275
277
  summary: A wrapper around the trello.com API.
276
278
  test_files:
@@ -283,6 +285,7 @@ test_files:
283
285
  - spec/integration/basic_data/register_attributes_spec.rb
284
286
  - spec/integration/basic_data/one_spec.rb
285
287
  - spec/integration/basic_data/many_spec.rb
288
+ - spec/integration/board/update!_spec.rb
286
289
  - spec/integration/integration_test.rb
287
290
  - spec/integration/card/find_spec.rb
288
291
  - spec/integration/card/vote_spec.rb
@@ -366,6 +369,7 @@ test_files:
366
369
  - spec/cassettes/get_check_item_states_of_card.yml
367
370
  - spec/cassettes/can_upvote_on_a_card.yml
368
371
  - spec/cassettes/can_success_create_new_checklist_to_a_card.yml
372
+ - spec/cassettes/can_success_update_bong_a_board.yml
369
373
  - spec/association_spec.rb
370
374
  - spec/notification_spec.rb
371
375
  - spec/trello_spec.rb