moo_moo 0.11.0 → 0.12.0
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 +4 -4
- data/LICENSE +1 -1
- data/README.md +22 -24
- data/lib/moo_moo/version.rb +1 -1
- data/spec/vcr_cassettes/integration/lookup.yml +1 -1
- metadata +19 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27598b9226bba9fd19216bd43464cf5c7eb7fcbb
|
|
4
|
+
data.tar.gz: '08b8e453e44737d2b21419fc6759e23f9cc80a2d'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 695abf8e65c32847399845b824544f7b349845425a19a065ac4980ab60e07c3d3b72f732777b64625a177824da2d5629e047d7c661807cda7a8e194a41e27b59
|
|
7
|
+
data.tar.gz: 7955d8daedfac56adf60891f7b083ad3dd6ccd81b7acff9cf335e40f34507d6c6d39e86006577cd7b8084ab8953d4872f93d87e98289b00657e84d1b6ee7c8dd
|
data/LICENSE
CHANGED
data/README.md
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
MooMoo [![MooMoo Build Status][Build Icon]][Build Status]
|
|
2
2
|
=========================================================
|
|
3
3
|
|
|
4
|
-
MooMoo is a Ruby library for working with the [
|
|
5
|
-
|
|
6
|
-
MooMoo has been tested with MRI versions 1.9.3, 2.0.0, 2.1.1 and JRuby 1.9 mode.
|
|
4
|
+
MooMoo is a Ruby library for working with the [OpenSRS XML Domain API][].
|
|
7
5
|
|
|
8
6
|
Documentation is available in [RDoc][] format.
|
|
9
7
|
|
|
10
|
-
[Build Status]: http://travis-ci.org/
|
|
11
|
-
[Build Icon]: https://secure.travis-ci.org/
|
|
12
|
-
[
|
|
13
|
-
[RDoc]: http://rdoc.info/github/
|
|
8
|
+
[Build Status]: http://travis-ci.org/pressednet/moo_moo
|
|
9
|
+
[Build Icon]: https://secure.travis-ci.org/pressednet/moo_moo.png?branch=master
|
|
10
|
+
[OpenSRS XML Domain API]: https://opensrs.com/integration/api/
|
|
11
|
+
[RDoc]: http://rdoc.info/github/pressednet/moo_moo/master/frames
|
|
14
12
|
|
|
15
13
|
Description
|
|
16
14
|
-----------
|
|
17
15
|
|
|
18
16
|
Implements most of the functionality of the OpenSRS XML API. For full
|
|
19
17
|
documentation of the OpenSRS XML API see
|
|
20
|
-
<
|
|
18
|
+
<https://help.opensrs.com/hc/en-us/articles/203245883-OpenSRS-API>.
|
|
21
19
|
|
|
22
20
|
Usage
|
|
23
21
|
-----
|
|
@@ -65,7 +63,7 @@ the response:
|
|
|
65
63
|
response - the http response
|
|
66
64
|
message - the "response_text"
|
|
67
65
|
attributes - the "attributes" hash with relevant data
|
|
68
|
-
successful? -
|
|
66
|
+
successful? - whether the request was successful or not
|
|
69
67
|
```
|
|
70
68
|
|
|
71
69
|
Currently, there is support for the following services:
|
|
@@ -76,30 +74,30 @@ Currently, there is support for the following services:
|
|
|
76
74
|
* Provisioning
|
|
77
75
|
* Transfer
|
|
78
76
|
|
|
79
|
-
API services are namespaced with api. For example, for the Lookup "get"
|
|
80
|
-
it will be named
|
|
77
|
+
API services are namespaced with api. For example, for the Lookup "get" API method,
|
|
78
|
+
it will be named `api_get`.
|
|
81
79
|
|
|
82
80
|
MooMoo provides custom methods that should make it easier to deal with the OpenSRS
|
|
83
|
-
|
|
84
|
-
Check
|
|
85
|
-
|
|
81
|
+
API (e.g. Lookup `:domain_contacts`). These custom methods are not namespaced.
|
|
82
|
+
Check the documentation to see the parameters they expect and the responses
|
|
83
|
+
they return.
|
|
86
84
|
|
|
87
85
|
TLD List
|
|
88
86
|
--------
|
|
89
87
|
|
|
90
|
-
MooMoo::Lookup provides a `tlds` method that is used to list top level domains
|
|
88
|
+
`MooMoo::Lookup` provides a `tlds` method that is used to list top level domains
|
|
91
89
|
that OpenSRS support. At this time, OpenSRS has no API method that does that,
|
|
92
|
-
so we keep that in a custom configuration file (config/tlds.yml).
|
|
90
|
+
so we keep that in a custom configuration file (`config/tlds.yml`).
|
|
93
91
|
|
|
94
|
-
The top level domains data comes from
|
|
92
|
+
The top level domains data comes from https://opensrs.com/services/domains/domain-pricing/.
|
|
95
93
|
OpenSRS also provides a CSV file for country code top level domains at
|
|
96
|
-
|
|
94
|
+
https://opensrs.com/images/elements/cctld-pricing.csv.
|
|
97
95
|
|
|
98
|
-
In order to generate our own config/tlds.yml file, we use the scripts/parse_cctld_csv
|
|
99
|
-
script to parse OpenSRS
|
|
100
|
-
under config
|
|
96
|
+
In order to generate our own `config/tlds.yml` file, we use the `scripts/parse_cctld_csv`
|
|
97
|
+
script to parse OpenSRS CSV file. In order to do that, place an updated `cctld-pricing.csv`
|
|
98
|
+
under `config`, and run `scripts/parse_cctld_csv`.
|
|
101
99
|
|
|
102
|
-
For non
|
|
100
|
+
For non-country code top level domains, the `scripts/parse_cctld_csv` `defaults`
|
|
103
101
|
list needs to be updated.
|
|
104
102
|
|
|
105
103
|
Debugging
|
|
@@ -122,7 +120,7 @@ Note on Patches/Pull Requests
|
|
|
122
120
|
* Make your feature addition or bug fix.
|
|
123
121
|
* Add tests for it. This is important so I don't break it in a
|
|
124
122
|
future version unintentionally.
|
|
125
|
-
* Commit, do not mess with
|
|
123
|
+
* Commit, do not mess with Rakefile, version, or history. (if you want to have
|
|
126
124
|
your own version, that is fine but bump version in a commit by itself I can
|
|
127
125
|
ignore when I pull)
|
|
128
126
|
* Send me a pull request. Bonus points for topic branches.
|
|
@@ -130,4 +128,4 @@ Note on Patches/Pull Requests
|
|
|
130
128
|
Copyright
|
|
131
129
|
---------
|
|
132
130
|
|
|
133
|
-
Copyright (c)
|
|
131
|
+
Copyright (c) 2016 Pressed, LLC. See LICENSE for details.
|
data/lib/moo_moo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moo_moo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- Justin Mazzi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - "
|
|
17
|
+
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0
|
|
19
|
+
version: '0'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - "
|
|
24
|
+
- - ">="
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 0
|
|
26
|
+
version: '0'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -94,9 +94,9 @@ dependencies:
|
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
96
|
version: 1.11.3
|
|
97
|
-
description: Implements OpenSRS XML API
|
|
97
|
+
description: Implements OpenSRS XML Domain API
|
|
98
98
|
email:
|
|
99
|
-
-
|
|
99
|
+
- justin@pressed.net
|
|
100
100
|
executables: []
|
|
101
101
|
extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
|
@@ -136,7 +136,7 @@ files:
|
|
|
136
136
|
- spec/moo_moo_spec.rb
|
|
137
137
|
- spec/spec_helper.rb
|
|
138
138
|
- spec/vcr_cassettes/integration/lookup.yml
|
|
139
|
-
homepage:
|
|
139
|
+
homepage: https://github.com/pressednet/moo_moo
|
|
140
140
|
licenses:
|
|
141
141
|
- MIT
|
|
142
142
|
metadata: {}
|
|
@@ -156,23 +156,22 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
156
156
|
version: '0'
|
|
157
157
|
requirements: []
|
|
158
158
|
rubyforge_project: opensrs
|
|
159
|
-
rubygems_version: 2.
|
|
159
|
+
rubygems_version: 2.5.2
|
|
160
160
|
signing_key:
|
|
161
161
|
specification_version: 4
|
|
162
|
-
summary: Implements OpenSRS XML API
|
|
162
|
+
summary: Implements OpenSRS XML Domain API
|
|
163
163
|
test_files:
|
|
164
|
-
- spec/vcr_cassettes/integration/lookup.yml
|
|
165
|
-
- spec/moo_moo_spec.rb
|
|
166
164
|
- spec/integration_spec.rb
|
|
167
165
|
- spec/fixtures/success_response.xml
|
|
166
|
+
- spec/vcr_cassettes/integration/lookup.yml
|
|
167
|
+
- spec/spec_helper.rb
|
|
168
168
|
- spec/moo_moo/config_spec.rb
|
|
169
|
+
- spec/moo_moo/base_command_spec.rb
|
|
170
|
+
- spec/moo_moo/services/nameserver_spec.rb
|
|
171
|
+
- spec/moo_moo/services/transfer_spec.rb
|
|
169
172
|
- spec/moo_moo/services/provisioning_spec.rb
|
|
170
173
|
- spec/moo_moo/services/dns_zone_spec.rb
|
|
171
|
-
- spec/moo_moo/services/cookie_spec.rb
|
|
172
|
-
- spec/moo_moo/services/transfer_spec.rb
|
|
173
174
|
- spec/moo_moo/services/lookup_spec.rb
|
|
174
|
-
- spec/moo_moo/services/
|
|
175
|
-
- spec/moo_moo/base_command_spec.rb
|
|
175
|
+
- spec/moo_moo/services/cookie_spec.rb
|
|
176
176
|
- spec/moo_moo/middleware/open_srs_xml_builder_spec.rb
|
|
177
|
-
- spec/
|
|
178
|
-
has_rdoc:
|
|
177
|
+
- spec/moo_moo_spec.rb
|