gmail 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +27 -27
- data/.rspec +1 -1
- data/.rubocop.yml +13 -13
- data/.rubocop_todo.yml +239 -239
- data/.travis.yml +19 -19
- data/CHANGELOG.md +145 -139
- data/Gemfile +3 -3
- data/LICENSE +21 -21
- data/README.md +355 -354
- data/Rakefile +46 -46
- data/gmail.gemspec +34 -34
- data/lib/gmail.rb +78 -78
- data/lib/gmail/client.rb +34 -34
- data/lib/gmail/client/base.rb +229 -229
- data/lib/gmail/client/plain.rb +24 -24
- data/lib/gmail/client/xoauth.rb +68 -68
- data/lib/gmail/client/xoauth2.rb +39 -39
- data/lib/gmail/imap_extensions.rb +159 -150
- data/lib/gmail/labels.rb +79 -79
- data/lib/gmail/mailbox.rb +175 -135
- data/lib/gmail/message.rb +207 -207
- data/lib/gmail/version.rb +3 -3
- data/spec/account.yml.example +1 -1
- data/spec/account.yml.obfus +2 -2
- data/spec/gmail/client/base_spec.rb +5 -5
- data/spec/gmail/client/plain_spec.rb +169 -168
- data/spec/gmail/client/xoauth2_spec.rb +186 -186
- data/spec/gmail/client/xoauth_spec.rb +5 -5
- data/spec/gmail/client_spec.rb +5 -5
- data/spec/gmail/imap_extensions_spec.rb +47 -12
- data/spec/gmail/labels_spec.rb +27 -18
- data/spec/gmail/mailbox_spec.rb +84 -47
- data/spec/gmail/message_spec.rb +181 -181
- data/spec/gmail_spec.rb +39 -39
- data/spec/recordings/gmail/_new_connects_with_client_and_give_it_context_when_block_given.yml +28 -28
- data/spec/recordings/gmail/_new_connects_with_gmail_service_and_return_valid_connection_object.yml +28 -28
- data/spec/recordings/gmail/_new_does_not_raise_error_when_couldn_t_connect_with_given_account.yml +13 -13
- data/spec/recordings/gmail/_new_raises_error_when_couldn_t_connect_with_given_account.yml +13 -13
- data/spec/recordings/gmail_client_plain/instance/_connection_automatically_logs_in_to_gmail_account_when_it_s_called.yml +42 -42
- data/spec/recordings/gmail_client_plain/instance/delivers_inline_composed_email.yml +42 -42
- data/spec/recordings/gmail_client_plain/instance/does_not_log_in_when_given_gmail_account_is_invalid.yml +13 -13
- data/spec/recordings/gmail_client_plain/instance/does_not_raise_error_even_though_gmail_account_is_invalid.yml +13 -13
- data/spec/recordings/gmail_client_plain/instance/labels/checks_if_there_is_given_label_defined.yml +196 -196
- data/spec/recordings/gmail_client_plain/instance/labels/creates_given_label.yml +151 -151
- data/spec/recordings/gmail_client_plain/instance/labels/removes_existing_label.yml +146 -146
- data/spec/recordings/gmail_client_plain/instance/labels/returns_list_of_all_available_labels.yml +113 -113
- data/spec/recordings/gmail_client_plain/instance/properly_logs_in_to_valid_gmail_account.yml +42 -42
- data/spec/recordings/gmail_client_plain/instance/properly_logs_out_from_gmail.yml +42 -42
- data/spec/recordings/gmail_client_plain/instance/properly_switches_to_given_mailbox.yml +109 -109
- data/spec/recordings/gmail_client_plain/instance/properly_switches_to_given_mailbox_using_block_style.yml +109 -109
- data/spec/recordings/gmail_client_plain/instance/raises_error_when_given_gmail_account_is_invalid_and_errors_enabled.yml +13 -13
- data/spec/recordings/gmail_client_xo_auth2/instance/does_not_log_in_when_given_gmail_account_is_invalid.yml +13 -13
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/checks_if_there_is_given_label_defined.yml +27 -27
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/creates_given_label.yml +39 -39
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/removes_existing_label.yml +39 -39
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/returns_list_of_all_available_labels.yml +27 -27
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_in_to_valid_gmail_account.yml +15 -15
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_out_from_gmail.yml +15 -15
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_switches_to_given_mailbox.yml +40 -40
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_switches_to_given_mailbox_using_block_style.yml +40 -40
- data/spec/recordings/gmail_client_xo_auth2/instance/raises_error_when_given_gmail_account_is_invalid_and_errors_enabled.yml +13 -13
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/all/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/and_the_mailbox_does_not_exist/returns_the_mailbox_name_as_a_string.yml +110 -0
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/drafts/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/flagged/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/important/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/inbox/localizes_into_the_appropriate_label.yml +42 -42
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/junk/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/sent/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/trash/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_mailbox/instance/counts_all_emails.yml +277 -277
- data/spec/recordings/gmail_mailbox/instance/finds_messages.yml +586 -586
- data/spec/recordings/gmail_mailbox/instance/waits_once.yml +136 -0
- data/spec/recordings/gmail_mailbox/instance/waits_repeatedly.yml +141 -0
- data/spec/recordings/gmail_mailbox/instance/waits_with_29-minute_re-issue.yml +136 -0
- data/spec/recordings/gmail_mailbox/instance/waits_with_an_unblocked_connection.yml +207 -0
- data/spec/recordings/gmail_mailbox/on_initialize/sets_client_and_name.yml +42 -42
- data/spec/recordings/gmail_mailbox/on_initialize/works_in_inbox_by_default.yml +42 -42
- data/spec/recordings/gmail_message/initialize/sets_prefetch_attrs.yml +578 -578
- data/spec/recordings/gmail_message/initialize/sets_uid_and_mailbox.yml +580 -580
- data/spec/recordings/gmail_message/instance_methods/deletes_itself.yml +637 -637
- data/spec/recordings/gmail_message/instance_methods/marks_itself_read.yml +682 -682
- data/spec/recordings/gmail_message/instance_methods/marks_itself_unread.yml +686 -686
- data/spec/recordings/gmail_message/instance_methods/moves_from_one_tag_to_other.yml +862 -862
- data/spec/recordings/gmail_message/instance_methods/removes_a_given_label.yml +776 -776
- data/spec/recordings/gmail_message/instance_methods/removes_a_given_label_with_old_method.yml +776 -776
- data/spec/recordings/gmail_message/instance_methods/sets_given_label.yml +690 -690
- data/spec/recordings/gmail_message/instance_methods/sets_given_label_with_old_method.yml +691 -691
- data/spec/spec_helper.rb +53 -53
- data/spec/support/imap_mock.rb +181 -129
- data/spec/support/obfuscation.rb +52 -52
- metadata +78 -5
| @@ -1,13 +1,13 @@ | |
| 1 | 
            -
            ---
         | 
