reg.api2 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/reg_api2/hosting.rb +10 -0
- data/lib/reg_api2/version.rb +1 -1
- data/spec/lib/reg_api2/hosting_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b62c10614e5fe523b3fb1632114e019f90f6520e
|
4
|
+
data.tar.gz: da72c9f8539e8e90a61f06c3ff522885486b05b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae688ee44a2363f401b2d43a6929156259257088aa3a640f2c37e6d0cd7f28c7caa5a9bcd054299bb09fd05ab95296fbc7e2579e3d1968114f8fbf1222d2e2fe
|
7
|
+
data.tar.gz: af508b956f111660a49293e86d611ae70703df100054dbaa7ba8fbaa7602fbd44fbf938a5f4d5bfdeb876f8895bc42b09c499edca3e1b765588b9aadae44a89c
|
data/README.md
CHANGED
@@ -94,7 +94,7 @@ Please follow these links to view documentation on methods of all known API cate
|
|
94
94
|
| [bill](http://regru.github.io/reg_api2-ruby/RegApi2/Bill.html) | Billing |
|
95
95
|
| [folder](http://regru.github.io/reg_api2-ruby/RegApi2/Folder.html) | Folders for services including domains |
|
96
96
|
| [zone](http://regru.github.io/reg_api2-ruby/RegApi2/Zone.html) | Domain zone resource records (DNS) |
|
97
|
-
| [hosting](http://regru.github.io/reg_api2-ruby/RegApi2/Hosting.html) |
|
97
|
+
| [hosting](http://regru.github.io/reg_api2-ruby/RegApi2/Hosting.html) | Hosting management functions |
|
98
98
|
| [shop](http://regru.github.io/reg_api2-ruby/RegApi2/Shop.html) | Domain Shop management functions |
|
99
99
|
|
100
100
|
## Recommendations for effective use of REG.API
|
data/lib/reg_api2/hosting.rb
CHANGED
@@ -35,6 +35,16 @@ module RegApi2
|
|
35
35
|
# RegApi2.set_jelastic_refill_url url: 'http://mysite.com?service_id=<service_id>&email=<email>'
|
36
36
|
define :set_jelastic_refill_url, required: :url
|
37
37
|
|
38
|
+
# @!method get_parallelswpb_constructor_url(opts = {})
|
39
|
+
# @param [Hash] opts
|
40
|
+
# @option opts [Fixnum] :service_id Numeric service identifier.
|
41
|
+
# get URL to the ParallelsWPB constructor.
|
42
|
+
# @return [String] URL for ParallelsWPB constructor..
|
43
|
+
# @note Accessibility: partners
|
44
|
+
# @example Typical usage
|
45
|
+
# RegApi2.set_jelastic_refill_url url: 'http://mysite.com?service_id=<service_id>&email=<email>'
|
46
|
+
define :get_parallelswpb_constructor_url, required: { service_id: {} }, field: :url
|
47
|
+
|
38
48
|
extend self
|
39
49
|
end
|
40
50
|
end
|
data/lib/reg_api2/version.rb
CHANGED
@@ -22,4 +22,9 @@ describe RegApi2::Hosting do
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
+
describe :get_parallelswpb_constructor_url do
|
26
|
+
xit "should return \"https://test1.ru\"" do
|
27
|
+
expect(hosting.get_parallelswpb_constructor_url(service_id: 123456)).to eq("https://test1.ru")
|
28
|
+
end
|
29
|
+
end
|
25
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reg.api2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akzhan Abdulin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yajl-ruby
|