netdnarws 0.2.6 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -28,3 +28,17 @@ api.delete("/zones/pull.json/1234")
28
28
  # To purge a file (robots.txt) from cache
29
29
  api.delete("/zones/pull.json/1234/cache", {"file" => "/robots.txt"})
30
30
  ```
31
+
32
+ ### We now have a shortcut for Purge Calls!
33
+ ```ruby
34
+ zone_id = 12345
35
+
36
+ # Purge Zone
37
+ api.purge(zone_id)
38
+
39
+ # Purge File
40
+ api.purge(zone_id, '/some_file')
41
+
42
+ # Purge Files
43
+ api.purge(zone_id, ['/some_file', '/another_file'])
44
+ ```
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.5
1
+ 0.2.8
@@ -1,3 +1,3 @@
1
1
  module NetDNARWS
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.8"
3
3
  end
data/lib/netdnarws.rb CHANGED
@@ -50,6 +50,7 @@ module NetDNARWS
50
50
 
51
51
  request_options[:body] = _encode_params(attributes[0]) if options[:body]
52
52
  request = @request_signer.generate_authenticated_request(request_options)
53
+ request.headers["User-Agent"] = "Ruby NetDNA API Client"
53
54
 
54
55
  begin
55
56
  curb_options = {}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netdnarws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.8
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-03-07 00:00:00.000000000 Z
12
+ date: 2013-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable