ruby-trello 2.3.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -2
  3. data/lib/trello.rb +13 -7
  4. data/lib/trello/action.rb +27 -21
  5. data/lib/trello/attachment.rb +40 -27
  6. data/lib/trello/basic_data.rb +104 -9
  7. data/lib/trello/board.rb +88 -102
  8. data/lib/trello/card.rb +34 -235
  9. data/lib/trello/checklist.rb +17 -71
  10. data/lib/trello/comment.rb +32 -22
  11. data/lib/trello/cover_image.rb +20 -0
  12. data/lib/trello/custom_field.rb +31 -84
  13. data/lib/trello/custom_field_item.rb +36 -58
  14. data/lib/trello/custom_field_option.rb +40 -13
  15. data/lib/trello/item.rb +27 -16
  16. data/lib/trello/item_state.rb +7 -15
  17. data/lib/trello/json_utils.rb +1 -1
  18. data/lib/trello/label.rb +14 -101
  19. data/lib/trello/label_name.rb +22 -25
  20. data/lib/trello/list.rb +31 -44
  21. data/lib/trello/member.rb +77 -32
  22. data/lib/trello/notification.rb +27 -20
  23. data/lib/trello/organization.rb +53 -25
  24. data/lib/trello/plugin_datum.rb +11 -16
  25. data/lib/trello/schema.rb +31 -0
  26. data/lib/trello/schema/attribute/base.rb +79 -0
  27. data/lib/trello/schema/attribute/board_pref.rb +45 -0
  28. data/lib/trello/schema/attribute/custom_field_display.rb +45 -0
  29. data/lib/trello/schema/attribute/default.rb +45 -0
  30. data/lib/trello/schema/attribute_builder.rb +42 -0
  31. data/lib/trello/schema/attribute_registration.rb +47 -0
  32. data/lib/trello/schema/serializer/default.rb +17 -0
  33. data/lib/trello/schema/serializer/labels.rb +23 -0
  34. data/lib/trello/schema/serializer/time.rb +25 -0
  35. data/lib/trello/schema/serializer/webhooks.rb +25 -0
  36. data/lib/trello/token.rb +15 -12
  37. data/lib/trello/webhook.rb +18 -71
  38. data/spec/action_spec.rb +1 -2
  39. data/spec/board_spec.rb +43 -103
  40. data/spec/card_spec.rb +51 -50
  41. data/spec/cassettes/action_find_with_id_and_get_all_fields.yml +104 -0
  42. data/spec/cassettes/board_find_with_id_and_get_all_fields.yml +96 -0
  43. data/spec/cassettes/board_find_with_id_and_get_specific_fields.yml +96 -0
  44. data/spec/cassettes/can_add_a_member_to_a_board.yml +191 -0
  45. data/spec/cassettes/can_arvhice_all_cards_of_list.yml +397 -0
  46. data/spec/cassettes/can_get_actions_of_board.yml +188 -0
  47. data/spec/cassettes/can_get_actions_of_list.yml +202 -0
  48. data/spec/cassettes/can_get_actions_of_members.yml +199 -0
  49. data/spec/cassettes/can_get_actions_of_organization.yml +201 -0
  50. data/spec/cassettes/can_get_boards_of_custom_field.yml +198 -0
  51. data/spec/cassettes/can_get_boards_of_label.yml +197 -0
  52. data/spec/cassettes/can_get_boards_of_organization.yml +207 -0
  53. data/spec/cassettes/can_get_cards_of_board.yml +193 -0
  54. data/spec/cassettes/can_get_cards_of_list.yml +201 -0
  55. data/spec/cassettes/can_get_cards_of_member.yml +204 -0
  56. data/spec/cassettes/can_get_checklists_of_board.yml +187 -0
  57. data/spec/cassettes/can_get_custom_field_options_of_custom_field.yml +197 -0
  58. data/spec/cassettes/can_get_custom_fields_of_board.yml +187 -0
  59. data/spec/cassettes/can_get_label_names_of_board.yml +187 -0
  60. data/spec/cassettes/can_get_labels_of_board.yml +187 -0
  61. data/spec/cassettes/can_get_lists_of_board.yml +187 -0
  62. data/spec/cassettes/can_get_members_of_board.yml +188 -0
  63. data/spec/cassettes/can_get_members_of_organization.yml +200 -0
  64. data/spec/cassettes/can_get_notifications_of_member.yml +199 -0
  65. data/spec/cassettes/can_get_organization_of_board.yml +189 -0
  66. data/spec/cassettes/can_get_organizations_of_member.yml +203 -0
  67. data/spec/cassettes/can_get_plugin_data_of_board.yml +187 -0
  68. data/spec/cassettes/can_move_all_cards_to_another_list.yml +886 -0
  69. data/spec/cassettes/can_success_create_a_board.yml +98 -0
  70. data/spec/cassettes/can_success_create_a_board_with_full_parameters.yml +97 -0
  71. data/spec/cassettes/can_success_create_a_board_without_clone_from_other.yml +98 -0
  72. data/spec/cassettes/can_success_create_a_card_when_due_is_datetime.yml +98 -0
  73. data/spec/cassettes/can_success_create_a_card_when_due_is_time.yml +98 -0
  74. data/spec/cassettes/can_success_create_a_checklist.yml +102 -0
  75. data/spec/cassettes/can_success_create_a_custom_field.yml +102 -0
  76. data/spec/cassettes/can_success_create_a_custom_field_option.yml +102 -0
  77. data/spec/cassettes/can_success_create_a_label.yml +102 -0
  78. data/spec/cassettes/can_success_create_a_list.yml +102 -0
  79. data/spec/cassettes/can_success_create_a_list_with_full_parameters.yml +102 -0
  80. data/spec/cassettes/can_success_create_a_organization.yml +104 -0
  81. data/spec/cassettes/can_success_create_a_webhook.yml +102 -0
  82. data/spec/cassettes/can_success_delete_a_custom_field_option.yml +389 -0
  83. data/spec/cassettes/can_success_delete_checklist.yml +284 -0
  84. data/spec/cassettes/can_success_get_card_of_board_by_card_id.yml +188 -0
  85. data/spec/cassettes/can_success_remove_member_from_board.yml +186 -0
  86. data/spec/cassettes/can_success_return_all_boards_of_current_user.yml +195 -0
  87. data/spec/cassettes/can_success_upate_a_board.yml +191 -0
  88. data/spec/cassettes/can_success_upate_a_list.yml +296 -0
  89. data/spec/cassettes/can_success_update_bong_a_board.yml +39 -39
  90. data/spec/cassettes/can_success_update_bong_a_board_with_specific_fields.yml +284 -0
  91. data/spec/cassettes/can_success_update_bong_a_checklist_with_specific_fields.yml +296 -0
  92. data/spec/cassettes/can_success_update_bong_a_custom_field.yml +200 -0
  93. data/spec/cassettes/can_success_update_bong_a_label.yml +200 -0
  94. data/spec/cassettes/can_success_update_bong_a_list.yml +199 -0
  95. data/spec/cassettes/can_success_update_bong_a_list_with_specific_fields.yml +296 -0
  96. data/spec/cassettes/can_success_update_bong_a_organization.yml +203 -0
  97. data/spec/cassettes/can_success_update_bong_a_webhook.yml +296 -0
  98. data/spec/cassettes/checklist_can_add_an_item.yml +296 -0
  99. data/spec/cassettes/checklist_can_update_the_item_state.yml +296 -0
  100. data/spec/cassettes/checklist_find_with_id_and_get_all_fields.yml +100 -0
  101. data/spec/cassettes/custom_field_find_with_id_and_get_all_fields.yml +100 -0
  102. data/spec/cassettes/custom_field_find_with_id_and_get_specific_fields.yml +100 -0
  103. data/spec/cassettes/custom_field_item_save_1.yml +1 -1
  104. data/spec/cassettes/custom_field_item_save_2.yml +1 -1
  105. data/spec/cassettes/custom_field_option_find_with_id.yml +100 -0
  106. data/spec/cassettes/get_board_of_list.yml +197 -0
  107. data/spec/cassettes/get_boards_of_member.yml +207 -0
  108. data/spec/cassettes/label_delete.yml +285 -0
  109. data/spec/cassettes/label_find_with_id.yml +100 -0
  110. data/spec/cassettes/list_find_with_id_and_get_all_fields.yml +100 -0
  111. data/spec/cassettes/list_find_with_id_and_get_specific_fields.yml +100 -0
  112. data/spec/cassettes/member_find_with_id_and_get_all_fields.yml +101 -0
  113. data/spec/cassettes/member_find_with_id_and_get_specific_fields.yml +100 -0
  114. data/spec/cassettes/notification_find_with_id.yml +103 -0
  115. data/spec/cassettes/organization_find_with_id_and_get_all_fields.yml +102 -0
  116. data/spec/cassettes/organization_find_with_id_and_get_specific_fields.yml +100 -0
  117. data/spec/cassettes/token_find_with_token_string.yml +100 -0
  118. data/spec/cassettes/webhook_delete.yml +286 -0
  119. data/spec/cassettes/webhook_find_with_id.yml +100 -0
  120. data/spec/checklist_spec.rb +27 -43
  121. data/spec/custom_field_item_spec.rb +2 -2
  122. data/spec/custom_field_option_spec.rb +2 -2
  123. data/spec/custom_field_spec.rb +25 -13
  124. data/spec/integration/action/find_spec.rb +23 -0
  125. data/spec/integration/basic_data/many_spec.rb +4 -0
  126. data/spec/integration/basic_data/schema_spec.rb +156 -0
  127. data/spec/integration/board/add_member_spec.rb +21 -0
  128. data/spec/integration/board/all_spec.rb +20 -0
  129. data/spec/integration/board/associations/actions_spec.rb +18 -0
  130. data/spec/integration/board/associations/cards_spec.rb +18 -0
  131. data/spec/integration/board/associations/checklists_spec.rb +18 -0
  132. data/spec/integration/board/associations/custom_fields_spec.rb +18 -0
  133. data/spec/integration/board/associations/label_names_spec.rb +17 -0
  134. data/spec/integration/board/associations/labels_spec.rb +18 -0
  135. data/spec/integration/board/associations/lists_spec.rb +18 -0
  136. data/spec/integration/board/associations/members_spec.rb +18 -0
  137. data/spec/integration/board/associations/organization_spec.rb +19 -0
  138. data/spec/integration/board/associations/plugin_data_spec.rb +18 -0
  139. data/spec/integration/board/create_spec.rb +95 -0
  140. data/spec/integration/board/find_card_spec.rb +18 -0
  141. data/spec/integration/board/find_spec.rb +42 -0
  142. data/spec/integration/board/remove_member_spec.rb +21 -0
  143. data/spec/integration/board/save_spec.rb +37 -0
  144. data/spec/integration/board/update!_spec.rb +33 -2
  145. data/spec/integration/card/associations/plugin_data_spec.rb +1 -1
  146. data/spec/integration/card/create_spec.rb +36 -2
  147. data/spec/integration/card/find_spec.rb +1 -1
  148. data/spec/integration/card/save_spec.rb +2 -2
  149. data/spec/integration/checklist/add_item_spec.rb +20 -0
  150. data/spec/integration/checklist/create_spec.rb +23 -0
  151. data/spec/integration/checklist/delete_spec.rb +17 -0
  152. data/spec/integration/checklist/find_spec.rb +22 -0
  153. data/spec/integration/checklist/update!_spec.rb +21 -0
  154. data/spec/integration/checklist/update_item_state_spec.rb +20 -0
  155. data/spec/integration/custom_field/association/board_spec.rb +18 -0
  156. data/spec/integration/custom_field/association/custom_field_options_spec.rb +18 -0
  157. data/spec/integration/custom_field/create_spec.rb +29 -0
  158. data/spec/integration/custom_field/find_spec.rb +41 -0
  159. data/spec/integration/custom_field/update!_spec.rb +25 -0
  160. data/spec/integration/custom_field_option/create_spec.rb +23 -0
  161. data/spec/integration/custom_field_option/delete_spec.rb +19 -0
  162. data/spec/integration/custom_field_option/find_spec.rb +21 -0
  163. data/spec/integration/label/association/board_spec.rb +18 -0
  164. data/spec/integration/label/create_spec.rb +23 -0
  165. data/spec/integration/label/delete_spec.rb +21 -0
  166. data/spec/integration/label/find_spec.rb +20 -0
  167. data/spec/integration/label/update!_spec.rb +25 -0
  168. data/spec/integration/list/archive_all_cards_spec.rb +20 -0
  169. data/spec/integration/list/associations/actions_spec.rb +18 -0
  170. data/spec/integration/list/associations/board_spec.rb +18 -0
  171. data/spec/integration/list/associations/cards_spec.rb +18 -0
  172. data/spec/integration/list/create_spec.rb +44 -0
  173. data/spec/integration/list/find_spec.rb +37 -0
  174. data/spec/integration/list/move_all_cards_spec.rb +31 -0
  175. data/spec/integration/list/save_spec.rb +40 -0
  176. data/spec/integration/list/update!_spec.rb +43 -0
  177. data/spec/integration/member/associations/actions_spec.rb +17 -0
  178. data/spec/integration/member/associations/boards_spec.rb +18 -0
  179. data/spec/integration/member/associations/cards_spec.rb +18 -0
  180. data/spec/integration/member/associations/notifications_spec.rb +18 -0
  181. data/spec/integration/member/associations/organizations_spec.rb +18 -0
  182. data/spec/integration/member/find_spec.rb +39 -0
  183. data/spec/integration/member/update!_spec.rb +18 -0
  184. data/spec/integration/notification/find_spec.rb +27 -0
  185. data/spec/integration/organization/associations/actions_spec.rb +18 -0
  186. data/spec/integration/organization/associations/boards_spec.rb +18 -0
  187. data/spec/integration/organization/associations/members_spec.rb +18 -0
  188. data/spec/integration/organization/create_spec.rb +23 -0
  189. data/spec/integration/organization/find_spec.rb +37 -0
  190. data/spec/integration/organization/update!_spec.rb +28 -0
  191. data/spec/integration/token/find_spec.rb +24 -0
  192. data/spec/integration/webhook/create_spec.rb +27 -0
  193. data/spec/integration/webhook/delete_spec.rb +21 -0
  194. data/spec/integration/webhook/find_spec.rb +22 -0
  195. data/spec/integration/webhook/update!_spec.rb +24 -0
  196. data/spec/item_spec.rb +2 -2
  197. data/spec/label_spec.rb +31 -33
  198. data/spec/list_spec.rb +32 -14
  199. data/spec/notification_spec.rb +3 -3
  200. data/spec/organization_spec.rb +6 -5
  201. data/spec/spec_helper.rb +22 -14
  202. data/spec/token_spec.rb +10 -11
  203. data/spec/unit/trello/basic_data_spec.rb +67 -8
  204. data/spec/unit/trello/board/new_spec.rb +370 -0
  205. data/spec/unit/trello/board/save_spec.rb +49 -0
  206. data/spec/unit/trello/board/update_fields_spec.rb +129 -0
  207. data/spec/unit/trello/board/update_spec.rb +197 -0
  208. data/spec/unit/trello/member/new_spec.rb +62 -0
  209. data/spec/unit/trello/member/update_fields_spec.rb +80 -0
  210. data/spec/unit/trello/schema/attribute/base_spec.rb +349 -0
  211. data/spec/unit/trello/schema/attribute/board_pref_spec.rb +208 -0
  212. data/spec/unit/trello/schema/attribute/default_spec.rb +236 -0
  213. data/spec/unit/trello/schema/attribute_builder_spec.rb +55 -0
  214. data/spec/unit/trello/schema/attribute_registration_spec.rb +59 -0
  215. data/spec/unit/trello/schema/serializer/default_spec.rb +19 -0
  216. data/spec/unit/trello/schema/serializer/time_spec.rb +39 -0
  217. data/spec/unit/trello/schema_spec.rb +25 -0
  218. data/spec/webhook_spec.rb +23 -7
  219. metadata +422 -102
  220. data/lib/trello/register_attributes.rb +0 -54
  221. data/spec/integration/basic_data/register_attributes_spec.rb +0 -75
