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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 422423c1d8da9df48d34ada1a8b33e2a8fe75a743d252821244e7bebd9ac905a
4
- data.tar.gz: bb6e4679c59f8aaf797575952d463a4f7d91228cbe4f86c0fa6e98c9f8bb5ca6
3
+ metadata.gz: ee3ef0dacc5ba9fc76df7676ead15f629cb34785ca90db96f8ca89f7ff15c6f9
4
+ data.tar.gz: 7f7b7e5c16db21d3c0c27b09fa0d14a2cdc21d5de5eb564a790948e36c3b5be9
5
5
  SHA512:
6
- metadata.gz: d0079675af6018a0c88aa73724e17ddd89e7afd05b9ed39ab1b1f14c12859b2b04e722dfaa2bdefef03646582c8f90dacf98fa5ca3bf93643fc894701f17bd18
7
- data.tar.gz: 62cc0a41305a3cd6caf236e5125e7fd864df66bee99d2e5a81d1f8b769637fd1934a7067421e24b68d9dedc2bf2df29a8bab4a71bff40aaa4e9fad44d131d63f
6
+ metadata.gz: 00656d04d2cdd7fd68a8076e10671e176d4ba2f76f557cce1db16c9227073c335a452c649939fae5131c5e711dec59895c64f7867292f9009d10b28acd0d2e72
7
+ data.tar.gz: 0c64f4c1c9b9d9a3dbdf4a3f2e3e540f91d2a75e87e6d64d8682b6238cc39452610f26a01dbc3119e964ebfa8018f2c078f20ef8d561471d699d7ef04f9fa91a
@@ -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
- # [ :contactable_id, Mongo::ASCENDING ],
10
- # [ :contactable_type, Mongo::ASCENDING ]
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
@@ -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
- [ :whoisable_id, Mongo::ASCENDING ],
26
- [ :whoisable_type, Mongo::ASCENDING ]
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
- [ :rwhoisable_id, Mongo::ASCENDING ],
10
- [ :rwhoisable_type, Mongo::ASCENDING ]
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
 
@@ -1,3 +1,3 @@
1
1
  module WhoisXMLAPI
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whoisxmlapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Maujean