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.
data/lib/namecheap/ssl.rb CHANGED
@@ -3,68 +3,68 @@ module Namecheap
3
3
  # Activates a newly purchased SSL certificate.
4
4
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:ssl:activate
5
5
  def activate(id, options = {})
6
- options = {:CertificateID => id}.merge(options)
7
- get 'ssl.activate', options
6
+ options = {CertificateID: id}.merge(options)
7
+ get "ssl.activate", options
8
8
  end
9
9
 
10
10
  # Retrieves information about the requested SSL certificate.
11
11
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:ssl:getinfo
12
12
  def get_info(id, options = {})
13
- options = {:CertificateID => id}.merge(options)
14
- get 'ssl.getInfo', options
13
+ options = {CertificateID: id}.merge(options)
14
+ get "ssl.getInfo", options
15
15
  end
16
16
 
17
17
  # Parsers the CSR.
18
18
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:ssl:parsecsr
19
19
  def parse_csr(csr, options = {})
20
- options = {:csr => csr}.merge(options)
21
- get 'ssl.parseCSR', options
20
+ options = {csr: csr}.merge(options)
21
+ get "ssl.parseCSR", options
22
22
  end
23
23
 
24
24
  # Gets approver email list for the requested domain.
25
25
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:ssl:getapproveremaillist
26
26
  def get_approver_email_list(domain, options = {})
27
- options = {:DomainName => domain}.merge(options)
28
- get 'ssl.getApproverEmailList', options
27
+ options = {DomainName: domain}.merge(options)
28
+ get "ssl.getApproverEmailList", options
29
29
  end
30
30
 
31
31
  # Returns a list of SSL certificates for a particular user.
32
32
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:ssl:getlist
33
33
  def get_list(options = {})
34
- get 'ssl.getList', options
34
+ get "ssl.getList", options
35
35
  end
36
36
 
37
37
  # Creates a new SSL certificate.
38
38
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:ssl:create
39
39
  def create(options = {})
40
- get 'ssl.create', options
40
+ get "ssl.create", options
41
41
  end
42
42
 
43
43
  # Renews an SSL certificate.
44
44
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:ssl:renew
45
45
  def renew(options = {})
46
- get 'ssl.renew', options
46
+ get "ssl.renew", options
47
47
  end
48
48
 
49
49
  # Resends the approver email.
50
50
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:ssl:resendapproveremail
51
51
  def resend_approver_email(id, options = {})
52
- options = {:CertificateID => id}.merge(options)
53
- get 'ssl.resendApproverEmail', options
52
+ options = {CertificateID: id}.merge(options)
53
+ get "ssl.resendApproverEmail", options
54
54
  end
55
55
 
56
56
  # Resends the fulfilment email containing the certificate.
57
57
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:ssl:resendfulfillmentemail
58
58
  def resend_fulfillment_email(id, options = {})
59
- options = {:CertificateID => id}.merge(options)
60
- get 'ssl.resendfulfillmentemail', options
59
+ options = {CertificateID: id}.merge(options)
60
+ get "ssl.resendfulfillmentemail", options
61
61
  end
62
62
 
63
63
  # Reissues an SSL certificate.
64
64
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:ssl:reissue
65
65
  def reissue(id, options = {})
66
- options = {:CertificateID => id}.merge(options)
67
- get 'ssl.reissue', options
66
+ options = {CertificateID: id}.merge(options)
67
+ get "ssl.reissue", options
68
68
  end
69
69
  end
70
70
  end
@@ -3,28 +3,28 @@ module Namecheap
3
3
  # Transfers a domain to Namecheap.
4
4
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:domains.transfer:create
5
5
  def create(domain, options = {})
6
- options = {:DomainName => domain}.merge(options)
7
- get 'domains.transfer.create', options
6
+ options = {DomainName: domain}.merge(options)
7
+ get "domains.transfer.create", options
8
8
  end
9
9
 
10
10
  # Gets the status of a particular transfer.
11
11
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:domains.transfer:getstatus
12
12
  def get_status(id, options = {})
13
- options = {:TransferID => id}.merge(options)
14
- get 'domains.transfer.getStatus', options
13
+ options = {TransferID: id}.merge(options)
14
+ get "domains.transfer.getStatus", options
15
15
  end
16
16
 
