raw_smtp 0.1.0.test → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4bab05e57ccbc3dc65140a633d9755f2e983114
4
- data.tar.gz: 77079197c46a3dec4f1c9f7bcf451e43f56a2555
3
+ metadata.gz: 845bf1f4c708cf009ab7925fceecaab95d459668
4
+ data.tar.gz: d3f367c0054b16065a10d4855e8b8c076032663b
5
5
  SHA512:
6
- metadata.gz: 9cef5fe9530f822384addb2cb5f5e409dccf2e726f5ed7f887a3a628d2fc09957b617421644a7860444309d3b012d36eae827f8bb5ad94dd15d60fc79cfcd739
7
- data.tar.gz: 9ec39d4952460a42466046cb2c81c8bd50e1f216b7bc31d4aa8ae62852b22b1623e3d7d4acb5f224b2babd644e684e675756d4c3967f86e76d9703d6fbe2cafd
6
+ metadata.gz: 3a7a8953b395c5a5ab32847355defc0b8466bc415c19272075b6ddc82fc480c82398bd9ad6f5801b6d5c2a875d40ef76e1f557f3dc711c2653211d7a8000e887
7
+ data.tar.gz: 199752aaf70d83b6a86827680e5945e8d56cad92ea78774e7cd4723b43df9563ffaf1de255214a32c5bccb29c4a38aa67a8e1cefa79ff09bae4d729b6b7acc31
@@ -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
@@ -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: 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
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]
@@ -1,7 +1,6 @@
1
1
  require 'raw_smtp/version'
2
2
 
3
- # Main module stub
4
3
  module RawSmtp
5
4
  require 'raw_smtp/validator'
6
5
  require 'raw_smtp/smtp'
7
- end
6
+ end
@@ -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: #{Digest::SHA2.hexdigest(Time.now.to_i.to_s)}@#{@sending_server}
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}
@@ -1,4 +1,4 @@
1
- # Standard versioning stub
1
+
2
2
  module RawSmtp
3
- VERSION = "0.1.0.test"
3
+ VERSION = "0.1.0"
4
4
  end
@@ -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.test
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-08-21 00:00:00.000000000 Z
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: 1.3.1
156
+ version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
159
  rubygems_version: 2.2.2