dnsimple-ruby 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/README.rdoc +1 -1
- data/README.textile +1 -1
- data/lib/dnsimple/client.rb +16 -2
- data/lib/dnsimple/commands/delete_record.rb +1 -1
- data/lib/dnsimple/version.rb +1 -1
- metadata +131 -132
data/README
CHANGED
data/README.rdoc
CHANGED
data/README.textile
CHANGED
@@ -135,4 +135,4 @@ Sample:
|
|
135
135
|
|
136
136
|
The complete RDoc for the wrapper classes can be found here:
|
137
137
|
|
138
|
-
"http://
|
138
|
+
"http://rubydoc.info/gems/dnsimple-ruby/1.2.6/":http://rubydoc.info/gems/dnsimple-ruby/1.2.6/
|
data/lib/dnsimple/client.rb
CHANGED
@@ -36,10 +36,18 @@ class DNSimple::Client
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def self.base_uri=(base_uri)
|
39
|
-
base_uri += '/' if base_uri[/\/$/].nil?
|
39
|
+
base_uri += '/' if base_uri && base_uri[/\/$/].nil?
|
40
40
|
@base_uri = base_uri
|
41
41
|
end
|
42
42
|
|
43
|
+
def self.http_proxy
|
44
|
+
@http_proxy
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.http_proxy=(http_proxy)
|
48
|
+
@http_proxy = http_proxy
|
49
|
+
end
|
50
|
+
|
43
51
|
def self.load_credentials_if_necessary
|
44
52
|
load_credentials unless credentials_loaded?
|
45
53
|
end
|
@@ -55,6 +63,7 @@ class DNSimple::Client
|
|
55
63
|
self.password = credentials['password']
|
56
64
|
self.api_token = credentials['api_token']
|
57
65
|
self.base_uri = credentials['site']
|
66
|
+
self.http_proxy = { :addr => credentials['proxy_addr'], :port => credentials['proxy_port'] }
|
58
67
|
@credentials_loaded = true
|
59
68
|
"Credentials loaded from #{path}"
|
60
69
|
rescue
|
@@ -68,7 +77,12 @@ class DNSimple::Client
|
|
68
77
|
end
|
69
78
|
|
70
79
|
def self.standard_options
|
71
|
-
options = {
|
80
|
+
options = {
|
81
|
+
:format => :json,
|
82
|
+
:headers => {'Accept' => 'application/json'},
|
83
|
+
:http_proxyaddr => self.http_proxy[:addr],
|
84
|
+
:http_proxyport => self.http_proxy[:port]
|
85
|
+
}
|
72
86
|
|
73
87
|
if password
|
74
88
|
options[:basic_auth] = {:username => username, :password => password}
|
data/lib/dnsimple/version.rb
CHANGED
metadata
CHANGED
@@ -1,150 +1,158 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnsimple-ruby
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.3.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 3
|
9
|
-
- 0
|
10
|
-
version: 1.3.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Anthony Eden
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
|
-
none: false
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
hash: 3
|
27
|
-
segments:
|
28
|
-
- 0
|
29
|
-
version: "0"
|
30
|
-
prerelease: false
|
31
|
-
type: :runtime
|
12
|
+
date: 2012-06-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
32
15
|
name: httparty
|
33
|
-
requirement:
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
36
17
|
none: false
|
37
|
-
requirements:
|
38
|
-
- -
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
|
41
|
-
|
42
|
-
- 0
|
43
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
44
23
|
prerelease: false
|
45
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
46
31
|
name: aruba
|
47
|
-
requirement:
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
version_requirements: &id003 !ruby/object:Gem::Requirement
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
50
33
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
segments:
|
56
|
-
- 0
|
57
|
-
version: "0"
|
58
|
-
prerelease: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
59
38
|
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
60
47
|
name: cucumber
|
61
|
-
requirement:
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
version_requirements: &id004 !ruby/object:Gem::Requirement
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
64
49
|
none: false
|
65
|
-
requirements:
|
66
|
-
- -
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
segments:
|
70
|
-
- 0
|
71
|
-
version: "0"
|
72
|
-
prerelease: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
73
54
|
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
74
63
|
name: fakeweb
|
75
|
-
requirement:
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
78
65
|
none: false
|
79
|
-
requirements:
|
80
|
-
- -
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
|
83
|
-
segments:
|
84
|
-
- 0
|
85
|
-
version: "0"
|
86
|
-
prerelease: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
87
70
|
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
88
79
|
name: mocha
|
89
|
-
requirement:
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
92
81
|
none: false
|
93
|
-
requirements:
|
94
|
-
- -
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
|
97
|
-
segments:
|
98
|
-
- 0
|
99
|
-
version: "0"
|
100
|
-
prerelease: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
101
86
|
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
102
95
|
name: rake
|
103
|
-
requirement:
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
version_requirements: &id007 !ruby/object:Gem::Requirement
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
106
97
|
none: false
|
107
|
-
requirements:
|
108
|
-
- -
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
|
111
|
-
segments:
|
112
|
-
- 2
|
113
|
-
- 0
|
114
|
-
- 0
|
115
|
-
version: 2.0.0
|
116
|
-
prerelease: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
117
102
|
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
118
111
|
name: rspec
|
119
|
-
requirement:
|
120
|
-
- !ruby/object:Gem::Dependency
|
121
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
122
113
|
none: false
|
123
|
-
requirements:
|
124
|
-
- -
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
|
127
|
-
segments:
|
128
|
-
- 0
|
129
|
-
version: "0"
|
130
|
-
prerelease: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.0.0
|
131
118
|
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 2.0.0
|
126
|
+
- !ruby/object:Gem::Dependency
|
132
127
|
name: vcr
|
133
|
-
requirement:
|
134
|
-
|
135
|
-
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
description: A ruby wrapper for the DNSimple API that also includes a command-line
|
143
|
+
client.
|
144
|
+
email:
|
136
145
|
- anthony.eden@dnsimple.com
|
137
|
-
executables:
|
146
|
+
executables:
|
138
147
|
- dnsimple
|
139
148
|
- dnsimple.rb
|
140
149
|
extensions: []
|
141
|
-
|
142
|
-
extra_rdoc_files:
|
150
|
+
extra_rdoc_files:
|
143
151
|
- LICENSE
|
144
152
|
- README
|
145
153
|
- README.rdoc
|
146
154
|
- README.textile
|
147
|
-
files:
|
155
|
+
files:
|
148
156
|
- .gitignore
|
149
157
|
- Gemfile
|
150
158
|
- Gemfile.lock
|
@@ -265,38 +273,29 @@ files:
|
|
265
273
|
- spec/user_spec.rb
|
266
274
|
homepage: http://github.com/aetrion/dnsimple-ruby
|
267
275
|
licenses: []
|
268
|
-
|
269
276
|
post_install_message:
|
270
277
|
rdoc_options: []
|
271
|
-
|
272
|
-
require_paths:
|
278
|
+
require_paths:
|
273
279
|
- lib
|
274
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
280
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
275
281
|
none: false
|
276
|
-
requirements:
|
277
|
-
- -
|
278
|
-
- !ruby/object:Gem::Version
|
279
|
-
|
280
|
-
|
281
|
-
- 0
|
282
|
-
version: "0"
|
283
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ! '>='
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
284
287
|
none: false
|
285
|
-
requirements:
|
286
|
-
- -
|
287
|
-
- !ruby/object:Gem::Version
|
288
|
-
|
289
|
-
segments:
|
290
|
-
- 0
|
291
|
-
version: "0"
|
288
|
+
requirements:
|
289
|
+
- - ! '>='
|
290
|
+
- !ruby/object:Gem::Version
|
291
|
+
version: '0'
|
292
292
|
requirements: []
|
293
|
-
|
294
293
|
rubyforge_project:
|
295
|
-
rubygems_version: 1.8.
|
294
|
+
rubygems_version: 1.8.21
|
296
295
|
signing_key:
|
297
296
|
specification_version: 3
|
298
297
|
summary: A ruby wrapper for the DNSimple API
|
299
|
-
test_files:
|
298
|
+
test_files:
|
300
299
|
- features/README
|
301
300
|
- features/cli/certificates/purchase_certificate.feature
|
302
301
|
- features/cli/contacts/create_contact.feature
|