gmail 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9004bac96504f2376823a5eb1e5a713ab95679f
|
4
|
+
data.tar.gz: 83048df9735f6f3a53307b1e3e84601fc3989630
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eb36e627cd4230f22e045546dc9a6934640b611451a2f2bd89c1cd828b2daf8f9eacd982c2347d5841b37ddcac270059683ca29e858a615ebc53ca74aeb7179
|
7
|
+
data.tar.gz: 71bf8272ad612190c64f4ffbf0e98f0395fd15b2b9ee23ed22b51f5fa5999a91ec10889c872fe1cf6342d7943393abbd277ec92136cf6ff36431d74fd0572807
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/.gitignore
CHANGED
@@ -1,27 +1,27 @@
|
|
1
|
-
## MAC OS
|
2
|
-
.DS_Store
|
3
|
-
|
4
|
-
## TEXTMATE
|
5
|
-
*.tmproj
|
6
|
-
tmtags
|
7
|
-
|
8
|
-
## EMACS
|
9
|
-
*~
|
10
|
-
\#*
|
11
|
-
.\#*
|
12
|
-
|
13
|
-
## VIM
|
14
|
-
*.swp
|
15
|
-
|
16
|
-
## PROJECT::GENERAL
|
17
|
-
coverage
|
18
|
-
rdoc
|
19
|
-
pkg
|
20
|
-
Gemfile.lock
|
21
|
-
*.gem
|
22
|
-
|
23
|
-
## PROJECT::SPECIFIC
|
24
|
-
*.rdb
|
25
|
-
|
26
|
-
## Test Account details
|
27
|
-
spec/account.yml
|
1
|
+
## MAC OS
|
2
|
+
.DS_Store
|
3
|
+
|
4
|
+
## TEXTMATE
|
5
|
+
*.tmproj
|
6
|
+
tmtags
|
7
|
+
|
8
|
+
## EMACS
|
9
|
+
*~
|
10
|
+
\#*
|
11
|
+
.\#*
|
12
|
+
|
13
|
+
## VIM
|
14
|
+
*.swp
|
15
|
+
|
16
|
+
## PROJECT::GENERAL
|
17
|
+
coverage
|
18
|
+
rdoc
|
19
|
+
pkg
|
20
|
+
Gemfile.lock
|
21
|
+
*.gem
|
22
|
+
|
23
|
+
## PROJECT::SPECIFIC
|
24
|
+
*.rdb
|
25
|
+
|
26
|
+
## Test Account details
|
27
|
+
spec/account.yml
|
data/.rspec
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
--colour
|
1
|
+
--colour
|
2
2
|
--backtrace
|
data/.rubocop.yml
CHANGED
@@ -1,13 +1,53 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
2
|
-
|
3
|
-
Style/HashSyntax:
|
4
|
-
EnforcedStyle: hash_rockets
|
5
|
-
SupportedStyles:
|
6
|
-
- ruby19
|
7
|
-
- hash_rockets
|
8
|
-
|
9
|
-
Style/StringLiterals:
|
10
|
-
EnforcedStyle: single_quotes
|
11
|
-
SupportedStyles:
|
12
|
-
- single_quotes
|
13
|
-
- double_quotes
|
1
|
+
inherit_from: .rubocop_todo.yml
|
2
|
+
|
3
|
+
Style/HashSyntax:
|
4
|
+
EnforcedStyle: hash_rockets
|
5
|
+
SupportedStyles:
|
6
|
+
- ruby19
|
7
|
+
- hash_rockets
|
8
|
+
|
9
|
+
Style/StringLiterals:
|
10
|
+
EnforcedStyle: single_quotes
|
11
|
+
SupportedStyles:
|
12
|
+
- single_quotes
|
13
|
+
- double_quotes
|
14
|
+
|
15
|
+
Style/RegexpLiteral:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
Metrics/ModuleLength:
|
19
|
+
Enabled: false
|
20
|
+
|
21
|
+
Metrics/BlockLength:
|
22
|
+
Max: 100
|
23
|
+
Exclude:
|
24
|
+
- spec/**/*
|
25
|
+
|
26
|
+
Lint/NestedMethodDefinition:
|
27
|
+
Enabled: false
|
28
|
+
|
29
|
+
Layout/SpaceAroundOperators:
|
30
|
+
Enabled: false
|
31
|
+
|
32
|
+
Layout/ClosingParenthesisIndentation:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
Style/ParallelAssignment:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
Style/RescueModifier:
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
Style/CommentedKeyword:
|
42
|
+
Exclude:
|
43
|
+
- lib/**/*
|
44
|
+
|
45
|
+
Lint/LiteralAsCondition:
|
46
|
+
Enabled: false
|
47
|
+
|
48
|
+
Style/SymbolArray:
|
49
|
+
Enabled: false
|
50
|
+
|
51
|
+
Security/YAMLLoad:
|
52
|
+
Exclude:
|
53
|
+
- spec/support/obfuscation.rb
|
data/.rubocop_todo.yml
CHANGED
@@ -1,239 +1,299 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
#
|
3
|
-
#
|
4
|
-
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
|
8
|
-
|
9
|
-
#
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
# Offense count:
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
#
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
# Offense count:
|
76
|
-
#
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
#
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
# Offense count:
|
96
|
-
#
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
#
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
# Offense count:
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
# Offense count:
|
140
|
-
# Cop supports --auto-correct.
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
#
|
155
|
-
#
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
# Offense count:
|
161
|
-
# Cop supports --auto-correct.
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
#
|
168
|
-
Style/
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
# Offense count: 1
|
191
|
-
# Cop supports --auto-correct.
|
192
|
-
Style/
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
#
|
197
|
-
#
|
198
|
-
Style/
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
#
|
203
|
-
#
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
#
|
214
|
-
#
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
# Offense count: 1
|
230
|
-
# Cop supports --auto-correct.
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
# Offense count:
|
236
|
-
# Cop supports --auto-correct.
|
237
|
-
# Configuration parameters:
|
238
|
-
|
239
|
-
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2018-07-19 01:18:32 +0900 using RuboCop version 0.58.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
12
|
+
# SupportedStyles: outdent, indent
|
13
|
+
Layout/AccessModifierIndentation:
|
14
|
+
Exclude:
|
15
|
+
- 'lib/gmail/mailbox.rb'
|
16
|
+
|
17
|
+
# Offense count: 1
|
18
|
+
# Cop supports --auto-correct.
|
19
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
20
|
+
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
21
|
+
Layout/AlignParameters:
|
22
|
+
Exclude:
|
23
|
+
- 'lib/gmail/client/xoauth.rb'
|
24
|
+
|
25
|
+
# Offense count: 1
|
26
|
+
# Cop supports --auto-correct.
|
27
|
+
Layout/CommentIndentation:
|
28
|
+
Exclude:
|
29
|
+
- 'spec/gmail_spec.rb'
|
30
|
+
|
31
|
+
# Offense count: 6
|
32
|
+
# Cop supports --auto-correct.
|
33
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
34
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
35
|
+
Layout/IndentHash:
|
36
|
+
Exclude:
|
37
|
+
- 'lib/gmail/client/xoauth.rb'
|
38
|
+
- 'lib/gmail/client/xoauth2.rb'
|
39
|
+
- 'spec/gmail/client/xoauth2_spec.rb'
|
40
|
+
|
41
|
+
# Offense count: 1
|
42
|
+
# Configuration parameters: AllowSafeAssignment.
|
43
|
+
Lint/AssignmentInCondition:
|
44
|
+
Exclude:
|
45
|
+
- 'lib/gmail/client.rb'
|
46
|
+
|
47
|
+
# Offense count: 2
|
48
|
+
Lint/RescueException:
|
49
|
+
Exclude:
|
50
|
+
- 'spec/support/obfuscation.rb'
|
51
|
+
|
52
|
+
# Offense count: 1
|
53
|
+
Lint/ShadowingOuterLocalVariable:
|
54
|
+
Exclude:
|
55
|
+
- 'spec/support/obfuscation.rb'
|
56
|
+
|
57
|
+
# Offense count: 1
|
58
|
+
# Cop supports --auto-correct.
|
59
|
+
Lint/StringConversionInInterpolation:
|
60
|
+
Exclude:
|
61
|
+
- 'lib/gmail/client/base.rb'
|
62
|
+
|
63
|
+
# Offense count: 1
|
64
|
+
Lint/UnderscorePrefixedVariableName:
|
65
|
+
Exclude:
|
66
|
+
- 'lib/gmail/message.rb'
|
67
|
+
|
68
|
+
# Offense count: 2
|
69
|
+
# Cop supports --auto-correct.
|
70
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
71
|
+
Lint/UnusedBlockArgument:
|
72
|
+
Exclude:
|
73
|
+
- 'spec/gmail/mailbox_spec.rb'
|
74
|
+
|
75
|
+
# Offense count: 9
|
76
|
+
# Cop supports --auto-correct.
|
77
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
78
|
+
Lint/UnusedMethodArgument:
|
79
|
+
Exclude:
|
80
|
+
- 'lib/gmail.rb'
|
81
|
+
- 'lib/gmail/client/base.rb'
|
82
|
+
- 'lib/gmail/mailbox.rb'
|
83
|
+
- 'spec/gmail/client/xoauth2_spec.rb'
|
84
|
+
- 'spec/spec_helper.rb'
|
85
|
+
|
86
|
+
# Offense count: 2
|
87
|
+
Lint/UselessAssignment:
|
88
|
+
Exclude:
|
89
|
+
- 'spec/support/obfuscation.rb'
|
90
|
+
|
91
|
+
# Offense count: 12
|
92
|
+
Metrics/AbcSize:
|
93
|
+
Max: 84
|
94
|
+
|
95
|
+
# Offense count: 3
|
96
|
+
# Configuration parameters: CountComments.
|
97
|
+
Metrics/ClassLength:
|
98
|
+
Max: 149
|
99
|
+
|
100
|
+
# Offense count: 6
|
101
|
+
Metrics/CyclomaticComplexity:
|
102
|
+
Max: 24
|
103
|
+
|
104
|
+
# Offense count: 15
|
105
|
+
# Configuration parameters: CountComments.
|
106
|
+
Metrics/MethodLength:
|
107
|
+
Max: 88
|
108
|
+
|
109
|
+
# Offense count: 4
|
110
|
+
Metrics/PerceivedComplexity:
|
111
|
+
Max: 20
|
112
|
+
|
113
|
+
# Offense count: 1
|
114
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
115
|
+
# AllowedNames: io, id, to, by, on, in, at
|
116
|
+
Naming/UncommunicativeMethodParamName:
|
117
|
+
Exclude:
|
118
|
+
- 'lib/gmail/imap_extensions.rb'
|
119
|
+
|
120
|
+
# Offense count: 1
|
121
|
+
# Cop supports --auto-correct.
|
122
|
+
Performance/InefficientHashSearch:
|
123
|
+
Exclude:
|
124
|
+
- 'lib/gmail/imap_extensions.rb'
|
125
|
+
|
126
|
+
# Offense count: 37
|
127
|
+
# Cop supports --auto-correct.
|
128
|
+
# Configuration parameters: EnforcedStyle.
|
129
|
+
# SupportedStyles: prefer_alias, prefer_alias_method
|
130
|
+
Style/Alias:
|
131
|
+
Exclude:
|
132
|
+
- 'lib/gmail.rb'
|
133
|
+
- 'lib/gmail/client/base.rb'
|
134
|
+
- 'lib/gmail/labels.rb'
|
135
|
+
- 'lib/gmail/mailbox.rb'
|
136
|
+
- 'lib/gmail/message.rb'
|
137
|
+
- 'spec/support/imap_mock.rb'
|
138
|
+
|
139
|
+
# Offense count: 22
|
140
|
+
# Cop supports --auto-correct.
|
141
|
+
# Configuration parameters: EnforcedStyle.
|
142
|
+
# SupportedStyles: always, conditionals
|
143
|
+
Style/AndOr:
|
144
|
+
Exclude:
|
145
|
+
- 'lib/gmail/client/base.rb'
|
146
|
+
- 'lib/gmail/client/plain.rb'
|
147
|
+
- 'lib/gmail/client/xoauth.rb'
|
148
|
+
- 'lib/gmail/client/xoauth2.rb'
|
149
|
+
- 'lib/gmail/mailbox.rb'
|
150
|
+
- 'spec/support/imap_mock.rb'
|
151
|
+
|
152
|
+
# Offense count: 5
|
153
|
+
# Cop supports --auto-correct.
|
154
|
+
# Configuration parameters: EnforcedStyle.
|
155
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
156
|
+
Style/BracesAroundHashParameters:
|
157
|
+
Exclude:
|
158
|
+
- 'spec/gmail/client/xoauth2_spec.rb'
|
159
|
+
|
160
|
+
# Offense count: 7
|
161
|
+
# Cop supports --auto-correct.
|
162
|
+
Style/ColonMethodCall:
|
163
|
+
Exclude:
|
164
|
+
- 'spec/gmail/imap_extensions_spec.rb'
|
165
|
+
- 'spec/support/obfuscation.rb'
|
166
|
+
|
167
|
+
# Offense count: 13
|
168
|
+
Style/Documentation:
|
169
|
+
Exclude:
|
170
|
+
- 'spec/**/*'
|
171
|
+
- 'test/**/*'
|
172
|
+
- 'lib/gmail.rb'
|
173
|
+
- 'lib/gmail/client.rb'
|
174
|
+
- 'lib/gmail/client/base.rb'
|
175
|
+
- 'lib/gmail/client/plain.rb'
|
176
|
+
- 'lib/gmail/client/xoauth.rb'
|
177
|
+
- 'lib/gmail/client/xoauth2.rb'
|
178
|
+
- 'lib/gmail/imap_extensions.rb'
|
179
|
+
- 'lib/gmail/labels.rb'
|
180
|
+
- 'lib/gmail/mailbox.rb'
|
181
|
+
- 'lib/gmail/message.rb'
|
182
|
+
|
183
|
+
# Offense count: 5
|
184
|
+
Style/DoubleNegation:
|
185
|
+
Exclude:
|
186
|
+
- 'lib/gmail/client/base.rb'
|
187
|
+
- 'lib/gmail/labels.rb'
|
188
|
+
- 'lib/gmail/message.rb'
|
189
|
+
|
190
|
+
# Offense count: 1
|
191
|
+
# Cop supports --auto-correct.
|
192
|
+
Style/EachWithObject:
|
193
|
+
Exclude:
|
194
|
+
- 'lib/gmail/labels.rb'
|
195
|
+
|
196
|
+
# Offense count: 1
|
197
|
+
# Cop supports --auto-correct.
|
198
|
+
Style/ExpandPathArguments:
|
199
|
+
Exclude:
|
200
|
+
- 'gmail.gemspec'
|
201
|
+
|
202
|
+
# Offense count: 4
|
203
|
+
# Cop supports --auto-correct.
|
204
|
+
# Configuration parameters: EnforcedStyle.
|
205
|
+
# SupportedStyles: format, sprintf, percent
|
206
|
+
Style/FormatString:
|
207
|
+
Exclude:
|
208
|
+
- 'lib/gmail/client/base.rb'
|
209
|
+
- 'lib/gmail/labels.rb'
|
210
|
+
- 'lib/gmail/mailbox.rb'
|
211
|
+
- 'lib/gmail/message.rb'
|
212
|
+
|
213
|
+
# Offense count: 1
|
214
|
+
# Cop supports --auto-correct.
|
215
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
216
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
217
|
+
Style/HashSyntax:
|
218
|
+
Exclude:
|
219
|
+
- 'lib/gmail/message.rb'
|
220
|
+
|
221
|
+
# Offense count: 3
|
222
|
+
# Cop supports --auto-correct.
|
223
|
+
Style/IfUnlessModifier:
|
224
|
+
Exclude:
|
225
|
+
- 'lib/gmail.rb'
|
226
|
+
- 'lib/gmail/client/base.rb'
|
227
|
+
- 'spec/support/imap_mock.rb'
|
228
|
+
|
229
|
+
# Offense count: 1
|
230
|
+
# Cop supports --auto-correct.
|
231
|
+
Style/InfiniteLoop:
|
232
|
+
Exclude:
|
233
|
+
- 'lib/gmail/imap_extensions.rb'
|
234
|
+
|
235
|
+
# Offense count: 5
|
236
|
+
# Cop supports --auto-correct.
|
237
|
+
# Configuration parameters: EnforcedStyle.
|
238
|
+
# SupportedStyles: line_count_dependent, lambda, literal
|
239
|
+
Style/Lambda:
|
240
|
+
Exclude:
|
241
|
+
- 'spec/gmail/client/xoauth2_spec.rb'
|
242
|
+
|
243
|
+
# Offense count: 1
|
244
|
+
# Cop supports --auto-correct.
|
245
|
+
# Configuration parameters: EnforcedStyle.
|
246
|
+
# SupportedStyles: module_function, extend_self
|
247
|
+
Style/ModuleFunction:
|
248
|
+
Exclude:
|
249
|
+
- 'spec/support/obfuscation.rb'
|
250
|
+
|
251
|
+
# Offense count: 1
|
252
|
+
# Cop supports --auto-correct.
|
253
|
+
# Configuration parameters: EnforcedStyle.
|
254
|
+
# SupportedStyles: both, prefix, postfix
|
255
|
+
Style/NegatedIf:
|
256
|
+
Exclude:
|
257
|
+
- 'lib/gmail/client/base.rb'
|
258
|
+
|
259
|
+
# Offense count: 2
|
260
|
+
# Cop supports --auto-correct.
|
261
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
262
|
+
Style/RedundantReturn:
|
263
|
+
Exclude:
|
264
|
+
- 'lib/gmail/imap_extensions.rb'
|
265
|
+
|
266
|
+
# Offense count: 1
|
267
|
+
# Cop supports --auto-correct.
|
268
|
+
Style/RedundantSelf:
|
269
|
+
Exclude:
|
270
|
+
- 'lib/gmail/imap_extensions.rb'
|
271
|
+
|
272
|
+
# Offense count: 1
|
273
|
+
# Cop supports --auto-correct.
|
274
|
+
# Configuration parameters: EnforcedStyle.
|
275
|
+
# SupportedStyles: use_perl_names, use_english_names
|
276
|
+
Style/SpecialGlobalVars:
|
277
|
+
Exclude:
|
278
|
+
- 'gmail.gemspec'
|
279
|
+
|
280
|
+
# Offense count: 256
|
281
|
+
# Cop supports --auto-correct.
|
282
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
283
|
+
# SupportedStyles: single_quotes, double_quotes
|
284
|
+
Style/StringLiterals:
|
285
|
+
Enabled: false
|
286
|
+
|
287
|
+
# Offense count: 1
|
288
|
+
# Cop supports --auto-correct.
|
289
|
+
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.
|
290
|
+
# SupportedStyles: percent, brackets
|
291
|
+
Style/WordArray:
|
292
|
+
Exclude:
|
293
|
+
- 'lib/gmail/mailbox.rb'
|
294
|
+
|
295
|
+
# Offense count: 67
|
296
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
297
|
+
# URISchemes: http, https
|
298
|
+
Metrics/LineLength:
|
299
|
+
Max: 153
|