| 2 | 
            -
            LOGIN-f0cde728d1c78eb72490f79825821b1c:
         | 
| 3 | 
            -
            - - :raise
         | 
| 4 | 
            -
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            -
                message: Invalid credentials zz5mb13772187oab
         | 
| 6 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            -
                  tag: RUBY0001
         | 
| 8 | 
            -
                  name: 'NO'
         | 
| 9 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            -
                    code: 
         | 
| 11 | 
            -
                    text: Invalid credentials zz5mb13772187oab
         | 
| 12 | 
            -
                  raw_data: "RUBY0001 NO Invalid credentials zz5mb13772187oab\r\n"
         | 
| 13 | 
            -
              - {}
         | 
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            LOGIN-f0cde728d1c78eb72490f79825821b1c:
         | 
| 3 | 
            +
            - - :raise
         | 
| 4 | 
            +
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            +
                message: Invalid credentials zz5mb13772187oab
         | 
| 6 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            +
                  tag: RUBY0001
         | 
| 8 | 
            +
                  name: 'NO'
         | 
| 9 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            +
                    code: 
         | 
| 11 | 
            +
                    text: Invalid credentials zz5mb13772187oab
         | 
| 12 | 
            +
                  raw_data: "RUBY0001 NO Invalid credentials zz5mb13772187oab\r\n"
         | 
