cloudflare 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +2 -2
  2. data/lib/cloudflare.rb +12 -12
  3. metadata +2 -2
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  NOTICE
2
2
  ------
3
3
 
4
- In version 1.1.0 some functions were renamed. Please see documentation.
4
+ In version 1.1.x some functions were renamed. Please see documentation.
5
5
 
6
6
 
7
7
  CloudFlare
@@ -38,7 +38,7 @@ Usage
38
38
  require 'cloudflare'
39
39
 
40
40
  cf = CloudFlare.new('user_api_key', 'user_email')
41
- output = cf.add_rec('domain.com', 'A', '212.11.6.211', 'subdomain.domain.com', true)
41
+ output = cf.rec_new('domain.com', 'A', 'subdomain', '212.11.6.211', 1)
42
42
 
43
43
  if output['result'] == 'success'
44
44
  puts 'Successfuly added DNS record'
@@ -109,7 +109,7 @@ class CloudFlare
109
109
 
110
110
  # This function sets the Basic Security Level to HELP I'M UNDER ATTACK / HIGH / MEDIUM / LOW / ESSENTIALLY OFF.
111
111
  #
112
- # @see http://www.cloudflare.com/docs/client-api.html#4.1
112
+ # @see http://www.cloudflare.com/docs/client-api.html#s4.1
113
113
  #
114
114
  # @param zone [String]
115
115
  # @param value [String] values: low|med|high|help|eoff
@@ -120,7 +120,7 @@ class CloudFlare
120
120
 
121
121
  # This function sets the Caching Level to Aggressive or Basic.
122
122
  #
123
- # @see http://www.cloudflare.com/docs/client-api.html#4.2
123
+ # @see http://www.cloudflare.com/docs/client-api.html#s4.2
124
124
  #
125
125
  # @param zone [String]
126
126
  # @param value [String] values: agg|basic
@@ -131,7 +131,7 @@ class CloudFlare
131
131
 
132
132
  # This function allows you to toggle Development Mode on or off for a particular domain.
133
133
  #
134
- # @see http://www.cloudflare.com/docs/client-api.html#4.3
134
+ # @see http://www.cloudflare.com/docs/client-api.html#s4.3
135
135
  #
136
136
  # @param zone [String]
137
137
  # @param value [Boolean]
@@ -142,7 +142,7 @@ class CloudFlare
142
142
 
143
143
  # This function will purge CloudFlare of any cached files.
144
144
  #
145
- # @see http://www.cloudflare.com/docs/client-api.html#4.4
145
+ # @see http://www.cloudflare.com/docs/client-api.html#s4.4
146
146
  #
147
147
  # @param zone [String]
148
148
 
@@ -152,7 +152,7 @@ class CloudFlare
152
152
 
153
153
  # This function will purge a single file from CloudFlare's cache.
154
154
  #
155
- # @see http://www.cloudflare.com/docs/client-api.html#4.5
155
+ # @see http://www.cloudflare.com/docs/client-api.html#s4.5
156
156
  #
157
157
  # @param zone [String]
158
158
  # @param url [String]
@@ -163,7 +163,7 @@ class CloudFlare
163
163
 
164
164
  # This function updates the snapshot of your site for CloudFlare's challenge page.
165
165
  #
166
- # @see http://www.cloudflare.com/docs/client-api.html#4.6
166
+ # @see http://www.cloudflare.com/docs/client-api.html#s4.6
167
167
  #
168
168
  # @param zoneid [Integer]
169
169
 
@@ -173,7 +173,7 @@ class CloudFlare
173
173
 
174
174
  # This function adds an IP address to your white lists.
175
175
  #
176
- # @see http://www.cloudflare.com/docs/client-api.html#4.7
176
+ # @see http://www.cloudflare.com/docs/client-api.html#s4.7
177
177
  #
178
178
  # @param ip [String]
179
179
 
@@ -184,7 +184,7 @@ class CloudFlare
184
184
 
185
185
  # This function adds an IP address to your black lists.
186
186
  #
187
- # @see http://www.cloudflare.com/docs/client-api.html#4.7
187
+ # @see http://www.cloudflare.com/docs/client-api.html#s4.7
188
188
  #
189
189
  # @param ip [String]
190
190
 
@@ -194,7 +194,7 @@ class CloudFlare
194
194
 
195
195
  # This function removes the IP from whitelist or blacklist.
196
196
  #
197
- # @see http://www.cloudflare.com/docs/client-api.html#4.7
197
+ # @see http://www.cloudflare.com/docs/client-api.html#s4.7
198
198
  #
199
199
  # @param ip [String]
200
200
 
@@ -204,7 +204,7 @@ class CloudFlare
204
204
 
205
205
  # This function toggles IPv6 support.
206
206
  #
207
- # @see http://www.cloudflare.com/docs/client-api.html#4.8
207
+ # @see http://www.cloudflare.com/docs/client-api.html#s4.8
208
208
  #
209
209
  # @param zone [String]
210
210
  # @param value [Boolean]
@@ -255,7 +255,7 @@ class CloudFlare
255
255
  def rec_new(zone, type, name, content, ttl, prio = nil, service = nil, srvname = nil, protocol = nil, weight = nil, port = nil, target = nil)
256
256
  send_req({
257
257
  a: :rec_new,
258
- zone: zone,
258
+ z: zone,
259
259
  type: type,
260
260
  name: name,
261
261
  content: content,
@@ -512,4 +512,4 @@ class CloudFlare
512
512
 
513
513
  end
514
514
 
515
- end
515
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudflare
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
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-02-05 00:00:00.000000000 Z
12
+ date: 2013-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json