rumble 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rumble +11 -11
  3. data/lib/rumble/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19aa6fb3581db4df5a235311c22d817e083b0987a31fe8c50ca4f5a60e7e2a91
4
- data.tar.gz: 147d028433f2f2f66aca7783849ca5197b332d163ee998099772ce7316e26593
3
+ metadata.gz: f03e3edbc9e2b37f248b11bec2941f6d4a261e81b5f16801ce70d3bb87211f20
4
+ data.tar.gz: b95d41c24c2be68d9adfa328ae3499226a767a798f9e14d0ac2bbd7beffa9e09
5
5
  SHA512:
6
- metadata.gz: f699b9affdf67116c7c7231be7b0ede4535cf6c8496e1169acb504e3550f0256b9bd033002a82b2727aebcfc8530c5059df5b77562078b2fd041cbb1148185cb
7
- data.tar.gz: 0c72dcff6b37cd7ab03bb9c657e330365327b1d6fab88f39834385ec5de103a22c8eb2e803a20f469df8b8c21ed3a94dea70fc22df7fa24926d7692e97716c7c
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.string '--port', 'SMTP port number (25 by default)', default: 25
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: "http://#{host.strip}",
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
- domain: 'gmail.com'
106
+ enable_starttls_auto: true
107
107
  }
108
108
  else
109
109
  delivery_method :smtp, {
110
- :address => opts[:host],
111
- :port => opts[:port],
112
- :user_name => opts[:user],
113
- :password => opts[:password],
114
- :enable_starttls_auto => true
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
@@ -25,5 +25,5 @@
25
25
  # Copyright:: Copyright (c) 2018-2019 Yegor Bugayenko
26
26
  # License:: MIT
27
27
  module Rumble
28
- VERSION = '0.5.0'
28
+ VERSION = '0.5.1'
29
29
  end
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.0
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-15 00:00:00.000000000 Z
11
+ date: 2019-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid