whois 5.0.1 → 5.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +26 -0
  3. data/.rubocop_opinionated.yml +157 -0
  4. data/.rubocop_todo.yml +242 -0
  5. data/.simplecov +2 -0
  6. data/.tool-versions +1 -0
  7. data/CHANGELOG.md +68 -53
  8. data/Gemfile +5 -0
  9. data/LICENSE.txt +1 -1
  10. data/README.md +1 -1
  11. data/Rakefile +12 -17
  12. data/bin/console +1 -0
  13. data/bin/whoisrb +3 -2
  14. data/data/ipv4.json +1 -3
  15. data/data/tld.json +2 -90
  16. data/lib/whois.rb +12 -10
  17. data/lib/whois/client.rb +4 -2
  18. data/lib/whois/errors.rb +4 -2
  19. data/lib/whois/record.rb +3 -1
  20. data/lib/whois/record/part.rb +4 -3
  21. data/lib/whois/server.rb +26 -21
  22. data/lib/whois/server/adapters/afilias.rb +4 -1
  23. data/lib/whois/server/adapters/arin.rb +5 -2
  24. data/lib/whois/server/adapters/arpa.rb +22 -19
  25. data/lib/whois/server/adapters/base.rb +4 -4
  26. data/lib/whois/server/adapters/formatted.rb +4 -2
  27. data/lib/whois/server/adapters/none.rb +3 -1
  28. data/lib/whois/server/adapters/not_implemented.rb +3 -1
  29. data/lib/whois/server/adapters/standard.rb +4 -2
  30. data/lib/whois/server/adapters/verisign.rb +4 -1
  31. data/lib/whois/server/adapters/web.rb +3 -1
  32. data/lib/whois/server/socket_handler.rb +8 -6
  33. data/lib/whois/version.rb +4 -2
  34. data/spec/integration/whois_spec.rb +6 -6
  35. data/spec/spec_helper.rb +4 -2
  36. data/spec/support/helpers/connectivity_helper.rb +2 -0
  37. data/spec/support/helpers/spec_helper.rb +2 -0
  38. data/spec/whois/client_spec.rb +6 -7
  39. data/spec/whois/record/part_spec.rb +4 -4
  40. data/spec/whois/record_spec.rb +9 -7
  41. data/spec/whois/server/adapters/afilias_spec.rb +3 -3
  42. data/spec/whois/server/adapters/arin_spec.rb +7 -8
  43. data/spec/whois/server/adapters/arpa_spec.rb +2 -2
  44. data/spec/whois/server/adapters/base_spec.rb +13 -13
  45. data/spec/whois/server/adapters/formatted_spec.rb +7 -7
  46. data/spec/whois/server/adapters/none_spec.rb +2 -2
  47. data/spec/whois/server/adapters/not_implemented_spec.rb +3 -3
  48. data/spec/whois/server/adapters/standard_spec.rb +5 -5
  49. data/spec/whois/server/adapters/verisign_spec.rb +3 -3
  50. data/spec/whois/server/adapters/web_spec.rb +3 -3
  51. data/spec/whois/server/socket_handler_spec.rb +7 -5
  52. data/spec/whois/server_spec.rb +31 -29
  53. data/spec/whois/{errors_spec.rb → web_interface_error_spec.rb} +4 -4
  54. data/spec/whois/whois_spec.rb +3 -3
  55. metadata +11 -8
  56. data/tasks/spec.rake +0 -199