@@ -0,0 +1,59 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe Trello::Schema::AttributeRegistration do
4
+
5
+ around do |example|
6
+ module Trello
7
+ class FakeBoard < BasicData
8
+ def initialize; end
9
+ end
10
+ end
11
+
12
+ example.run
13
+
14
+ Trello.send(:remove_const, 'FakeBoard')
15
+ end
16
+
17
+ let(:attribute) { Trello::Schema::Attribute::Base.new(
18
+ name: name,
19
+ options: options,
20
+ serializer: serializer
21
+ ) }
22
+
23
+ context 'when it is a writable attribute' do
24
+ let(:name) { :name }
25
+ let(:serializer) { double('serializer') }
26
+ let(:options) { nil }
27
+
28
+ it 'create getter method for the attribute' do
29
+ Trello::Schema::AttributeRegistration.register(Trello::FakeBoard, attribute)
30
+
31
+ expect(Trello::FakeBoard.new).to respond_to(:name)
32
+ end
33
+
34
+ it 'create setter method for the attribute' do
35
+ Trello::Schema::AttributeRegistration.register(Trello::FakeBoard, attribute)
36
+
37
+ expect(Trello::FakeBoard.new).to respond_to(:name=)
38
+ end
39
+ end
40
+
41
+ context 'when it is a readonly attribute' do
42
+ let(:name) { :name }
43
+ let(:serializer) { double('serializer') }
44
+ let(:options) { { readonly: true } }
45
+
46
+ it 'create getter method for the attribute' do
47
+ Trello::Schema::AttributeRegistration.register(Trello::FakeBoard, attribute)
48
+
49
+ expect(Trello::FakeBoard.new).to respond_to(:name)
50
+ end
51
+
52
+ it "won't create setter method for the attribute" do
53
+ Trello::Schema::AttributeRegistration.register(Trello::FakeBoard, attribute)
54
+
55
+ expect(Trello::FakeBoard.new).not_to respond_to(:name=)
56
+ end
57
+ end
58
+
59
+ end
@@ -0,0 +1,19 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe 'Trello::Schema::Serializer::Default' do
4
+
5
+ describe '.serialize' do
6
+ it 'directly return the value' do
7
+ expect(Trello::Schema::Serializer::Default.serialize('John')).to eq('John')
8
+ end
9
+ end
10
+
11
+ describe '.deserialize' do
12
+ it 'directly return the value' do
13
+ expect(Trello::Schema::Serializer::Default.deserialize('John', nil)).to eq('John')
14
+ expect(Trello::Schema::Serializer::Default.deserialize(nil, 'John')).to eq('John')
15
+ expect(Trello::Schema::Serializer::Default.deserialize(false, 'John')).to eq(false)
16
+ end
17
+ end
18
+
19
+ end
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe 'Trello::Schema::Serializer::Time' do
4
+
5
+ describe '.serialize' do
6
+ it 'parse the time to string with format like: 2020-01-01T00:00:00.000Z' do
7
+ expect(Trello::Schema::Serializer::Time.serialize(Time.new(2020, 4, 13, 23, 12, 59))).to eq('2020-04-13T23:12:59.000Z')
8
+ end
9
+ end
10
+
11
+ describe '.deserialize' do
12
+ context 'when pass in time string' do
13
+ it 'parset it to a time' do
14
+ expect(Trello::Schema::Serializer::Time.deserialize('2020-04-13T23:12:59.000Z', nil)).to eq(Time.new(2020, 4, 13, 23, 12, 59))
15
+ end
16
+ end
17
+
18
+ context 'when pass in a time' do
19
+ it 'return the time' do
20
+ expect(Trello::Schema::Serializer::Time.deserialize(Time.new(2020, 4, 13, 23, 12, 59), nil)).to eq(Time.new(2020, 4, 13, 23, 12, 59))
21
+ end
22
+ end
23
+
24
+ context 'when pass in a object respond to :to_time. i.e. Date, DateTime ...' do
25
+ it 'convert it to time' do
26
+ expect(Trello::Schema::Serializer::Time.deserialize(Date.new(2020, 4, 13), nil)).to eq(Time.new(2020, 4, 13))
27
+ end
28
+ end
29
+
30
+ context 'when pass in a invalid value' do
31
+ it 'return the default value' do
32
+ expect(Trello::Schema::Serializer::Time.deserialize('abc', nil)).to eq(nil)
33
+ expect(Trello::Schema::Serializer::Time.deserialize('abc', Time.new(2020, 1, 1))).to eq(Time.new(2020, 1, 1))
34
+ expect(Trello::Schema::Serializer::Time.deserialize(nil, Time.new(2020, 1, 1))).to eq(Time.new(2020, 1, 1))
35
+ end
36
+ end
37
+ end
38
+
39
+ end
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe Trello::Schema do
4
+
5
+ describe '#attribute' do
6
+ let(:schema) { Trello::Schema.new }
7
+
8
+ it 'record attribute to attrs' do
9
+ attribute_1 = double('Trello::Schema::Attribute::Default')
10
+ attribute_2 = double('Trello::Schema::Attribute::Default')
11
+
12
+ expect(Trello::Schema::AttributeBuilder).to receive(:build).with(:id, readonly: true).and_return(attribute_1)
13
+ expect(Trello::Schema::AttributeBuilder).to receive(:build).with(:name, {}).and_return(attribute_2)
14
+
15
+ schema.attribute(:id, readonly: true)
16
+ schema.attribute(:name)
17
+
18
+ expect(schema.attrs).to be_a(Hash)
19
+ expect(schema.attrs.count).to eq(2)
20
+ expect(schema.attrs[:id]).to eq(attribute_1)
21
+ expect(schema.attrs[:name]).to eq(attribute_2)
22
+ end
23
+ end
24
+
25
+ end
@@ -20,7 +20,7 @@ module Trello
20
20
  it "delegates to Trello.client#find" do
