reg.api2 0.0.1 → 0.0.2

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.
Files changed (43) hide show
  1. data/.yard_redcarpet_ext +1 -0
  2. data/.yardopts +1 -0
  3. data/README.md +119 -7
  4. data/Rakefile +6 -2
  5. data/bin/regapi2console +10 -0
  6. data/lib/reg_api2/bill.rb +76 -0
  7. data/lib/reg_api2/common.rb +2 -4
  8. data/lib/reg_api2/console.rb +15 -0
  9. data/lib/reg_api2/console_helpers.rb +24 -0
  10. data/lib/reg_api2/domain.rb +96 -0
  11. data/lib/reg_api2/folder.rb +87 -0
  12. data/lib/reg_api2/impl.rb +18 -36
  13. data/lib/reg_api2/request_contract.rb +106 -0
  14. data/lib/reg_api2/result_contract.rb +118 -0
  15. data/lib/reg_api2/service.rb +122 -1
  16. data/lib/reg_api2/sym_hash.rb +63 -0
  17. data/lib/reg_api2/user.rb +15 -1
  18. data/lib/reg_api2/version.rb +1 -1
  19. data/lib/reg_api2/zone.rb +236 -0
  20. data/lib/reg_api2.rb +57 -17
  21. data/reg.api2.gemspec +3 -1
  22. data/spec/lib/reg_api2/bill_spec.rb +80 -0
  23. data/spec/lib/reg_api2/common_spec.rb +11 -9
  24. data/spec/lib/reg_api2/domain_spec.rb +26 -0
  25. data/spec/lib/reg_api2/folder_spec.rb +52 -0
  26. data/spec/lib/reg_api2/{request_contract/default_spec.rb → request_contract_spec.rb} +2 -2
  27. data/spec/lib/reg_api2/result_contract_spec.rb +58 -0
  28. data/spec/lib/reg_api2/service_spec.rb +27 -9
  29. data/spec/lib/reg_api2/sym_hash_spec.rb +81 -0
  30. data/spec/lib/reg_api2/user_spec.rb +35 -15
  31. data/spec/lib/reg_api2/zone_spec.rb +228 -0
  32. data/spec/spec_helper.rb +0 -1
  33. metadata +48 -22
  34. data/lib/reg_api2/clients.rb +0 -14
  35. data/lib/reg_api2/domains.rb +0 -13
  36. data/lib/reg_api2/request_contract/default.rb +0 -66
  37. data/lib/reg_api2/result_contract/default.rb +0 -25
  38. data/lib/reg_api2/result_contract/single_field.rb +0 -16
  39. data/lib/reg_api2/util.rb +0 -13
  40. data/spec/lib/reg_api2/clients_spec.rb +0 -10
  41. data/spec/lib/reg_api2/domains_spec.rb +0 -9
  42. data/spec/lib/reg_api2/result_contract/default_spec.rb +0 -25
  43. data/spec/lib/reg_api2/result_contract/single_field_spec.rb +0 -22
@@ -1,23 +1,41 @@
1
1
  # -*- encoding : utf-8 -*-
2
- describe RegApi2 do
3
- before(:all) do
4
- RegApi2.username = 'test'
5
- RegApi2.password = 'test'
6
- RegApi2.lang = 'ru'
7
- end
2
+ describe RegApi2::Service do
3
+
4
+ include RegApi2
8
5
 
9
6
  describe :nop do
10
7
  it "should return list of services if requested" do
11
- answer = RegApi2.service.nop(services: [
8
+ ans = service.nop(services: [
12
9
  { dname:"test.ru" },
13
10
  { dname: "test.su", servtype: "srv_hosting_ispmgr" },
14
11
  { service_id: 111111 },
15
12
  { service_id: "22bug22" },
16
13
  { surprise: "surprise.ru" }
17
14
  ])
18
- answer['services'].map do |rec|
19
- rec['result'] == 'success' ? rec['dname'] : rec['error_code']
15
+ ans.services.map do |rec|
16
+ rec.result == 'success' ? rec.dname : rec.error_code
20
17
  end.sort.should == %w[ INVALID_SERVICE_ID NO_DOMAIN test.ru test.su test12347.ru ]
21
18
  end
22
19
  end
20
+
21
+ describe :get_prices do
22
+ it "should return prices" do
23
+ ans = service.get_prices show_renew_data: true
24
+ ans.should have_key :prices
25
+ end
26
+ end
27
+
28
+ describe :get_servtype_details do
29
+ it "should return service type details" do
30
+ ans = service.get_servtype_details servtype: :srv_hosting_ispmgr
31
+ ans.first.should have_key :commonname
32
+ end
33
+ end
34
+
35
+ describe :create do
36
+ it "should create srv_hosting_ispmgr service" do
37
+ ans = service.create dname: 'qqq.ru', servtype: :srv_hosting_ispmgr, period: 1, plan: 'Host-2-1209'
38
+ ans.descr.should =~ /srv_hosting_ispmgr.+ordered/
39
+ end
40
+ end
23
41
  end
@@ -0,0 +1,81 @@
1
+ # -*- encoding : utf-8 -*-
2
+
3
+ describe RegApi2::SymHash do
4
+
5
+ let!(:hash) { RegApi2::SymHash.new }
6
+
7
+ describe :new do
8
+ it "should be kind of Hash" do
9
+ hash.should be_kind_of(Hash)
10
+ end
11
+ end
12
+
13
+ describe :method_missing do
14
+ it "should assign key" do
15
+ hash.unique_key = "unique"
16
+ hash["unique_key"].should == "unique"
17
+ end
18
+
19
+ it "should reassign key" do
20
+ hash["next_key"] = "a"
21
+ hash.next_key = "b"
22
+ hash["next_key"].should == "b"
23
+ end
24
+
25
+ it "should return value" do
26
+ hash["another_key"] = "f"
27
+ hash.another_key.should == "f"
28
+ end
29
+
30
+ it "should return bool if key ends with ?" do
31
+ hash.ping = 15
32
+ hash.should be_ping
33
+ hash.pong = nil
34
+ hash.should_not be_pong
35
+ end
36
+
37
+ it "should return nil unless keypair present" do
38
+ hash.absent_key.should be_nil
39
+ end
40
+ end
41
+
42
+ describe :respond_to? do
43
+ it "should always respond to any method" do
44
+ hash.should respond_to(:any_method)
45
+ end
46
+ end
47
+
48
+ describe :include? do
49
+ it "should be has_key?" do
50
+ mock(hash).has_key?("what") { true }
51
+ hash.include?("what").should be_true
52
+ end
53
+ end
54
+
55
+ describe :has_key? do
56
+ it "should represent symbol keys as strings" do
57
+ hash["frank"] = 56
58
+ hash[:frank].should == 56
59
+ hash.should have_key("frank")
60
+ hash.should have_key(:frank)
61
+
62
+ hash[:bravo] = 56
63
+ hash["bravo"].should == 56
64
+ hash.should have_key("bravo")
65
+ hash.should have_key(:bravo)
66
+ end
67
+ end
68
+
69
+ describe "self.from" do
70
+ it "should deeply clone structures with replacing hashes with SymHash" do
71
+ res = RegApi2::SymHash.from([{a: 1}, {b: 2}, [ 1, 2, 3 ]])
72
+ res.should be_kind_of(Array)
73
+ res.should have(3).elements
74
+ res.first.should be_kind_of(RegApi2::SymHash)
75
+ res[1].should be_kind_of(RegApi2::SymHash)
76
+ res.last.should_not be_kind_of(RegApi2::SymHash)
77
+ res.last.should be_kind_of(Array)
78
+ res.last.should == [ 1, 2 , 3 ]
79
+ end
80
+ end
81
+ end
@@ -2,47 +2,51 @@
2
2
 
3
3
  require 'blueprints/user'
4
4
 
5
- describe RegApi2 do
5
+ describe RegApi2::User do
6
+
7
+ include RegApi2
8
+ FakeUser = RegApi2::Entity::User
9
+
6
10
  describe :nop do
7
11
  it "should raise nothing" do
8
- lambda { RegApi2.user.nop }.should_not raise_error
12
+ lambda { user.nop }.should_not raise_error
9
13
  end
10
14
 
11
15
  it "should return nil" do
12
- RegApi2.user.nop.should be_nil
16
+ user.nop.should be_nil
13
17
  end
14
18
  end
15
19
 
16
20
  describe :create do
17
21
  it "should raise ContractError unless user_login provided." do
18
- lambda { RegApi2.user.create(RegApi2::Entity::User.make(:bad_login)) }.should raise_error RegApi2::ContractError
19
- lambda { RegApi2.user.create(RegApi2::Entity::User.make(:bad_login)) }.should raise_error /user_login/
22
+ lambda { user.create(FakeUser.make(:bad_login)) }.should raise_error RegApi2::ContractError
23
+ lambda { user.create(FakeUser.make(:bad_login)) }.should raise_error /user_login/
20
24
  end
21
25
 
22
26
  it "should raise ContractError unless user_password provided." do
23
- lambda { RegApi2.user.create(RegApi2::Entity::User.make(:bad_password)) }.should raise_error RegApi2::ContractError
24
- lambda { RegApi2.user.create(RegApi2::Entity::User.make(:bad_password)) }.should raise_error /user_password/
27
+ lambda { user.create(FakeUser.make(:bad_password)) }.should raise_error RegApi2::ContractError
28
+ lambda { user.create(FakeUser.make(:bad_password)) }.should raise_error /user_password/
25
29
  end
26
30
 
27
31
  it "should raise ContractError unless user_email provided." do
28
- lambda { RegApi2.user.create(RegApi2::Entity::User.make(:bad_email)) }.should raise_error RegApi2::ContractError
29
- lambda { RegApi2.user.create(RegApi2::Entity::User.make(:bad_email)) }.should raise_error /user_email/
32
+ lambda { user.create(FakeUser.make(:bad_email)) }.should raise_error RegApi2::ContractError
33
+ lambda { user.create(FakeUser.make(:bad_email)) }.should raise_error /user_email/
30
34
  end
31
35
 
32
36
  it "should raise ContractError unless user_country_code provided." do
33
- lambda { RegApi2.user.create(RegApi2::Entity::User.make(:bad_country_code)) }.should raise_error RegApi2::ContractError
34
- lambda { RegApi2.user.create(RegApi2::Entity::User.make(:bad_country_code)) }.should raise_error /user_country_code/
37
+ lambda { user.create(FakeUser.make(:bad_country_code)) }.should raise_error RegApi2::ContractError
38
+ lambda { user.create(FakeUser.make(:bad_country_code)) }.should raise_error /user_country_code/
35
39
  end
36
40
 
37
41
  it "should create user with valid data." do
38
- lambda { RegApi2.user.create(RegApi2::Entity::User.make(:good_user)) }.should_not raise_error
39
- RegApi2.user.create(RegApi2::Entity::User.make(:good_user)).should == "777"
42
+ lambda { user.create(FakeUser.make(:good_user)) }.should_not raise_error
43
+ user.create(FakeUser.make(:good_user)).should == "777"
40
44
  end
41
45
  end
42
46
 
43
47
  describe :get_statistics do
44
48
  it "should return user statistics" do
45
- RegApi2.user.get_statistics.keys.sort.should == %w[
49
+ user.get_statistics.keys.sort.should == %w[
46
50
  active_domains_cnt
47
51
  active_domains_get_ctrl_cnt
48
52
  balance_total
@@ -56,10 +60,26 @@ describe RegApi2 do
56
60
 
57
61
  describe :get_balance do
58
62
  it "should return user balance" do
59
- RegApi2.user.get_balance(currency: "USD").keys.sort.should == %w[
63
+ user.get_balance(currency: :USD).keys.sort.should == %w[
60
64
  currency
61
65
  prepay
62
66
  ]
63
67
  end
64
68
  end
69
+
70
+ describe :refill_balance do
71
+ it "should fill balance" do
72
+ ans = user.refill_balance(
73
+ pay_type: :WM,
74
+ wmid: 123456789012,
75
+ currency: :RUR,
76
+ amount: 1000
77
+ )
78
+ ans.currency.should == 'RUR'
79
+ ans.pay_type.should == 'WM'
80
+ ans.payment.should == 1000
81
+ ans.total_payment.should == 1000
82
+ ans.should have_key :wm_invid
83
+ end
84
+ end
65
85
  end
@@ -0,0 +1,228 @@
1
+ # -*- encoding : utf-8 -*-
2
+
3
+ require 'ipaddr'
4
+
5
+ describe RegApi2::Zone do
6
+
7
+ include RegApi2
8
+
9
+ describe :nop do
10
+ it "should raise when no args" do
11
+ lambda { zone.nop }.should raise_error
12
+ end
13
+
14
+ it "should return domains if specified" do
15
+ ans = zone.nop(domains: [ { dname: "test.ru" }, { dname: "test.com" } ])
16
+ ans.domains.map(&:servtype).should == [ 'domain', 'domain' ]
17
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
18
+ end
19
+ end
20
+
21
+ describe :add_alias do
22
+ it "should understood IPAddr's" do
23
+ ans = zone.add_alias(
24
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
25
+ subdomain: '@',
26
+ ipaddr: IPAddr.new("111.111.111.111")
27
+ )
28
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
29
+ end
30
+
31
+ it "should understood ip addresses as strings too" do
32
+ ans = zone.add_alias(
33
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
34
+ subdomain: '*',
35
+ ipaddr: "111.111.111.111"
36
+ )
37
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
38
+ end
39
+ end
40
+
41
+ describe :add_aaaa do
42
+ it "should understood IPAddr's" do
43
+ ans = zone.add_aaaa(
44
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
45
+ subdomain: '@',
46
+ ipaddr: IPAddr.new("aa11::a111:11aa:aaa1:aa1a")
47
+ )
48
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
49
+ end
50
+
51
+ it "should understood ipv6 addresses as strings too" do
52
+ ans = zone.add_aaaa(
53
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
54
+ subdomain: '*',
55
+ ipaddr: "aa11::a111:11aa:aaa1:aa1a"
56
+ )
57
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
58
+ end
59
+ end
60
+
61
+ describe :add_cname do
62
+ it "should assign mail subsomains to mx10.test.ru if specified" do
63
+ ans = zone.add_cname(
64
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
65
+ subdomain: "mail",
66
+ canonical_name: "mx10.test.ru"
67
+ )
68
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
69
+ end
70
+ end
71
+
72
+ describe :add_mx do
73
+ it "should understood mail servers as IPAddr's" do
74
+ ans = zone.add_mx(
75
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
76
+ subdomain: '@',
77
+ mail_server: IPAddr.new("111.111.111.111")
78
+ )
79
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
80
+ end
81
+
82
+ it "should understood mail servers as domains too" do
83
+ ans = zone.add_mx(
84
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
85
+ subdomain: '@',
86
+ priority: 1,
87
+ mail_server: "mail"
88
+ )
89
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
90
+ end
91
+ end
92
+
93
+ describe :add_ns do
94
+ it "should understood dns servers with record number" do
95
+ ans = zone.add_ns(
96
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
97
+ subdomain: 'tt',
98
+ dns_server: "ns.test.ru",
99
+ record_number: 10
100
+ )
101
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
102
+ end
103
+
104
+ it "should check record number" do
105
+ lambda do
106
+ zone.add_ns(
107
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
108
+ subdomain: 'tt',
109
+ dns_server: "ns.test.ru",
110
+ record_number: 'fg'
111
+ )
112
+ end.should raise_error RegApi2::ContractError
113
+ end
114
+ end
115
+
116
+ describe :add_txt do
117
+ it "should add text records" do
118
+ ans = zone.add_txt(
119
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
120
+ subdomain: 'mail',
121
+ text: "testmail"
122
+ )
123
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
124
+ end
125
+ end
126
+
127
+ describe :add_srv do
128
+ it "Make the sip.test.ru server handle SIP calls destined to xxx@test.ru and xxx@test.com on port 5060 over UDP." do
129
+ ans = zone.add_srv(
130
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
131
+ service: '_sip._udp',
132
+ priority: 0,
133
+ port: 5060,
134
+ target: "sip.test.ru"
135
+ )
136
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
137
+ end
138
+ end
139
+
140
+ describe :get_resource_records do
141
+ it "should get resource records" do
142
+ ans = zone.get_resource_records(
143
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ]
144
+ )
145
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
146
+ ans.domains.map(&:rrs).should be_kind_of(Array)
147
+ end
148
+ end
149
+
150
+ describe :update_records do
151
+ it "should update records" do
152
+ ans = zone.update_records domain_name: "test.ru", action_list: [
153
+ { action: :add_alias, subdomain: "www", ipaddr: "11.22.33.44" },
154
+ { action: :add_cname, subdomain: "@", canonical_name: "www.test.ru" }
155
+ ]
156
+ ans.domains.map(&:result).should == [ 'success' ]
157
+ ans.domains.first.action_list.map(&:result).should == [ 'success', 'success' ]
158
+ end
159
+ end
160
+
161
+ describe :update_soa do
162
+ it "should update zone TTL" do
163
+ ans = zone.update_soa(
164
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
165
+ ttl: "1d",
166
+ minimum_ttl: "4h"
167
+ )
168
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
169
+ end
170
+ end
171
+
172
+ describe :tune_forwarding do
173
+ it "should add resource records required for web forwarding" do
174
+ ans = zone.tune_forwarding(
175
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
176
+ )
177
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
178
+ end
179
+ end
180
+
181
+ describe :clear_forwarding do
182
+ it "should delete resource records required for web forwarding" do
183
+ ans = zone.clear_forwarding(
184
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
185
+ )
186
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
187
+ end
188
+ end
189
+
190
+ describe :tune_parking do
191
+ it "should add resource records required for domain parking" do
192
+ ans = zone.tune_parking(
193
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
194
+ )
195
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
196
+ end
197
+ end
198
+
199
+ describe :clear_parking do
200
+ it "should delete resource records required for domain parking" do
201
+ ans = zone.clear_parking(
202
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
203
+ )
204
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
205
+ end
206
+ end
207
+
208
+ describe :remove_record do
209
+ it "Should delete A record with 111.111.111.111 ip from @" do
210
+ ans = zone.remove_record(
211
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
212
+ subdomain: '@',
213
+ content: '111.111.111.111',
214
+ record_type: :A
215
+ )
216
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
217
+ end
218
+ end
219
+
220
+ describe :clear do
221
+ it "should delete all resource records" do
222
+ ans = zone.clear(
223
+ domains: [ { dname: "test.ru" }, { dname: "test.com" } ],
224
+ )
225
+ ans.domains.map(&:result).should == [ 'success', 'success' ]
226
+ end
227
+ end
228
+ end
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,6 @@
6
6
  #
7
7
  # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
8
8
 
9
- require 'rubygems'
10
9
  require 'coveralls'
11
10
  Coveralls.wear!
12
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reg.api2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-08 00:00:00.000000000 Z
12
+ date: 2013-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yajl-ruby
@@ -171,47 +171,71 @@ dependencies:
171
171
  - - ! '>='
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
+ - !ruby/object:Gem::Dependency
175
+ name: yard-redcarpet-ext
176
+ requirement: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
174
190
  description: REG.API v2 Implementation
175
191
  email:
176
192
  - akzhan.abdulin@gmail.com
177
- executables: []
193
+ executables:
194
+ - regapi2console
178
195
  extensions: []
179
196
  extra_rdoc_files: []
180
197
  files:
181
198
  - .gitignore
182
199
  - .rspec
183
200
  - .travis.yml
201
+ - .yard_redcarpet_ext
184
202
  - .yardopts
185
203
  - Gemfile
186
204
  - LICENSE
187
205
  - README.md
188
206
  - Rakefile
207
+ - bin/regapi2console
189
208
  - lib/reg_api2.rb
209
+ - lib/reg_api2/bill.rb
190
210
  - lib/reg_api2/builder.rb
191
- - lib/reg_api2/clients.rb
192
211
  - lib/reg_api2/common.rb
193
- - lib/reg_api2/domains.rb
212
+ - lib/reg_api2/console.rb
213
+ - lib/reg_api2/console_helpers.rb
214
+ - lib/reg_api2/domain.rb
194
215
  - lib/reg_api2/entity/entity_base.rb
195
216
  - lib/reg_api2/entity/user.rb
217
+ - lib/reg_api2/folder.rb
196
218
  - lib/reg_api2/impl.rb
197
- - lib/reg_api2/request_contract/default.rb
198
- - lib/reg_api2/result_contract/default.rb
199
- - lib/reg_api2/result_contract/single_field.rb
219
+ - lib/reg_api2/request_contract.rb
220
+ - lib/reg_api2/result_contract.rb
200
221
  - lib/reg_api2/service.rb
222
+ - lib/reg_api2/sym_hash.rb
201
223
  - lib/reg_api2/user.rb
202
- - lib/reg_api2/util.rb
203
224
  - lib/reg_api2/version.rb
225
+ - lib/reg_api2/zone.rb
204
226
  - reg.api2.gemspec
205
227
  - spec/blueprints/user.rb
206
- - spec/lib/reg_api2/clients_spec.rb
228
+ - spec/lib/reg_api2/bill_spec.rb
207
229
  - spec/lib/reg_api2/common_spec.rb
208
- - spec/lib/reg_api2/domains_spec.rb
230
+ - spec/lib/reg_api2/domain_spec.rb
209
231
  - spec/lib/reg_api2/entity/entity_base_spec.rb
210
- - spec/lib/reg_api2/request_contract/default_spec.rb
211
- - spec/lib/reg_api2/result_contract/default_spec.rb
212
- - spec/lib/reg_api2/result_contract/single_field_spec.rb
232
+ - spec/lib/reg_api2/folder_spec.rb
233
+ - spec/lib/reg_api2/request_contract_spec.rb
234
+ - spec/lib/reg_api2/result_contract_spec.rb
213
235
  - spec/lib/reg_api2/service_spec.rb
236
+ - spec/lib/reg_api2/sym_hash_spec.rb
214
237
  - spec/lib/reg_api2/user_spec.rb
238
+ - spec/lib/reg_api2/zone_spec.rb
215
239
  - spec/spec_helper.rb
216
240
  homepage: https://github.com/regru/reg_api2-ruby
217
241
  licenses:
@@ -228,7 +252,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
228
252
  version: '0'
229
253
  segments:
230
254
  - 0
231
- hash: 1244047164315993471
255
+ hash: -1771662475751154116
232
256
  required_rubygems_version: !ruby/object:Gem::Requirement
233
257
  none: false
234
258
  requirements:
@@ -237,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
261
  version: '0'
238
262
  segments:
239
263
  - 0
240
- hash: 1244047164315993471
264
+ hash: -1771662475751154116
241
265
  requirements: []
242
266
  rubyforge_project:
243
267
  rubygems_version: 1.8.24
@@ -246,14 +270,16 @@ specification_version: 3
246
270
  summary: REG.API v2 Implementation
247
271
  test_files:
248
272
  - spec/blueprints/user.rb
249
- - spec/lib/reg_api2/clients_spec.rb
273
+ - spec/lib/reg_api2/bill_spec.rb
250
274
  - spec/lib/reg_api2/common_spec.rb
251
- - spec/lib/reg_api2/domains_spec.rb
275
+ - spec/lib/reg_api2/domain_spec.rb
252
276
  - spec/lib/reg_api2/entity/entity_base_spec.rb
253
- - spec/lib/reg_api2/request_contract/default_spec.rb
254
- - spec/lib/reg_api2/result_contract/default_spec.rb
255
- - spec/lib/reg_api2/result_contract/single_field_spec.rb
277
+ - spec/lib/reg_api2/folder_spec.rb
278
+ - spec/lib/reg_api2/request_contract_spec.rb
279
+ - spec/lib/reg_api2/result_contract_spec.rb
256
280
  - spec/lib/reg_api2/service_spec.rb
281
+ - spec/lib/reg_api2/sym_hash_spec.rb
257
282
  - spec/lib/reg_api2/user_spec.rb
283
+ - spec/lib/reg_api2/zone_spec.rb
258
284
  - spec/spec_helper.rb
259
- has_rdoc:
285
+ has_rdoc: yard
@@ -1,14 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
- module RegApi2
3
- # REG.API clients category
4
- module Clients
5
-
6
- include RegApi2::Builder
7
-
8
- category :clients
9
- define :nop
10
-
11
- extend self
12
- end
13
- end
14
-
@@ -1,13 +0,0 @@
1
- # -*- encoding : utf-8 -*-
2
- module RegApi2
3
- # REG.API domains category
4
- module Domains
5
-
6
- include RegApi2::Builder
7
-
8
- category :domains
9
- define :nop
10
-
11
- extend self
12
- end
13
- end