adops_report_scrapper 0.2.13 → 0.2.14
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/CHANGELOG +3 -0
- data/lib/adops_report_scrapper/email_client.rb +2 -1
- data/lib/adops_report_scrapper/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d14b46b38d90eed7f838928428ceddb6d7e9f9d
|
4
|
+
data.tar.gz: bc44d38859213724f18cd133bd521198070cd7bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d33b115ef5b27e8cd82e376575274ccb0b97ea002942d0855469b7f7796f18f2ff4dd4f78646ac188953a323054ad3fe83ca69c079b32a6c4a880ca03f6ad2a
|
7
|
+
data.tar.gz: 98ada45c4d87cee8f5f34fe456b34d40618aa194015f66d7f346088c9a41ff3528268627eb3e3326c3a0f5d027a7b0f9a0fbd39ab42157f6ac9bf78300dacd8f
|
data/CHANGELOG
CHANGED
@@ -22,6 +22,7 @@ class AdopsReportScrapper::EmailClient < AdopsReportScrapper::BaseClient
|
|
22
22
|
@imap_ssl = @options['imap_ssl']
|
23
23
|
@title = @options['title'] # supports data macro e.g. `XXX Report %Y-%m-%d` will match XXX Report `2017-04-26`
|
24
24
|
@date_column = @options['date_column'] # optional. supports data macro e.g. `0||%Y-%m-%d` will match rows that has `2017-04-26` for their first column
|
25
|
+
@imap_ssl_verify = @options['imap_ssl_verify'].nil? ? true : @options['imap_ssl_verify']
|
25
26
|
end
|
26
27
|
|
27
28
|
def before_quit_with_error
|
@@ -32,7 +33,7 @@ class AdopsReportScrapper::EmailClient < AdopsReportScrapper::BaseClient
|
|
32
33
|
email_received_date = Net::IMAP.format_date(@date+1)
|
33
34
|
title = @date.strftime(@title)
|
34
35
|
|
35
|
-
imap = Net::IMAP.new(@imap_server, @imap_port, @imap_ssl)
|
36
|
+
imap = Net::IMAP.new(@imap_server, @imap_port, @imap_ssl, nil, @imap_ssl_verify)
|
36
37
|
imap.login(@login, @secret)
|
37
38
|
imap.select('INBOX')
|
38
39
|
report_email_ids = imap.search(['ON', email_received_date, 'SUBJECT', title])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adops_report_scrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stayman Hou
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|