rumble 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rumble +11 -11
- data/lib/rumble/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f03e3edbc9e2b37f248b11bec2941f6d4a261e81b5f16801ce70d3bb87211f20
|
4
|
+
data.tar.gz: b95d41c24c2be68d9adfa328ae3499226a767a798f9e14d0ac2bbd7beffa9e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c5e549ea1f92e4160f5ca81942877bbd962488cfda61b7e9d9e49ea06375670c3e8f4b36c0ec46864af3f947fcd1de26008c36594c5a80db0491aaf518a1e03
|
7
|
+
data.tar.gz: 17118c0c04c50f6c7951a38c103d33e276621abd7f28506cac957a6138a38c5f7b34f73172368d395a90f0223f2f6b690fefc798b578ff295206e08a81f59b7e
|
data/bin/rumble
CHANGED
@@ -59,10 +59,10 @@ begin
|
|
59
59
|
'How to deliver them: "smtp" or "sendmail" (default: sendmail)',
|
60
60
|
default: 'sendmail'
|
61
61
|
o.string '--host', 'SMTP host name'
|
62
|
-
o.
|
62
|
+
o.integer '--port', 'SMTP port number (25 by default)', default: 25
|
63
63
|
o.string '--user', 'SMTP user name'
|
64
64
|
o.string '--password', 'SMTP password'
|
65
|
-
o.string '--proxy', 'HTTP proxy, e.g. "192.168.0.1:8080"'
|
65
|
+
o.string '--proxy', 'HTTP/SOCKS proxy, e.g. "socks:192.168.0.1:8080"'
|
66
66
|
o.string '--subject', 'Email subject', required: true
|
67
67
|
o.string '--letter', 'File name with Liquid template', required: true
|
68
68
|
o.string '--csv', 'CSV file with first name, last name, and email cols'
|
@@ -96,22 +96,22 @@ begin
|
|
96
96
|
raise '--user is required' unless opts[:user]
|
97
97
|
raise '--password is required' unless opts[:password]
|
98
98
|
if opts[:proxy]
|
99
|
-
host, port = opts[:proxy].strip.split(':')
|
99
|
+
scheme, host, port = opts[:proxy].strip.split(':')
|
100
100
|
delivery_method Net::SMTP::Proxy::DeliveryMethod, {
|
101
101
|
address: opts[:host],
|
102
102
|
port: opts[:port],
|
103
|
-
proxy_address: "
|
104
|
-
proxy_port: port,
|
103
|
+
proxy_address: "#{scheme}://#{host}",
|
104
|
+
proxy_port: port.to_i,
|
105
105
|
openssl_verify_mode: OpenSSL::SSL::VERIFY_NONE,
|
106
|
-
|
106
|
+
enable_starttls_auto: true
|
107
107
|
}
|
108
108
|
else
|
109
109
|
delivery_method :smtp, {
|
110
|
-
:
|
111
|
-
:
|
112
|
-
:
|
113
|
-
:
|
114
|
-
:
|
110
|
+
address: opts[:host],
|
111
|
+
port: opts[:port],
|
112
|
+
user_name: opts[:user],
|
113
|
+
password: opts[:password],
|
114
|
+
enable_starttls_auto: true
|
115
115
|
}
|
116
116
|
end
|
117
117
|
else
|
data/lib/rumble/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rumble
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yegor Bugayenko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|