| 13 | 
            +
              - {}
         | 
| @@ -1,13 +1,13 @@ | |
| 1 | 
            -
            ---
         | 
| 2 | 
            -
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            -
            - - :raise
         | 
| 4 | 
            -
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            -
                message: Invalid credentials or17mb13406678oeb
         | 
| 6 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            -
                  tag: RUBY0001
         | 
| 8 | 
            -
                  name: 'NO'
         | 
| 9 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            -
                    code: 
         | 
| 11 | 
            -
                    text: Invalid credentials or17mb13406678oeb
         | 
| 12 | 
            -
                  raw_data: "RUBY0001 NO Invalid credentials or17mb13406678oeb\r\n"
         | 
| 13 | 
            -
              - {}
         | 
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            +
            - - :raise
         | 
| 4 | 
            +
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            +
                message: Invalid credentials or17mb13406678oeb
         | 
| 6 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            +
                  tag: RUBY0001
         | 
| 8 | 
            +
                  name: 'NO'
         | 
| 9 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            +
                    code: 
         | 
| 11 | 
            +
                    text: Invalid credentials or17mb13406678oeb
         | 
| 12 | 
            +
                  raw_data: "RUBY0001 NO Invalid credentials or17mb13406678oeb\r\n"
         | 
| 13 | 
            +
              - {}
         | 
| @@ -1,27 +1,27 @@ | |
| 1 | 
            -
            ---
         | 
| 2 | 
            -
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            -
            - - :raise
         | 
| 4 | 
            -
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            -
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            -
                  tag: RUBY0001
         | 
| 8 | 
            -
                  name: 'NO'
         | 
| 9 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            -
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            -
                      name: ALERT
         | 
| 12 | 
            -
                      data: 
         | 
| 13 | 
            -
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            -
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            -
              - {}
         | 
| 16 | 
            -
            LIST-e0583fa6130ee374cef031c01d8cc486:
         | 
| 17 | 
            -
            - - :raise
         | 
| 18 | 
            -
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 19 | 
            -
                message: Unknown command tn2mb13373457oec
         | 
| 20 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 21 | 
            -
                  tag: RUBY0002
         | 
| 22 | 
            -
                  name: BAD
         | 
| 23 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 24 | 
            -
                    code: 
         | 
| 25 | 
            -
                    text: Unknown command tn2mb13373457oec
         | 
| 26 | 
            -
                  raw_data: "RUBY0002 BAD Unknown command tn2mb13373457oec\r\n"
         | 
| 27 | 
            -
              - {}
         | 
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            +
            - - :raise
         | 
| 4 | 
            +
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            +
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            +
                  tag: RUBY0001
         | 
| 8 | 
            +
                  name: 'NO'
         | 
| 9 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            +
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            +
                      name: ALERT
         | 
| 12 | 
            +
                      data: 
         | 
| 13 | 
            +
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            +
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            +
              - {}
         | 
| 16 | 
            +
            LIST-e0583fa6130ee374cef031c01d8cc486:
         | 
| 17 | 
            +
            - - :raise
         | 
| 18 | 
            +
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 19 | 
            +
                message: Unknown command tn2mb13373457oec
         | 
| 20 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 21 | 
            +
                  tag: RUBY0002
         | 
| 22 | 
            +
                  name: BAD
         | 
| 23 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 24 | 
            +
                    code: 
         | 
| 25 | 
            +
                    text: Unknown command tn2mb13373457oec
         | 
| 26 | 
            +
                  raw_data: "RUBY0002 BAD Unknown command tn2mb13373457oec\r\n"
         | 
| 27 | 
            +
              - {}
         | 
| @@ -1,39 +1,39 @@ | |
| 1 | 
            -
            ---
         | 