17
17
  # Updates the status of a particular transfer.
18
18
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:domains.transfer:updatestatus
19
19
  def update_status(id, options = {})
20
- options = {:TransferID => id}.merge(options)
21
- get 'domains.transfer.updateStatus', options
20
+ options = {TransferID: id}.merge(options)
21
+ get "domains.transfer.updateStatus", options
22
22
  end
23
23
 
24
24
  # Gets the list of domain transfers.
25
25
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:domains.transfer:getlist
26
26
  def get_list(options = {})
27
- get 'domains.transfer.getList', options
27
+ get "domains.transfer.getList", options
28
28
  end
29
29
  end
30
30
  end
@@ -3,56 +3,56 @@ module Namecheap
3
3
  # Creates a new user account at NameCheap.
4
4
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:users:create
5
5
  def create(options = {})
6
- get 'users.create', options
6
+ get "users.create", options
7
7
  end
8
8
 
9
9
  # Returns pricing information for a requested product type.
10
10
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:users:getpricing
11
11
  def get_pricing(options = {})
12
- get 'users.getPricing', options
12
+ get "users.getPricing", options
13
13
  end
14
14
 
15
15
  # Gets information about fund in the user's account.
16
16
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:users:getbalances
17
17
  def get_balances(options = {})
18
- get 'users.getBalances', options
18
+ get "users.getBalances", options
19
19
  end
20
20
 
21
21
  # Changes the password for a user.
22
22
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:users:changepassword
23
23
  def change_password(options = {})
24
- get 'users.changePassword', options
24
+ get "users.changePassword", options
25
25
  end
26
26
 
27
27
  # Updates user account information for the particular user.
28
28
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:users:update
29
29
  def update(options = {})
30
- get 'users.update', options
30
+ get "users.update", options
31
31
  end
32
32
 
33
33
  # Allows you to add funds to a user account.
34
34
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:users:createaddfundsrequest
35
35
  def create_add_funds_request(options = {})
36
- get 'users.createaddfundsrequest', options
36
+ get "users.createaddfundsrequest", options
37
37
  end
38
38
 
39
39
  # Gets the status of add funds request.
40
40
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:users:getaddfundsstatus
41
41
  def get_add_funds_status(id, options = {})
42
- options = {:TokenId => id}.merge(options)
43
- get 'users.getAddFundsStatus', options
42
+ options = {TokenId: id}.merge(options)
43
+ get "users.getAddFundsStatus", options
44
44
  end
45
45
 
46
46
  # Validates the username and password of user accounts you have created.
47
47
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:users:login
48
48
  def login(options = {})
49
- get 'users.login', options
49
+ get "users.login", options
50
50
  end
51
51
 
52
52
  # Sends a reset password link to user.
53
53
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:users:resetpassword
54
54
  def reset_password(options = {})
55
- get 'users.resetPassword', options
55
+ get "users.resetPassword", options
56
56
  end
57
57
  end
58
58
  end
@@ -1,3 +1,3 @@
1
1
  module Namecheap
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -1,45 +1,47 @@
1
1
  module Namecheap
2
+ # standard:disable Naming/ClassAndModuleCamelCase
2
3
  class Whois_Guard < Api
3
4
  # Allots WhoisGuard privacy protection.
4
5
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:whoisguard:allot
5
6
  def allot(id, domain, options = {})
6
- options = {:WhoisguardId => id, :DomainName => domain}.merge(options)
7
- get 'whoisguard.allot', options
7
+ options = {WhoisguardId: id, DomainName: domain}.merge(options)
8
+ get "whoisguard.allot", options
8
9
  end
9
10
 
10
11
  # Discards the WhoisGuard.
11
12
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:whoisguard:discard
12
13
  def discard(id, options = {})
13
- options = {:WhoisguardId => id}.merge(options)
14
- get 'whoisguard.discard', options
14
+ options = {WhoisguardId: id}.merge(options)
15
+ get "whoisguard.discard", options
15
16
  end
16
17
 
17
18
  # Unallots WhoisGuard privacy protection for the WhoisguardID.
18
19
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:whoisguard:unallot
19
20
  def unallot(id, options = {})
20
- options = {:WhoisguardId => id}.merge(options)
21
- get 'whoisguard.unallot', options
21
+ options = {WhoisguardId: id}.merge(options)
22
+ get "whoisguard.unallot", options
22
23
  end