data/CHANGELOG.md CHANGED
@@ -3,21 +3,36 @@
3
3
  This project uses [Semantic Versioning 2.0.0](http://semver.org/).
4
4
 
5
5
 
6
- #### Release 5.0.1
6
+ ## Release 5.0.2
7
7
 
8
- - CHANGED: Use `String#match?` rather than `#=~` to improve performance (GH-589). Thanks @casperisfine @byroot
9
- - CHANGED: Empty Hash allocation optimization (GH-588). Thanks @casperisfine @byroot
8
+ ### Changed
10
9
 
10
+ - SERVER: Update 43.0.0.0/8 allocation (GH-615). Thanks @taketo1113
11
+ - SERVER: Deleted .LIAISON, .MOVISTAR, .TELEFONICA, .BNL, .CARTIER, .EVERBANK, .LADBROKES, .PIAGET, .STARHUB, .MOPAR, .MOBILY, .ISELECT, .XN--MGBB9FBPOB, .DODGE, .WARMAN, .DUNS, .LANCOME, .CHRYSLER, .SRT, .UCONNECT
12
+ - SERVER: Update .STREAM
11
13
 
12
- #### Release 5.0.0
13
14
 
14
- - CHANGED: Minimum Ruby version 2.4
15
- - SERVER: Update Amazon Registry whois hosts
15
+ ## Release 5.0.1
16
16
 
17
- - FIXED: Fixed issue that prevented to query .CAT domains (GH-583).
17
+ ### Changed
18
18
 
19
+ - Use `String#match?` rather than `#=~` to improve performance (GH-589). Thanks @casperisfine @byroot
20
+ - Empty Hash allocation optimization (GH-588). Thanks @casperisfine @byroot
19
21
 
20
- #### Release 4.1.0
22
+
23
+ ## Release 5.0.0
24
+
25
+ ## Changed
26
+
27
+ - Update Amazon Registry whois hosts
28
+ - Minimum Ruby version 2.4
29
+
30
+ ## Fixed
31
+
32
+ - Fixed issue that prevented to query .CAT domains (GH-583).
33
+
34
+
35
+ ## Release 4.1.0
21
36
 
22
37
  - SERVER: Added .SS
23
38
  - SERVER: Update .ALLFINANZ, .CAM, .DVAG, .FRESENIUS, .POHL, .TUI, .XN--VERMGENSBERATER-CTB, .XN--VERMGENSBERATUNG-PWB, .ZUERICH, .BMW, .MINI, .BABY, .DESI, .SAARLAND, .ECO
@@ -26,58 +41,58 @@ This project uses [Semantic Versioning 2.0.0](http://semver.org/).
26
41
  - CHANGED: Reduce string allocations and retentions (GH-437). Thanks @casperisfine @byroot
27
42
 
28
43
 
29
- #### Release 4.0.8
44
+ ## Release 4.0.8
30
45
 
31
46
  - SERVER: Deleted .XPERIA, .TELECITY, .VISTA, .JLC, .PANERAI, .GOODHANDS, .STATOIL, .ACTIVE, .BLANCO, .EPOST, .SPIEGEL, .ZIPPO
32
47
  - SERVER: Updated .SHOP, .NAGOYA, .OKINAWA, .RYUKYU, .TOKYO, .YOKOHAMA, .ORGANIC, .XN--MGBAB2BD, .MW, .IN, .XN--2SCRJ9C, .XN--3HCRJ9C, .XN--45BR5CYL, .XN--45BRJ9C, .XN--FPCRJ9C3D, .XN--GECRJ9C, .XN--H2BREG3EVE, .XN--H2BRJ9C, .XN--H2BRJ9C8C, .XN--MGBBH1A, .XN--MGBBH1A71E, .XN--MGBGU82A, .XN--RVC1E0AM3E, .XN--S9BRJ9C, .XN--XKC2DL3A5EE0H, .COUNTRY
33
48
  - SERVER: Added .XN--MGBAH1A3HJKRD
34
49
 
35
50
 
36
- #### Release 4.0.7
51
+ ## Release 4.0.7
37
52
 
38
53
  - SERVER: Added .CHARITY, .INC
39
54
  - SERVER: Updated .COLOGNE, .KOELN, .IE, .AU
40
55
  - SERVER: Deleted .IWC
41
56
 
42
57
 
43
- #### Release 4.0.6
58
+ ## Release 4.0.6
44
59
 
45
60
  - SERVER: Added .SPORT, .LLC, .FM (GH-568)
46
61
  - SERVER: Updated .MUSEUM, .MR, .PR, .AI, .SMART, .BAIDU, .GE, several newGTLDs
47
62
  - SERVER: Deleted .HTC
48
63
 
49
64
 
50
- #### Release 4.0.5
65
+ ## Release 4.0.5
51
66
 
52
67
  - SERVER: Updated .ALIBABA, .ALIPAY, .HDFC, .SINA, .WEIBO, .XN--9KRT00A, .XN--JLQ61U9W7B
53
68
  - SERVER: Deleted .MCD, .MCDONALDS, .PAMPEREDCHEF, .MONTBLANK, .CHLOE
54
69
 
55
70
 
56
- #### Release 4.0.4
71
+ ## Release 4.0.4
57
72
 
58
73
  - SERVER: Added .MERCKMSD
59
74
  - SERVER: Updated .KOSHER, .LDS, .BESTBUY, .DUNLOP, .GOODYEAR, .TVS, .BNL, .HOMEDEPOT, .HUGHES, .IVECO, .LAMER, .LATINO, .LOCKER, .METLIFE, .MOBILE, .NEWHOLLAND, .OLLO, .ORIGINS, .OTT, .PHONE, .PNC, .SBI, .SCHOLARSHIPS, .SLING, .STATEBANK, .THD, .UPS, .WOLTERSKLUWER, .XN--NQV7FS00EMA, .DELTA, .STAR, .ALLY, .BCG, .BLOCKBUSTER, .CASE, .CASEIH, .CLINIQUE, .CRUISE, .CYOU, .DATA, .DISH, .DOT, .DTV, .FEDEX, .FERRARI, .GALLUP, .HELSINKI, .ICBC, .MASERATI, .MCKINSEY, .MONSTER, .MORMON, .XN, .XN
60
75
 
61
76
 
62
- #### Release 4.0.3
77
+ ## Release 4.0.3
63
78
 
64
79
  - FIXED: Updated Verisign adapter to properly detect the new label for referral servers (GH-559)
65
80
 
66
81
 
67
- #### Release 4.0.2
82
+ ## Release 4.0.2
68
83
 
69
84
  - SERVER: Added .AFRICA, .XN--MGBAI9AZGQP6J, .FUN, .RMIT, .HOSPITAL, .BOSTON, .DATA, .MOBILE, .PHONE, .HAIR, .LADBROKES, .CATHOLIC, .XN--80AQECDR1A, .XN--MGBI4ECEXP, .XN--TIQ49XQYJ, .RUGBY, .HOTELS, .GROCERY, .XN--MGBAAKC7DVF, .MAP, .PHD, .SEARCH, .XN--2SCRJ9C, .XN--45BR5CYL, .XN--H2BREG3EVE, .XN--H2BRJ9C8C, .XN--MGBBH1A, .XN--MGBGU82A, .XN--RVC1E0AM3E, .ETISALAT
70
85
  - SERVER: Updated .LINK (GH-543), .AR, .MQ, .ARCHI, .BIO, .SKY, .GF, .KG, .STORAGE, .BIBLE
71
86
  - SERVER: Deleted .IINET, .MUTUELLE, .FLSMIDTH, .MTPC
72
87
 
73
88
 
74
- #### Release 4.0.1
89
+ ## Release 4.0.1
75
90
 
76
91
  - SERVER: Added .FREE, .HK.COM, .HK.ORG, .LTD.HK, .INC.HK, .BOX, .CRUISE, .FOOD, .JIO, .MOTO, .RELIANCE, .RIL
77
92
  - SERVER: Updated .ONLINE, .SITE, .STC, .STCGROUP
78
93
 
79
94
 
80
- #### Release 4.0.0
95
+ ## Release 4.0.0
81
96
 
82
97
  The WHOIS parsers are no longer part of this repository, and they have been extracted into a separate repository at https://github.com/weppos/whois-parser.
83
98
 
@@ -106,7 +121,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
106
121
  - REMOVED: Deleted deprecated Whois.query method.
107
122
 
108
123
 
109
- #### Release 3.6.5
124
+ ## Release 3.6.5
110
125
 
111
126
  - SERVER: Added .PARS, .XN--MGBT3DHD, .REDUMBRELLA, .TRV, .TUSHU, .WATCHES, .XN--ECKVDTC9D, .KFH, .KPN, .SHELL, .TRAVELERSINSURANCE, .WANGGOU, .XN--KPU716F, .XN--NGBE9E0A, .XN--PBT977C, .FORD, .JMP, .LINCOLN, .SAS, .STORAGE, .XN--JLQ61U9W7B, .ANALYTICS, .MOBILITY, .XN--MGBB9FBPOB, .CONTACT, .PID, .STAR, .WEBER, .BOSCH, .DEALER, .FOX, .LAMER, .ORIGINS, .REXROTH, .SAFETY, .SCHAEFFLER, .STATEFARM
112
127
 
@@ -117,7 +132,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
117
132
  - CHANGED: Updated whois.tld.ee to the new response format (GH-489, GH-490). [thanks @tanelj]
118
133
 
119
134
 
120
- #### Release 3.6.4
135
+ ## Release 3.6.4
121
136
 
122
137
  - SERVER: Added .ROCHER, .XN--VUQ861B, .CITYEATS, .CREDITUNION, .LIFESTYLE, .VANA, .COMSEC, .FAIRWINDS, .GRAINGER, .TAB, .BROADWAY, .AUDI, .BOEHRINGER, .BOSTIK, .BUGATTI, .LAMBORGHINI, .VERISIGN, .VIP., .SFR, .INSURANCE, .MED, .NORTON, .SYMANTEC, .AUTHOR, .BOOK, .BOT, .BUY, .CALL, .CIRCLE, .FAST, .FIRESTONE, .GOT, .JOT, .JOY, .LIKE, .NOWRUZ, .PIN, .READ, .ROOM, .SAFE, .SALON, .SHARP, .SHIA, .SMILE, .TCI, .TRAVELERS, .ZERO
123
138
 
@@ -140,7 +155,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
140
155
  - CHANGED: whois.aero now recognizes reserved domains (GH-464, GH-418). [thanks @linrock]
141
156
 
142
157
 
143
- #### Release 3.6.3
158
+ ## Release 3.6.3
144
159
 
145
160
  - SERVER: Added .ACO, .AAA, .GEA, .STCGROUP, .VIVA, .GROUP, .CEB, .FAGE, .MOM, .AMICA, .STC, .CIPRIANI, .KINDER, .XN--11B4C3D, .XN--3PXU8K, .XN--42C2D9A, .XN--9DBQ2A, .XN--C2BR7G, .XN--FHBEI, .XN--J1AEF, .XN--MK1BU44C, .XN--PSSY2U, .XN--T60B56A, .XN--TCKWE, .XN--EFVY88H, .CSC, .CAR, .PROTECTION, .STADA, .THEATRE, .LINDE, .SECURITY, .BMS, .LTD, .OBI, .BOM, .FINAL, .HYUNDAI, .KIA, .SEVEN, .STOCKHOLM, .CLUBMED, .DELL, .ARAMCO, .XN--MGBA3A3EJT, .MOI, .MTR, .VIRGIN, .YAMAXUN, .GUCCI, .JAGUAR, .LANDROVER, .RWE, .ZARA, .MEO, .PING, .SAPO, .SBS, .AARP, .APPLE, .BEATS, .XN--MGBTX2B, .XN--QXAM
146
161
 
@@ -149,7 +164,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
149
164
  - SERVER: Disabled whois.edu.cn as it has not been working for the last 6 years (GH-59).
150
165
 
151
166
 
152
- #### Release 3.6.2
167
+ ## Release 3.6.2
153
168
 
154
169
  - SERVER: Updated .LOVE
155
170
 
@@ -160,7 +175,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
160
175
  - CHANGED: Added expires_on at "co.jp" domain (GH-437). [thanks @kubihie]
161
176
 
162
177
 
163
- #### Release 3.6.1
178
+ ## Release 3.6.1
164
179
 
165
180
  - SERVER: Added .co.com (GH-428) [thanks @turigabor], .STATOIL, .CROWN, .ACCOUNTANT, .DATE, .DOHA, .DOWNLOAD, .FAITH, .LOAN, .MOVIE, .MTN, .PANERAI, .REVIEW, .TICKETS, .WIN, .ACCENTURE, .NEC, .PHILIPS, .XN--FJQ720A, .COUPONS, .ICBC, .SOCCER, .FYI, .JLL, .MBA, .THD, .BBVA, .SANDVIK, .SANDVIKCOROMANT, .WALTER, .AIRTEL, .BARCELONA, .BCN, .GAME, .JPRS, .LIVE, .STUDIO, .BING, .HOTMAIL, .JLC, .MICROSOFT, .WINDOWS, .PLAY, .AEG, .DRIVE, .GENTING, .CBA, .COMMBANK, .NETBANK, .RICOH, .STARHUB, .VISTA, .VISTAPRINT, .OFFICE, .SCOR, .SKYPE, .LAW, .BNL, .BRADESCO, .HOTELES, .OMEGA, .SWATCH, .TELEFONICA, .LANCASTER, .NOKIA, .ICE, .ITAU, .LEXUS, .MAN, .BET, .SANOFI, .SRL, .TATAMOTORS, .IPIRANGA, .LEXUS, .PET, .TOYOTA, .LIXIL, .BOOTS, .CHANEL, .VIN, .WINE, .XPERIA, .GIVING, .FAMILY, .SEEK
166
181
 
@@ -171,7 +186,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
171
186
  - CHANGED: Updated whois.nic.as to the new response format (GH-334). [thanks @case]
172
187
 
173
188
 
174
- #### Release 3.6.0
189
+ ## Release 3.6.0
175
190
 
176
191
  - SERVER: Added .MMA, .XN--30RR7Y, .LOVE, .SCHOLARSHIPS, .XN--NYQY26A, .CYOU, .RACING, .XN--KCRX77D1X4A, .DOOSAN, .GARDEN, .IWC, .LIDL, .OSAKA, .SCHWARZ, .SEW, .SALE, .VIDEO, .ZUERICH, .SHRIRAM, .BANK, .FIT, .KDDI, .LAT, .LOTTE, .MARRIOTT, .BARCLAYCARD, .BARCLAYS, .DABUR, .DCLK, .DESIGN, .GOOG, .HANGOUT, .HERMES, .IFM, .JCB, .TEMASEK, .XN--B4W605FERD, .BINGO, .CANON, .CHAT, .STYLE, .TENNIS, .TOSHIBA, .CASINO, .FANS, .FOOTBALL, .GOLDPOINT, .SCHOOL, .YODOBASHI, .EPSON, .GOO, .JAVA, .LECLERC, .ORACLE, .MAIF, .XN--MXTQ1M, .DATSUN, .INFINITI, .MTPC, .NISSAN, .BROTHER, .CHLOE, .ERNI, .FOREX, .MARKETS, .CFD, .SPREADBETTING, .TRADING, .FAN, .ONLINE, .PAGE, .PIAGET, .SITE, .BBC, .NEWS, .TECH, .KOMATSU, .SAP, .BOND, .XN--9ET52U, .AFL, .REDSTONE, .SEAT, .SEX, .BROKER, .DOG, .RENT, .SWISS, .HONDA, .WEIR, .BRIDGESTONE, .HITACHI, .SENER, .TORAY, .SKY, .XN--IMR513N, .BIBLE, .HOMEDEPOT, .XBOX, .AZURE, .ICU, .THEATER, .EARTH, .EXPRESS, .CAFE, .BAUHAUS, .ADS, .FILM, .GOLD, .GOLF, .GUGE, .PLUS, .TOURS, .XN--VUQ861B, .JEWELRY, .SHOW, .SONY, .TEAM, .XEROX, .AIG, .AUTO, .CARS, .CFA, .LIAISON, .LOL, .NADEX, .HOCKEY, .RUN, .TAXI, .XN--ESTV75G, .XN--MGBPL2FH, .XN--Y9A3AQ, .CORSICA, .LUPIN, .APP, .SAKURA, .BENTLEY, .HSBC, .IINET, .ORANGE, .FORUM, .REALTY, .AUTOS, .LASALLE, .MONTBLANC, .BHARTI, .SNCF, .MEN
177
192
 
@@ -186,7 +201,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
186
201
  - CHANGED: Updated .MA parser and definition from whois.iam.net.ma to whois.registre.ma
187
202
 
188
203
 
189
- #### Release 3.5.9
204
+ ## Release 3.5.9
190
205
 
191
206
  - SERVER: Added .KYOTO, .ONE, .CRICKET, .PARTY, .XN--45Q11C, XN--CZRS0T, .SAMSUNG, .CARTIER, .ADULT, .EUROVISION, .FASHION, .PORN, .TRUST, .KOELN, .XN--C1AVG, .NYC, .SAMSUNG, .COACH, .EVERBANK, .LEGAL, .MEMORIAL, .MONEY, .AQUARELLE, .IRISH, .LATROBE, .XN--HXT814E, .SKY, .DEV, .DOCS, .TYRES, .DOOSAN, .NTT, .AMSTERDAM, .FLOWERS, .GGEE, .CBN, .GDN, .APARTMENTS, .NICO, .SAXO, .BOATS, .COURSES, .STUDY, .SUCKS, .XN--90AIS, .ABBOTT, .PICTET, .XIN, .FANS
192
207
 
@@ -195,7 +210,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
195
210
  - FIXED: whois.schlund.info crashes with empty update date (GH-398). [thanks @alexaitken]
196
211
 
197
212
 
198
- #### Release 3.5.8
213
+ ## Release 3.5.8
199
214
 
200
215
  - SERVER: Created .FIRMDALE, .MADRID, .XN--FLW351E, .XN--QCKA1PMC, .LDS, .MORMON
201
216
 
@@ -208,14 +223,14 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
208
223
  - FIXED: Fixed the ARIN referral regex to correctly consider ports optional (GH-350). [thanks @jrideout]
209
224
 
210
225
 
211
- #### Release 3.5.7
226
+ ## Release 3.5.7
212
227
 
213
228
  - SERVER: Updated .AW, .BW, .GQ, .MK, .ML, .MZ, .PF, .VU, .ZM, .KIWI, .CAREER, .REISE, .VERSICHERUNG, .HOST, .PRESS, .HAMBURG, .BRUSSELS, .VLAANDEREN
214
229
 
215
230
  - SERVER: Created .BLOOMBERG, .ENERGY, .YANDEX, .PRAXI, .WHOSWHO, .WILLIAMHILL, .SUZUKI, .SCIENCE, .REALTOR, .SYDNEY, .TAIPEI, .DELIVERY, .DIRECT, .PLACE, .CITY, .DEALS, .AUCTION, .HEALTHCARE, .CANCERRESEARCH, .CUISINELLA, .SCHMIDT, .MELBOURNE, .KRD, .NRW, .SCB, .LACAIXA, .LGBT, .NGO, .ONG, .SPIEGEL, .NRA, .GENT, .REIT, .ANDROID, .TOP, .WALES, .SCA, .BNPPARIBAS, .EMERCK, .TATAR, .CYMRU, .RESTAURANT, .SARL, .XN--1QQW23A, .XN--XHQ521B, .NETWORK, .BUSINESS, .XN--VHQUV, .GIFTS, .HOSTING, .HELP, .DIET, .OOO, .UOL, .PROPERTY, .LTDA, .HOW, .CARAVAN, .CLICK, .CERN, .HERE, .ESQ, .GMAIL, .YOUTUBE, .PROD, .GBIZ, .IMMO, .OTSUKA, .DAD, .BOO, .DAY, .EAT, .FRL, .MOV, .NEW, .RSVP, .MEME, .ZIP, .PROF, .NEXUS, .GOOGLE, .GLE, .FLY, .CHROME, .CHANNEL, .CAL, .ING, .WORLD, .PIZZA, .PHARMACY, .WME, .GMX, .HOMES, .HORSE, .XN--P1ACF, .TUI, .POHL, .ALLFINANZ, .DVAG, .XN--VERMGENSBERATUNG-PWB, .XN--VERMGENSBERATER-CTB, .FORSALE, .IBM, .ALSACE, .ABOGADO, .BAND, .CRS, .FLSMIDTH, .POKER, .RIP, .WEDDING, .YOGA, .BUDAPEST, .CASA, .WORK
216
231
 
217
232
 
218
- #### Release 3.5.6
233
+ ## Release 3.5.6
219
234
 
220
235
  - SERVER: Created .AUDIO, .BEER, .CHURCH, .GUIDE, .HIPHOP, .JUEGOS, .LIFE, .LOANS, .LUXE, .BEST, .AUTOS, .HOMES, .MOTORCYCLES, .REISE, .RIO, .VERSICHERUNG, .YACHTS, .XN, .DEGREE, .SPACE, .WEBSITE, .ATTORNEY, .DENTIST, .HIV, .HOST, .LAWYER, .MARKET, .MORTGAGE, .PRESS, .SOFTWARE, .VET, .BIO, .ARMY, .ENGINEER, .GIVES, .HAMBURG, .NAVY, .NHK, .REHAB, .REPUBLICAN, .TIROL, .GLOBAL, .ORGANIC, .SCOT, .BZH, .XN, .BRUSSELS, .SURF, .VLAANDEREN, .CAPETOWN, .DURBAN, .GREEN, .JOBURG, .LOTTO, .OVH, .PHYSIO, .BMW, .CEO, .MINI, .ACTIVE
221
236
 
@@ -226,7 +241,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
226
241
  - FIXED: whois.register.com parser crashes when the update date is empty (GH-353). [thanks @alexaitken]
227
242
 
228
243
 
229
- #### Release 3.5.5
244
+ ## Release 3.5.5
230
245
 
231
246
  - NEW: Added registrar and contact support for whois.dns.lu (GH-329). [thanks @huyphan]
232
247
 
@@ -241,7 +256,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
241
256
  - FIXED: whois.nic.gd parser crashes when the domain is reserved (GH-335). [thanks @case]
242
257
 
243
258
 
244
- #### Release 3.5.4
259
+ ## Release 3.5.4
245
260
 
246
261
  - SERVER: Created .QUEBEC, .COLLEGE, .DESI, .FEEDBACK, .ROCKS, .XN, .ASSOCIATES, .CAPITAL, .CAREER, .ENGINEERING, .EUS, .GAL, .GRIPE, .LEASE, .MEDIA, .PICTURES, .REISEN, .SERVICES, .TOWN, .TOYS, .UNIVERSITY, .XN, .FOO, .FROGANS, .PARIS, .SOY, .BLACKFRIDAY, .CLINIC, .FITNESS, .SCHULE, .CARE, .CASH, .DENTAL, .DISCOUNT, .EXCHANGE, .FAIL, .FINANCIAL, .FUND, .FURNITURE, .GRATIS, .INVESTMENTS, .LIMITED, .SURGERY, .TAX, .WTF, .MOSCOW, .XN, .CREDITCARD, .FINANCE, .INSURE, .WTC, .AIRFORCE, .BAYERN, .GLOBO, .ACCOUNTANTS, .CLAIMS, .CREDIT, .DIGITAL
247
262
 
@@ -262,17 +277,17 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
262
277
  - CHANGED: whois.cctld.uz now supports updated_on (GH-315). [thanks @huyphan]
263
278
 
264
279
 
265
- #### Release 3.5.3
280
+ ## Release 3.5.3
266
281
 
267
282
  - CHANGED: Updated whois.pir.org to the new response format.
268
283
 
269
284
 
270
- #### Release 3.5.2
285
+ ## Release 3.5.2
271
286
 
272
287
  - SERVER: Added new gTLDs
273
288
 
274
289
 
275
- #### Release 3.5.1
290
+ ## Release 3.5.1
276
291
 
277
292
  - NEW: Added whois.corporatedomains.com parser (GH-311). [thanks @huyphan]
278
293
 
@@ -287,7 +302,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
287
302
  - FIXED: whois.ua parser crashes when the status is clientTransferProhibited.
288
303
 
289
304
 
290
- #### Release 3.5.0
305
+ ## Release 3.5.0
291
306
 
292
307
  - SERVER: Updated list of latest ASN allocations of 16-bit & 32-bit ASN's from IANA (GH-293). [thanks @itsbalamurali]
293
308
 
@@ -304,7 +319,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
304
319
  - FIXED: whois.registry.net.za parser crashes with some registrant contact formats.
305
320
 
306
321
 
307
- #### Release 3.4.5
322
+ ## Release 3.4.5
308
323
 
309
324
  - SERVER: Added new IDN TLDs: .XN--3BST00M, .XN--3DS443G, .XN--55QX5D, .XN--6FRZ82G, .XN--6QQ986B3XL, .XN--FIQ228C5HS, .XN--FIQ64B, .XN--IO0A7I, .XN--CG4BKI, .XN--MGBAB2BD, .XN--55QW42G, .XN--ZFR164B
310
325
 
@@ -329,7 +344,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
329
344
  - CHANGED: Afilias is using a slightly different whois response for some TLDs, including .INFO and .XXX (GH-304)
330
345
 
331
346
 
332
- #### Release 3.4.4
347
+ ## Release 3.4.4
333
348
 
334
349
  - CHANGED: Updated IBC parser and fixtures (.IO, .AC, .SH and .TM).
335
350
 
@@ -338,7 +353,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
338
353
  - CHANGED: Updated whois.pir.org parser to the new response format (GH-300). [thanks @muffinista]
339
354
 
340
355
 
341
- #### Release 3.4.3
356
+ ## Release 3.4.3
342
357
 
343
358
  - SERVER: Updated .COM, .NET, .CC, .WS TLD definitions.
344
359
 
@@ -361,14 +376,14 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
361
376
  - CHANGED: Updated whois.nic.gl parser to the new response format.
362
377
 
363
378
 
364
- #### Release 3.4.2
379
+ ## Release 3.4.2
365
380
 
366
381
  - CHANGED: Updated whois.registry.net.za parser to the new response format.
367
382
 
368
383
  - CHANGED: Updated whois.ascio.com parser to the new response format (GH-285). [thanks @takama]
369
384
 
370
385
 
371
- #### Release 3.4.1
386
+ ## Release 3.4.1
372
387
 
373
388
  - SERVER: Updated .XN--NGBC5AZD IDN TLD definition.
374
389
 
@@ -391,7 +406,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
391
406
  - CHANGED: Updated whois.gandi.net parser to the new response format.
392
407
 
393
408
 
394
- #### Release 3.4.0
409
+ ## Release 3.4.0
395
410
 
396
411
  - SERVER: Added .XN--MGBX4CD0AB (.ایران, Iran) IDN TLD definition.
397
412
 
@@ -428,7 +443,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
428
443
  - CHANGED: Updated whois.register.com parser to the new response format (GH-273). [thanks @gromnsk]
429
444
 
430
445
 
431
- #### Release 3.3.1
446
+ ## Release 3.3.1
432
447
 
433
448
  - SERVER: Updated .KR, .ES (GH-267) TLD definitions.
434
449
 
@@ -439,7 +454,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
439
454
  - CHANGED: Updated whois.enom.com parser to the new response format (GH-269). [thanks @takama]
440
455
 
441
456
 
442
- #### Release 3.3.0
457
+ ## Release 3.3.0
443
458
 
444
459
  - SERVER: Added .CF TLD definition.
445
460
 
@@ -462,7 +477,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
462
477
  - FIXED: whois.jprs.jp should support `Registered` status (GH-253). [thanks @Pietr]
463
478
 
464
479
 
465
- #### Release 3.2.1
480
+ ## Release 3.2.1
466
481
 
467
482
  - NEW: Added full whois.nic.tr parser.
468
483
 
@@ -483,7 +498,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
483
498
  - CHANGED: Deprecate Whois::Record::Contact::TYPE_ADMIN in favor of Whois::Record::Contact::TYPE_ADMINISTRATIVE
484
499
 
485
500
 
486
- #### Release 3.2.0
501
+ ## Release 3.2.0
487
502
 
488
503
  - SERVER: Added .JP.NET (GH-240), XN--J1AMH TLD definitions.
489
504
 
@@ -506,7 +521,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
506
521
  - FIXED: Arin adapter is incorrectly passing an Arin flag to referral queries.
507
522
 
508
523
 
509
- #### Release 3.1.3
524
+ ## Release 3.1.3
510
525
 
511
526
  - SERVER: Updated .GD (GH-227), .TC (GH-228) TLD definitions.
512
527
 
@@ -523,7 +538,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
523
538
  - FIXED: whois.ua is mixing two kinds of responses (GH-235).
524
539
 
525
540
 
526
- #### Release 3.1.2
541
+ ## Release 3.1.2
527
542
 
528
543
  - NEW: Added full whois.comlaude.com parser (GH-222). [thanks @delwyn]
529
544
 
@@ -542,12 +557,12 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
542
557
  - FIXED: whois.nic.fr parser crashes when the contact has no changed attribute (GH-226).
543
558
 
544
559
 
545
- #### Release 3.1.1
560
+ ## Release 3.1.1
546
561
 
547
562
  - FIXED: Fixed CLI crash (GH-219). [thanks @linrock]
548
563
 
549
564
 
550
- #### Release 3.1.0
565
+ ## Release 3.1.0
551
566
 
552
567
  - SERVER: Added .POST (GH-192) TLD definition.
553
568
 
@@ -578,7 +593,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
578
593
  - FIXED: Record#technical_contact raised a NoMethodError (GH-217). [thanks @yspro]
579
594
 
580
595
 
581
- #### Release 3.0.0
596
+ ## Release 3.0.0
582
597
 
583
598
  - SERVER: Added .AX TLD definition.
584
599
 
@@ -720,7 +735,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
720
735
  - Whois::PropertyNotAvailable -> Whois::AttributeNotImplemented
721
736
 
722
737
 
723
- #### Release 2.7.0
738
+ ## Release 2.7.0
724
739
 
725
740
  - SERVER: Added .IQ TLD server (GH-171).
726
741
 
@@ -759,7 +774,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
759
774
  - CHANGED: whois.dns.pl now supports expires_on (GH-185). [thanks @y3ti]
760
775
 
761
776
 
762
- #### Release 2.6.4
777
+ ## Release 2.6.4
763
778
 
764
779
  - SERVER: Added .CW TLD server.
765
780
 
@@ -794,7 +809,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
794
809
  - CHANGED: Removed support for .gemtest and removed /spec folder from the packaged gem.
795
810
 
796
811
 
797
- #### Release 2.6.3
812
+ ## Release 2.6.3
798
813
 
799
814
  - NEW: whois.registrypro.pro is now a full parser.
800
815
 
@@ -807,7 +822,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
807
822
  - CHANGED: Updated whois.registrypro.pro parser to the new response format.
808
823
 
809
824
 
810
- #### Release 2.6.2
825
+ ## Release 2.6.2
811
826
 
812
827
  - SERVER: Added .SX TLD server (GH-170).
813
828
 
@@ -818,7 +833,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
818
833
  - NEW: whois.ua parser is now a full parser (GH-169). [thanks @Uko]
819
834
 
820
835
 
821
- #### Release 2.6.1
836
+ ## Release 2.6.1
822
837
 
823
838
  - Reverted partial commit about .SX definitions included in v2.6.0 by mistake.
824
839
 
data/Gemfile CHANGED
@@ -1,3 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
6
+
7
+ gem "rubocop", "1.11.0", require: false
8
+ gem 'rubocop-rspec', require: false
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2009-2020 Simone Carletti
3
+ Copyright (c) 2009-2021 Simone Carletti
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -213,4 +213,4 @@ Report issues or feature requests to [GitHub Issues](https://github.com/weppos/w
213
213
 
214
214
  ## License
215
215
 
216
- Copyright (c) 2009-2020 [Simone Carletti](https://simonecarletti.com/). This is Free Software distributed under the MIT license.
216
+ Copyright (c) 2009-2021 [Simone Carletti](https://simonecarletti.com/). This is Free Software distributed under the MIT license.
data/Rakefile CHANGED
@@ -1,33 +1,28 @@
1
- require 'bundler/gem_tasks'
1
+ # frozen_string_literal: true
2
2
 
3
+ require "bundler/gem_tasks"
3
4
 
4
- # Run test by default.
5
- task :default => :spec
6
- task :test => :spec
5
+ task default: [:test, :rubocop]
7
6
 
8
7
 
9
- require 'rspec/core/rake_task'
8
+ require "rspec/core/rake_task"
10
9
 
11
10
  RSpec::Core::RakeTask.new do |t|
12
11
  t.verbose = !ENV["VERBOSE"].nil?
13
12
  end
14
13
 
14
+ task test: :spec
15
15
 
16
- require 'yard'
17
16
 
18
- YARD::Rake::YardocTask.new(:yardoc) do |y|
19
- y.options = ["--output-dir", "yardoc"]
20
- end
17
+ require "rubocop/rake_task"
21
18
 
22
- namespace :yardoc do
23
- task :clobber do
24
- rm_r "yardoc" rescue nil
25
- end
26
- end
19
+ RuboCop::RakeTask.new
27
20
 
28
- task :clobber => "yardoc:clobber"
29
21
 
22
+ require "yard/rake/yardoc_task"
30
23
 
31
- Dir["tasks/**/*.rake"].each do |file|
32
- load(file)
24
+ YARD::Rake::YardocTask.new(:yardoc) do |y|
25
+ y.options = ["--output-dir", "yardoc"]
33
26
  end
27
+
28
+ CLOBBER.include "yardoc"