| 2 | 
            -
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            -
            - - :raise
         | 
| 4 | 
            -
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            -
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            -
                  tag: RUBY0001
         | 
| 8 | 
            -
                  name: 'NO'
         | 
| 9 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            -
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            -
                      name: ALERT
         | 
| 12 | 
            -
                      data: 
         | 
| 13 | 
            -
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            -
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            -
              - {}
         | 
| 16 | 
            -
            CREATE-873546102acc7776d52edef1516784eb:
         | 
| 17 | 
            -
            - - :raise
         | 
| 18 | 
            -
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 19 | 
            -
                message: Unknown command c131mb15695345oig
         | 
| 20 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 21 | 
            -
                  tag: RUBY0002
         | 
| 22 | 
            -
                  name: BAD
         | 
| 23 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 24 | 
            -
                    code: 
         | 
| 25 | 
            -
                    text: Unknown command c131mb15695345oig
         | 
| 26 | 
            -
                  raw_data: "RUBY0002 BAD Unknown command c131mb15695345oig\r\n"
         | 
| 27 | 
            -
              - {}
         | 
| 28 | 
            -
            LIST-e0583fa6130ee374cef031c01d8cc486:
         | 
| 29 | 
            -
            - - :raise
         | 
| 30 | 
            -
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 31 | 
            -
                message: Unknown command c131mb15695345oig
         | 
| 32 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 33 | 
            -
                  tag: RUBY0003
         | 
| 34 | 
            -
                  name: BAD
         | 
| 35 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 36 | 
            -
                    code: 
         | 
| 37 | 
            -
                    text: Unknown command c131mb15695345oig
         | 
| 38 | 
            -
                  raw_data: "RUBY0003 BAD Unknown command c131mb15695345oig\r\n"
         | 
| 39 | 
            -
              - {}
         | 
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            +
            - - :raise
         | 
| 4 | 
            +
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            +
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            +
                  tag: RUBY0001
         | 
| 8 | 
            +
                  name: 'NO'
         | 
| 9 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            +
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            +
                      name: ALERT
         | 
| 12 | 
            +
                      data: 
         | 
| 13 | 
            +
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            +
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            +
              - {}
         | 
| 16 | 
            +
            CREATE-873546102acc7776d52edef1516784eb:
         | 
| 17 | 
            +
            - - :raise
         | 
| 18 | 
            +
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 19 | 
            +
                message: Unknown command c131mb15695345oig
         | 
| 20 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 21 | 
            +
                  tag: RUBY0002
         | 
| 22 | 
            +
                  name: BAD
         | 
| 23 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 24 | 
            +
                    code: 
         | 
| 25 | 
            +
                    text: Unknown command c131mb15695345oig
         | 
| 26 | 
            +
                  raw_data: "RUBY0002 BAD Unknown command c131mb15695345oig\r\n"
         | 
| 27 | 
            +
              - {}
         | 
| 28 | 
            +
            LIST-e0583fa6130ee374cef031c01d8cc486:
         | 
| 29 | 
            +
            - - :raise
         | 
| 30 | 
            +
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 31 | 
            +
                message: Unknown command c131mb15695345oig
         | 
| 32 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 33 | 
            +
                  tag: RUBY0003
         | 
| 34 | 
            +
                  name: BAD
         | 
| 35 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 36 | 
            +
                    code: 
         | 
| 37 | 
            +
                    text: Unknown command c131mb15695345oig
         | 
| 38 | 
            +
                  raw_data: "RUBY0003 BAD Unknown command c131mb15695345oig\r\n"
         | 
| 39 | 
            +
              - {}
         | 
| @@ -1,39 +1,39 @@ | |
| 1 | 
            -
            ---
         | 
| 2 | 
            -
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            -
            - - :raise
         | 
| 4 | 
            -
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            -
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            -
                  tag: RUBY0001
         | 
| 8 | 
            -
                  name: 'NO'
         | 
| 9 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            -
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            -
                      name: ALERT
         | 
| 12 | 
            -
                      data: 
         | 
| 13 | 
            -
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            -
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            -
              - {}
         | 
| 16 | 
            -
            CREATE-873546102acc7776d52edef1516784eb:
         | 
| 17 | 
            -
            - - :raise
         | 
| 18 | 
            -
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 19 | 
            -
                message: Unknown command bp14mb13691893oec
         | 
| 20 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 21 | 
            -
                  tag: RUBY0002
         | 
| 22 | 
            -
                  name: BAD
         | 
| 23 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 24 | 
            -
                    code: 
         | 
| 25 | 
            -
                    text: Unknown command bp14mb13691893oec
         | 
| 26 | 
            -
                  raw_data: "RUBY0002 BAD Unknown command bp14mb13691893oec\r\n"
         | 
| 27 | 
            -
              - {}
         | 
| 28 | 
            -
            DELETE-842c8f8a15eef1d47151d7a37868de75:
         | 
| 29 | 
            -
            - - :raise
         | 
| 30 | 
            -
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 31 | 
            -
                message: Unknown command bp14mb13691893oec
         | 
| 32 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 33 | 
            -
                  tag: RUBY0003
         | 
| 34 | 
            -
                  name: BAD
         | 
| 35 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 36 | 
            -
                    code: 
         | 
| 37 | 
            -
                    text: Unknown command bp14mb13691893oec
         | 
| 38 | 
            -
                  raw_data: "RUBY0003 BAD Unknown command bp14mb13691893oec\r\n"
         | 
| 39 | 
            -
              - {}
         | 
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            +
            - - :raise
         | 
| 4 | 
            +
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            +
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            +
                  tag: RUBY0001
         | 
| 8 | 
            +
                  name: 'NO'
         | 
| 9 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            +
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            +
                      name: ALERT
         | 
| 12 | 
            +
                      data: 
         | 
| 13 | 
            +
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            +
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            +
              - {}
         | 
| 16 | 
            +
            CREATE-873546102acc7776d52edef1516784eb:
         | 
| 17 | 
            +
            - - :raise
         | 
| 18 | 
            +
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 19 | 
            +
                message: Unknown command bp14mb13691893oec
         | 
| 20 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 21 | 
            +
                  tag: RUBY0002
         | 
| 22 | 
            +
                  name: BAD
         | 
| 23 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 24 | 
            +
                    code: 
         | 
| 25 | 
            +
                    text: Unknown command bp14mb13691893oec
         | 
| 26 | 
            +
                  raw_data: "RUBY0002 BAD Unknown command bp14mb13691893oec\r\n"
         | 
| 27 | 
            +
              - {}
         | 
| 28 | 
            +
            DELETE-842c8f8a15eef1d47151d7a37868de75:
         | 
| 29 | 
            +
            - - :raise
         | 
| 30 | 
            +
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 31 | 
            +
                message: Unknown command bp14mb13691893oec
         | 
| 32 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 33 | 
            +
                  tag: RUBY0003
         | 
| 34 | 
            +
                  name: BAD
         | 
| 35 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 36 | 
            +
                    code: 
         | 
| 37 | 
            +
                    text: Unknown command bp14mb13691893oec
         | 
| 38 | 
            +
                  raw_data: "RUBY0003 BAD Unknown command bp14mb13691893oec\r\n"
         | 
| 39 | 
            +
              - {}
         | 
    
        data/spec/recordings/gmail_client_xo_auth2/instance/labels/returns_list_of_all_available_labels.yml
    CHANGED
    
    | @@ -1,27 +1,27 @@ | |
| 1 | 
            -
            ---
         | 
| 2 | 
            -
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            -
            - - :raise
         | 
| 4 | 
            -
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            -
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            -
                  tag: RUBY0001
         | 
| 8 | 
            -
                  name: 'NO'
         | 
| 9 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            -
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            -
                      name: ALERT
         | 
| 12 | 
            -
                      data: 
         | 
