domain_name_validator 0.4.2 → 0.4.3

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.
data/ChangeLog.md CHANGED
@@ -9,12 +9,23 @@
9
9
  circumstances. This validation would, for example, reject a domain name
10
10
  such as "test.domain".
11
11
 
12
- * (0.4.1) Added "info" as a valid extra-long TLD. How i missed this one, I
13
- have no idea.
14
-
15
- * (0.4.2) Added a check for zero-length domain names, either empty strings
16
- or Ruby nil values being passed in. In practice, these edge cases were
17
- actually happening.
12
+ * (0.4.1 - 2013-07-17) Added "info" as a valid extra-long TLD. How I missed
13
+ this one, I have no idea.
14
+
15
+ * (0.4.2 - 2013-07-17) Added a check for zero-length domain names, either
16
+ empty strings or Ruby nil values being passed in. In practice, these edge
17
+ cases were actually happening.
18
+
19
+ * (0.4.3 - 2013-08-01) For the TLD reality check, IANA (the Internet Assigned
20
+ Numbers Authority) recognizes some long TLD's that were not on the original
21
+ list for this gem, such as ".travel", ".jobs", etc. To reiterate, the gem
22
+ does not validate against the full list of TLD's or effective TLD's, but
23
+ it does validate that the TLD length COULD be a valid TLD. As an example,
24
+ a TLD of 14 characters would be rejected because there are no valid domains
25
+ that could match that pattern.
26
+
27
+ * (0.4.3 - 2013-08-01) Added the "license" attribute to the gemspec. This is
28
+ in response to an issue that was opened on GitHub.
18
29
 
19
30
  0.3 (2013-06-28)
20
31
  ----------------
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- domain_name_validator (0.4.1)
4
+ domain_name_validator (0.4.3)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -5,13 +5,14 @@ require "domain_name_validator/version"
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "domain_name_validator"
7
7
  gem.version = DomainNameValidator::VERSION
8
- gem.date = '2013-07-17'
8
+ gem.date = '2013-08-01'
9
9
  gem.platform = Gem::Platform::RUBY
10
10
  gem.authors = ["David Keener"]
11
11
  gem.email = ["dkeener@keenertech.com"]
12
12
  gem.homepage = "http://www.keenertech.com"
13
13
  gem.summary = %q{Domain Name Validator}
14
14
  gem.description = %q{Checks the validity of domain names.}
15
+ gem.license = 'MIT'
15
16
 
16
17
  gem.add_development_dependency "rspec"
17
18
 
@@ -67,8 +67,15 @@ class DomainNameValidator
67
67
  if parts.last.size < MIN_TLD_LENGTH || parts.last.size > MAX_TLD_LENGTH
68
68
  unless parts.last == 'arpa' ||
69
69
  parts.last == 'aero' ||
70
+ parts.last == 'asia' ||
71
+ parts.last == 'coop' ||
72
+ parts.last == 'jobs' ||
70
73
  parts.last == 'info' ||
74
+ parts.last == 'mobi' ||
71
75
  parts.last == 'museum' ||
76
+ parts.last == 'name' ||
77
+ parts.last == 'post' ||
78
+ parts.last == 'travel' ||
72
79
  parts.last.match(/^xn--/)
73
80
  errs << ERRS[:bogus_tld]
74
81
  end
@@ -1,3 +1,3 @@
1
1
  class DomainNameValidator
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domain_name_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-17 00:00:00.000000000 Z
12
+ date: 2013-08-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &28235004 !ruby/object:Gem::Requirement
16
+ requirement: &29350572 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *28235004
24
+ version_requirements: *29350572
25
25
  description: Checks the validity of domain names.
26
26
  email:
27
27
  - dkeener@keenertech.com
@@ -43,7 +43,8 @@ files:
43
43
  - spec/domain_name_validator_spec.rb
44
44
  - spec/spec_helper.rb
45
45
  homepage: http://www.keenertech.com
46
- licenses: []
46
+ licenses:
47
+ - MIT
47
48
  post_install_message:
48
49
  rdoc_options: []
49
50
  require_paths: