rfc-822 0.3.0 → 0.4.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 +7 -0
- data/README.textile +2 -1
- data/lib/rfc822.rb +7 -11
- data/spec/rfc822_spec.rb +1 -1
- metadata +54 -55
- data/.gitignore +0 -1
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -18
- data/Rakefile +0 -25
- data/VERSION +0 -1
- data/rfc-822.gemspec +0 -54
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: fc27d6a8f4a5e74135bc1b45f043ecadd3f54396
|
4
|
+
data.tar.gz: 05754014b5b287fc651903082bc6db274f1bfe8c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: afe3f3e8b7c5cc9c29c7c611d619042c7f19c125746215778764f958ab8e0b7dfdc716a1065696966166bac835a8a9fbcbd2bed809a6b5b4a84dfdce47dfbac6
|
7
|
+
data.tar.gz: 5d2c4a43b34f8f0110b21476497763b843aca7f63244e228d547b3a1ec6e69d5d097143709cea6f5b8b849c8d5a11a4404f585e0244e1eb3553246e46607b501
|
data/README.textile
CHANGED
data/lib/rfc822.rb
CHANGED
@@ -4,21 +4,17 @@ require 'uri'
|
|
4
4
|
module RFC822
|
5
5
|
|
6
6
|
module Patterns
|
7
|
-
|
8
|
-
def self.compile(string)
|
9
|
-
Regexp.new string, nil, 'n'
|
10
|
-
end
|
11
7
|
|
12
|
-
ATOM =
|
8
|
+
ATOM = "[^\\x00-\\x20\\x22\\x28\\x29\\x2c\\x2e\\x3a-\\x3c\\x3e\\x40\\x5b-\\x5d\\x7f-\\u00ff]+"
|
13
9
|
|
14
|
-
QTEXT =
|
15
|
-
QPAIR =
|
16
|
-
QSTRING =
|
10
|
+
QTEXT = "[^\\x0d\\x22\\x5c\\u0080-\\u00ff]"
|
11
|
+
QPAIR = "\\x5c[\\x00-\\x7f]"
|
12
|
+
QSTRING = "\\x22(?:#{QTEXT}|#{QPAIR})*\\x22"
|
17
13
|
|
18
|
-
WORD =
|
14
|
+
WORD = "(?:#{ATOM}|#{QSTRING})"
|
19
15
|
|
20
|
-
LOCAL_PT =
|
21
|
-
ADDRESS =
|
16
|
+
LOCAL_PT = "#{WORD}(?:\\x2e#{WORD})*"
|
17
|
+
ADDRESS = "#{LOCAL_PT}\\x40#{URI::REGEXP::PATTERN::HOSTNAME}"
|
22
18
|
|
23
19
|
end
|
24
20
|
|
data/spec/rfc822_spec.rb
CHANGED
@@ -48,7 +48,7 @@ describe RFC822 do
|
|
48
48
|
describe 'MX record check' do
|
49
49
|
|
50
50
|
before do
|
51
|
-
RFC822.stub
|
51
|
+
RFC822.stub(:host_mx).and_return(%Q(
|
52
52
|
hotmail.com mail is handled by 5 mx3.hotmail.com.
|
53
53
|
hotmail.com mail is handled by 5 mx4.hotmail.com.
|
54
54
|
hotmail.com mail is handled by 5 mx1.hotmail.com.
|
metadata
CHANGED
@@ -1,81 +1,80 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rfc-822
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
- 0
|
10
|
-
version: 0.3.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Dimitrij Denissenko
|
8
|
+
- Anthony Smith
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
date: 2014-01-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - '>='
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rspec
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
22
42
|
description: RFC822 compatible email validation and MX record check
|
23
43
|
email: dimitrij@blacksquaremedia.com
|
24
44
|
executables: []
|
25
|
-
|
26
45
|
extensions: []
|
27
|
-
|
28
|
-
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
29
48
|
- LICENSE
|
30
49
|
- README.textile
|
31
|
-
files:
|
32
|
-
- .gitignore
|
33
|
-
- Gemfile
|
34
|
-
- Gemfile.lock
|
35
|
-
- LICENSE
|
36
|
-
- README.textile
|
37
|
-
- Rakefile
|
38
|
-
- VERSION
|
39
50
|
- init.rb
|
40
51
|
- lib/rfc-822.rb
|
41
52
|
- lib/rfc822.rb
|
42
|
-
- rfc-822.gemspec
|
43
|
-
- spec/helper.rb
|
44
53
|
- spec/rfc822_spec.rb
|
45
|
-
|
54
|
+
- spec/helper.rb
|
46
55
|
homepage: http://github.com/dim/rfc-822
|
47
56
|
licenses: []
|
48
|
-
|
57
|
+
metadata: {}
|
49
58
|
post_install_message:
|
50
|
-
rdoc_options:
|
51
|
-
|
52
|
-
require_paths:
|
59
|
+
rdoc_options: []
|
60
|
+
require_paths:
|
53
61
|
- lib
|
54
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
none: false
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
hash: 3
|
69
|
-
segments:
|
70
|
-
- 0
|
71
|
-
version: "0"
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 1.9.1
|
67
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - '>='
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 1.3.6
|
72
72
|
requirements: []
|
73
|
-
|
74
73
|
rubyforge_project:
|
75
|
-
rubygems_version:
|
74
|
+
rubygems_version: 2.0.14
|
76
75
|
signing_key:
|
77
|
-
specification_version:
|
76
|
+
specification_version: 4
|
78
77
|
summary: RFC822 compatible email validation and MX record check
|
79
|
-
test_files:
|
78
|
+
test_files:
|
80
79
|
- spec/rfc822_spec.rb
|
81
80
|
- spec/helper.rb
|
data/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
pkg
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
diff-lcs (1.1.2)
|
5
|
-
rspec (2.3.0)
|
6
|
-
rspec-core (~> 2.3.0)
|
7
|
-
rspec-expectations (~> 2.3.0)
|
8
|
-
rspec-mocks (~> 2.3.0)
|
9
|
-
rspec-core (2.3.0)
|
10
|
-
rspec-expectations (2.3.0)
|
11
|
-
diff-lcs (~> 1.1.2)
|
12
|
-
rspec-mocks (2.3.0)
|
13
|
-
|
14
|
-
PLATFORMS
|
15
|
-
ruby
|
16
|
-
|
17
|
-
DEPENDENCIES
|
18
|
-
rspec
|
data/Rakefile
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'rake'
|
3
|
-
require 'rspec/mocks/version'
|
4
|
-
require 'rspec/core/rake_task'
|
5
|
-
|
6
|
-
|
7
|
-
RSpec::Core::RakeTask.new(:spec)
|
8
|
-
|
9
|
-
desc 'Default: run specs.'
|
10
|
-
task :default => :spec
|
11
|
-
|
12
|
-
begin
|
13
|
-
require 'jeweler'
|
14
|
-
Jeweler::Tasks.new do |gemspec|
|
15
|
-
gemspec.name = "rfc-822"
|
16
|
-
gemspec.summary = "RFC822 compatible email validation and MX record check"
|
17
|
-
gemspec.description = "RFC822 compatible email validation and MX record check"
|
18
|
-
gemspec.email = "dimitrij@blacksquaremedia.com"
|
19
|
-
gemspec.homepage = "http://github.com/dim/rfc-822"
|
20
|
-
gemspec.authors = ["Dimitrij Denissenko"]
|
21
|
-
end
|
22
|
-
Jeweler::GemcutterTasks.new
|
23
|
-
rescue LoadError
|
24
|
-
puts "Jeweler not available. Install it with: gem install jeweler"
|
25
|
-
end
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.3.0
|
data/rfc-822.gemspec
DELETED
@@ -1,54 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{rfc-822}
|
8
|
-
s.version = "0.3.0"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Dimitrij Denissenko"]
|
12
|
-
s.date = %q{2010-12-13}
|
13
|
-
s.description = %q{RFC822 compatible email validation and MX record check}
|
14
|
-
s.email = %q{dimitrij@blacksquaremedia.com}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE",
|
17
|
-
"README.textile"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".gitignore",
|
21
|
-
"Gemfile",
|
22
|
-
"Gemfile.lock",
|
23
|
-
"LICENSE",
|
24
|
-
"README.textile",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"init.rb",
|
28
|
-
"lib/rfc-822.rb",
|
29
|
-
"lib/rfc822.rb",
|
30
|
-
"rfc-822.gemspec",
|
31
|
-
"spec/helper.rb",
|
32
|
-
"spec/rfc822_spec.rb"
|
33
|
-
]
|
34
|
-
s.homepage = %q{http://github.com/dim/rfc-822}
|
35
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
36
|
-
s.require_paths = ["lib"]
|
37
|
-
s.rubygems_version = %q{1.3.7}
|
38
|
-
s.summary = %q{RFC822 compatible email validation and MX record check}
|
39
|
-
s.test_files = [
|
40
|
-
"spec/rfc822_spec.rb",
|
41
|
-
"spec/helper.rb"
|
42
|
-
]
|
43
|
-
|
44
|
-
if s.respond_to? :specification_version then
|
45
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
46
|
-
s.specification_version = 3
|
47
|
-
|
48
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
49
|
-
else
|
50
|
-
end
|
51
|
-
else
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|