ruby-trello 2.0.1 → 3.0.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 +61 -10
- data/lib/trello.rb +57 -36
- data/lib/trello/action.rb +31 -23
- data/lib/trello/association_builder/has_many.rb +17 -0
- data/lib/trello/association_builder/has_one.rb +16 -0
- data/lib/trello/association_fetcher/has_many.rb +26 -0
- data/lib/trello/association_fetcher/has_many/fetch.rb +47 -0
- data/lib/trello/association_fetcher/has_many/params.rb +56 -0
- data/lib/trello/association_fetcher/has_one.rb +25 -0
- data/lib/trello/association_fetcher/has_one/fetch.rb +49 -0
- data/lib/trello/association_fetcher/has_one/params.rb +36 -0
- data/lib/trello/association_infer_tool.rb +13 -0
- data/lib/trello/association_proxy.rb +1 -1
- data/lib/trello/attachment.rb +40 -27
- data/lib/trello/basic_data.rb +112 -50
- data/lib/trello/board.rb +91 -101
- data/lib/trello/card.rb +53 -200
- data/lib/trello/checklist.rb +17 -71
- data/lib/trello/comment.rb +32 -22
- data/lib/trello/cover_image.rb +20 -0
- data/lib/trello/custom_field.rb +78 -0
- data/lib/trello/custom_field_item.rb +76 -0
- data/lib/trello/custom_field_option.rb +49 -0
- data/lib/trello/item.rb +27 -16
- data/lib/trello/item_state.rb +7 -15
- data/lib/trello/json_utils.rb +1 -1
- data/lib/trello/label.rb +15 -84
- data/lib/trello/label_name.rb +22 -25
- data/lib/trello/list.rb +31 -44
- data/lib/trello/member.rb +77 -31
- data/lib/trello/notification.rb +27 -20
- data/lib/trello/organization.rb +53 -25
- data/lib/trello/plugin_datum.rb +11 -16
- data/lib/trello/schema.rb +31 -0
- data/lib/trello/schema/attribute/base.rb +79 -0
- data/lib/trello/schema/attribute/board_pref.rb +45 -0
- data/lib/trello/schema/attribute/custom_field_display.rb +45 -0
- data/lib/trello/schema/attribute/default.rb +45 -0
- data/lib/trello/schema/attribute_builder.rb +42 -0
- data/lib/trello/schema/attribute_registration.rb +47 -0
- data/lib/trello/schema/serializer/default.rb +17 -0
- data/lib/trello/schema/serializer/labels.rb +23 -0
- data/lib/trello/schema/serializer/time.rb +25 -0
- data/lib/trello/schema/serializer/webhooks.rb +25 -0
- data/lib/trello/token.rb +15 -12
- data/lib/trello/webhook.rb +18 -71
- data/spec/action_spec.rb +2 -3
- data/spec/basic_data_spec.rb +58 -0
- data/spec/board_spec.rb +53 -100
- data/spec/card_spec.rb +177 -66
- data/spec/cassettes/action_find_with_id_and_get_all_fields.yml +104 -0
- data/spec/cassettes/board_find_with_id_and_get_all_fields.yml +96 -0
- data/spec/cassettes/board_find_with_id_and_get_specific_fields.yml +96 -0
- data/spec/cassettes/can_add_a_file_from_url_on_a_card.yml +189 -0
- data/spec/cassettes/can_add_a_file_on_a_card.yml +200 -0
- data/spec/cassettes/can_add_a_member_to_a_board.yml +191 -0
- data/spec/cassettes/can_add_a_member_to_a_card.yml +190 -0
- data/spec/cassettes/can_add_label_on_a_card.yml +281 -0
- data/spec/cassettes/can_arvhice_all_cards_of_list.yml +397 -0
- data/spec/cassettes/can_close_bong_a_card.yml +189 -0
- data/spec/cassettes/can_get_actions.yml +196 -0
- data/spec/cassettes/can_get_actions_of_board.yml +188 -0
- data/spec/cassettes/can_get_actions_of_list.yml +202 -0
- data/spec/cassettes/can_get_actions_of_members.yml +199 -0
- data/spec/cassettes/can_get_actions_of_organization.yml +201 -0
- data/spec/cassettes/can_get_attachments.yml +187 -0
- data/spec/cassettes/can_get_boards_of_custom_field.yml +198 -0
- data/spec/cassettes/can_get_boards_of_label.yml +197 -0
- data/spec/cassettes/can_get_boards_of_organization.yml +207 -0
- data/spec/cassettes/can_get_cards_of_board.yml +193 -0
- data/spec/cassettes/can_get_cards_of_list.yml +201 -0
- data/spec/cassettes/can_get_cards_of_member.yml +204 -0
- data/spec/cassettes/can_get_checklists_of_board.yml +187 -0
- data/spec/cassettes/can_get_comments.yml +193 -0
- data/spec/cassettes/can_get_custom_field_options_of_custom_field.yml +197 -0
- data/spec/cassettes/can_get_custom_fields_of_board.yml +187 -0
- data/spec/cassettes/can_get_label_names_of_board.yml +187 -0
- data/spec/cassettes/can_get_labels_of_board.yml +187 -0
- data/spec/cassettes/can_get_lists_of_board.yml +187 -0
- data/spec/cassettes/can_get_members_of_board.yml +188 -0
- data/spec/cassettes/can_get_members_of_organization.yml +200 -0
- data/spec/cassettes/can_get_notifications_of_member.yml +199 -0
- data/spec/cassettes/can_get_organization_of_board.yml +189 -0
- data/spec/cassettes/can_get_organizations_of_member.yml +203 -0
- data/spec/cassettes/can_get_plugin_data_of_board.yml +187 -0
- data/spec/cassettes/can_move_a_card_to_another_board_with_specific_list.yml +373 -0
- data/spec/cassettes/can_move_a_card_to_another_board_without_specific_list.yml +281 -0
- data/spec/cassettes/can_move_a_card_to_another_list.yml +281 -0
- data/spec/cassettes/can_move_all_cards_to_another_list.yml +886 -0
- data/spec/cassettes/can_remove_a_member_from_a_card.yml +185 -0
- data/spec/cassettes/can_remove_an_attachment_on_a_card.yml +277 -0
- data/spec/cassettes/can_remove_an_upvote_on_a_card.yml +465 -0
- data/spec/cassettes/can_remove_label_on_a_card.yml +279 -0
- data/spec/cassettes/can_success_add_comment_to_a_card.yml +196 -0
- data/spec/cassettes/can_success_copy_checklist_to_a_card.yml +281 -0
- data/spec/cassettes/can_success_copy_checklist_to_a_card_without_name_pos.yml +281 -0
- data/spec/cassettes/can_success_create_a_board.yml +98 -0
- data/spec/cassettes/can_success_create_a_board_with_full_parameters.yml +97 -0
- data/spec/cassettes/can_success_create_a_board_without_clone_from_other.yml +98 -0
- data/spec/cassettes/can_success_create_a_card.yml +99 -0
- data/spec/cassettes/can_success_create_a_card_when_due_is_datetime.yml +98 -0
- data/spec/cassettes/can_success_create_a_card_when_due_is_time.yml +98 -0
- data/spec/cassettes/can_success_create_a_checklist.yml +102 -0
- data/spec/cassettes/can_success_create_a_custom_field.yml +102 -0
- data/spec/cassettes/can_success_create_a_custom_field_option.yml +102 -0
- data/spec/cassettes/can_success_create_a_label.yml +102 -0
- data/spec/cassettes/can_success_create_a_list.yml +102 -0
- data/spec/cassettes/can_success_create_a_list_with_full_parameters.yml +102 -0
- data/spec/cassettes/can_success_create_a_organization.yml +104 -0
- data/spec/cassettes/can_success_create_a_webhook.yml +102 -0
- data/spec/cassettes/can_success_create_new_checklist_to_a_card.yml +189 -0
- data/spec/cassettes/can_success_delete_a_custom_field_option.yml +389 -0
- data/spec/cassettes/can_success_delete_card.yml +185 -0
- data/spec/cassettes/can_success_delete_checklist.yml +284 -0
- data/spec/cassettes/can_success_get_card_of_board_by_card_id.yml +188 -0
- data/spec/cassettes/can_success_remove_member_from_board.yml +186 -0
- data/spec/cassettes/can_success_return_all_boards_of_current_user.yml +195 -0
- data/spec/cassettes/can_success_upate_a_board.yml +191 -0
- data/spec/cassettes/can_success_upate_a_card.yml +189 -0
- data/spec/cassettes/can_success_upate_a_list.yml +296 -0
- data/spec/cassettes/can_success_update_bong_a_board.yml +283 -0
- data/spec/cassettes/can_success_update_bong_a_board_with_specific_fields.yml +284 -0
- data/spec/cassettes/can_success_update_bong_a_card.yml +191 -0
- data/spec/cassettes/can_success_update_bong_a_checklist_with_specific_fields.yml +296 -0
- data/spec/cassettes/can_success_update_bong_a_custom_field.yml +200 -0
- data/spec/cassettes/can_success_update_bong_a_label.yml +200 -0
- data/spec/cassettes/can_success_update_bong_a_list.yml +199 -0
- data/spec/cassettes/can_success_update_bong_a_list_with_specific_fields.yml +296 -0
- data/spec/cassettes/can_success_update_bong_a_organization.yml +203 -0
- data/spec/cassettes/can_success_update_bong_a_webhook.yml +296 -0
- data/spec/cassettes/can_upvote_on_a_card.yml +469 -0
- data/spec/cassettes/card_find_with_id_and_get_all_fields.yml +95 -0
- data/spec/cassettes/card_find_with_id_and_get_specific_fields.yml +96 -0
- data/spec/cassettes/checklist_can_add_an_item.yml +296 -0
- data/spec/cassettes/checklist_can_update_the_item_state.yml +296 -0
- data/spec/cassettes/checklist_find_with_id_and_get_all_fields.yml +100 -0
- data/spec/cassettes/custom_field_find_with_id_and_get_all_fields.yml +100 -0
- data/spec/cassettes/custom_field_find_with_id_and_get_specific_fields.yml +100 -0
- data/spec/cassettes/custom_field_item_save_1.yml +97 -0
- data/spec/cassettes/custom_field_item_save_2.yml +281 -0
- data/spec/cassettes/custom_field_option_find_with_id.yml +100 -0
- data/spec/cassettes/get_board_of_card.yml +187 -0
- data/spec/cassettes/get_board_of_list.yml +197 -0
- data/spec/cassettes/get_boards_of_member.yml +207 -0
- data/spec/cassettes/get_check_item_states_of_card.yml +188 -0
- data/spec/cassettes/get_checklists_of_card.yml +187 -0
- data/spec/cassettes/get_cover_image_of_card.yml +187 -0
- data/spec/cassettes/get_custom_field_items_of_card.yml +187 -0
- data/spec/cassettes/get_list_of_card.yml +188 -0
- data/spec/cassettes/get_lists.yml +187 -0
- data/spec/cassettes/get_members_of_card.yml +189 -0
- data/spec/cassettes/get_plugin_data_of_card.yml +187 -0
- data/spec/cassettes/get_voters_of_card.yml +188 -0
- data/spec/cassettes/label_delete.yml +285 -0
- data/spec/cassettes/label_find_with_id.yml +100 -0
- data/spec/cassettes/list_find_with_id_and_get_all_fields.yml +100 -0
- data/spec/cassettes/list_find_with_id_and_get_specific_fields.yml +100 -0
- data/spec/cassettes/member_find_with_id_and_get_all_fields.yml +101 -0
- data/spec/cassettes/member_find_with_id_and_get_specific_fields.yml +100 -0
- data/spec/cassettes/notification_find_with_id.yml +103 -0
- data/spec/cassettes/organization_find_with_id_and_get_all_fields.yml +102 -0
- data/spec/cassettes/organization_find_with_id_and_get_specific_fields.yml +100 -0
- data/spec/cassettes/remove_upvote_on_a_card_when_have_not_voted.yml +366 -0
- data/spec/cassettes/revote_on_a_card.yml +464 -0
- data/spec/cassettes/token_find_with_token_string.yml +100 -0
- data/spec/cassettes/webhook_delete.yml +286 -0
- data/spec/cassettes/webhook_find_with_id.yml +100 -0
- data/spec/checklist_spec.rb +27 -43
- data/spec/custom_field_item_spec.rb +192 -0
- data/spec/custom_field_option_spec.rb +49 -0
- data/spec/custom_field_spec.rb +273 -0
- data/spec/integration/action/find_spec.rb +23 -0
- data/spec/integration/basic_data/many_spec.rb +127 -0
- data/spec/integration/basic_data/one_spec.rb +84 -0
- data/spec/integration/basic_data/schema_spec.rb +156 -0
- data/spec/integration/board/add_member_spec.rb +21 -0
- data/spec/integration/board/all_spec.rb +20 -0
- data/spec/integration/board/associations/actions_spec.rb +18 -0
- data/spec/integration/board/associations/cards_spec.rb +18 -0
- data/spec/integration/board/associations/checklists_spec.rb +18 -0
- data/spec/integration/board/associations/custom_fields_spec.rb +18 -0
- data/spec/integration/board/associations/label_names_spec.rb +17 -0
- data/spec/integration/board/associations/labels_spec.rb +18 -0
- data/spec/integration/board/associations/lists_spec.rb +18 -0
- data/spec/integration/board/associations/members_spec.rb +18 -0
- data/spec/integration/board/associations/organization_spec.rb +19 -0
- data/spec/integration/board/associations/plugin_data_spec.rb +18 -0
- data/spec/integration/board/create_spec.rb +95 -0
- data/spec/integration/board/find_card_spec.rb +18 -0
- data/spec/integration/board/find_spec.rb +42 -0
- data/spec/integration/board/remove_member_spec.rb +21 -0
- data/spec/integration/board/save_spec.rb +37 -0
- data/spec/integration/board/update!_spec.rb +62 -0
- data/spec/integration/board_lists_spec.rb +21 -0
- data/spec/integration/card/add_and_remove_attachment_spec.rb +45 -0
- data/spec/integration/card/add_and_remove_label_spec.rb +35 -0
- data/spec/integration/card/add_checklist_spec.rb +32 -0
- data/spec/integration/card/add_comment_spec.rb +19 -0
- data/spec/integration/card/add_memeber_spec.rb +19 -0
- data/spec/integration/card/associations/actions_spec.rb +17 -0
- data/spec/integration/card/associations/attachments_spec.rb +18 -0
- data/spec/integration/card/associations/board_spec.rb +17 -0
- data/spec/integration/card/associations/check_item_states_spec.rb +17 -0
- data/spec/integration/card/associations/checklists_spec.rb +18 -0
- data/spec/integration/card/associations/comments_spec.rb +19 -0
- data/spec/integration/card/associations/cover_image_spec.rb +18 -0
- data/spec/integration/card/associations/custom_field_items_spec.rb +18 -0
- data/spec/integration/card/associations/list_spec.rb +16 -0
- data/spec/integration/card/associations/members_spec.rb +18 -0
- data/spec/integration/card/associations/plugin_data_spec.rb +18 -0
- data/spec/integration/card/associations/voters_spec.rb +17 -0
- data/spec/integration/card/close!_spec.rb +16 -0
- data/spec/integration/card/create_new_check_list_spec.rb +19 -0
- data/spec/integration/card/create_spec.rb +84 -0
- data/spec/integration/card/delete_spec.rb +16 -0
- data/spec/integration/card/find_spec.rb +67 -0
- data/spec/integration/card/move_to_board_spec.rb +36 -0
- data/spec/integration/card/move_to_list_spec.rb +20 -0
- data/spec/integration/card/remove_member_spec.rb +19 -0
- data/spec/integration/card/save_spec.rb +61 -0
- data/spec/integration/card/update!_spec.rb +53 -0
- data/spec/integration/card/vote_spec.rb +50 -0
- data/spec/integration/checklist/add_item_spec.rb +20 -0
- data/spec/integration/checklist/create_spec.rb +23 -0
- data/spec/integration/checklist/delete_spec.rb +17 -0
- data/spec/integration/checklist/find_spec.rb +22 -0
- data/spec/integration/checklist/update!_spec.rb +21 -0
- data/spec/integration/checklist/update_item_state_spec.rb +20 -0
- data/spec/integration/custom_field/association/board_spec.rb +18 -0
- data/spec/integration/custom_field/association/custom_field_options_spec.rb +18 -0
- data/spec/integration/custom_field/create_spec.rb +29 -0
- data/spec/integration/custom_field/find_spec.rb +41 -0
- data/spec/integration/custom_field/update!_spec.rb +25 -0
- data/spec/integration/custom_field_item_spec.rb +47 -0
- data/spec/integration/custom_field_option/create_spec.rb +23 -0
- data/spec/integration/custom_field_option/delete_spec.rb +19 -0
- data/spec/integration/custom_field_option/find_spec.rb +21 -0
- data/spec/integration/label/association/board_spec.rb +18 -0
- data/spec/integration/label/create_spec.rb +23 -0
- data/spec/integration/label/delete_spec.rb +21 -0
- data/spec/integration/label/find_spec.rb +20 -0
- data/spec/integration/label/update!_spec.rb +25 -0
- data/spec/integration/list/archive_all_cards_spec.rb +20 -0
- data/spec/integration/list/associations/actions_spec.rb +18 -0
- data/spec/integration/list/associations/board_spec.rb +18 -0
- data/spec/integration/list/associations/cards_spec.rb +18 -0
- data/spec/integration/list/create_spec.rb +44 -0
- data/spec/integration/list/find_spec.rb +37 -0
- data/spec/integration/list/move_all_cards_spec.rb +31 -0
- data/spec/integration/list/save_spec.rb +40 -0
- data/spec/integration/list/update!_spec.rb +43 -0
- data/spec/integration/member/associations/actions_spec.rb +17 -0
- data/spec/integration/member/associations/boards_spec.rb +18 -0
- data/spec/integration/member/associations/cards_spec.rb +18 -0
- data/spec/integration/member/associations/notifications_spec.rb +18 -0
- data/spec/integration/member/associations/organizations_spec.rb +18 -0
- data/spec/integration/member/find_spec.rb +39 -0
- data/spec/integration/member/update!_spec.rb +18 -0
- data/spec/integration/notification/find_spec.rb +27 -0
- data/spec/integration/organization/associations/actions_spec.rb +18 -0
- data/spec/integration/organization/associations/boards_spec.rb +18 -0
- data/spec/integration/organization/associations/members_spec.rb +18 -0
- data/spec/integration/organization/create_spec.rb +23 -0
- data/spec/integration/organization/find_spec.rb +37 -0
- data/spec/integration/organization/update!_spec.rb +28 -0
- data/spec/integration/token/find_spec.rb +24 -0
- data/spec/integration/webhook/create_spec.rb +27 -0
- data/spec/integration/webhook/delete_spec.rb +21 -0
- data/spec/integration/webhook/find_spec.rb +22 -0
- data/spec/integration/webhook/update!_spec.rb +24 -0
- data/spec/item_spec.rb +2 -2
- data/spec/label_spec.rb +105 -28
- data/spec/list_spec.rb +32 -14
- data/spec/notification_spec.rb +3 -3
- data/spec/organization_spec.rb +6 -5
- data/spec/spec_helper.rb +118 -37
- data/spec/token_spec.rb +10 -11
- data/spec/unit/trello/association_builder/has_many_spec.rb +36 -0
- data/spec/unit/trello/association_builder/has_one_spec.rb +36 -0
- data/spec/unit/trello/association_fetcher/has_many/fetch_spec.rb +38 -0
- data/spec/unit/trello/association_fetcher/has_many/params_spec.rb +107 -0
- data/spec/unit/trello/association_fetcher/has_many_spec.rb +50 -0
- data/spec/unit/trello/association_fetcher/has_one/fetch_spec.rb +51 -0
- data/spec/unit/trello/association_fetcher/has_one/params_spec.rb +81 -0
- data/spec/unit/trello/association_fetcher/has_one_spec.rb +49 -0
- data/spec/unit/trello/association_infer_tool_spec.rb +41 -0
- data/spec/unit/trello/basic_data_spec.rb +113 -0
- data/spec/unit/trello/board/new_spec.rb +370 -0
- data/spec/unit/trello/board/save_spec.rb +49 -0
- data/spec/unit/trello/board/update_fields_spec.rb +129 -0
- data/spec/unit/trello/board/update_spec.rb +197 -0
- data/spec/unit/trello/card_spec.rb +103 -0
- data/spec/unit/trello/member/new_spec.rb +62 -0
- data/spec/unit/trello/member/update_fields_spec.rb +80 -0
- data/spec/unit/trello/schema/attribute/base_spec.rb +349 -0
- data/spec/unit/trello/schema/attribute/board_pref_spec.rb +208 -0
- data/spec/unit/trello/schema/attribute/default_spec.rb +236 -0
- data/spec/unit/trello/schema/attribute_builder_spec.rb +55 -0
- data/spec/unit/trello/schema/attribute_registration_spec.rb +59 -0
- data/spec/unit/trello/schema/serializer/default_spec.rb +19 -0
- data/spec/unit/trello/schema/serializer/time_spec.rb +39 -0
- data/spec/unit/trello/schema_spec.rb +25 -0
- data/spec/webhook_spec.rb +23 -7
- metadata +542 -29
@@ -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
|
data/spec/webhook_spec.rb
CHANGED
@@ -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(
|
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.
|
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.
|
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 = {
|
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
|
-
|
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
|
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' => '
|
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:
|
4
|
+
version: 3.0.0
|
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:
|
11
|
+
date: 2021-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.3.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.3.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: oauth
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,6 +91,15 @@ files:
|
|
91
91
|
- lib/trello.rb
|
92
92
|
- lib/trello/action.rb
|
93
93
|
- lib/trello/association.rb
|
94
|
+
- lib/trello/association_builder/has_many.rb
|
95
|
+
- lib/trello/association_builder/has_one.rb
|
96
|
+
- lib/trello/association_fetcher/has_many.rb
|
97
|
+
- lib/trello/association_fetcher/has_many/fetch.rb
|
98
|
+
- lib/trello/association_fetcher/has_many/params.rb
|
99
|
+
- lib/trello/association_fetcher/has_one.rb
|
100
|
+
- lib/trello/association_fetcher/has_one/fetch.rb
|
101
|
+
- lib/trello/association_fetcher/has_one/params.rb
|
102
|
+
- lib/trello/association_infer_tool.rb
|
94
103
|
- lib/trello/association_proxy.rb
|
95
104
|
- lib/trello/attachment.rb
|
96
105
|
- lib/trello/authorization.rb
|
@@ -105,6 +114,9 @@ files:
|
|
105
114
|
- lib/trello/core_ext/hash.rb
|
106
115
|
- lib/trello/core_ext/string.rb
|
107
116
|
- lib/trello/cover_image.rb
|
117
|
+
- lib/trello/custom_field.rb
|
118
|
+
- lib/trello/custom_field_item.rb
|
119
|
+
- lib/trello/custom_field_option.rb
|
108
120
|
- lib/trello/error.rb
|
109
121
|
- lib/trello/has_actions.rb
|
110
122
|
- lib/trello/item.rb
|
@@ -119,21 +131,252 @@ files:
|
|
119
131
|
- lib/trello/notification.rb
|
120
132
|
- lib/trello/organization.rb
|
121
133
|
- lib/trello/plugin_datum.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
|
122
145
|
- lib/trello/token.rb
|
123
146
|
- lib/trello/webhook.rb
|
124
147
|
- spec/action_spec.rb
|
125
148
|
- spec/array_spec.rb
|
126
149
|
- spec/association_spec.rb
|
127
150
|
- spec/basic_auth_policy_spec.rb
|
151
|
+
- spec/basic_data_spec.rb
|
128
152
|
- spec/board_spec.rb
|
129
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
|
157
|
+
- spec/cassettes/can_add_a_file_from_url_on_a_card.yml
|
158
|
+
- spec/cassettes/can_add_a_file_on_a_card.yml
|
159
|
+
- spec/cassettes/can_add_a_member_to_a_board.yml
|
160
|
+
- spec/cassettes/can_add_a_member_to_a_card.yml
|
161
|
+
- spec/cassettes/can_add_label_on_a_card.yml
|
162
|
+
- spec/cassettes/can_arvhice_all_cards_of_list.yml
|
163
|
+
- spec/cassettes/can_close_bong_a_card.yml
|
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
|
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
|
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
|
189
|
+
- spec/cassettes/can_move_a_card_to_another_board_with_specific_list.yml
|
190
|
+
- spec/cassettes/can_move_a_card_to_another_board_without_specific_list.yml
|
191
|
+
- spec/cassettes/can_move_a_card_to_another_list.yml
|
192
|
+
- spec/cassettes/can_move_all_cards_to_another_list.yml
|
193
|
+
- spec/cassettes/can_remove_a_member_from_a_card.yml
|
194
|
+
- spec/cassettes/can_remove_an_attachment_on_a_card.yml
|
195
|
+
- spec/cassettes/can_remove_an_upvote_on_a_card.yml
|
196
|
+
- spec/cassettes/can_remove_label_on_a_card.yml
|
197
|
+
- spec/cassettes/can_success_add_comment_to_a_card.yml
|
198
|
+
- spec/cassettes/can_success_copy_checklist_to_a_card.yml
|
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
|
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
|
214
|
+
- spec/cassettes/can_success_create_new_checklist_to_a_card.yml
|
215
|
+
- spec/cassettes/can_success_delete_a_custom_field_option.yml
|
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
|
222
|
+
- spec/cassettes/can_success_upate_a_card.yml
|
223
|
+
- spec/cassettes/can_success_upate_a_list.yml
|
224
|
+
- spec/cassettes/can_success_update_bong_a_board.yml
|
225
|
+
- spec/cassettes/can_success_update_bong_a_board_with_specific_fields.yml
|
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
|
234
|
+
- spec/cassettes/can_upvote_on_a_card.yml
|
235
|
+
- spec/cassettes/card_find_with_id_and_get_all_fields.yml
|
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
|
242
|
+
- spec/cassettes/custom_field_item_save_1.yml
|
243
|
+
- spec/cassettes/custom_field_item_save_2.yml
|
244
|
+
- spec/cassettes/custom_field_option_find_with_id.yml
|
245
|
+
- spec/cassettes/get_board_of_card.yml
|
246
|
+
- spec/cassettes/get_board_of_list.yml
|
247
|
+
- spec/cassettes/get_boards_of_member.yml
|
248
|
+
- spec/cassettes/get_check_item_states_of_card.yml
|
249
|
+
- spec/cassettes/get_checklists_of_card.yml
|
250
|
+
- spec/cassettes/get_cover_image_of_card.yml
|
251
|
+
- spec/cassettes/get_custom_field_items_of_card.yml
|
252
|
+
- spec/cassettes/get_list_of_card.yml
|
253
|
+
- spec/cassettes/get_lists.yml
|
254
|
+
- spec/cassettes/get_members_of_card.yml
|
255
|
+
- spec/cassettes/get_plugin_data_of_card.yml
|
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
|
266
|
+
- spec/cassettes/remove_upvote_on_a_card_when_have_not_voted.yml
|
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
|
130
271
|
- spec/checklist_spec.rb
|
131
272
|
- spec/client_spec.rb
|
132
273
|
- spec/configuration_spec.rb
|
274
|
+
- spec/custom_field_item_spec.rb
|
275
|
+
- spec/custom_field_option_spec.rb
|
276
|
+
- spec/custom_field_spec.rb
|
133
277
|
- spec/hash_spec.rb
|
278
|
+
- spec/integration/action/find_spec.rb
|
279
|
+
- spec/integration/basic_data/many_spec.rb
|
280
|
+
- spec/integration/basic_data/one_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
|
299
|
+
- spec/integration/board/update!_spec.rb
|
300
|
+
- spec/integration/board_lists_spec.rb
|
301
|
+
- spec/integration/card/add_and_remove_attachment_spec.rb
|
302
|
+
- spec/integration/card/add_and_remove_label_spec.rb
|
303
|
+
- spec/integration/card/add_checklist_spec.rb
|
304
|
+
- spec/integration/card/add_comment_spec.rb
|
305
|
+
- spec/integration/card/add_memeber_spec.rb
|
306
|
+
- spec/integration/card/associations/actions_spec.rb
|
307
|
+
- spec/integration/card/associations/attachments_spec.rb
|
308
|
+
- spec/integration/card/associations/board_spec.rb
|
309
|
+
- spec/integration/card/associations/check_item_states_spec.rb
|
310
|
+
- spec/integration/card/associations/checklists_spec.rb
|
311
|
+
- spec/integration/card/associations/comments_spec.rb
|
312
|
+
- spec/integration/card/associations/cover_image_spec.rb
|
313
|
+
- spec/integration/card/associations/custom_field_items_spec.rb
|
314
|
+
- spec/integration/card/associations/list_spec.rb
|
315
|
+
- spec/integration/card/associations/members_spec.rb
|
316
|
+
- spec/integration/card/associations/plugin_data_spec.rb
|
317
|
+
- spec/integration/card/associations/voters_spec.rb
|
318
|
+
- spec/integration/card/close!_spec.rb
|
319
|
+
- spec/integration/card/create_new_check_list_spec.rb
|
320
|
+
- spec/integration/card/create_spec.rb
|
321
|
+
- spec/integration/card/delete_spec.rb
|
322
|
+
- spec/integration/card/find_spec.rb
|
323
|
+
- spec/integration/card/move_to_board_spec.rb
|
324
|
+
- spec/integration/card/move_to_list_spec.rb
|
325
|
+
- spec/integration/card/remove_member_spec.rb
|
326
|
+
- spec/integration/card/save_spec.rb
|
327
|
+
- spec/integration/card/update!_spec.rb
|
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
|
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
|
134
344
|
- spec/integration/how_to_authorize_spec.rb
|
135
345
|
- spec/integration/how_to_use_boards_spec.rb
|
136
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
|
137
380
|
- spec/item_spec.rb
|
138
381
|
- spec/json_utils_spec.rb
|
139
382
|
- spec/label_spec.rb
|
@@ -146,12 +389,38 @@ files:
|
|
146
389
|
- spec/string_spec.rb
|
147
390
|
- spec/token_spec.rb
|
148
391
|
- spec/trello_spec.rb
|
392
|
+
- spec/unit/trello/association_builder/has_many_spec.rb
|
393
|
+
- spec/unit/trello/association_builder/has_one_spec.rb
|
394
|
+
- spec/unit/trello/association_fetcher/has_many/fetch_spec.rb
|
395
|
+
- spec/unit/trello/association_fetcher/has_many/params_spec.rb
|
396
|
+
- spec/unit/trello/association_fetcher/has_many_spec.rb
|
397
|
+
- spec/unit/trello/association_fetcher/has_one/fetch_spec.rb
|
398
|
+
- spec/unit/trello/association_fetcher/has_one/params_spec.rb
|
399
|
+
- spec/unit/trello/association_fetcher/has_one_spec.rb
|
400
|
+
- spec/unit/trello/association_infer_tool_spec.rb
|
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
|
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
|
149
417
|
- spec/webhook_spec.rb
|
150
418
|
homepage: https://github.com/jeremytregunna/ruby-trello
|
151
419
|
licenses:
|
152
420
|
- MIT
|
153
|
-
metadata:
|
154
|
-
|
421
|
+
metadata:
|
422
|
+
changelog_uri: https://github.com/jeremytregunna/ruby-trello/blob/master/CHANGELOG.md
|
423
|
+
post_install_message:
|
155
424
|
rdoc_options:
|
156
425
|
- "--charset=UTF-8"
|
157
426
|
require_paths:
|
@@ -167,35 +436,279 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
436
|
- !ruby/object:Gem::Version
|
168
437
|
version: '0'
|
169
438
|
requirements: []
|
170
|
-
|
171
|
-
|
172
|
-
signing_key:
|
439
|
+
rubygems_version: 3.2.3
|
440
|
+
signing_key:
|
173
441
|
specification_version: 4
|
174
442
|
summary: A wrapper around the trello.com API.
|
175
443
|
test_files:
|
444
|
+
- spec/action_spec.rb
|
445
|
+
- spec/array_spec.rb
|
176
446
|
- spec/association_spec.rb
|
177
|
-
- spec/
|
178
|
-
- spec/
|
179
|
-
- spec/integration/how_to_use_boards_spec.rb
|
180
|
-
- spec/integration/how_to_authorize_spec.rb
|
181
|
-
- spec/integration/integration_test.rb
|
182
|
-
- spec/card_spec.rb
|
183
|
-
- spec/hash_spec.rb
|
184
|
-
- spec/trello_spec.rb
|
447
|
+
- spec/basic_auth_policy_spec.rb
|
448
|
+
- spec/basic_data_spec.rb
|
185
449
|
- spec/board_spec.rb
|
186
|
-
- spec/
|
187
|
-
- spec/
|
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
|
188
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
|
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
|
596
|
+
- spec/integration/board/update!_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
|
602
|
+
- spec/integration/card/add_memeber_spec.rb
|
603
|
+
- spec/integration/card/associations/actions_spec.rb
|
604
|
+
- spec/integration/card/associations/attachments_spec.rb
|
605
|
+
- spec/integration/card/associations/board_spec.rb
|
606
|
+
- spec/integration/card/associations/check_item_states_spec.rb
|
607
|
+
- spec/integration/card/associations/checklists_spec.rb
|
608
|
+
- spec/integration/card/associations/comments_spec.rb
|
609
|
+
- spec/integration/card/associations/cover_image_spec.rb
|
610
|
+
- spec/integration/card/associations/custom_field_items_spec.rb
|
611
|
+
- spec/integration/card/associations/list_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
|
615
|
+
- spec/integration/card/close!_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
|
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
|
624
|
+
- spec/integration/card/update!_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
|
189
678
|
- spec/json_utils_spec.rb
|
190
|
-
- spec/
|
679
|
+
- spec/label_spec.rb
|
191
680
|
- spec/list_spec.rb
|
192
|
-
- spec/
|
681
|
+
- spec/member_spec.rb
|
682
|
+
- spec/notification_spec.rb
|
683
|
+
- spec/oauth_policy_spec.rb
|
193
684
|
- spec/organization_spec.rb
|
194
|
-
- spec/
|
195
|
-
- spec/token_spec.rb
|
685
|
+
- spec/spec_helper.rb
|
196
686
|
- spec/string_spec.rb
|
197
|
-
- spec/
|
198
|
-
- spec/
|
199
|
-
- spec/
|
200
|
-
- spec/
|
201
|
-
- spec/
|
687
|
+
- spec/token_spec.rb
|
688
|
+
- spec/trello_spec.rb
|
689
|
+
- spec/unit/trello/association_builder/has_many_spec.rb
|
690
|
+
- spec/unit/trello/association_builder/has_one_spec.rb
|
691
|
+
- spec/unit/trello/association_fetcher/has_many/fetch_spec.rb
|
692
|
+
- spec/unit/trello/association_fetcher/has_many/params_spec.rb
|
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
|
696
|
+
- spec/unit/trello/association_fetcher/has_one_spec.rb
|
697
|
+
- spec/unit/trello/association_infer_tool_spec.rb
|
698
|
+
- spec/unit/trello/basic_data_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
|
714
|
+
- spec/webhook_spec.rb
|