zerigo_dns 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/zerigo_dns.gemspec +1 -2
  3. metadata +1 -2
  4. data/lib/zerigo_ns.rb +0 -52
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
data/zerigo_dns.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{zerigo_dns}
8
- s.version = "1.0.2"
8
+ s.version = "1.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Wilson"]
@@ -24,7 +24,6 @@ Gem::Specification.new do |s|
24
24
  "Rakefile",
25
25
  "VERSION",
26
26
  "example/sample.rb",
27
- "lib/zerigo_ns.rb",
28
27
  "test/helper.rb",
29
28
  "test/test_zerigo_dns.rb",
30
29
  "zerigo_dns.gemspec"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zerigo_dns
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Wilson
@@ -49,7 +49,6 @@ files:
49
49
  - Rakefile
50
50
  - VERSION
51
51
  - example/sample.rb
52
- - lib/zerigo_ns.rb
53
52
  - test/helper.rb
54
53
  - test/test_zerigo_dns.rb
55
54
  - zerigo_dns.gemspec
data/lib/zerigo_ns.rb DELETED
@@ -1,52 +0,0 @@
1
- # Copyright 2009 Zerigo, Inc. See MIT-LICENSE for license information.
2
- # Visit http://www.zerigo.com/docs/managed-dns for updates and documentation.
3
-
4
- require 'activeresource-ext'
5
-
6
- module Zerigo
7
- module NS
8
-
9
- class Base < ActiveResource::Base
10
- self.site='http://ns.zerigo.com/api/1.1/'
11
- self.user = 'test@example.com'
12
- self.password = 'ca01ffae311a7854ea366b05cd02bd50'
13
- self.timeout = 5 # timeout after 5 seconds
14
-
15
-
16
- # fix load() so that it no longer clobbers @prefix_options
17
- # also fix bug exposed by reload() where attributes is effectively parsed twice, causing the first line to raise an exception the 2nd time
18
- def load(attributes)
19
- raise ArgumentError, "expected an attributes Hash, got #{attributes.inspect}" unless attributes.is_a?(Hash)
20
- new_prefix_options, attributes = split_options(attributes)
21
- @prefix_options.merge!(new_prefix_options)
22
- attributes.each do |key, value|
23
- @attributes[key.to_s] =
24
- case value
25
- when Array
26
- if value.all?{|v2| v2.kind_of?(ActiveResource::Base)}
27
- value.dup rescue value
28
- else
29
- resource = find_or_create_resource_for_collection(key)
30
- value.map { |attrs| attrs.is_a?(String) ? attrs.dup : resource.new(attrs) }
31
- end
32
- when Hash
33
- resource = find_or_create_resource_for(key)
34
- resource.new(value)
35
- else
36
- value.dup rescue value
37
- end
38
- end
39
- self
40
- end
41
-
42
- end
43
-
44
-
45
- class Zone < Base
46
- end
47
-
48
- class Host < Base
49
- end
50
-
51
- end
52
- end