whois 5.0.1 → 5.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +6 -2
  3. data/.github/dependabot.yml +19 -0
  4. data/.github/workflows/codeql-analysis.yml +64 -0
  5. data/.github/workflows/release.yml +16 -0
  6. data/.github/workflows/tests.yml +30 -0
  7. data/.rubocop.yml +27 -0
  8. data/.rubocop_opinionated.yml +135 -0
  9. data/.rubocop_todo.yml +166 -0
  10. data/.simplecov +2 -0
  11. data/.tool-versions +1 -0
  12. data/CHANGELOG.md +86 -54
  13. data/CONTRIBUTING.md +12 -12
  14. data/Gemfile +6 -1
  15. data/LICENSE.txt +1 -1
  16. data/README.md +22 -22
  17. data/Rakefile +12 -17
  18. data/bin/console +1 -0
  19. data/bin/whoisrb +4 -3
  20. data/data/ipv4.json +1 -3
  21. data/data/tld.json +10 -103
  22. data/lib/whois/client.rb +4 -2
  23. data/lib/whois/errors.rb +4 -2
  24. data/lib/whois/record/part.rb +5 -4
  25. data/lib/whois/record.rb +4 -2
  26. data/lib/whois/server/adapters/afilias.rb +4 -1
  27. data/lib/whois/server/adapters/arin.rb +7 -4
  28. data/lib/whois/server/adapters/arpa.rb +20 -19
  29. data/lib/whois/server/adapters/base.rb +26 -40
  30. data/lib/whois/server/adapters/formatted.rb +4 -2
  31. data/lib/whois/server/adapters/none.rb +3 -1
  32. data/lib/whois/server/adapters/not_implemented.rb +3 -1
  33. data/lib/whois/server/adapters/standard.rb +4 -2
  34. data/lib/whois/server/adapters/verisign.rb +4 -1
  35. data/lib/whois/server/adapters/web.rb +3 -1
  36. data/lib/whois/server/socket_handler.rb +8 -6
  37. data/lib/whois/server.rb +41 -47
  38. data/lib/whois/version.rb +4 -2
  39. data/lib/whois.rb +15 -13
  40. data/spec/integration/whois_spec.rb +7 -7
  41. data/spec/spec_helper.rb +4 -4
  42. data/spec/support/helpers/connectivity_helper.rb +3 -3
  43. data/spec/support/helpers/spec_helper.rb +2 -0
  44. data/spec/whois/client_spec.rb +8 -9
  45. data/spec/whois/record/part_spec.rb +4 -4
  46. data/spec/whois/record_spec.rb +11 -9
  47. data/spec/whois/server/adapters/afilias_spec.rb +4 -4
  48. data/spec/whois/server/adapters/arin_spec.rb +9 -10
  49. data/spec/whois/server/adapters/arpa_spec.rb +2 -2
  50. data/spec/whois/server/adapters/base_spec.rb +13 -13
  51. data/spec/whois/server/adapters/formatted_spec.rb +8 -8
  52. data/spec/whois/server/adapters/none_spec.rb +2 -2
  53. data/spec/whois/server/adapters/not_implemented_spec.rb +4 -4
  54. data/spec/whois/server/adapters/standard_spec.rb +5 -5
  55. data/spec/whois/server/adapters/verisign_spec.rb +5 -5
  56. data/spec/whois/server/adapters/web_spec.rb +4 -4
  57. data/spec/whois/server/socket_handler_spec.rb +7 -5
  58. data/spec/whois/server_spec.rb +31 -29
  59. data/spec/whois/{errors_spec.rb → web_interface_error_spec.rb} +4 -4
  60. data/spec/whois/whois_spec.rb +3 -3
  61. data/whois.gemspec +10 -10
  62. metadata +16 -11
  63. data/.travis.yml +0 -18
  64. data/bin/setup +0 -8
  65. data/tasks/spec.rake +0 -199
data/CHANGELOG.md CHANGED
@@ -3,21 +3,53 @@
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.1.1
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: Updated .UNO (GH-648)
11
+ - SERVER: Updated .OVH (GH-647)
12
+ - SERVER: Updated .TV (GH-657)
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.1.0
16
16
 
17
- - FIXED: Fixed issue that prevented to query .CAT domains (GH-583).
17
+ ### Changed
18
18
 
19
+ - SERVER: Deleted .VISTAPRINT, .XN--ESTV75G
20
+ - CHANGED: Eager load all adapters (GH-644). Thanks @casperisfine @byroot
19
21
 
20
- #### Release 4.1.0
22
+
23
+ ## Release 5.0.2
24
+
25
+ ### Changed
26
+
27
+ - SERVER: Update 43.0.0.0/8 allocation (GH-615). Thanks @taketo1113
28
+ - SERVER: Deleted .LIAISON, .MOVISTAR, .TELEFONICA, .BNL, .CARTIER, .EVERBANK, .LADBROKES, .PIAGET, .STARHUB, .MOPAR, .MOBILY, .ISELECT, .XN--MGBB9FBPOB, .DODGE, .WARMAN, .DUNS, .LANCOME, .CHRYSLER, .SRT, .UCONNECT
29
+ - SERVER: Update .STREAM
30
+
31
+
32
+ ## Release 5.0.1
33
+
34
+ ### Changed
35
+
36
+ - Use `String#match?` rather than `#=~` to improve performance (GH-589). Thanks @casperisfine @byroot
37
+ - Empty Hash allocation optimization (GH-588). Thanks @casperisfine @byroot
38
+
39
+
40
+ ## Release 5.0.0
41
+
42
+ ## Changed
43
+
44
+ - Update Amazon Registry whois hosts
45
+ - Minimum Ruby version 2.4
46
+
47
+ ## Fixed
48
+
49
+ - Fixed issue that prevented to query .CAT domains (GH-583).
50
+
51
+
52
+ ## Release 4.1.0
21
53
 
22
54
  - SERVER: Added .SS
23
55
  - SERVER: Update .ALLFINANZ, .CAM, .DVAG, .FRESENIUS, .POHL, .TUI, .XN--VERMGENSBERATER-CTB, .XN--VERMGENSBERATUNG-PWB, .ZUERICH, .BMW, .MINI, .BABY, .DESI, .SAARLAND, .ECO
