gmail 0.6.0 → 0.7.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/.coveralls.yml +1 -0
- data/.gitignore +27 -27
- data/.rspec +1 -1
- data/.rubocop.yml +53 -13
- data/.rubocop_todo.yml +299 -239
- data/.travis.yml +19 -19
- data/CHANGELOG.md +152 -145
- data/Gemfile +5 -3
- data/LICENSE +21 -21
- data/README.md +380 -355
- data/Rakefile +44 -46
- data/gmail.gemspec +32 -34
- data/lib/gmail.rb +72 -78
- data/lib/gmail/client.rb +35 -34
- data/lib/gmail/client/base.rb +244 -229
- data/lib/gmail/client/plain.rb +24 -24
- data/lib/gmail/client/xoauth.rb +67 -68
- data/lib/gmail/client/xoauth2.rb +39 -39
- data/lib/gmail/imap_extensions.rb +156 -159
- data/lib/gmail/labels.rb +80 -79
- data/lib/gmail/mailbox.rb +178 -175
- data/lib/gmail/message.rb +212 -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 -169
- 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 -47
- data/spec/gmail/labels_spec.rb +27 -27
- data/spec/gmail/mailbox_spec.rb +84 -84
- data/spec/gmail/message_spec.rb +181 -181
- data/spec/gmail_spec.rb +40 -39
- data/spec/recordings/gmail/_new_connects_with_client_and_give_it_context_when_block_given.yml +61 -28
- data/spec/recordings/gmail/_new_connects_with_gmail_service_and_return_valid_connection_object.yml +43 -28
- data/spec/recordings/gmail/_new_does_not_raise_error_when_couldn_t_connect_with_given_account.yml +21 -13
- data/spec/recordings/gmail/_new_raises_error_when_couldn_t_connect_with_given_account.yml +21 -13
- data/spec/recordings/gmail_client_plain/instance/delivers_inline_composed_email.yml +61 -42
- data/spec/recordings/gmail_client_plain/instance/does_not_log_in_when_given_gmail_account_is_invalid.yml +21 -13
- data/spec/recordings/gmail_client_plain/instance/does_not_raise_error_even_though_gmail_account_is_invalid.yml +21 -13
- data/spec/recordings/gmail_client_plain/instance/labels/checks_if_there_is_given_label_defined.yml +409 -196
- data/spec/recordings/gmail_client_plain/instance/labels/creates_given_label.yml +280 -151
- data/spec/recordings/gmail_client_plain/instance/labels/removes_existing_label.yml +271 -146
- data/spec/recordings/gmail_client_plain/instance/labels/returns_list_of_all_available_labels.yml +227 -113
- data/spec/recordings/gmail_client_plain/instance/properly_logs_in_to_valid_gmail_account.yml +61 -42
- data/spec/recordings/gmail_client_plain/instance/properly_logs_out_from_gmail.yml +61 -42
- data/spec/recordings/gmail_client_plain/instance/properly_switches_to_given_mailbox.yml +164 -109
- data/spec/recordings/gmail_client_plain/instance/properly_switches_to_given_mailbox_using_block_style.yml +164 -109
- data/spec/recordings/gmail_client_plain/instance/raises_error_when_given_gmail_account_is_invalid_and_errors_enabled.yml +21 -13
- data/spec/recordings/gmail_client_xo_auth2/instance/does_not_log_in_when_given_gmail_account_is_invalid.yml +24 -13
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/checks_if_there_is_given_label_defined.yml +39 -27
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/creates_given_label.yml +52 -39
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/removes_existing_label.yml +52 -39
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/returns_list_of_all_available_labels.yml +39 -27
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_in_to_valid_gmail_account.yml +26 -15
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_out_from_gmail.yml +26 -15
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_switches_to_given_mailbox.yml +63 -40
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_switches_to_given_mailbox_using_block_style.yml +63 -40
- data/spec/recordings/gmail_client_xo_auth2/instance/raises_error_when_given_gmail_account_is_invalid_and_errors_enabled.yml +24 -13
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/all/localizes_into_the_appropriate_label.yml +229 -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 +229 -110
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/drafts/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/flagged/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/important/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/inbox/localizes_into_the_appropriate_label.yml +61 -42
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/junk/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/sent/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/trash/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_mailbox/instance/counts_all_emails.yml +595 -277
- data/spec/recordings/gmail_mailbox/instance/finds_messages.yml +1049 -586
- data/spec/recordings/gmail_mailbox/instance/waits_once.yml +191 -136
- data/spec/recordings/gmail_mailbox/instance/waits_repeatedly.yml +217 -141
- data/spec/recordings/gmail_mailbox/instance/waits_with_29-minute_re-issue.yml +188 -136
- data/spec/recordings/gmail_mailbox/instance/waits_with_an_unblocked_connection.yml +644 -207
- data/spec/recordings/gmail_mailbox/on_initialize/sets_client_and_name.yml +61 -42
- data/spec/recordings/gmail_mailbox/on_initialize/works_in_inbox_by_default.yml +61 -42
- data/spec/recordings/gmail_message/initialize/sets_prefetch_attrs.yml +1068 -578
- data/spec/recordings/gmail_message/initialize/sets_uid_and_mailbox.yml +1068 -580
- data/spec/recordings/gmail_message/instance_methods/deletes_itself.yml +1084 -637
- data/spec/recordings/gmail_message/instance_methods/marks_itself_read.yml +1137 -682
- data/spec/recordings/gmail_message/instance_methods/marks_itself_unread.yml +1153 -686
- data/spec/recordings/gmail_message/instance_methods/moves_from_one_tag_to_other.yml +1447 -862
- data/spec/recordings/gmail_message/instance_methods/removes_a_given_label.yml +1288 -776
- data/spec/recordings/gmail_message/instance_methods/removes_a_given_label_with_old_method.yml +1288 -776
- data/spec/recordings/gmail_message/instance_methods/sets_given_label.yml +1165 -690
- data/spec/recordings/gmail_message/instance_methods/sets_given_label_with_old_method.yml +1157 -691
- data/spec/spec_helper.rb +56 -53
- data/spec/support/imap_mock.rb +181 -181
- data/spec/support/obfuscation.rb +49 -52
- metadata +21 -90
- data/spec/recordings/gmail_client_plain/instance/_connection_automatically_logs_in_to_gmail_account_when_it_s_called.yml +0 -42
@@ -1,13 +1,21 @@
|
|
1
|
-
---
|
2
|
-
LOGIN-f0cde728d1c78eb72490f79825821b1c:
|
3
|
-
- - :raise
|
4
|
-
- !ruby/exception:Net::IMAP::NoResponseError
|
5
|
-
message:
|
6
|
-
response: !ruby/struct:Net::IMAP::TaggedResponse
|
7
|
-
tag: RUBY0001
|
8
|
-
name: 'NO'
|
9
|
-
data: !ruby/struct:Net::IMAP::ResponseText
|
10
|
-
code:
|
11
|
-
text:
|
12
|
-
raw_data: "RUBY0001 NO
|
13
|
-
-
|
1
|
+
---
|
2
|
+
LOGIN-f0cde728d1c78eb72490f79825821b1c:
|
3
|
+
- - :raise
|
4
|
+
- !ruby/exception:Net::IMAP::NoResponseError
|
5
|
+
message: Lookup failed o13mb197955365ieh
|
6
|
+
response: &1 !ruby/struct:Net::IMAP::TaggedResponse
|
7
|
+
tag: RUBY0001
|
8
|
+
name: 'NO'
|
9
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
10
|
+
code:
|
11
|
+
text: Lookup failed o13mb197955365ieh
|
12
|
+
raw_data: "RUBY0001 NO Lookup failed o13mb197955365ieh\r\n"
|
13
|
+
- BYE:
|
14
|
+
- &2 !ruby/struct:Net::IMAP::ResponseText
|
15
|
+
code:
|
16
|
+
text: System Error o13mb197955365ieh
|
17
|
+
- - *1
|
18
|
+
- !ruby/struct:Net::IMAP::UntaggedResponse
|
19
|
+
name: BYE
|
20
|
+
data: *2
|
21
|
+
raw_data: "* BYE System Error o13mb197955365ieh\r\n"
|
@@ -1,13 +1,24 @@
|
|
1
|
-
---
|
2
|
-
AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
|
3
|
-
- - :raise
|
4
|
-
- !ruby/exception:Net::IMAP::NoResponseError
|
5
|
-
message:
|
6
|
-
response: !ruby/struct:Net::IMAP::TaggedResponse
|
7
|
-
tag: RUBY0001
|
8
|
-
name: 'NO'
|
9
|
-
data: !ruby/struct:Net::IMAP::ResponseText
|
10
|
-
code:
|
11
|
-
text:
|
12
|
-
raw_data: "RUBY0001 NO
|
13
|
-
- {}
|
1
|
+
---
|
2
|
+
AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
|
3
|
+
- - :raise
|
4
|
+
- !ruby/exception:Net::IMAP::NoResponseError
|
5
|
+
message: Lookup failed g129mb264542154iog
|
6
|
+
response: &1 !ruby/struct:Net::IMAP::TaggedResponse
|
7
|
+
tag: RUBY0001
|
8
|
+
name: 'NO'
|
9
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
10
|
+
code:
|
11
|
+
text: Lookup failed g129mb264542154iog
|
12
|
+
raw_data: "RUBY0001 NO Lookup failed g129mb264542154iog\r\n"
|
13
|
+
- {}
|
14
|
+
- - !ruby/struct:Net::IMAP::ContinuationRequest
|
15
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
16
|
+
code:
|
17
|
+
text: ''
|
18
|
+
raw_data: "+ \r\n"
|
19
|
+
- !ruby/struct:Net::IMAP::ContinuationRequest
|
20
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
21
|
+
code:
|
22
|
+
text: eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
|
23
|
+
raw_data: "+ eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==\r\n"
|
24
|
+
- *1
|
@@ -1,27 +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:
|
12
|
-
data:
|
13
|
-
text: " Invalid credentials (Failure)"
|
14
|
-
raw_data: "RUBY0001 NO [
|
15
|
-
- {}
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
1
|
+
---
|
2
|
+
AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
|
3
|
+
- - :raise
|
4
|
+
- !ruby/exception:Net::IMAP::NoResponseError
|
5
|
+
message: " Invalid credentials (Failure)"
|
6
|
+
response: &1 !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: AUTHENTICATIONFAILED
|
12
|
+
data:
|
13
|
+
text: " Invalid credentials (Failure)"
|
14
|
+
raw_data: "RUBY0001 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)\r\n"
|
15
|
+
- {}
|
16
|
+
- - !ruby/struct:Net::IMAP::ContinuationRequest
|
17
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
18
|
+
code:
|
19
|
+
text: ''
|
20
|
+
raw_data: "+ \r\n"
|
21
|
+
- !ruby/struct:Net::IMAP::ContinuationRequest
|
22
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
23
|
+
code:
|
24
|
+
text: eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
|
25
|
+
raw_data: "+ eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==\r\n"
|
26
|
+
- *1
|
27
|
+
LIST-e0583fa6130ee374cef031c01d8cc486:
|
28
|
+
- - :raise
|
29
|
+
- !ruby/exception:Net::IMAP::BadResponseError
|
30
|
+
message: Unknown command q13mb70194645ioi
|
31
|
+
response: &2 !ruby/struct:Net::IMAP::TaggedResponse
|
32
|
+
tag: RUBY0002
|
33
|
+
name: BAD
|
34
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
35
|
+
code:
|
36
|
+
text: Unknown command q13mb70194645ioi
|
37
|
+
raw_data: "RUBY0002 BAD Unknown command q13mb70194645ioi\r\n"
|
38
|
+
- {}
|
39
|
+
- - *2
|
@@ -1,39 +1,52 @@
|
|
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:
|
12
|
-
data:
|
13
|
-
text: " Invalid credentials (Failure)"
|
14
|
-
raw_data: "RUBY0001 NO [
|
15
|
-
- {}
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
-
|
1
|
+
---
|
2
|
+
AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
|
3
|
+
- - :raise
|
4
|
+
- !ruby/exception:Net::IMAP::NoResponseError
|
5
|
+
message: " Invalid credentials (Failure)"
|
6
|
+
response: &1 !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: AUTHENTICATIONFAILED
|
12
|
+
data:
|
13
|
+
text: " Invalid credentials (Failure)"
|
14
|
+
raw_data: "RUBY0001 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)\r\n"
|
15
|
+
- {}
|
16
|
+
- - !ruby/struct:Net::IMAP::ContinuationRequest
|
17
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
18
|
+
code:
|
19
|
+
text: ''
|
20
|
+
raw_data: "+ \r\n"
|
21
|
+
- !ruby/struct:Net::IMAP::ContinuationRequest
|
22
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
23
|
+
code:
|
24
|
+
text: eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
|
25
|
+
raw_data: "+ eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==\r\n"
|
26
|
+
- *1
|
27
|
+
CREATE-873546102acc7776d52edef1516784eb:
|
28
|
+
- - :raise
|
29
|
+
- !ruby/exception:Net::IMAP::BadResponseError
|
30
|
+
message: Unknown command n70mb364137392ita
|
31
|
+
response: &2 !ruby/struct:Net::IMAP::TaggedResponse
|
32
|
+
tag: RUBY0002
|
33
|
+
name: BAD
|
34
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
35
|
+
code:
|
36
|
+
text: Unknown command n70mb364137392ita
|
37
|
+
raw_data: "RUBY0002 BAD Unknown command n70mb364137392ita\r\n"
|
38
|
+
- {}
|
39
|
+
- - *2
|
40
|
+
LIST-e0583fa6130ee374cef031c01d8cc486:
|
41
|
+
- - :raise
|
42
|
+
- !ruby/exception:Net::IMAP::BadResponseError
|
43
|
+
message: Unknown command n70mb364137392ita
|
44
|
+
response: &3 !ruby/struct:Net::IMAP::TaggedResponse
|
45
|
+
tag: RUBY0003
|
46
|
+
name: BAD
|
47
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
48
|
+
code:
|
49
|
+
text: Unknown command n70mb364137392ita
|
50
|
+
raw_data: "RUBY0003 BAD Unknown command n70mb364137392ita\r\n"
|
51
|
+
- {}
|
52
|
+
- - *3
|
@@ -1,39 +1,52 @@
|
|
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:
|
12
|
-
data:
|
13
|
-
text: " Invalid credentials (Failure)"
|
14
|
-
raw_data: "RUBY0001 NO [
|
15
|
-
- {}
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
-
|
1
|
+
---
|
2
|
+
AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
|
3
|
+
- - :raise
|
4
|
+
- !ruby/exception:Net::IMAP::NoResponseError
|
5
|
+
message: " Invalid credentials (Failure)"
|
6
|
+
response: &1 !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: AUTHENTICATIONFAILED
|
12
|
+
data:
|
13
|
+
text: " Invalid credentials (Failure)"
|
14
|
+
raw_data: "RUBY0001 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)\r\n"
|
15
|
+
- {}
|
16
|
+
- - !ruby/struct:Net::IMAP::ContinuationRequest
|
17
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
18
|
+
code:
|
19
|
+
text: ''
|
20
|
+
raw_data: "+ \r\n"
|
21
|
+
- !ruby/struct:Net::IMAP::ContinuationRequest
|
22
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
23
|
+
code:
|
24
|
+
text: eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
|
25
|
+
raw_data: "+ eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==\r\n"
|
26
|
+
- *1
|
27
|
+
CREATE-873546102acc7776d52edef1516784eb:
|
28
|
+
- - :raise
|
29
|
+
- !ruby/exception:Net::IMAP::BadResponseError
|
30
|
+
message: Unknown command s25mb431896762ivc
|
31
|
+
response: &2 !ruby/struct:Net::IMAP::TaggedResponse
|
32
|
+
tag: RUBY0002
|
33
|
+
name: BAD
|
34
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
35
|
+
code:
|
36
|
+
text: Unknown command s25mb431896762ivc
|
37
|
+
raw_data: "RUBY0002 BAD Unknown command s25mb431896762ivc\r\n"
|
38
|
+
- {}
|
39
|
+
- - *2
|
40
|
+
DELETE-842c8f8a15eef1d47151d7a37868de75:
|
41
|
+
- - :raise
|
42
|
+
- !ruby/exception:Net::IMAP::BadResponseError
|
43
|
+
message: Unknown command s25mb431896762ivc
|
44
|
+
response: &3 !ruby/struct:Net::IMAP::TaggedResponse
|
45
|
+
tag: RUBY0003
|
46
|
+
name: BAD
|
47
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
48
|
+
code:
|
49
|
+
text: Unknown command s25mb431896762ivc
|
50
|
+
raw_data: "RUBY0003 BAD Unknown command s25mb431896762ivc\r\n"
|
51
|
+
- {}
|
52
|
+
- - *3
|
data/spec/recordings/gmail_client_xo_auth2/instance/labels/returns_list_of_all_available_labels.yml
CHANGED
@@ -1,27 +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:
|
12
|
-
data:
|
13
|
-
text: " Invalid credentials (Failure)"
|
14
|
-
raw_data: "RUBY0001 NO [
|
15
|
-
- {}
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
1
|
+
---
|
2
|
+
AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
|
3
|
+
- - :raise
|
4
|
+
- !ruby/exception:Net::IMAP::NoResponseError
|
5
|
+
message: " Invalid credentials (Failure)"
|
6
|
+
response: &1 !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: AUTHENTICATIONFAILED
|
12
|
+
data:
|
13
|
+
text: " Invalid credentials (Failure)"
|
14
|
+
raw_data: "RUBY0001 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)\r\n"
|
15
|
+
- {}
|
16
|
+
- - !ruby/struct:Net::IMAP::ContinuationRequest
|
17
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
18
|
+
code:
|
19
|
+
text: ''
|
20
|
+
raw_data: "+ \r\n"
|
21
|
+
- !ruby/struct:Net::IMAP::ContinuationRequest
|
22
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
23
|
+
code:
|
24
|
+
text: eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
|
25
|
+
raw_data: "+ eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==\r\n"
|
26
|
+
- *1
|
27
|
+
LIST-e0583fa6130ee374cef031c01d8cc486:
|
28
|
+
- - :raise
|
29
|
+
- !ruby/exception:Net::IMAP::BadResponseError
|
30
|
+
message: Unknown command su5mb125355014igc
|
31
|
+
response: &2 !ruby/struct:Net::IMAP::TaggedResponse
|
32
|
+
tag: RUBY0002
|
33
|
+
name: BAD
|
34
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
35
|
+
code:
|
36
|
+
text: Unknown command su5mb125355014igc
|
37
|
+
raw_data: "RUBY0002 BAD Unknown command su5mb125355014igc\r\n"
|
38
|
+
- {}
|
39
|
+
- - *2
|
data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_in_to_valid_gmail_account.yml
CHANGED
@@ -1,15 +1,26 @@
|
|
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:
|
12
|
-
data:
|
13
|
-
text: " Invalid credentials (Failure)"
|
14
|
-
raw_data: "RUBY0001 NO [
|
15
|
-
- {}
|
1
|
+
---
|
2
|
+
AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
|
3
|
+
- - :raise
|
4
|
+
- !ruby/exception:Net::IMAP::NoResponseError
|
5
|
+
message: " Invalid credentials (Failure)"
|
6
|
+
response: &1 !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: AUTHENTICATIONFAILED
|
12
|
+
data:
|
13
|
+
text: " Invalid credentials (Failure)"
|
14
|
+
raw_data: "RUBY0001 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)\r\n"
|
15
|
+
- {}
|
16
|
+
- - !ruby/struct:Net::IMAP::ContinuationRequest
|
17
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
18
|
+
code:
|
19
|
+
text: ''
|
20
|
+
raw_data: "+ \r\n"
|
21
|
+
- !ruby/struct:Net::IMAP::ContinuationRequest
|
22
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
23
|
+
code:
|
24
|
+
text: eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
|
25
|
+
raw_data: "+ eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==\r\n"
|
26
|
+
- *1
|
@@ -1,15 +1,26 @@
|
|
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:
|
12
|
-
data:
|
13
|
-
text: " Invalid credentials (Failure)"
|
14
|
-
raw_data: "RUBY0001 NO [
|
15
|
-
- {}
|
1
|
+
---
|
2
|
+
AUTHENTICATE-48cc3379658326e2b0e5cd2a6f3da2af:
|
3
|
+
- - :raise
|
4
|
+
- !ruby/exception:Net::IMAP::NoResponseError
|
5
|
+
message: " Invalid credentials (Failure)"
|
6
|
+
response: &1 !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: AUTHENTICATIONFAILED
|
12
|
+
data:
|
13
|
+
text: " Invalid credentials (Failure)"
|
14
|
+
raw_data: "RUBY0001 NO [AUTHENTICATIONFAILED] Invalid credentials (Failure)\r\n"
|
15
|
+
- {}
|
16
|
+
- - !ruby/struct:Net::IMAP::ContinuationRequest
|
17
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
18
|
+
code:
|
19
|
+
text: ''
|
20
|
+
raw_data: "+ \r\n"
|
21
|
+
- !ruby/struct:Net::IMAP::ContinuationRequest
|
22
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
23
|
+
code:
|
24
|
+
text: eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==
|
25
|
+
raw_data: "+ eyJzdGF0dXMiOiI0MDAiLCJzY2hlbWVzIjoiQmVhcmVyIiwic2NvcGUiOiJodHRwczovL21haWwuZ29vZ2xlLmNvbS8ifQ==\r\n"
|
26
|
+
- *1
|