23
24
 
24
25
  # Disables WhoisGuard privacy protection for the WhoisguardID.
25
26
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:whoisguard:disable
26
27
  def disable(id, options = {})
27
- options = {:WhoisguardId => id}.merge(options)
28
- get 'whoisguard.disable', options
28
+ options = {WhoisguardId: id}.merge(options)
29
+ get "whoisguard.disable", options
29
30
  end
30
31
 
31
32
  # Enables WhoisGuard privacy protection for the WhoisguardID.
32
33
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:whoisguard:enable
33
34
  def enable(id, options = {})
34
- options = {:WhoisguardId => id}.merge(options)
35
- get 'whoisguard.enable', options
35
+ options = {WhoisguardId: id}.merge(options)
36
+ get "whoisguard.enable", options
36
37
  end
37
38
 
38
39
  # Changes WhoisGuard email address.
39
40
  # @see http://developer.namecheap.com/docs/doku.php?id=api-reference:whoisguard:changeemailaddress
40
41
  def change_email_address(id, options = {})
41
- options = {:WhoisguardId => id}.merge(options)
42
- get 'whoisguard.changeemailaddress', options
42
+ options = {WhoisguardId: id}.merge(options)
43
+ get "whoisguard.changeemailaddress", options
43
44
  end
44
45
  end
46
+ # standard:enable Naming/ClassAndModuleCamelCase
45
47
  end
data/lib/namecheap.rb CHANGED
@@ -1,18 +1,16 @@
1
- require 'httparty'
2
- require 'pp'
3
- require 'namecheap/version'
4
- require 'namecheap/api'
5
- require 'namecheap/config'
6
- require 'namecheap/domains'
7
- require 'namecheap/dns'
8
- require 'namecheap/ns'
9
- require 'namecheap/ssl'
10
- require 'namecheap/transfers'
11
- require 'namecheap/users'
12
- require 'namecheap/whois_guard'
1
+ require "httparty"
2
+ require "namecheap/version"
3
+ require "namecheap/api"
4
+ require "namecheap/config"
5
+ require "namecheap/domains"
6
+ require "namecheap/dns"
7
+ require "namecheap/ns"
8
+ require "namecheap/ssl"
9
+ require "namecheap/transfers"
10
+ require "namecheap/users"
11
+ require "namecheap/whois_guard"
13
12
 
14
13
  module Namecheap
15
-
16
14
  extend self
17
15
 
18
16
  # Sets the Namecheap configuration options. Best used by passing a block.
@@ -27,7 +25,7 @@ module Namecheap
27
25
  def configure
28
26
  block_given? ? yield(Config) : Config
29
27
  end
30
- alias :config :configure
28
+ alias_method :config, :configure
31
29
 
32
30
  attr_accessor :domains, :dns, :ns, :transfers, :ssl, :users, :whois_guard
33
31
  self.domains = Namecheap::Domains.new
@@ -37,5 +35,4 @@ module Namecheap
37
35
  self.ssl = Namecheap::Ssl.new
38
36
  self.users = Namecheap::Users.new
39
37
  self.whois_guard = Namecheap::Whois_Guard.new
40
-
41
38
  end
metadata CHANGED
@@ -1,85 +1,122 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: namecheap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - parasquid
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-17 00:00:00.000000000 Z
11
+ date: 2026-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rspec
14
+ name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '7.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '9'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '7.1'
30
+ - - "<"
18
31
  - !ruby/object:Gem::Version
19
- version: '0'
32
+ version: '9'
33
+ - !ruby/object:Gem::Dependency
34
+ name: httparty
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0.22'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '1'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0.22'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '1'
53
+ - !ruby/object:Gem::Dependency
54
+ name: rake
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '13.0'
20
60
  type: :development
21
61
  prerelease: false
22
62
  version_requirements: !ruby/object:Gem::Requirement
23
63
  requirements:
24
- - - '>='
64
+ - - "~>"
25
65
  - !ruby/object:Gem::Version
26
- version: '0'
66
+ version: '13.0'
27
67
  - !ruby/object:Gem::Dependency
28
- name: rspec-its
68
+ name: rspec
29
69
  requirement: !ruby/object:Gem::Requirement
30
70
  requirements:
31
- - - '>='
71
+ - - "~>"
32
72
  - !ruby/object:Gem::Version
33
- version: '0'
73
+ version: '3.13'
34
74
  type: :development
35
75
  prerelease: false
36
76
  version_requirements: !ruby/object:Gem::Requirement
37
77
  requirements:
38
- - - '>='
78
+ - - "~>"
39
79
  - !ruby/object:Gem::Version
40
- version: '0'
80
+ version: '3.13'
41
81
  - !ruby/object:Gem::Dependency
42
- name: httparty
82
+ name: standard
43
83
  requirement: !ruby/object:Gem::Requirement
44
84
  requirements:
45
- - - '>='
85
+ - - "~>"
46
86
  - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
87
+ version: '1.55'
88
+ type: :development
49
89
  prerelease: false
50
90
  version_requirements: !ruby/object:Gem::Requirement
51
91
  requirements:
52
- - - '>='
92
+ - - "~>"
53
93
  - !ruby/object:Gem::Version
54
- version: '0'
94
+ version: '1.55'
55
95
  - !ruby/object:Gem::Dependency
56
- name: activesupport
96
+ name: webmock
57
97
  requirement: !ruby/object:Gem::Requirement
58
98
  requirements:
59
- - - '>='
99
+ - - "~>"
60
100
  - !ruby/object:Gem::Version
61
- version: 3.0.0
62
- type: :runtime
101
+ version: '3.0'
102
+ type: :development
63
103
  prerelease: false
64
104
  version_requirements: !ruby/object:Gem::Requirement
65
105
  requirements:
66
- - - '>='
106
+ - - "~>"
67
107
  - !ruby/object:Gem::Version
68
- version: 3.0.0
69
- description: Ruby wrapper for the Namecheap API
108
+ version: '3.0'
109
+ description: A small Ruby wrapper around Namecheap's XML API for managing domains,
110
+ DNS, SSL certificates, transfers, users, and domain privacy.
70
111
  email:
71
112
  - tristan.gomez@gmail.com
72
113
  executables: []
73
114
  extensions: []
74
115
  extra_rdoc_files: []
75
116
  files:
76
- - .gitignore
77
- - .ruby-version
78
- - .travis.yml
117
+ - CHANGELOG.md
79
118
  - COPYING
80
- - Gemfile
81
119
  - README.md
82
- - Rakefile
83
120
  - lib/namecheap.rb
84
121
  - lib/namecheap/api.rb
85
122
  - lib/namecheap/config.rb
@@ -91,38 +128,31 @@ files:
91
128
  - lib/namecheap/users.rb
92
129
  - lib/namecheap/version.rb
93
130
  - lib/namecheap/whois_guard.rb
94
- - namecheap.gemspec
95
- - spec/helper.rb
96
- - spec/namecheap/dns_spec.rb
97
- - spec/namecheap/domains_spec.rb
98
- - spec/namecheap/ns_spec.rb
99
- - spec/namecheap/ssl_spec.rb
100
- - spec/namecheap/transfers.rb
101
- - spec/namecheap/users_spec.rb
102
- - spec/namecheap/whois_guard_spec.rb
103
- - spec/namecheap_spec.rb
104
131
  homepage: https://github.com/parasquid/namecheap
105
132
  licenses:
106
- - GNU
107
- metadata: {}
108
- post_install_message:
133
+ - LGPL-3.0-or-later
134
+ metadata:
135
+ bug_tracker_uri: https://github.com/parasquid/namecheap/issues
136
+ changelog_uri: https://github.com/parasquid/namecheap/blob/legacy/0.3/CHANGELOG.md
137
+ source_code_uri: https://github.com/parasquid/namecheap
138
+ rubygems_mfa_required: 'true'
139
+ post_install_message:
109
140
  rdoc_options: []
110
141
  require_paths:
111
142
  - lib
112
143
  required_ruby_version: !ruby/object:Gem::Requirement
113
144
  requirements:
114
- - - '>='
145
+ - - ">="
115
146
  - !ruby/object:Gem::Version
116
- version: '0'
147
+ version: '3.3'
117
148
  required_rubygems_version: !ruby/object:Gem::Requirement
118
149
  requirements:
119
- - - '>='
150
+ - - ">="
120
151
  - !ruby/object:Gem::Version
121
152
  version: '0'