21
21
  expect(client)
22
22
  .to receive(:find)
23
- .with(:webhook, '1234', {})
23
+ .with('webhook', '1234', {})
24
24
 
25
25
  Webhook.find('1234')
26
26
  end
@@ -43,7 +43,7 @@ module Trello
43
43
  webhook = Webhook.new(webhook_details)
44
44
  expect(webhook.id).to eq webhook_details['id']
45
45
  expect(webhook.description).to eq webhook_details['description']
46
- expect(webhook.id_model).to eq webhook_details['idModel']
46
+ expect(webhook.model_id).to eq webhook_details['idModel']
47
47
  expect(webhook.callback_url).to eq webhook_details['callbackURL']
48
48
  expect(webhook.active).to eq webhook_details['active']
49
49
  end
@@ -52,7 +52,7 @@ module Trello
52
52
  webhook_details = webhooks_details[1]
53
53
  webhook = Webhook.new(webhook_details)
54
54
  expect(webhook.description).to eq webhook_details[:description]
55
- expect(webhook.id_model).to eq webhook_details[:id_model]
55
+ expect(webhook.model_id).to eq webhook_details[:model_id]
56
56
  expect(webhook.callback_url).to eq webhook_details[:callback_url]
57
57
  end
58
58
 
@@ -62,14 +62,21 @@ module Trello
62
62
  webhook = webhooks_details.first
63
63
  result = JSON.generate(webhook)
64
64
 
65
- expected_payload = {description: webhook[:description], idModel: webhook[:idModel], callbackURL: webhook[:callbackURL]}
65
+ expected_payload = {
66
+ 'description' => webhook['description'],
67
+ 'idModel' => webhook['idModel'],
68
+ 'callbackURL' => webhook['callbackURL'],
69
+ 'active' => webhook['active']
70
+ }
66
71
 
67
72
  expect(client)
68
73
  .to receive(:post)
69
74
  .with("/webhooks", expected_payload)
70
75
  .and_return result
71
76
 
72
- webhook = Webhook.create(webhooks_details.first)
77
+ params = webhooks_details.first
78
+ params.delete('id')
79
+ webhook = Webhook.create(params)
73
80
 
74
81
  expect(webhook.class).to be Webhook
75
82
  end
@@ -79,12 +86,21 @@ module Trello
79
86
  it "updating description does a put on the correct resource with the correct value" do
80
87
  expected_new_description = "xxx"
81
88
 
82
- expected_payload = {description: expected_new_description, idModel: webhook.id_model, callbackURL: webhook.callback_url, active: webhook.active}
89
+ expected_payload = { 'description' => expected_new_description}
83
90
 
84
91
  expect(client)
