whoisxmlapi 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/whoisxmlapi/contact.rb +4 -4
- data/lib/whoisxmlapi/result.rb +5 -5
- data/lib/whoisxmlapi/rwhois_result.rb +6 -5
- data/lib/whoisxmlapi/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee3ef0dacc5ba9fc76df7676ead15f629cb34785ca90db96f8ca89f7ff15c6f9
|
4
|
+
data.tar.gz: 7f7b7e5c16db21d3c0c27b09fa0d14a2cdc21d5de5eb564a790948e36c3b5be9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00656d04d2cdd7fd68a8076e10671e176d4ba2f76f557cce1db16c9227073c335a452c649939fae5131c5e711dec59895c64f7867292f9009d10b28acd0d2e72
|
7
|
+
data.tar.gz: 0c64f4c1c9b9d9a3dbdf4a3f2e3e540f91d2a75e87e6d64d8682b6238cc39452610f26a01dbc3119e964ebfa8018f2c078f20ef8d561471d699d7ef04f9fa91a
|
data/lib/whoisxmlapi/contact.rb
CHANGED
@@ -5,10 +5,10 @@ module WhoisXMLAPI
|
|
5
5
|
|
6
6
|
belongs_to :contactable, :polymorphic => true
|
7
7
|
# Actual indexing is performed in db_mongoid_extend.rake
|
8
|
-
#index([
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#])
|
8
|
+
# index([
|
9
|
+
# [ :contactable_id, Mongo::ASCENDING ],
|
10
|
+
# [ :contactable_type, Mongo::ASCENDING ]
|
11
|
+
# ])
|
12
12
|
index({contactable_id: 1, contactable_type: 1})
|
13
13
|
|
14
14
|
field :name
|
data/lib/whoisxmlapi/result.rb
CHANGED
@@ -21,11 +21,11 @@ module WhoisXMLAPI
|
|
21
21
|
|
22
22
|
belongs_to :whoisable, :polymorphic => true
|
23
23
|
# Actual indexing is performed in db_mongoid_extend.rake
|
24
|
-
index([
|
25
|
-
|
26
|
-
|
27
|
-
])
|
28
|
-
|
24
|
+
# index([
|
25
|
+
# [ :whoisable_id, Mongo::ASCENDING ],
|
26
|
+
# [ :whoisable_type, Mongo::ASCENDING ]
|
27
|
+
# ])
|
28
|
+
index({whoisable_id: 1, whoisable_type: 1})
|
29
29
|
|
30
30
|
def parse(record)
|
31
31
|
self.domain = record['domainName']
|
@@ -5,11 +5,12 @@ module WhoisXMLAPI
|
|
5
5
|
|
6
6
|
belongs_to :rwhoisable, :polymorphic => true
|
7
7
|
# Actual indexing is performed in db_mongoid_extend.rake
|
8
|
-
index([
|
9
|
-
|
10
|
-
|
11
|
-
])
|
12
|
-
|
8
|
+
# index([
|
9
|
+
# [ :rwhoisable_id, Mongo::ASCENDING ],
|
10
|
+
# [ :rwhoisable_type, Mongo::ASCENDING ]
|
11
|
+
# ])
|
12
|
+
index({rwhoisable_id: 1, rwhoisable_type: 1})
|
13
|
+
|
13
14
|
field :entity_name, :type => String
|
14
15
|
field :domains, :type => Array
|
15
16
|
|
data/lib/whoisxmlapi/version.rb
CHANGED