122
153
  requirements: []
123
- rubyforge_project: namecheap
124
- rubygems_version: 2.1.5
125
- signing_key:
154
+ rubygems_version: 3.5.22
155
+ signing_key:
126
156
  specification_version: 4
127
157
  summary: Ruby wrapper for the Namecheap API
128
158
  test_files: []
data/.gitignore DELETED
@@ -1,8 +0,0 @@
1
- *.gem
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
5
- /nbproject
6
- /bak
7
- config/namecheap.yml
8
-
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-2.0.0-p195
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- bundler_args: --without development
2
- language: ruby
3
- rvm:
4
- - 1.8.7
5
- - 1.9.2
6
- - 1.9.3
7
- - 2.0.0
data/Gemfile DELETED
@@ -1,12 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- group :development do
4
- gem 'pry'
5
- end
6
-
7
- group :test do
8
- gem 'rspec', '>= 2.11'
9
- gem 'webmock'
10
- end
11
-
12
- gemspec
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
data/namecheap.gemspec DELETED
@@ -1,27 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "namecheap/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "namecheap"
7
- s.version = Namecheap::VERSION
8
- s.authors = ["parasquid"]
9
- s.email = ["tristan.gomez@gmail.com"]
10
- s.homepage = "https://github.com/parasquid/namecheap"
11
- s.description = %q{Ruby wrapper for the Namecheap API}
12
- s.summary = s.description
13
- s.homepage = 'https://github.com/parasquid/namecheap'
14
- s.licenses = ['GNU']
15
-
16
- s.rubyforge_project = "namecheap"
17
-
18
- s.files = `git ls-files`.split("\n")
19
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
- s.require_paths = ["lib"]
22
-
23
- s.add_development_dependency "rspec"
24
- s.add_development_dependency 'rspec-its'
25
- s.add_runtime_dependency "httparty"
26
- s.add_runtime_dependency "activesupport", '>= 3.0.0'
27
- end
data/spec/helper.rb DELETED
@@ -1,25 +0,0 @@
1
- begin
2
- require 'rspec'
3
- require 'rspec/its'
4
- rescue LoadError
5
- require 'rubygems'
6
- gem 'rspec'
7
- require 'spec'
8
- end
9
-
10
- $:.unshift File.expand_path('../../lib',__FILE__)
11
- require 'namecheap'
12
-
13
- RSpec.configure do |config|
14
- def reset_config
15
- Namecheap.config.username = nil
16
- Namecheap.config.key = nil
17
- Namecheap.config.client_ip = nil
18
- end
19
-
20
- def set_dummy_config
21
- Namecheap.config.username = "the_username"
22
- Namecheap.config.key = "the_key"
23
- Namecheap.config.client_ip = "127.0.0.1"
24
- end
25
- end
@@ -1,13 +0,0 @@
1
- require 'helper'
2
-
3
- describe Namecheap::Dns do
4
- before { set_dummy_config }
5
-
6
- it 'should initialize' do
7
- Namecheap::Dns.new
8
- end
9
-
10
- it 'should be already initialized from the Namecheap namespace' do
11
- Namecheap.dns.should_not be_nil
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- require 'helper'
2
-
3
- describe Namecheap::Domains do
4
- before { set_dummy_config }
5
-
6
- it 'should initialize' do
7
- Namecheap::Domains.new
8
- end
9
-
10
- it 'should be already initialized from the Namecheap namespace' do
11
- Namecheap.domains.should_not be_nil
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- require 'helper'
2
-
3
- describe Namecheap::Ns do
4
- before { set_dummy_config }
5
-
6
- it 'should initialize' do
7
- Namecheap::Ns.new
8
- end
9
-
10
- it 'should be already initialized from the Namecheap namespace' do
11
- Namecheap.ns.should_not be_nil
12
- end
13
- end
@@ -1,17 +0,0 @@
1
- require 'helper'
2
-
3
- describe Namecheap::Ssl do
4
- before { set_dummy_config }
5
-
6
- it 'should initialize' do
7
- Namecheap::Ssl.new
8
- end
9
-
10
- it 'should be already initialized from the Namecheap namespace' do
11
- Namecheap.ssl.should_not be_nil
12
- end
13
-
14
- it 'should not raise an error' do
15
- Namecheap.ssl.get_list
16
- end
17
- end