85
92
  .to receive(:put)
86
93
  .once
87
94
  .with("/webhooks/#{webhook.id}", expected_payload)
95
+ .and_return({
96
+ 'id' => webhook.id,
97
+ 'idModel' => webhook.model_id,
98
+ 'description' => 'xxx',
99
+ 'callbackURL' => webhook.callback_url,
100
+ 'active' => webhook.active,
101
+ 'consecutiveFailures' => webhook.consecutive_failures,
102
+ 'firstConsecutiveFailDate' => webhook.first_consecutive_fail_date
103
+ }.to_json)
88
104
 
89
105
  webhook.description = expected_new_description
90
106
  webhook.save
@@ -112,7 +128,7 @@ module Trello
112
128
  expected = {
113
129
  'id' => 'id',
114
130
  'description' => 'description',
115
- 'idModel' => 'id_model',
131
+ 'idModel' => 'model_id',
116
132
  'callbackURL' => 'callback_url',
117
133
  'active' => 'active'
118
134
  }
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.1
4
+ version: 3.0.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: 2020-07-19 00:00:00.000000000 Z
11
+ date: 2021-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -131,7 +131,17 @@ files:
131
131
  - lib/trello/notification.rb
132
132
  - lib/trello/organization.rb
133
133
  - lib/trello/plugin_datum.rb
134
- - lib/trello/register_attributes.rb
134
+ - lib/trello/schema.rb
135
+ - lib/trello/schema/attribute/base.rb
136
+ - lib/trello/schema/attribute/board_pref.rb
137
+ - lib/trello/schema/attribute/custom_field_display.rb
138
+ - lib/trello/schema/attribute/default.rb
139
+ - lib/trello/schema/attribute_builder.rb
140
+ - lib/trello/schema/attribute_registration.rb
141
+ - lib/trello/schema/serializer/default.rb
142
+ - lib/trello/schema/serializer/labels.rb
143
+ - lib/trello/schema/serializer/time.rb
144
+ - lib/trello/schema/serializer/webhooks.rb
135
145
  - lib/trello/token.rb
136
146
  - lib/trello/webhook.rb
137
147
  - spec/action_spec.rb
@@ -141,17 +151,45 @@ files:
141
151
  - spec/basic_data_spec.rb
142
152
  - spec/board_spec.rb
143
153
  - spec/card_spec.rb
154
+ - spec/cassettes/action_find_with_id_and_get_all_fields.yml
155
+ - spec/cassettes/board_find_with_id_and_get_all_fields.yml
156
+ - spec/cassettes/board_find_with_id_and_get_specific_fields.yml
144
157
  - spec/cassettes/can_add_a_file_from_url_on_a_card.yml
145
158
  - spec/cassettes/can_add_a_file_on_a_card.yml
159
+ - spec/cassettes/can_add_a_member_to_a_board.yml
146
160
  - spec/cassettes/can_add_a_member_to_a_card.yml
147
161
  - spec/cassettes/can_add_label_on_a_card.yml
162
+ - spec/cassettes/can_arvhice_all_cards_of_list.yml
148
163
  - spec/cassettes/can_close_bong_a_card.yml
149
164
  - spec/cassettes/can_get_actions.yml
165
+ - spec/cassettes/can_get_actions_of_board.yml
166
+ - spec/cassettes/can_get_actions_of_list.yml
167
+ - spec/cassettes/can_get_actions_of_members.yml
168
+ - spec/cassettes/can_get_actions_of_organization.yml
150
169
  - spec/cassettes/can_get_attachments.yml
170
+ - spec/cassettes/can_get_boards_of_custom_field.yml
171
+ - spec/cassettes/can_get_boards_of_label.yml
172
+ - spec/cassettes/can_get_boards_of_organization.yml
173
+ - spec/cassettes/can_get_cards_of_board.yml
174
+ - spec/cassettes/can_get_cards_of_list.yml
175
+ - spec/cassettes/can_get_cards_of_member.yml
176
+ - spec/cassettes/can_get_checklists_of_board.yml
151
177
  - spec/cassettes/can_get_comments.yml
178
+ - spec/cassettes/can_get_custom_field_options_of_custom_field.yml
179
+ - spec/cassettes/can_get_custom_fields_of_board.yml
180
+ - spec/cassettes/can_get_label_names_of_board.yml
181
+ - spec/cassettes/can_get_labels_of_board.yml
182
+ - spec/cassettes/can_get_lists_of_board.yml
183
+ - spec/cassettes/can_get_members_of_board.yml
184
+ - spec/cassettes/can_get_members_of_organization.yml
185
+ - spec/cassettes/can_get_notifications_of_member.yml
186
+ - spec/cassettes/can_get_organization_of_board.yml
187
+ - spec/cassettes/can_get_organizations_of_member.yml
188
+ - spec/cassettes/can_get_plugin_data_of_board.yml
152
189
  - spec/cassettes/can_move_a_card_to_another_board_with_specific_list.yml
153
190
  - spec/cassettes/can_move_a_card_to_another_board_without_specific_list.yml
154
191
  - spec/cassettes/can_move_a_card_to_another_list.yml
192
+ - spec/cassettes/can_move_all_cards_to_another_list.yml
155
193
  - spec/cassettes/can_remove_a_member_from_a_card.yml
156
194
  - spec/cassettes/can_remove_an_attachment_on_a_card.yml
157
195
  - spec/cassettes/can_remove_an_upvote_on_a_card.yml
@@ -159,18 +197,54 @@ files:
159
197
  - spec/cassettes/can_success_add_comment_to_a_card.yml
160
198
  - spec/cassettes/can_success_copy_checklist_to_a_card.yml
161
199
  - spec/cassettes/can_success_copy_checklist_to_a_card_without_name_pos.yml
200
+ - spec/cassettes/can_success_create_a_board.yml
201
+ - spec/cassettes/can_success_create_a_board_with_full_parameters.yml
202
+ - spec/cassettes/can_success_create_a_board_without_clone_from_other.yml
162
203
  - spec/cassettes/can_success_create_a_card.yml
204
+ - spec/cassettes/can_success_create_a_card_when_due_is_datetime.yml
205
+ - spec/cassettes/can_success_create_a_card_when_due_is_time.yml
206
+ - spec/cassettes/can_success_create_a_checklist.yml
207
+ - spec/cassettes/can_success_create_a_custom_field.yml
208
+ - spec/cassettes/can_success_create_a_custom_field_option.yml
209
+ - spec/cassettes/can_success_create_a_label.yml
210
+ - spec/cassettes/can_success_create_a_list.yml
211
+ - spec/cassettes/can_success_create_a_list_with_full_parameters.yml
212
+ - spec/cassettes/can_success_create_a_organization.yml
213
+ - spec/cassettes/can_success_create_a_webhook.yml
163
214
  - spec/cassettes/can_success_create_new_checklist_to_a_card.yml
215
+ - spec/cassettes/can_success_delete_a_custom_field_option.yml
164
216
  - spec/cassettes/can_success_delete_card.yml
217
+ - spec/cassettes/can_success_delete_checklist.yml
218
+ - spec/cassettes/can_success_get_card_of_board_by_card_id.yml
219
+ - spec/cassettes/can_success_remove_member_from_board.yml
220
+ - spec/cassettes/can_success_return_all_boards_of_current_user.yml
221
+ - spec/cassettes/can_success_upate_a_board.yml
165
222
  - spec/cassettes/can_success_upate_a_card.yml
223
+ - spec/cassettes/can_success_upate_a_list.yml
166
224
  - spec/cassettes/can_success_update_bong_a_board.yml
225
+ - spec/cassettes/can_success_update_bong_a_board_with_specific_fields.yml
167
226
  - spec/cassettes/can_success_update_bong_a_card.yml
227
+ - spec/cassettes/can_success_update_bong_a_checklist_with_specific_fields.yml
228
+ - spec/cassettes/can_success_update_bong_a_custom_field.yml
229
+ - spec/cassettes/can_success_update_bong_a_label.yml
230
+ - spec/cassettes/can_success_update_bong_a_list.yml
231
+ - spec/cassettes/can_success_update_bong_a_list_with_specific_fields.yml
232
+ - spec/cassettes/can_success_update_bong_a_organization.yml
233
+ - spec/cassettes/can_success_update_bong_a_webhook.yml
168
234
  - spec/cassettes/can_upvote_on_a_card.yml
169
235
  - spec/cassettes/card_find_with_id_and_get_all_fields.yml
170
236
  - spec/cassettes/card_find_with_id_and_get_specific_fields.yml
237
+ - spec/cassettes/checklist_can_add_an_item.yml
238
+ - spec/cassettes/checklist_can_update_the_item_state.yml
239
+ - spec/cassettes/checklist_find_with_id_and_get_all_fields.yml
240
+ - spec/cassettes/custom_field_find_with_id_and_get_all_fields.yml
241
+ - spec/cassettes/custom_field_find_with_id_and_get_specific_fields.yml
171
242
  - spec/cassettes/custom_field_item_save_1.yml
172
243
  - spec/cassettes/custom_field_item_save_2.yml
244
+ - spec/cassettes/custom_field_option_find_with_id.yml
173
245
  - spec/cassettes/get_board_of_card.yml
246
+ - spec/cassettes/get_board_of_list.yml
247
+ - spec/cassettes/get_boards_of_member.yml
174
248
  - spec/cassettes/get_check_item_states_of_card.yml
175
249
  - spec/cassettes/get_checklists_of_card.yml
176
250
  - spec/cassettes/get_cover_image_of_card.yml
@@ -180,8 +254,20 @@ files:
180
254
  - spec/cassettes/get_members_of_card.yml
181
255
  - spec/cassettes/get_plugin_data_of_card.yml
182
256
  - spec/cassettes/get_voters_of_card.yml
257
+ - spec/cassettes/label_delete.yml
258
+ - spec/cassettes/label_find_with_id.yml
259
+ - spec/cassettes/list_find_with_id_and_get_all_fields.yml
260
+ - spec/cassettes/list_find_with_id_and_get_specific_fields.yml
261
+ - spec/cassettes/member_find_with_id_and_get_all_fields.yml
262
+ - spec/cassettes/member_find_with_id_and_get_specific_fields.yml
263
+ - spec/cassettes/notification_find_with_id.yml
264
+ - spec/cassettes/organization_find_with_id_and_get_all_fields.yml
265
+ - spec/cassettes/organization_find_with_id_and_get_specific_fields.yml
183
266
  - spec/cassettes/remove_upvote_on_a_card_when_have_not_voted.yml
184
267
  - spec/cassettes/revote_on_a_card.yml
268
+ - spec/cassettes/token_find_with_token_string.yml
269
+ - spec/cassettes/webhook_delete.yml
270
+ - spec/cassettes/webhook_find_with_id.yml
185
271
  - spec/checklist_spec.rb
186
272
  - spec/client_spec.rb
187
273
  - spec/configuration_spec.rb
@@ -189,9 +275,27 @@ files:
189
275
  - spec/custom_field_option_spec.rb
190
276
  - spec/custom_field_spec.rb
191
277
  - spec/hash_spec.rb
278
+ - spec/integration/action/find_spec.rb
192
279
  - spec/integration/basic_data/many_spec.rb
193
280
  - spec/integration/basic_data/one_spec.rb
194
- - spec/integration/basic_data/register_attributes_spec.rb
281
+ - spec/integration/basic_data/schema_spec.rb
282
+ - spec/integration/board/add_member_spec.rb
283
+ - spec/integration/board/all_spec.rb
284
+ - spec/integration/board/associations/actions_spec.rb
285
+ - spec/integration/board/associations/cards_spec.rb
286
+ - spec/integration/board/associations/checklists_spec.rb
287
+ - spec/integration/board/associations/custom_fields_spec.rb
288
+ - spec/integration/board/associations/label_names_spec.rb
289
+ - spec/integration/board/associations/labels_spec.rb
290
+ - spec/integration/board/associations/lists_spec.rb
291
+ - spec/integration/board/associations/members_spec.rb
292
+ - spec/integration/board/associations/organization_spec.rb
293
+ - spec/integration/board/associations/plugin_data_spec.rb
294
+ - spec/integration/board/create_spec.rb
295
+ - spec/integration/board/find_card_spec.rb
296
+ - spec/integration/board/find_spec.rb
297
+ - spec/integration/board/remove_member_spec.rb
298
+ - spec/integration/board/save_spec.rb
195
299
  - spec/integration/board/update!_spec.rb
196
300
  - spec/integration/board_lists_spec.rb
197
301
  - spec/integration/card/add_and_remove_attachment_spec.rb
@@ -222,10 +326,57 @@ files:
222
326
  - spec/integration/card/save_spec.rb
223
327
  - spec/integration/card/update!_spec.rb
224
328
  - spec/integration/card/vote_spec.rb
329
+ - spec/integration/checklist/add_item_spec.rb
330
+ - spec/integration/checklist/create_spec.rb
331
+ - spec/integration/checklist/delete_spec.rb
332
+ - spec/integration/checklist/find_spec.rb
333
+ - spec/integration/checklist/update!_spec.rb
334
+ - spec/integration/checklist/update_item_state_spec.rb
335
+ - spec/integration/custom_field/association/board_spec.rb
336
+ - spec/integration/custom_field/association/custom_field_options_spec.rb
337
+ - spec/integration/custom_field/create_spec.rb
338
+ - spec/integration/custom_field/find_spec.rb
339
+ - spec/integration/custom_field/update!_spec.rb
225
340
  - spec/integration/custom_field_item_spec.rb
341
+ - spec/integration/custom_field_option/create_spec.rb
342
+ - spec/integration/custom_field_option/delete_spec.rb
343
+ - spec/integration/custom_field_option/find_spec.rb
226
344
  - spec/integration/how_to_authorize_spec.rb
227
345
  - spec/integration/how_to_use_boards_spec.rb
228
346
  - spec/integration/integration_test.rb
347
+ - spec/integration/label/association/board_spec.rb
348
+ - spec/integration/label/create_spec.rb
349
+ - spec/integration/label/delete_spec.rb
350
+ - spec/integration/label/find_spec.rb
351
+ - spec/integration/label/update!_spec.rb
352
+ - spec/integration/list/archive_all_cards_spec.rb
353
+ - spec/integration/list/associations/actions_spec.rb
354
+ - spec/integration/list/associations/board_spec.rb
355
+ - spec/integration/list/associations/cards_spec.rb
356
+ - spec/integration/list/create_spec.rb
357
+ - spec/integration/list/find_spec.rb
358
+ - spec/integration/list/move_all_cards_spec.rb
359
+ - spec/integration/list/save_spec.rb
360
+ - spec/integration/list/update!_spec.rb
361
+ - spec/integration/member/associations/actions_spec.rb
362
+ - spec/integration/member/associations/boards_spec.rb
363
+ - spec/integration/member/associations/cards_spec.rb
364
+ - spec/integration/member/associations/notifications_spec.rb
365
+ - spec/integration/member/associations/organizations_spec.rb
366
+ - spec/integration/member/find_spec.rb
367
+ - spec/integration/member/update!_spec.rb
368
+ - spec/integration/notification/find_spec.rb
369
+ - spec/integration/organization/associations/actions_spec.rb
370
+ - spec/integration/organization/associations/boards_spec.rb
371
+ - spec/integration/organization/associations/members_spec.rb
372
+ - spec/integration/organization/create_spec.rb
373
+ - spec/integration/organization/find_spec.rb
374
+ - spec/integration/organization/update!_spec.rb
375
+ - spec/integration/token/find_spec.rb
376
+ - spec/integration/webhook/create_spec.rb
377
+ - spec/integration/webhook/delete_spec.rb
378
+ - spec/integration/webhook/find_spec.rb
379
+ - spec/integration/webhook/update!_spec.rb
229
380
  - spec/item_spec.rb
230
381
  - spec/json_utils_spec.rb
231
382
  - spec/label_spec.rb
@@ -248,7 +399,21 @@ files:
248
399
  - spec/unit/trello/association_fetcher/has_one_spec.rb
249
400
  - spec/unit/trello/association_infer_tool_spec.rb
250
401
  - spec/unit/trello/basic_data_spec.rb
402
+ - spec/unit/trello/board/new_spec.rb
403
+ - spec/unit/trello/board/save_spec.rb
404
+ - spec/unit/trello/board/update_fields_spec.rb
405
+ - spec/unit/trello/board/update_spec.rb
251
406
  - spec/unit/trello/card_spec.rb
