splicer 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,25 @@
1
+ module Splicer
2
+
3
+ class Provider
4
+ def create_zone(zone)
5
+ false
6
+ end
7
+
8
+ def delete_zone(zone)
9
+ false
10
+ end
11
+
12
+ def delete_record_in_zone(record, zone)
13
+ false
14
+ end
15
+
16
+ def update_record_in_zone(record, zone)
17
+ false
18
+ end
19
+
20
+ def create_record_in_zone(record, zone)
21
+ false
22
+ end
23
+ end
24
+
25
+ end
@@ -1,3 +1,3 @@
1
1
  module Splicer
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
data/lib/splicer.rb CHANGED
@@ -3,6 +3,7 @@ require 'splicer/errors'
3
3
  require 'splicer/null_object'
4
4
  require 'splicer/configuration'
5
5
  require 'splicer/records'
6
+ require 'splicer/provider'
6
7
  require 'splicer/zone'
7
8
 
8
9
  # Splicer is a simple DNS data structure that allows you to publish changes to
@@ -98,6 +99,6 @@ module Splicer
98
99
  # The logger that splicer will use
99
100
  # @return [Logger|Splicer::NullObject]
100
101
  def self.logger
101
- @@logger
102
+ @@logger || NullObject.new
102
103
  end
103
104
  end
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+
3
+ describe Splicer::Provider do
4
+ let(:provider) { Splicer::Provider.new }
5
+ let(:zone) { Splicer::Zone.new('rspectesting.com') }
6
+ let(:record) { Splicer::Records::ARecord.new(nil, '127.0.0.1') }
7
+
8
+ describe '#create_zone' do
9
+ subject { provider.create_zone(zone) }
10
+ it { should be_false }
11
+ end
12
+
13
+ describe '#delete_zone' do
14
+ subject { provider.delete_zone(zone) }
15
+ it { should be_false }
16
+ end
17
+
18
+ describe '#create_record_in_zone' do
19
+ subject { provider.create_record_in_zone(record, zone) }
20
+ it { should be_false }
21
+ end
22
+
23
+ describe '#update_record_in_zone' do
24
+ subject { provider.update_record_in_zone(record, zone) }
25
+ it { should be_false }
26
+ end
27
+
28
+ describe '#delete_record_in_zone' do
29
+ subject { provider.delete_record_in_zone(record, zone) }
30
+ it { should be_false }
31
+ end
32
+ end
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: 2.0.0
4
+ version: 2.1.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-22 00:00:00.000000000 Z
12
+ date: 2013-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -78,6 +78,7 @@ files:
78
78
  - lib/splicer/configuration.rb
79
79
  - lib/splicer/errors.rb
80
80
  - lib/splicer/null_object.rb
81
+ - lib/splicer/provider.rb
81
82
  - lib/splicer/records.rb
82
83
  - lib/splicer/records/a_record.rb
83
84
  - lib/splicer/records/aaaa_record.rb
@@ -94,6 +95,7 @@ files:
94
95
  - spec/spec_helper.rb
95
96
  - spec/splicer/configuration_spec.rb
96
97
  - spec/splicer/null_object_spec.rb
98
+ - spec/splicer/provider_spec.rb
97
99
  - spec/splicer/records/a_record_spec.rb
98
100
  - spec/splicer/records/aaaa_record_spec.rb
99
101
  - spec/splicer/records/cname_record_spec.rb
@@ -122,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
124
  version: '0'
123
125
  segments:
124
126
  - 0
125
- hash: 3497503811239138355
127
+ hash: -800734796650687555
126
128
  required_rubygems_version: !ruby/object:Gem::Requirement
127
129
  none: false
128
130
  requirements:
@@ -131,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
133
  version: '0'
132
134
  segments:
133
135
  - 0
134
- hash: 3497503811239138355
136
+ hash: -800734796650687555
135
137
  requirements: []
136
138
  rubyforge_project:
137
139
  rubygems_version: 1.8.25
@@ -142,6 +144,7 @@ test_files:
142
144
  - spec/spec_helper.rb
143
145
  - spec/splicer/configuration_spec.rb
144
146
  - spec/splicer/null_object_spec.rb
147
+ - spec/splicer/provider_spec.rb
145
148
  - spec/splicer/records/a_record_spec.rb
146
149
  - spec/splicer/records/aaaa_record_spec.rb
147
150
  - spec/splicer/records/cname_record_spec.rb