| 13 | 
            -
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            -
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            -
              - {}
         | 
| 16 | 
            -
            LIST-e0583fa6130ee374cef031c01d8cc486:
         | 
| 17 | 
            -
            - - :raise
         | 
| 18 | 
            -
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 19 | 
            -
                message: Unknown command be1mb13873281oac
         | 
| 20 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 21 | 
            -
                  tag: RUBY0002
         | 
| 22 | 
            -
                  name: BAD
         | 
| 23 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 24 | 
            -
                    code: 
         | 
| 25 | 
            -
                    text: Unknown command be1mb13873281oac
         | 
| 26 | 
            -
                  raw_data: "RUBY0002 BAD Unknown command be1mb13873281oac\r\n"
         | 
| 27 | 
            -
              - {}
         | 
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            +
            - - :raise
         | 
| 4 | 
            +
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            +
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            +
                  tag: RUBY0001
         | 
| 8 | 
            +
                  name: 'NO'
         | 
| 9 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            +
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            +
                      name: ALERT
         | 
| 12 | 
            +
                      data: 
         | 
| 13 | 
            +
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            +
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            +
              - {}
         | 
| 16 | 
            +
            LIST-e0583fa6130ee374cef031c01d8cc486:
         | 
| 17 | 
            +
            - - :raise
         | 
| 18 | 
            +
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 19 | 
            +
                message: Unknown command be1mb13873281oac
         | 
| 20 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 21 | 
            +
                  tag: RUBY0002
         | 
| 22 | 
            +
                  name: BAD
         | 
| 23 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 24 | 
            +
                    code: 
         | 
| 25 | 
            +
                    text: Unknown command be1mb13873281oac
         | 
| 26 | 
            +
                  raw_data: "RUBY0002 BAD Unknown command be1mb13873281oac\r\n"
         | 
| 27 | 
            +
              - {}
         | 
    
        data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_in_to_valid_gmail_account.yml
    CHANGED
    
    | @@ -1,15 +1,15 @@ | |
| 1 | 
            -
            ---
         | 
| 2 | 
            -
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            -
            - - :raise
         | 
| 4 | 
            -
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            -
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            -
                  tag: RUBY0001
         | 
| 8 | 
            -
                  name: 'NO'
         | 
| 9 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            -
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            -
                      name: ALERT
         | 
| 12 | 
            -
                      data: 
         | 
| 13 | 
            -
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            -
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            -
              - {}
         | 
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            +
            - - :raise
         | 
| 4 | 
            +
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            +
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            +
                  tag: RUBY0001
         | 
| 8 | 
            +
                  name: 'NO'
         | 
| 9 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            +
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            +
                      name: ALERT
         | 
| 12 | 
            +
                      data: 
         | 
| 13 | 
            +
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            +
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            +
              - {}
         | 
| @@ -1,15 +1,15 @@ | |
| 1 | 
            -
            ---
         | 
| 2 | 
            -
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            -
            - - :raise
         | 
| 4 | 
            -
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            -
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            -
                  tag: RUBY0001
         | 
| 8 | 
            -
                  name: 'NO'
         | 
| 9 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            -
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            -
                      name: ALERT
         | 
| 12 | 
            -
                      data: 
         | 
| 13 | 
            -
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            -
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            -
              - {}
         | 
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            +
            - - :raise
         | 
| 4 | 
            +
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            +
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            +
                  tag: RUBY0001
         | 
| 8 | 
            +
                  name: 'NO'
         | 
| 9 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            +
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            +
                      name: ALERT
         | 
| 12 | 
            +
                      data: 
         | 
| 13 | 
            +
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            +
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            +
              - {}
         | 
| @@ -1,40 +1,40 @@ | |
| 1 | 
            -
            ---
         | 
| 2 | 
            -
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            -
            - - :raise
         | 
| 4 | 
            -
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            -
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            -
                  tag: RUBY0001
         | 
| 8 | 
            -
                  name: 'NO'
         | 
| 9 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            -
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            -
                      name: ALERT
         | 