407
+ - spec/unit/trello/member/new_spec.rb
408
+ - spec/unit/trello/member/update_fields_spec.rb
409
+ - spec/unit/trello/schema/attribute/base_spec.rb
410
+ - spec/unit/trello/schema/attribute/board_pref_spec.rb
411
+ - spec/unit/trello/schema/attribute/default_spec.rb
412
+ - spec/unit/trello/schema/attribute_builder_spec.rb
413
+ - spec/unit/trello/schema/attribute_registration_spec.rb
414
+ - spec/unit/trello/schema/serializer/default_spec.rb
415
+ - spec/unit/trello/schema/serializer/time_spec.rb
416
+ - spec/unit/trello/schema_spec.rb
252
417
  - spec/webhook_spec.rb
253
418
  homepage: https://github.com/jeremytregunna/ruby-trello
254
419
  licenses:
@@ -271,124 +436,279 @@ required_rubygems_version: !ruby/object:Gem::Requirement
271
436
  - !ruby/object:Gem::Version
272
437
  version: '0'
273
438
  requirements: []
274
- rubygems_version: 3.1.3
439
+ rubygems_version: 3.2.3
275
440
  signing_key:
276
441
  specification_version: 4
277
442
  summary: A wrapper around the trello.com API.
278
443
  test_files:
279
- - spec/json_utils_spec.rb
280
- - spec/item_spec.rb
281
- - spec/integration/board_lists_spec.rb
282
- - spec/integration/how_to_use_boards_spec.rb
283
- - spec/integration/how_to_authorize_spec.rb
284
- - spec/integration/custom_field_item_spec.rb
285
- - spec/integration/basic_data/register_attributes_spec.rb
286
- - spec/integration/basic_data/one_spec.rb
444
+ - spec/action_spec.rb
445
+ - spec/array_spec.rb
446
+ - spec/association_spec.rb
447
+ - spec/basic_auth_policy_spec.rb
448
+ - spec/basic_data_spec.rb
449
+ - spec/board_spec.rb
450
+ - spec/card_spec.rb
451
+ - spec/cassettes/action_find_with_id_and_get_all_fields.yml
452
+ - spec/cassettes/board_find_with_id_and_get_all_fields.yml
453
+ - spec/cassettes/board_find_with_id_and_get_specific_fields.yml
454
+ - spec/cassettes/can_add_a_file_from_url_on_a_card.yml
455
+ - spec/cassettes/can_add_a_file_on_a_card.yml
456
+ - spec/cassettes/can_add_a_member_to_a_board.yml
457
+ - spec/cassettes/can_add_a_member_to_a_card.yml
458
+ - spec/cassettes/can_add_label_on_a_card.yml
459
+ - spec/cassettes/can_arvhice_all_cards_of_list.yml
460
+ - spec/cassettes/can_close_bong_a_card.yml
461
+ - spec/cassettes/can_get_actions.yml
462
+ - spec/cassettes/can_get_actions_of_board.yml
463
+ - spec/cassettes/can_get_actions_of_list.yml
464
+ - spec/cassettes/can_get_actions_of_members.yml
465
+ - spec/cassettes/can_get_actions_of_organization.yml
466
+ - spec/cassettes/can_get_attachments.yml
467
+ - spec/cassettes/can_get_boards_of_custom_field.yml
468
+ - spec/cassettes/can_get_boards_of_label.yml
469
+ - spec/cassettes/can_get_boards_of_organization.yml
470
+ - spec/cassettes/can_get_cards_of_board.yml
471
+ - spec/cassettes/can_get_cards_of_list.yml
472
+ - spec/cassettes/can_get_cards_of_member.yml
473
+ - spec/cassettes/can_get_checklists_of_board.yml
474
+ - spec/cassettes/can_get_comments.yml
475
+ - spec/cassettes/can_get_custom_field_options_of_custom_field.yml
476
+ - spec/cassettes/can_get_custom_fields_of_board.yml
477
+ - spec/cassettes/can_get_label_names_of_board.yml
478
+ - spec/cassettes/can_get_labels_of_board.yml
479
+ - spec/cassettes/can_get_lists_of_board.yml
480
+ - spec/cassettes/can_get_members_of_board.yml
481
+ - spec/cassettes/can_get_members_of_organization.yml
482
+ - spec/cassettes/can_get_notifications_of_member.yml
483
+ - spec/cassettes/can_get_organization_of_board.yml
484
+ - spec/cassettes/can_get_organizations_of_member.yml
485
+ - spec/cassettes/can_get_plugin_data_of_board.yml
486
+ - spec/cassettes/can_move_a_card_to_another_board_with_specific_list.yml
487
+ - spec/cassettes/can_move_a_card_to_another_board_without_specific_list.yml
488
+ - spec/cassettes/can_move_a_card_to_another_list.yml
489
+ - spec/cassettes/can_move_all_cards_to_another_list.yml
490
+ - spec/cassettes/can_remove_a_member_from_a_card.yml
491
+ - spec/cassettes/can_remove_an_attachment_on_a_card.yml
492
+ - spec/cassettes/can_remove_an_upvote_on_a_card.yml
493
+ - spec/cassettes/can_remove_label_on_a_card.yml
494
+ - spec/cassettes/can_success_add_comment_to_a_card.yml
495
+ - spec/cassettes/can_success_copy_checklist_to_a_card.yml
496
+ - spec/cassettes/can_success_copy_checklist_to_a_card_without_name_pos.yml
497
+ - spec/cassettes/can_success_create_a_board.yml
498
+ - spec/cassettes/can_success_create_a_board_with_full_parameters.yml
499
+ - spec/cassettes/can_success_create_a_board_without_clone_from_other.yml
500
+ - spec/cassettes/can_success_create_a_card.yml
501
+ - spec/cassettes/can_success_create_a_card_when_due_is_datetime.yml
502
+ - spec/cassettes/can_success_create_a_card_when_due_is_time.yml
503
+ - spec/cassettes/can_success_create_a_checklist.yml
504
+ - spec/cassettes/can_success_create_a_custom_field.yml
505
+ - spec/cassettes/can_success_create_a_custom_field_option.yml
506
+ - spec/cassettes/can_success_create_a_label.yml
507
+ - spec/cassettes/can_success_create_a_list.yml
508
+ - spec/cassettes/can_success_create_a_list_with_full_parameters.yml
509
+ - spec/cassettes/can_success_create_a_organization.yml
510
+ - spec/cassettes/can_success_create_a_webhook.yml
511
+ - spec/cassettes/can_success_create_new_checklist_to_a_card.yml
512
+ - spec/cassettes/can_success_delete_a_custom_field_option.yml
513
+ - spec/cassettes/can_success_delete_card.yml
514
+ - spec/cassettes/can_success_delete_checklist.yml
515
+ - spec/cassettes/can_success_get_card_of_board_by_card_id.yml
516
+ - spec/cassettes/can_success_remove_member_from_board.yml
517
+ - spec/cassettes/can_success_return_all_boards_of_current_user.yml
518
+ - spec/cassettes/can_success_upate_a_board.yml
519
+ - spec/cassettes/can_success_upate_a_card.yml
520
+ - spec/cassettes/can_success_upate_a_list.yml
521
+ - spec/cassettes/can_success_update_bong_a_board.yml
522
+ - spec/cassettes/can_success_update_bong_a_board_with_specific_fields.yml
523
+ - spec/cassettes/can_success_update_bong_a_card.yml
524
+ - spec/cassettes/can_success_update_bong_a_checklist_with_specific_fields.yml
525
+ - spec/cassettes/can_success_update_bong_a_custom_field.yml
526
+ - spec/cassettes/can_success_update_bong_a_label.yml
527
+ - spec/cassettes/can_success_update_bong_a_list.yml
528
+ - spec/cassettes/can_success_update_bong_a_list_with_specific_fields.yml
529
+ - spec/cassettes/can_success_update_bong_a_organization.yml
530
+ - spec/cassettes/can_success_update_bong_a_webhook.yml
531
+ - spec/cassettes/can_upvote_on_a_card.yml
532
+ - spec/cassettes/card_find_with_id_and_get_all_fields.yml
533
+ - spec/cassettes/card_find_with_id_and_get_specific_fields.yml
534
+ - spec/cassettes/checklist_can_add_an_item.yml
535
+ - spec/cassettes/checklist_can_update_the_item_state.yml
536
+ - spec/cassettes/checklist_find_with_id_and_get_all_fields.yml
537
+ - spec/cassettes/custom_field_find_with_id_and_get_all_fields.yml
538
+ - spec/cassettes/custom_field_find_with_id_and_get_specific_fields.yml
539
+ - spec/cassettes/custom_field_item_save_1.yml
540
+ - spec/cassettes/custom_field_item_save_2.yml
541
+ - spec/cassettes/custom_field_option_find_with_id.yml
542
+ - spec/cassettes/get_board_of_card.yml
543
+ - spec/cassettes/get_board_of_list.yml
544
+ - spec/cassettes/get_boards_of_member.yml
545
+ - spec/cassettes/get_check_item_states_of_card.yml
546
+ - spec/cassettes/get_checklists_of_card.yml
547
+ - spec/cassettes/get_cover_image_of_card.yml
548
+ - spec/cassettes/get_custom_field_items_of_card.yml
549
+ - spec/cassettes/get_list_of_card.yml
550
+ - spec/cassettes/get_lists.yml
551
+ - spec/cassettes/get_members_of_card.yml
552
+ - spec/cassettes/get_plugin_data_of_card.yml
553
+ - spec/cassettes/get_voters_of_card.yml
554
+ - spec/cassettes/label_delete.yml
555
+ - spec/cassettes/label_find_with_id.yml
556
+ - spec/cassettes/list_find_with_id_and_get_all_fields.yml
557
+ - spec/cassettes/list_find_with_id_and_get_specific_fields.yml
558
+ - spec/cassettes/member_find_with_id_and_get_all_fields.yml
559
+ - spec/cassettes/member_find_with_id_and_get_specific_fields.yml
560
+ - spec/cassettes/notification_find_with_id.yml
561
+ - spec/cassettes/organization_find_with_id_and_get_all_fields.yml
562
+ - spec/cassettes/organization_find_with_id_and_get_specific_fields.yml
563
+ - spec/cassettes/remove_upvote_on_a_card_when_have_not_voted.yml
564
+ - spec/cassettes/revote_on_a_card.yml
565
+ - spec/cassettes/token_find_with_token_string.yml
566
+ - spec/cassettes/webhook_delete.yml
567
+ - spec/cassettes/webhook_find_with_id.yml
568
+ - spec/checklist_spec.rb
569
+ - spec/client_spec.rb
570
+ - spec/configuration_spec.rb
571
+ - spec/custom_field_item_spec.rb
572
+ - spec/custom_field_option_spec.rb
573
+ - spec/custom_field_spec.rb
574
+ - spec/hash_spec.rb
575
+ - spec/integration/action/find_spec.rb
287
576
  - spec/integration/basic_data/many_spec.rb
