Skip to content

Commit

Permalink
Renamed WhoisDomainKg to WhoisKg
Browse files Browse the repository at this point in the history
Closes GH-48
  • Loading branch information
weppos committed Apr 12, 2018
1 parent 9a79203 commit cb72bd1
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This project uses [Semantic Versioning 2.0.0](http://semver.org/).

#### master

- CHANGED: Renamed WhoisDomainKg to WhoisKg (GH-48)


#### Release 1.1.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,15 @@
module Whois
class Parsers

# Parser for the whois.kg server.
#
# = whois.domain.kg
# @note This parser is just a stub and provides only a few basic methods
# to check for domain availability and get domain status.
# Please consider to contribute implementing missing methods.
#
# Parser for the whois.domain.kg server.
#
# NOTE: This parser is just a stub and provides only a few basic methods
# to check for domain availability and get domain status.
# Please consider to contribute implementing missing methods.
# See WhoisNicIt parser for an explanation of all available methods
# and examples.
#
class WhoisDomainKg < Base
# @see Whois::Parsers::Example
# The Example parser for the list of all available methods.
class WhoisKg < Base

property_supported :status do
if available?
Expand Down
2 changes: 1 addition & 1 deletion spec/tlds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ ke:
status_available: u34jedzcq.ke
status_registered: google.co.ke
kg:
_server: whois.domain.kg
_server: whois.kg
status_available: u34jedzcq.kg
status_registered: google.kg
kh:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
#
# /spec/fixtures/responses/whois.domain.kg/kg/status_available.expected
# /spec/fixtures/responses/whois.kg/kg/status_available.expected
#
# and regenerate the tests with the following rake task
#
# $ rake spec:generate
#

require 'spec_helper'
require 'whois/parsers/whois.domain.kg.rb'
require 'whois/parsers/whois.kg.rb'

describe Whois::Parsers::WhoisDomainKg, "status_available.expected" do
describe Whois::Parsers::WhoisKg, "status_available.expected" do

subject do
file = fixture("responses", "whois.domain.kg/kg/status_available.txt")
file = fixture("responses", "whois.kg/kg/status_available.txt")
part = Whois::Record::Part.new(body: File.read(file))
described_class.new(part)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
# This file is autogenerated. Do not edit it manually.
# If you want change the content of this file, edit
#
# /spec/fixtures/responses/whois.domain.kg/kg/status_registered.expected
# /spec/fixtures/responses/whois.kg/kg/status_registered.expected
#
# and regenerate the tests with the following rake task
#
# $ rake spec:generate
#

require 'spec_helper'
require 'whois/parsers/whois.domain.kg.rb'
require 'whois/parsers/whois.kg.rb'

describe Whois::Parsers::WhoisDomainKg, "status_registered.expected" do
describe Whois::Parsers::WhoisKg, "status_registered.expected" do

subject do
file = fixture("responses", "whois.domain.kg/kg/status_registered.txt")
file = fixture("responses", "whois.kg/kg/status_registered.txt")
part = Whois::Record::Part.new(body: File.read(file))
described_class.new(part)
end
Expand Down

0 comments on commit cb72bd1

Please sign in to comment.