splicer 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Splicer
2
2
 
3
+ [![Code Climate](https://codeclimate.com/github/zippykid/splicer.png)](https://codeclimate.com/github/zippykid/splicer)
4
+
3
5
  Allows for interactions with multiple DNS' through one abstract API. You can use
4
6
  this to talk to one or more DNS providers if you choose.
5
7
 
@@ -22,8 +24,8 @@ gem 'splicer'
22
24
 
23
25
  ```rb
24
26
  Splicer.configure do |config|
25
- config.register(Splicer::Dynect.new('company','user','pass')) # gem 'splicer-dynect'
26
- config.register(Splicer::DNSMadeEasy.new('user','pass')) # gem 'splicer-dns_made_easy'
27
+ config.register(Splicer::Dynect::Config.new('company','user','pass')) # gem 'splicer-dynect'
28
+ config.register(Splicer::DNSMadeEasy::Config.new('user','pass')) # gem 'splicer-dns_made_easy'
27
29
  end
28
30
  ```
29
31
 
@@ -53,7 +55,7 @@ Is a collection of records.
53
55
  ```rb
54
56
  zone = Splicer::Zone.new('example.com')
55
57
  zone.add_record(record)
56
- zone.publish
58
+ zone.publish(:merge)
57
59
  ```
58
60
 
59
61
  When `Splicer::Zone#publish` is called, the provider can be passed to only push
@@ -1,3 +1,3 @@
1
1
  module Splicer
2
- VERSION = "0.1.1"
2
+ VERSION = "1.0.0"
3
3
  end
data/lib/splicer/zone.rb CHANGED
@@ -1,13 +1,14 @@
1
1
  module Splicer
2
2
 
3
3
  class Zone
4
- attr_accessor :name
4
+ attr_accessor :name, :ttl
5
5
 
6
6
  attr_reader :records
7
7
 
8
8
  # @param [String] name the name of the zone
9
- def initialize(name)
9
+ def initialize(name, ttl=3600)
10
10
  @name = name
11
+ @ttl = ttl
11
12
  @records = Array.new
12
13
  end
13
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splicer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
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-05-07 00:00:00.000000000 Z
12
+ date: 2013-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  segments:
122
122
  - 0
123
- hash: 3256112147773983445
123
+ hash: -1041512677297454527
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  none: false
126
126
  requirements:
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  segments:
131
131
  - 0
132
- hash: 3256112147773983445
132
+ hash: -1041512677297454527
133
133
  requirements: []
134
134
  rubyforge_project:
135
135
  rubygems_version: 1.8.25