| 12 | 
            -
                      data: 
         | 
| 13 | 
            -
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            -
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            -
              - {}
         | 
| 16 | 
            -
            - - :raise
         | 
| 17 | 
            -
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 18 | 
            -
                message: " Invalid credentials (Failure)"
         | 
| 19 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 20 | 
            -
                  tag: RUBY0002
         | 
| 21 | 
            -
                  name: 'NO'
         | 
| 22 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 23 | 
            -
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 24 | 
            -
                      name: ALERT
         | 
| 25 | 
            -
                      data: 
         | 
| 26 | 
            -
                    text: " Invalid credentials (Failure)"
         | 
| 27 | 
            -
                  raw_data: "RUBY0002 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 28 | 
            -
              - {}
         | 
| 29 | 
            -
            SELECT-23d55e3c8382681ca67adbbab76993a1:
         | 
| 30 | 
            -
            - - :raise
         | 
| 31 | 
            -
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 32 | 
            -
                message: Unknown command w200mb5798766oia
         | 
| 33 | 
            -
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 34 | 
            -
                  tag: RUBY0003
         | 
| 35 | 
            -
                  name: BAD
         | 
| 36 | 
            -
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 37 | 
            -
                    code: 
         | 
| 38 | 
            -
                    text: Unknown command w200mb5798766oia
         | 
| 39 | 
            -
                  raw_data: "RUBY0003 BAD Unknown command w200mb5798766oia\r\n"
         | 
| 40 | 
            -
              - {}
         | 
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
         | 
| 3 | 
            +
            - - :raise
         | 
| 4 | 
            +
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 5 | 
            +
                message: " Invalid credentials (Failure)"
         | 
| 6 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 7 | 
            +
                  tag: RUBY0001
         | 
| 8 | 
            +
                  name: 'NO'
         | 
| 9 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 10 | 
            +
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 11 | 
            +
                      name: ALERT
         | 
| 12 | 
            +
                      data: 
         | 
| 13 | 
            +
                    text: " Invalid credentials (Failure)"
         | 
| 14 | 
            +
                  raw_data: "RUBY0001 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 15 | 
            +
              - {}
         | 
| 16 | 
            +
            - - :raise
         | 
| 17 | 
            +
              - !ruby/exception:Net::IMAP::NoResponseError
         | 
| 18 | 
            +
                message: " Invalid credentials (Failure)"
         | 
| 19 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 20 | 
            +
                  tag: RUBY0002
         | 
| 21 | 
            +
                  name: 'NO'
         | 
| 22 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 23 | 
            +
                    code: !ruby/struct:Net::IMAP::ResponseCode
         | 
| 24 | 
            +
                      name: ALERT
         | 
| 25 | 
            +
                      data: 
         | 
| 26 | 
            +
                    text: " Invalid credentials (Failure)"
         | 
| 27 | 
            +
                  raw_data: "RUBY0002 NO [ALERT] Invalid credentials (Failure)\r\n"
         | 
| 28 | 
            +
              - {}
         | 
| 29 | 
            +
            SELECT-23d55e3c8382681ca67adbbab76993a1:
         | 
| 30 | 
            +
            - - :raise
         | 
| 31 | 
            +
              - !ruby/exception:Net::IMAP::BadResponseError
         | 
| 32 | 
            +
                message: Unknown command w200mb5798766oia
         | 
| 33 | 
            +
                response: !ruby/struct:Net::IMAP::TaggedResponse
         | 
| 34 | 
            +
                  tag: RUBY0003
         | 
| 35 | 
            +
                  name: BAD
         | 
| 36 | 
            +
                  data: !ruby/struct:Net::IMAP::ResponseText
         | 
| 37 | 
            +
                    code: 
         | 
| 38 | 
            +
                    text: Unknown command w200mb5798766oia
         | 
| 39 | 
            +
                  raw_data: "RUBY0003 BAD Unknown command w200mb5798766oia\r\n"
         | 
| 40 | 
            +
              - {}
         |