whois 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +5 -0
- data/lib/core_ext.rb +12 -11
- data/lib/whois/version.rb +1 -1
- data/whois.gemspec +2 -2
- metadata +4 -4
data/CHANGELOG.rdoc
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
= Changelog
|
2
2
|
|
3
3
|
|
4
|
+
== Release 1.1.7
|
5
|
+
|
6
|
+
* FIXED: method `to_time' not defined in DateTime (NameError) when the library is used with Ruby 1.9.1 and Rails (closes #24)
|
7
|
+
|
8
|
+
|
4
9
|
== Release 1.1.6
|
5
10
|
|
6
11
|
* NEW: Added simple .in.ua TLD parser (whois.in.ua). It seems that .in.ua is handled separately from .ua.
|
data/lib/core_ext.rb
CHANGED
@@ -2,7 +2,8 @@ unless :to_proc.respond_to?(:to_proc)
|
|
2
2
|
class Symbol
|
3
3
|
# Turns the symbol into a simple proc,
|
4
4
|
# which is especially useful for enumerations.
|
5
|
-
#
|
5
|
+
# Extracted from ActiveSupport.
|
6
|
+
#
|
6
7
|
# Examples
|
7
8
|
#
|
8
9
|
# # The same as people.collect { |p| p.name }
|
@@ -22,15 +23,15 @@ end
|
|
22
23
|
require 'date'
|
23
24
|
|
24
25
|
class DateTime
|
25
|
-
#
|
26
|
-
#
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
26
|
+
# Don't remove method if exists or it will conflict with ActiveRecord.
|
27
|
+
# See http://github.com/weppos/whois/issues#issue/24
|
28
|
+
unless method_defined?(:to_time)
|
29
|
+
# Attempts to convert self to a Ruby Time object; returns self if out of range of Ruby Time class
|
30
|
+
# Extracted from ActiveSupport.
|
31
|
+
#
|
32
|
+
# If self has an offset other than 0, self will just be returned unaltered, since there's no clean way to map it to a Time.
|
33
|
+
def to_time
|
34
|
+
self.offset == 0 ? ::Time.utc(year, month, day, hour, min, sec) : self
|
35
|
+
end
|
35
36
|
end
|
36
37
|
end
|
data/lib/whois/version.rb
CHANGED
data/whois.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{whois}
|
5
|
-
s.version = "1.1.
|
5
|
+
s.version = "1.1.7"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Simone Carletti"]
|
9
|
-
s.date = %q{2010-05-
|
9
|
+
s.date = %q{2010-05-27}
|
10
10
|
s.default_executable = %q{ruby-whois}
|
11
11
|
s.description = %q{ Whois is an intelligent WHOIS client and parser written in pure Ruby. It can query registry data for IPv4, IPv6 and top level domains, parse and convert responses into easy-to-use Ruby objects.
|
12
12
|
}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whois
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 7
|
10
|
+
version: 1.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Simone Carletti
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-05-
|
18
|
+
date: 2010-05-27 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|