raw_smtp 0.1.0.test → 0.1.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/.rubocop_todo.yml +11 -4
- data/exe/raw_smtp +4 -4
- data/lib/raw_smtp.rb +1 -2
- data/lib/raw_smtp/smtp.rb +1 -2
- data/lib/raw_smtp/version.rb +2 -2
- data/raw_smtp.gemspec +2 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 845bf1f4c708cf009ab7925fceecaab95d459668
|
4
|
+
data.tar.gz: d3f367c0054b16065a10d4855e8b8c076032663b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a7a8953b395c5a5ab32847355defc0b8466bc415c19272075b6ddc82fc480c82398bd9ad6f5801b6d5c2a875d40ef76e1f557f3dc711c2653211d7a8000e887
|
7
|
+
data.tar.gz: 199752aaf70d83b6a86827680e5945e8d56cad92ea78774e7cd4723b43df9563ffaf1de255214a32c5bccb29c4a38aa67a8e1cefa79ff09bae4d729b6b7acc31
|
data/.rubocop_todo.yml
CHANGED
@@ -31,10 +31,17 @@ Metrics/ParameterLists:
|
|
31
31
|
Style/EmptyElse:
|
32
32
|
Enabled: false
|
33
33
|
|
34
|
+
# Offense count: 2
|
35
|
+
# Configuration parameters: Exclude.
|
36
|
+
Style/FileName:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
# Offense count: 4
|
40
|
+
# Cop supports --auto-correct.
|
41
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
|
42
|
+
Style/HashSyntax:
|
43
|
+
Enabled: false
|
44
|
+
|
34
45
|
# Offense count: 1
|
35
46
|
Style/UnlessElse:
|
36
47
|
Enabled: false
|
37
|
-
|
38
|
-
# Turnining
|
39
|
-
Documentation:
|
40
|
-
Enabled: false
|
data/exe/raw_smtp
CHANGED
@@ -14,10 +14,10 @@ Usage:
|
|
14
14
|
where [options] are:
|
15
15
|
EOS
|
16
16
|
|
17
|
-
opt :server, "Smtp server hostname or IP address", type
|
18
|
-
opt :sending_server, "Sending server name for EHLO", type
|
19
|
-
opt :mail_rcpt_to, "Message recepient in RCPT_TO", type
|
20
|
-
opt :mail_subject, "Message subject", type
|
17
|
+
opt :server, "Smtp server hostname or IP address", :type => String
|
18
|
+
opt :sending_server, "Sending server name for EHLO", :type => String
|
19
|
+
opt :mail_rcpt_to, "Message recepient in RCPT_TO", :type => String
|
20
|
+
opt :mail_subject, "Message subject", :type => String
|
21
21
|
end
|
22
22
|
|
23
23
|
Trollop.die :server, "Server and recepient must be specified" unless opts[:server]
|
data/lib/raw_smtp.rb
CHANGED
data/lib/raw_smtp/smtp.rb
CHANGED
@@ -36,8 +36,7 @@ class SMTP
|
|
36
36
|
unless mail_headers
|
37
37
|
@mail_headers = <<-EOH.gsub(/^\s+/, "")
|
38
38
|
\tMIME-Version: 1.0
|
39
|
-
\tMessage-ID
|
40
|
-
\tDate: #{DateTime.now.rfc822.to_s}
|
39
|
+
\tMessage-ID:#{Digest::SHA2.hexdigest(Time.now.to_i.to_s)}@#{@sending_server}
|
41
40
|
\tSubject: #{@mail_subject}
|
42
41
|
\tFrom: #{@mail_from}
|
43
42
|
\tTo: #{@mail_rcpt_to}
|
data/lib/raw_smtp/version.rb
CHANGED
data/raw_smtp.gemspec
CHANGED
@@ -14,7 +14,9 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.summary = "SMTP using raw sockets"
|
15
15
|
s.description = "A simple experimental SMTP client"
|
16
16
|
|
17
|
+
|
17
18
|
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
|
+
|
18
20
|
s.bindir = "exe"
|
19
21
|
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
22
|
s.require_paths = ["lib"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: raw_smtp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Yakimenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|
@@ -151,9 +151,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
151
151
|
version: '0'
|
152
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
|
-
- - "
|
154
|
+
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version:
|
156
|
+
version: '0'
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
159
|
rubygems_version: 2.2.2
|