@@ -26,58 +58,58 @@ This project uses [Semantic Versioning 2.0.0](http://semver.org/).
26
58
  - CHANGED: Reduce string allocations and retentions (GH-437). Thanks @casperisfine @byroot
27
59
 
28
60
 
29
- #### Release 4.0.8
61
+ ## Release 4.0.8
30
62
 
31
63
  - SERVER: Deleted .XPERIA, .TELECITY, .VISTA, .JLC, .PANERAI, .GOODHANDS, .STATOIL, .ACTIVE, .BLANCO, .EPOST, .SPIEGEL, .ZIPPO
32
64
  - 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
65
  - SERVER: Added .XN--MGBAH1A3HJKRD
34
66
 
35
67
 
36
- #### Release 4.0.7
68
+ ## Release 4.0.7
37
69
 
38
70
  - SERVER: Added .CHARITY, .INC
39
71
  - SERVER: Updated .COLOGNE, .KOELN, .IE, .AU
40
72
  - SERVER: Deleted .IWC
41
73
 
42
74
 
43
- #### Release 4.0.6
75
+ ## Release 4.0.6
44
76
 
45
77
  - SERVER: Added .SPORT, .LLC, .FM (GH-568)
46
78
  - SERVER: Updated .MUSEUM, .MR, .PR, .AI, .SMART, .BAIDU, .GE, several newGTLDs
47
79
  - SERVER: Deleted .HTC
48
80
 
49
81
 
50
- #### Release 4.0.5
82
+ ## Release 4.0.5
51
83
 
52
84
  - SERVER: Updated .ALIBABA, .ALIPAY, .HDFC, .SINA, .WEIBO, .XN--9KRT00A, .XN--JLQ61U9W7B
53
85
  - SERVER: Deleted .MCD, .MCDONALDS, .PAMPEREDCHEF, .MONTBLANK, .CHLOE
54
86
 
55
87
 
56
- #### Release 4.0.4
88
+ ## Release 4.0.4
57
89
 
58
90
  - SERVER: Added .MERCKMSD
59
91
  - 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
92
 
61
93
 
62
- #### Release 4.0.3
94
+ ## Release 4.0.3
63
95
 
64
96
  - FIXED: Updated Verisign adapter to properly detect the new label for referral servers (GH-559)
65
97
 
66
98
 
67
- #### Release 4.0.2
99
+ ## Release 4.0.2
68
100
 
69
101
  - 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
102
  - SERVER: Updated .LINK (GH-543), .AR, .MQ, .ARCHI, .BIO, .SKY, .GF, .KG, .STORAGE, .BIBLE
71
103
  - SERVER: Deleted .IINET, .MUTUELLE, .FLSMIDTH, .MTPC
72
104
 
73
105
 
74
- #### Release 4.0.1
106
+ ## Release 4.0.1
75
107
 
76
108
  - SERVER: Added .FREE, .HK.COM, .HK.ORG, .LTD.HK, .INC.HK, .BOX, .CRUISE, .FOOD, .JIO, .MOTO, .RELIANCE, .RIL
77
109
  - SERVER: Updated .ONLINE, .SITE, .STC, .STCGROUP
78
110
 
79
111
 
80
- #### Release 4.0.0
112
+ ## Release 4.0.0
81
113
 
82
114
  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
115
 
@@ -89,7 +121,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
89
121
  - SERVER: Updated .CASA, .MEET, .WORK, .SURF, .XN--54B7FTA0CC, .CO.ZA [thanks @ranaldobowker], .MOBI
90
122
 
91
123
  - CHANGED: Definitions are now private and you cannot access/modify the internal representation directly. Instead, use the accessor methods.
92
- - CHANGED: Definitions internal representation changed to be indexed. This change drastically improved the lookup performances for domains, as well fixing the bug GH-536 where the order of the definitions were relevant.
124
+ - CHANGED: Definitions internal representation changed to be indexed. This change drastically improved the lookup performances for domains, as well fixing the bug GH-536 where the order of the definitions were relevant.
93
125
 
94
126
  **beta-2**
95
127
 
@@ -106,7 +138,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
106
138
  - REMOVED: Deleted deprecated Whois.query method.
107
139
 
108
140
 
109
- #### Release 3.6.5
141
+ ## Release 3.6.5
110
142
 
111
143
  - 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
144
 
@@ -117,7 +149,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
117
149
  - CHANGED: Updated whois.tld.ee to the new response format (GH-489, GH-490). [thanks @tanelj]
118
150
 
119
151
 
120
- #### Release 3.6.4
152
+ ## Release 3.6.4
121
153
 
122
154
  - 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
155
 
@@ -140,7 +172,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
140
172
  - CHANGED: whois.aero now recognizes reserved domains (GH-464, GH-418). [thanks @linrock]
141
173
 
142
174
 
143
- #### Release 3.6.3
175
+ ## Release 3.6.3
144
176
 
145
177
  - 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
178
 
@@ -149,7 +181,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
149
181
  - SERVER: Disabled whois.edu.cn as it has not been working for the last 6 years (GH-59).
150
182
 
151
183
 
152
- #### Release 3.6.2
184
+ ## Release 3.6.2
153
185
 
154
186
  - SERVER: Updated .LOVE
155
187
 
@@ -160,7 +192,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
160
192
  - CHANGED: Added expires_on at "co.jp" domain (GH-437). [thanks @kubihie]
161
193
 
162
194
 
163
- #### Release 3.6.1
195
+ ## Release 3.6.1
164
196
 
165
197
  - 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
198
 
@@ -171,7 +203,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
171
203
  - CHANGED: Updated whois.nic.as to the new response format (GH-334). [thanks @case]
172
204
 
173
205
 
174
- #### Release 3.6.0
206
+ ## Release 3.6.0
175
207
 
176
208
  - 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
209
 
@@ -186,7 +218,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
186
218
  - CHANGED: Updated .MA parser and definition from whois.iam.net.ma to whois.registre.ma
187
219
 
188
220
 
189
- #### Release 3.5.9
221
+ ## Release 3.5.9
190
222
 
191
223
  - 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
224
 
@@ -195,7 +227,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
195
227
  - FIXED: whois.schlund.info crashes with empty update date (GH-398). [thanks @alexaitken]
196
228
 
197
229
 
198
- #### Release 3.5.8
230
+ ## Release 3.5.8
199
231
 
200
232
  - SERVER: Created .FIRMDALE, .MADRID, .XN--FLW351E, .XN--QCKA1PMC, .LDS, .MORMON
201
233
 
@@ -208,14 +240,14 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
208
240
  - FIXED: Fixed the ARIN referral regex to correctly consider ports optional (GH-350). [thanks @jrideout]
209
241
 
210
242
 
211
- #### Release 3.5.7
243
+ ## Release 3.5.7
212
244
 
213
245
  - SERVER: Updated .AW, .BW, .GQ, .MK, .ML, .MZ, .PF, .VU, .ZM, .KIWI, .CAREER, .REISE, .VERSICHERUNG, .HOST, .PRESS, .HAMBURG, .BRUSSELS, .VLAANDEREN
214
246
 
215
247
  - 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
248
 
217
249
 
218
- #### Release 3.5.6
250
+ ## Release 3.5.6
219
251
 
220
252
  - 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
253
 
@@ -226,7 +258,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
226
258
  - FIXED: whois.register.com parser crashes when the update date is empty (GH-353). [thanks @alexaitken]
227
259
 
228
260
 
229
- #### Release 3.5.5
261
+ ## Release 3.5.5
230
262
 
231
263
  - NEW: Added registrar and contact support for whois.dns.lu (GH-329). [thanks @huyphan]
232
264
 
@@ -241,7 +273,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
241
273
  - FIXED: whois.nic.gd parser crashes when the domain is reserved (GH-335). [thanks @case]
242
274
 
243
275
 
244
- #### Release 3.5.4
276
+ ## Release 3.5.4
245
277
 
246
278
  - 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
279
 
@@ -262,17 +294,17 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
262
294
  - CHANGED: whois.cctld.uz now supports updated_on (GH-315). [thanks @huyphan]
263
295
 
264
296
 
265
- #### Release 3.5.3
297
+ ## Release 3.5.3
266
298
 
267
299
  - CHANGED: Updated whois.pir.org to the new response format.
268
300
 
269
301
 
270
- #### Release 3.5.2
302
+ ## Release 3.5.2
271
303
 
272
304
  - SERVER: Added new gTLDs
273
305
 
274
306
 
275
- #### Release 3.5.1
307
+ ## Release 3.5.1
276
308
 
277
309
  - NEW: Added whois.corporatedomains.com parser (GH-311). [thanks @huyphan]
278
310
 
@@ -287,7 +319,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
287
319
  - FIXED: whois.ua parser crashes when the status is clientTransferProhibited.
288
320
 
289
321
 
290
- #### Release 3.5.0
322
+ ## Release 3.5.0
291
323
 
292
324
  - SERVER: Updated list of latest ASN allocations of 16-bit & 32-bit ASN's from IANA (GH-293). [thanks @itsbalamurali]
293
325
 
@@ -304,7 +336,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
304
336
  - FIXED: whois.registry.net.za parser crashes with some registrant contact formats.
305
337
 
306
338
 
307
- #### Release 3.4.5
339
+ ## Release 3.4.5
308
340
 
309
341
  - 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
342
 
@@ -329,7 +361,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
329
361
  - CHANGED: Afilias is using a slightly different whois response for some TLDs, including .INFO and .XXX (GH-304)
330
362
 
331
363
 
332
- #### Release 3.4.4
364
+ ## Release 3.4.4
333
365
 
334
366
  - CHANGED: Updated IBC parser and fixtures (.IO, .AC, .SH and .TM).
335
367
 
@@ -338,7 +370,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
338
370
  - CHANGED: Updated whois.pir.org parser to the new response format (GH-300). [thanks @muffinista]
339
371
 
340
372
 
341
- #### Release 3.4.3
373
+ ## Release 3.4.3
342
374
 
343
375
  - SERVER: Updated .COM, .NET, .CC, .WS TLD definitions.
344
376
 
@@ -361,14 +393,14 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
361
393
  - CHANGED: Updated whois.nic.gl parser to the new response format.
362
394
 
363
395
 
364
- #### Release 3.4.2
396
+ ## Release 3.4.2
365
397
 
366
398
  - CHANGED: Updated whois.registry.net.za parser to the new response format.
367
399
 
368
400
  - CHANGED: Updated whois.ascio.com parser to the new response format (GH-285). [thanks @takama]
369
401
 
370
402
 
371
- #### Release 3.4.1
403
+ ## Release 3.4.1
372
404
 
373
405
  - SERVER: Updated .XN--NGBC5AZD IDN TLD definition.
374
406
 
@@ -391,7 +423,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
391
423
  - CHANGED: Updated whois.gandi.net parser to the new response format.
392
424
 
393
425
 
394
- #### Release 3.4.0
426
+ ## Release 3.4.0
395
427
 
396
428
  - SERVER: Added .XN--MGBX4CD0AB (.ایران, Iran) IDN TLD definition.
397
429
 
@@ -428,7 +460,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
428
460
  - CHANGED: Updated whois.register.com parser to the new response format (GH-273). [thanks @gromnsk]
429
461
 
430
462
 
431
- #### Release 3.3.1
463
+ ## Release 3.3.1
432
464
 
433
465
  - SERVER: Updated .KR, .ES (GH-267) TLD definitions.
434
466
 
@@ -439,7 +471,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
439
471
  - CHANGED: Updated whois.enom.com parser to the new response format (GH-269). [thanks @takama]
440
472
 
441
473
 
442
- #### Release 3.3.0
474
+ ## Release 3.3.0
443
475
 
444
476
  - SERVER: Added .CF TLD definition.
445
477
 
@@ -462,7 +494,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
462
494
  - FIXED: whois.jprs.jp should support `Registered` status (GH-253). [thanks @Pietr]
463
495
 
464
496
 
465
- #### Release 3.2.1
497
+ ## Release 3.2.1
466
498
 
467
499
  - NEW: Added full whois.nic.tr parser.
468
500
 
@@ -483,7 +515,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
483
515
  - CHANGED: Deprecate Whois::Record::Contact::TYPE_ADMIN in favor of Whois::Record::Contact::TYPE_ADMINISTRATIVE
484
516
 
485
517
 
486
- #### Release 3.2.0
518
+ ## Release 3.2.0
487
519
 
488
520
  - SERVER: Added .JP.NET (GH-240), XN--J1AMH TLD definitions.
489
521
 
@@ -506,7 +538,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
506
538
  - FIXED: Arin adapter is incorrectly passing an Arin flag to referral queries.
507
539
 
508
540
 
509
- #### Release 3.1.3
541
+ ## Release 3.1.3
510
542
 
511
543
  - SERVER: Updated .GD (GH-227), .TC (GH-228) TLD definitions.
512
544
 
@@ -523,7 +555,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
523
555
  - FIXED: whois.ua is mixing two kinds of responses (GH-235).
524
556
 
525
557
 
526
- #### Release 3.1.2
558
+ ## Release 3.1.2
527
559
 
528
560
  - NEW: Added full whois.comlaude.com parser (GH-222). [thanks @delwyn]
529
561
 
@@ -542,12 +574,12 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
542
574
  - FIXED: whois.nic.fr parser crashes when the contact has no changed attribute (GH-226).
543
575
 
544
576
 
545
- #### Release 3.1.1
577
+ ## Release 3.1.1
546
578
 
547
579
  - FIXED: Fixed CLI crash (GH-219). [thanks @linrock]
548
580
 
549
581
 
550
- #### Release 3.1.0
582
+ ## Release 3.1.0
551
583
 
552
584
  - SERVER: Added .POST (GH-192) TLD definition.
553
585
 
@@ -578,7 +610,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
578
610
  - FIXED: Record#technical_contact raised a NoMethodError (GH-217). [thanks @yspro]
579
611
 
580
612
 
581
- #### Release 3.0.0
613
+ ## Release 3.0.0
582
614
 
583
615
  - SERVER: Added .AX TLD definition.
584
616
 
@@ -720,7 +752,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
720
752
  - Whois::PropertyNotAvailable -> Whois::AttributeNotImplemented
721
753
 
722
754
 
723
- #### Release 2.7.0
755
+ ## Release 2.7.0
724
756
 
725
757
  - SERVER: Added .IQ TLD server (GH-171).
726
758
 
@@ -759,7 +791,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
759
791
  - CHANGED: whois.dns.pl now supports expires_on (GH-185). [thanks @y3ti]
760
792
 
761
793
 
762
- #### Release 2.6.4
794
+ ## Release 2.6.4
763
795
 
764
796
  - SERVER: Added .CW TLD server.
765
797
 
@@ -794,7 +826,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
794
826
  - CHANGED: Removed support for .gemtest and removed /spec folder from the packaged gem.
795
827
 
796
828
 
797
- #### Release 2.6.3
829
+ ## Release 2.6.3
798
830
 
799
831
  - NEW: whois.registrypro.pro is now a full parser.
800
832
 
@@ -807,7 +839,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
807
839
  - CHANGED: Updated whois.registrypro.pro parser to the new response format.
808
840
 
809
841
 
810
- #### Release 2.6.2
842
+ ## Release 2.6.2
811
843
 
812
844
  - SERVER: Added .SX TLD server (GH-170).
813
845
 
@@ -818,7 +850,7 @@ The `whois` library is now simply a WHOIS client. If you want to use the parsing
818
850
  - NEW: whois.ua parser is now a full parser (GH-169). [thanks @Uko]
819
851
 
820
852
 
821
- #### Release 2.6.1
853
+ ## Release 2.6.1
822
854
 
823
855
  - Reverted partial commit about .SX definitions included in v2.6.0 by mistake.
824
856
 
data/CONTRIBUTING.md CHANGED
@@ -4,39 +4,39 @@
4
4
 
5
5
  Fork, then clone the repo:
6
6
 
7
- ~~~
7
+ ```
8
8
  git clone git@github.com:your-username/whois.git
9
- ~~~
9
+ ```
10
10
 
11
11
  Set up your machine:
12
12
 
13
- ~~~
13
+ ```
14
14
  bundle
15
- ~~~
15
+ ```
16
16
 
17
17
  Make sure the tests pass:
18
18
 
19
- ~~~
19
+ ```
20
20
  bundle exec rake
21
- ~~~
21
+ ```
22
22
 
23
23
  To propose a change/feature/patch, create your feature branch:
24
24
 
25
- ~~~
25
+ ```
26
26
  git checkout -b my-new-feature
27
- ~~~
27
+ ```
28
28
 
29
29
  Make your change. Add tests for your change. Make the tests pass:
30
30
 
31
- ~~~
31
+ ```
32
32
  bundle exec rake
33
- ~~~
33
+ ```
34
34
 
35
35
  Commit your changes:
36
36
 
37
- ~~~
37
+ ```
38
38
  git commit -am 'Add some feature'
39
- ~~~
39
+ ```
40
40
 
41
41
  Push to your fork and [submit a pull request](https://github.com/weppos/whois/compare/).
42
42
 
data/Gemfile CHANGED
@@ -1,3 +1,8 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
2
4
 
3
5
  gemspec
6
+
7
+ gem "rubocop", 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-2022 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
@@ -4,7 +4,7 @@
4
4
 
5
5
  This library was extracted from [RoboWhois](https://robowhois.com/) and [RoboDomain](https://robodomain.com/), and it's now in use at [DNSimple](https://dnsimple.com/). It has been performing queries in production since July 2009.
6
6
 
7
- [![Build Status](https://travis-ci.org/weppos/whois.svg?branch=master)](https://travis-ci.org/weppos/whois)
7
+ [![Build Status](https://github.com/weppos/whois/actions/workflows/tests.yml/badge.svg)](https://github.com/weppos/whois/actions/workflows/tests.yml)
8
8
 
9
9
 
10
10
  ## Donate a coffee
@@ -42,25 +42,25 @@ For older versions of Ruby, see the [CHANGELOG](CHANGELOG.md).
42
42
 
43
43
  You can install the gem manually:
44
44
 
45
- ~~~shell
45
+ ```shell
46
46
  gem install whois
47
- ~~~
47
+ ```
48
48
 
49
49
  Or use [Bundler](http://bundler.io/) and define it as a dependency in your `Gemfile`:
50
50
 
51
- ~~~ruby
51
+ ```ruby
52
52
  gem 'whois'
53
- ~~~
53
+ ```
54
54
 
55
55
  To use the WHOIS parser component you need to install the `whois-parser` gem:
56
56
 
57
- ~~~shell
57
+ ```shell
58
58
  gem install whois-parser
59
- ~~~
59
+ ```
60
60
 
61
- ~~~ruby
61
+ ```ruby
62
62
  gem 'whois-parser'
63
- ~~~
63
+ ```
64
64
 
65
65
  The `whois-parser` gem already depends on the `whois` gem. If you install `whois-parser`, `whois` will be installed as well and it will also be automatically required when you `require 'whois-parser'`.
66
66
 
@@ -77,7 +77,7 @@ This section covers only the essentials for getting started with the Whois libra
77
77
 
78
78
  Check out the following examples:
79
79
 
80
- ~~~ruby
80
+ ```ruby
81
81
  # Domain WHOIS
82
82
  whois = Whois::Client.new
83
83
  whois.lookup("google.com")
@@ -97,29 +97,29 @@ whois.lookup("74.125.67.100")
97
97
  whois = Whois::Client.new
98
98
  whois.lookup("2001:db8::1428:57ab")
99
99
  # => #<Whois::Record>
100
- ~~~
100
+ ```
101
101
 
102
102
  The query method is stateless. For this reason, you can safely re-use the same client instance for multiple queries.
103
103
 
104
- ~~~ruby
104
+ ```ruby
105
105
  whois = Whois::Client.new
106
106
  whois.lookup("google.com")
107
107
  whois.lookup(".com")
108
108
  whois.lookup("74.125.67.100")
109
109
  whois.lookup("2001:db8::1428:57ab")
110
110
  whois.lookup("google.it")
111
- ~~~
111
+ ```
112
112
 
113
113
  If you just need a WHOIS response and you don't care about a full control of the WHOIS client, the `Whois` module provides an all-in-one method called `Whois.whois`. This is the simplest way to send a WHOIS request.
114
114
 
115
- ~~~ruby
115
+ ```ruby
116
116
  Whois.whois("google.com")
117
117
  # => #<Whois::Record>
118
- ~~~
118
+ ```
119
119
 
120
120
  Did I mention you can even use blocks?
121
121
 
122
- ~~~ruby
122
+ ```ruby
123
123
  Whois::Client.new do |w|
124
124
  w.lookup("google.com")
125
125
  w.lookup(".com")
@@ -127,7 +127,7 @@ Whois::Client.new do |w|
127
127
  w.lookup("2001:db8::1428:57ab")
128
128
  w.lookup("google.it")
129
129
  end
130
- ~~~
130
+ ```
131
131
 
132
132
  ### Consuming the Record
133
133
 
@@ -135,7 +135,7 @@ Any WHOIS query returns a `Whois::Record`. This object looks like a String, but
135
135
 
136
136
  `Whois::Record` encapsulates a WHOIS record and provides the ability to parse the WHOIS response programmatically, when the `whois-parser` gem is installed and loaded.
137
137
 
138
- ~~~ruby
138
+ ```ruby
139
139
  require 'whois-parser'
140
140
 
141
141
  record = Whois.whois("google.it")
@@ -162,7 +162,7 @@ tech.name
162
162
  parser.nameservers.each do |nameserver|
163
163
  puts nameserver
164
164
  end
165
- ~~~
165
+ ```
166
166
 
167
167
  This feature is made possible by the <tt>Whois</tt> record parsers. Unfortunately, due to the lack of a global standard, each WHOIS server requires a specific parser. For this reason, the library doesn't support all existing WHOIS servers.
168
168
 
@@ -174,14 +174,14 @@ By default, each query run though the client has a timeout value of 5 seconds. I
174
174
 
175
175
  Of course, you can customize the timeout value setting a different value. If timeout is `nil`, the client will wait until the response is sent back from the server or the process is killed. Don't disable the timeout unless you really know what you are doing!
176
176
 
177
- ~~~ruby
177
+ ```ruby
178
178
  whois = Whois::Client.new(:timeout => 10)
179
179
  whois.timeout # => 10
180
180
  whois.timeout = 5
181
181
  whois.timeout # => 5
182
182
 
183
183
  whois.lookup("google.com")
184
- ~~~
184
+ ```
185
185
 
186
186
 
187
187
  ## Credits
@@ -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-2022 [Simone Carletti](https://simonecarletti.com/). This is Free Software distributed under the MIT license.