577
+ - spec/integration/basic_data/one_spec.rb
578
+ - spec/integration/basic_data/schema_spec.rb
579
+ - spec/integration/board/add_member_spec.rb
580
+ - spec/integration/board/all_spec.rb
581
+ - spec/integration/board/associations/actions_spec.rb
582
+ - spec/integration/board/associations/cards_spec.rb
583
+ - spec/integration/board/associations/checklists_spec.rb
584
+ - spec/integration/board/associations/custom_fields_spec.rb
585
+ - spec/integration/board/associations/label_names_spec.rb
586
+ - spec/integration/board/associations/labels_spec.rb
587
+ - spec/integration/board/associations/lists_spec.rb
588
+ - spec/integration/board/associations/members_spec.rb
589
+ - spec/integration/board/associations/organization_spec.rb
590
+ - spec/integration/board/associations/plugin_data_spec.rb
591
+ - spec/integration/board/create_spec.rb
592
+ - spec/integration/board/find_card_spec.rb
593
+ - spec/integration/board/find_spec.rb
594
+ - spec/integration/board/remove_member_spec.rb
595
+ - spec/integration/board/save_spec.rb
288
596
  - spec/integration/board/update!_spec.rb
289
- - spec/integration/integration_test.rb
290
- - spec/integration/card/find_spec.rb
291
- - spec/integration/card/vote_spec.rb
292
- - spec/integration/card/remove_member_spec.rb
597
+ - spec/integration/board_lists_spec.rb
598
+ - spec/integration/card/add_and_remove_attachment_spec.rb
599
+ - spec/integration/card/add_and_remove_label_spec.rb
600
+ - spec/integration/card/add_checklist_spec.rb
601
+ - spec/integration/card/add_comment_spec.rb
293
602
  - spec/integration/card/add_memeber_spec.rb
603
+ - spec/integration/card/associations/actions_spec.rb
294
604
  - spec/integration/card/associations/attachments_spec.rb
295
- - spec/integration/card/associations/voters_spec.rb
296
605
  - spec/integration/card/associations/board_spec.rb
297
- - spec/integration/card/associations/members_spec.rb
298
- - spec/integration/card/associations/cover_image_spec.rb
299
606
  - spec/integration/card/associations/check_item_states_spec.rb
607
+ - spec/integration/card/associations/checklists_spec.rb
300
608
  - spec/integration/card/associations/comments_spec.rb
609
+ - spec/integration/card/associations/cover_image_spec.rb
301
610
  - spec/integration/card/associations/custom_field_items_spec.rb
302
- - spec/integration/card/associations/plugin_data_spec.rb
303
- - spec/integration/card/associations/checklists_spec.rb
304
- - spec/integration/card/associations/actions_spec.rb
305
611
  - spec/integration/card/associations/list_spec.rb
306
- - spec/integration/card/delete_spec.rb
307
- - spec/integration/card/add_and_remove_label_spec.rb
308
- - spec/integration/card/add_comment_spec.rb
309
- - spec/integration/card/create_spec.rb
310
- - spec/integration/card/save_spec.rb
612
+ - spec/integration/card/associations/members_spec.rb
613
+ - spec/integration/card/associations/plugin_data_spec.rb
614
+ - spec/integration/card/associations/voters_spec.rb
311
615
  - spec/integration/card/close!_spec.rb
312
- - spec/integration/card/add_and_remove_attachment_spec.rb
313
- - spec/integration/card/move_to_list_spec.rb
314
- - spec/integration/card/add_checklist_spec.rb
616
+ - spec/integration/card/create_new_check_list_spec.rb
617
+ - spec/integration/card/create_spec.rb
618
+ - spec/integration/card/delete_spec.rb
619
+ - spec/integration/card/find_spec.rb
315
620
  - spec/integration/card/move_to_board_spec.rb
621
+ - spec/integration/card/move_to_list_spec.rb
622
+ - spec/integration/card/remove_member_spec.rb
623
+ - spec/integration/card/save_spec.rb
316
624
  - spec/integration/card/update!_spec.rb
