namecheap 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +15 -0
- data/README.md +102 -59
- data/lib/namecheap/api.rb +39 -26
- data/lib/namecheap/config.rb +20 -5
- data/lib/namecheap/dns.rb +16 -16
- data/lib/namecheap/domains.rb +22 -22
- data/lib/namecheap/ns.rb +8 -8
- data/lib/namecheap/ssl.rb +17 -17
- data/lib/namecheap/transfers.rb +7 -7
- data/lib/namecheap/users.rb +10 -10
- data/lib/namecheap/version.rb +1 -1
- data/lib/namecheap/whois_guard.rb +14 -12
- data/lib/namecheap.rb +12 -15
- metadata +80 -50
- data/.gitignore +0 -8
- data/.ruby-version +0 -1
- data/.travis.yml +0 -7
- data/Gemfile +0 -12
- data/Rakefile +0 -6
- data/namecheap.gemspec +0 -27
- data/spec/helper.rb +0 -25
- data/spec/namecheap/dns_spec.rb +0 -13
- data/spec/namecheap/domains_spec.rb +0 -13
- data/spec/namecheap/ns_spec.rb +0 -13
- data/spec/namecheap/ssl_spec.rb +0 -17
- data/spec/namecheap/transfers.rb +0 -13
- data/spec/namecheap/users_spec.rb +0 -13
- data/spec/namecheap/whois_guard_spec.rb +0 -13
- data/spec/namecheap_spec.rb +0 -39
data/spec/namecheap/transfers.rb
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require 'helper'
|
|
2
|
-
|
|
3
|
-
describe Namecheap::Transfers do
|
|
4
|
-
before { set_dummy_config }
|
|
5
|
-
|
|
6
|
-
it 'should initialize' do
|
|
7
|
-
Namecheap::Transfers.new
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
it 'should be already initialized from the Namecheap namespace' do
|
|
11
|
-
Namecheap.transfers.should_not be_nil
|
|
12
|
-
end
|
|
13
|
-
end
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require 'helper'
|
|
2
|
-
|
|
3
|
-
describe Namecheap::Users do
|
|
4
|
-
before { set_dummy_config }
|
|
5
|
-
|
|
6
|
-
it 'should initialize' do
|
|
7
|
-
Namecheap::Users.new
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
it 'should be already initialized from the Namecheap namespace' do
|
|
11
|
-
Namecheap.users.should_not be_nil
|
|
12
|
-
end
|
|
13
|
-
end
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
require 'helper'
|
|
2
|
-
|
|
3
|
-
describe Namecheap::Whois_Guard do
|
|
4
|
-
before { set_dummy_config }
|
|
5
|
-
|
|
6
|
-
it 'should initialize' do
|
|
7
|
-
Namecheap::Whois_Guard.new
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
it 'should be already initialized from the Namecheap namespace' do
|
|
11
|
-
Namecheap.whois_guard.should_not be_nil
|
|
12
|
-
end
|
|
13
|
-
end
|
data/spec/namecheap_spec.rb
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
require File.dirname(__FILE__) + '/helper'
|
|
2
|
-
|
|
3
|
-
describe Namecheap do
|
|
4
|
-
before { reset_config }
|
|
5
|
-
|
|
6
|
-
context "with default config" do
|
|
7
|
-
subject { Namecheap.config }
|
|
8
|
-
|
|
9
|
-
its(:username) { should be_nil }
|
|
10
|
-
its(:key) { should be_nil }
|
|
11
|
-
its(:client_ip) { should be_nil }
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
describe '.configure' do
|
|
15
|
-
it 'should set the api key' do
|
|
16
|
-
expect {
|
|
17
|
-
Namecheap.configure do |config|
|
|
18
|
-
config.key = 'the_apikey'
|
|
19
|
-
end
|
|
20
|
-
}.to change { Namecheap::Config.key }.to('the_apikey')
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
it 'should set the username' do
|
|
24
|
-
expect {
|
|
25
|
-
Namecheap.configure do |config|
|
|
26
|
-
config.username = 'the_username'
|
|
27
|
-
end
|
|
28
|
-
}.to change { Namecheap::Config.username }.to('the_username')
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
it 'should set the client_ip' do
|
|
32
|
-
expect {
|
|
33
|
-
Namecheap.configure do |config|
|
|
34
|
-
config.client_ip = 'the_client_ip'
|
|
35
|
-
end
|
|
36
|
-
}.to change { Namecheap::Config.client_ip }.to('the_client_ip')
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
end
|