317
- - spec/integration/card/create_new_check_list_spec.rb
625
+ - spec/integration/card/vote_spec.rb
626
+ - spec/integration/checklist/add_item_spec.rb
627
+ - spec/integration/checklist/create_spec.rb
628
+ - spec/integration/checklist/delete_spec.rb
629
+ - spec/integration/checklist/find_spec.rb
630
+ - spec/integration/checklist/update!_spec.rb
631
+ - spec/integration/checklist/update_item_state_spec.rb
632
+ - spec/integration/custom_field/association/board_spec.rb
633
+ - spec/integration/custom_field/association/custom_field_options_spec.rb
634
+ - spec/integration/custom_field/create_spec.rb
635
+ - spec/integration/custom_field/find_spec.rb
636
+ - spec/integration/custom_field/update!_spec.rb
637
+ - spec/integration/custom_field_item_spec.rb
638
+ - spec/integration/custom_field_option/create_spec.rb
639
+ - spec/integration/custom_field_option/delete_spec.rb
640
+ - spec/integration/custom_field_option/find_spec.rb
641
+ - spec/integration/how_to_authorize_spec.rb
642
+ - spec/integration/how_to_use_boards_spec.rb
643
+ - spec/integration/integration_test.rb
644
+ - spec/integration/label/association/board_spec.rb
645
+ - spec/integration/label/create_spec.rb
646
+ - spec/integration/label/delete_spec.rb
647
+ - spec/integration/label/find_spec.rb
648
+ - spec/integration/label/update!_spec.rb
649
+ - spec/integration/list/archive_all_cards_spec.rb
650
+ - spec/integration/list/associations/actions_spec.rb
651
+ - spec/integration/list/associations/board_spec.rb
652
+ - spec/integration/list/associations/cards_spec.rb
653
+ - spec/integration/list/create_spec.rb
654
+ - spec/integration/list/find_spec.rb
655
+ - spec/integration/list/move_all_cards_spec.rb
656
+ - spec/integration/list/save_spec.rb
657
+ - spec/integration/list/update!_spec.rb
658
+ - spec/integration/member/associations/actions_spec.rb
659
+ - spec/integration/member/associations/boards_spec.rb
660
+ - spec/integration/member/associations/cards_spec.rb
661
+ - spec/integration/member/associations/notifications_spec.rb
662
+ - spec/integration/member/associations/organizations_spec.rb
663
+ - spec/integration/member/find_spec.rb
664
+ - spec/integration/member/update!_spec.rb
665
+ - spec/integration/notification/find_spec.rb
666
+ - spec/integration/organization/associations/actions_spec.rb
667
+ - spec/integration/organization/associations/boards_spec.rb
668
+ - spec/integration/organization/associations/members_spec.rb
669
+ - spec/integration/organization/create_spec.rb
670
+ - spec/integration/organization/find_spec.rb
671
+ - spec/integration/organization/update!_spec.rb
672
+ - spec/integration/token/find_spec.rb
673
+ - spec/integration/webhook/create_spec.rb
674
+ - spec/integration/webhook/delete_spec.rb
675
+ - spec/integration/webhook/find_spec.rb
676
+ - spec/integration/webhook/update!_spec.rb
677
+ - spec/item_spec.rb
678
+ - spec/json_utils_spec.rb
679
+ - spec/label_spec.rb
680
+ - spec/list_spec.rb
681
+ - spec/member_spec.rb
682
+ - spec/notification_spec.rb
683
+ - spec/oauth_policy_spec.rb
684
+ - spec/organization_spec.rb
685
+ - spec/spec_helper.rb
686
+ - spec/string_spec.rb
687
+ - spec/token_spec.rb
688
+ - spec/trello_spec.rb
318
689
  - spec/unit/trello/association_builder/has_many_spec.rb
319
690
  - spec/unit/trello/association_builder/has_one_spec.rb
320
- - spec/unit/trello/card_spec.rb
321
- - spec/unit/trello/association_infer_tool_spec.rb
322
- - spec/unit/trello/association_fetcher/has_many/params_spec.rb
323
691
  - spec/unit/trello/association_fetcher/has_many/fetch_spec.rb
324
- - spec/unit/trello/association_fetcher/has_one/params_spec.rb
325
- - spec/unit/trello/association_fetcher/has_one/fetch_spec.rb
692
+ - spec/unit/trello/association_fetcher/has_many/params_spec.rb
326
693
  - spec/unit/trello/association_fetcher/has_many_spec.rb
694
+ - spec/unit/trello/association_fetcher/has_one/fetch_spec.rb
695
+ - spec/unit/trello/association_fetcher/has_one/params_spec.rb
327
696
  - spec/unit/trello/association_fetcher/has_one_spec.rb
697
+ - spec/unit/trello/association_infer_tool_spec.rb
328
698
  - spec/unit/trello/basic_data_spec.rb
329
- - spec/string_spec.rb
330
- - spec/board_spec.rb
331
- - spec/action_spec.rb
332
- - spec/cassettes/get_members_of_card.yml
333
- - spec/cassettes/can_close_bong_a_card.yml
334
- - spec/cassettes/can_success_add_comment_to_a_card.yml
335
- - spec/cassettes/can_move_a_card_to_another_board_without_specific_list.yml
336
- - spec/cassettes/can_success_upate_a_card.yml
337
- - spec/cassettes/get_voters_of_card.yml
338
- - spec/cassettes/get_list_of_card.yml
339
- - spec/cassettes/can_remove_an_attachment_on_a_card.yml
340
- - spec/cassettes/get_custom_field_items_of_card.yml
341
- - spec/cassettes/can_get_actions.yml
342
- - spec/cassettes/can_success_delete_card.yml
343
- - spec/cassettes/can_success_create_a_card.yml
344
- - spec/cassettes/can_add_label_on_a_card.yml
345
- - spec/cassettes/can_add_a_member_to_a_card.yml
346
- - spec/cassettes/remove_upvote_on_a_card_when_have_not_voted.yml
347
- - spec/cassettes/get_cover_image_of_card.yml
348
- - spec/cassettes/can_move_a_card_to_another_list.yml
349
- - spec/cassettes/custom_field_item_save_2.yml
350
- - spec/cassettes/get_plugin_data_of_card.yml
351
- - spec/cassettes/custom_field_item_save_1.yml
352
- - spec/cassettes/can_add_a_file_on_a_card.yml
353
- - spec/cassettes/can_add_a_file_from_url_on_a_card.yml
354
- - spec/cassettes/can_remove_a_member_from_a_card.yml
355
- - spec/cassettes/get_board_of_card.yml
356
- - spec/cassettes/revote_on_a_card.yml
357
- - spec/cassettes/card_find_with_id_and_get_all_fields.yml
358
- - spec/cassettes/get_lists.yml
359
- - spec/cassettes/can_get_comments.yml
360
- - spec/cassettes/can_remove_an_upvote_on_a_card.yml
361
- - spec/cassettes/get_checklists_of_card.yml
362
- - spec/cassettes/can_get_attachments.yml
363
- - spec/cassettes/can_success_update_bong_a_card.yml
364
- - spec/cassettes/can_success_copy_checklist_to_a_card.yml
365
- - spec/cassettes/card_find_with_id_and_get_specific_fields.yml
366
- - spec/cassettes/can_success_copy_checklist_to_a_card_without_name_pos.yml
367
- - spec/cassettes/can_move_a_card_to_another_board_with_specific_list.yml
368
- - spec/cassettes/can_remove_label_on_a_card.yml
369
- - spec/cassettes/get_check_item_states_of_card.yml
370
- - spec/cassettes/can_upvote_on_a_card.yml
371
- - spec/cassettes/can_success_create_new_checklist_to_a_card.yml
372
- - spec/cassettes/can_success_update_bong_a_board.yml
373
- - spec/association_spec.rb
374
- - spec/notification_spec.rb
375
- - spec/trello_spec.rb
376
- - spec/hash_spec.rb
699
+ - spec/unit/trello/board/new_spec.rb
700
+ - spec/unit/trello/board/save_spec.rb
701
+ - spec/unit/trello/board/update_fields_spec.rb
702
+ - spec/unit/trello/board/update_spec.rb
703
+ - spec/unit/trello/card_spec.rb
704
+ - spec/unit/trello/member/new_spec.rb
705
+ - spec/unit/trello/member/update_fields_spec.rb
706
+ - spec/unit/trello/schema/attribute/base_spec.rb
707
+ - spec/unit/trello/schema/attribute/board_pref_spec.rb
708
+ - spec/unit/trello/schema/attribute/default_spec.rb
709
+ - spec/unit/trello/schema/attribute_builder_spec.rb
710
+ - spec/unit/trello/schema/attribute_registration_spec.rb
711
+ - spec/unit/trello/schema/serializer/default_spec.rb
712
+ - spec/unit/trello/schema/serializer/time_spec.rb
713
+ - spec/unit/trello/schema_spec.rb
377
714
  - spec/webhook_spec.rb
378
- - spec/label_spec.rb
379
- - spec/custom_field_option_spec.rb
380
- - spec/custom_field_item_spec.rb
381
- - spec/card_spec.rb
382
- - spec/token_spec.rb
383
- - spec/custom_field_spec.rb
384
- - spec/organization_spec.rb
385
- - spec/configuration_spec.rb
386
- - spec/array_spec.rb
387
- - spec/checklist_spec.rb
388
- - spec/basic_auth_policy_spec.rb
389
- - spec/oauth_policy_spec.rb
390
- - spec/spec_helper.rb
391
- - spec/member_spec.rb
392
- - spec/basic_data_spec.rb
393
- - spec/list_spec.rb
394
- - spec/client_spec.rb