splicer 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e920b4724f5a501658506c30b64212d4809e51b
4
- data.tar.gz: 17abca31fd6d2d3c0cdfbff3a7fc4b3e3f0dbc9e
3
+ metadata.gz: a01855dd95da7119c487e00becbce495420b0208
4
+ data.tar.gz: d4dc46377bd36ec72e211888ad5e05772adf73eb
5
5
  SHA512:
6
- metadata.gz: 95541d2c81ca80a4fb4f24c1d7a649560dc124ca90f151fbde16fd4438de39ef4de2954bf163bc25fb113fc6dcb8d605974cd87dd88b7009d8edbc4ad866db44
7
- data.tar.gz: 2a6d38e5869a7dd5eb06a5d5780dcb788d835e48eaaa54a0c05dd9901ba8e62dd19d36b510dd3223df979a3429bb0b6567ff2ecd14e646c131feaecb4891fae6
6
+ metadata.gz: dcc7f2737e9310a25bf4ba287a1d7bfeba46ed2069fe47e825f20074c684c96f26853deb4d37fdf17c4aaa972644ecbdfa98838cd5d9a65ec8f8e6f18d3dbb2c
7
+ data.tar.gz: 5ec4b5e44471b1865ba52155598faa18e5241b898a4785008bff5456ca7bfbebe281e7e5c74e92294046df28e62aecf6447e8d5fe91cfdbe90c206015ec94306
data/lib/splicer.rb CHANGED
@@ -84,11 +84,18 @@ module Splicer
84
84
  end
85
85
  end
86
86
 
87
+ # Returns the zone data from domain host
88
+ def self.get_zone_for(zone)
89
+ return false if zone_is_invalid(zone)
90
+ zone_array = providers.map { |provider| provider.get_zone_for(zone) }
91
+ zone_array.compact.first
92
+ end
93
+
87
94
  # Fetches list of associated records
88
95
  # @returns an array of Record objects
89
96
  def self.get_records_for(zone)
90
97
  return [] if zone_is_invalid(zone)
91
- providers.map { |provider| provider.get_records_for(zone)}.flatten
98
+ providers.map { |provider| provider.get_records_for(zone) }.flatten
92
99
  end
93
100
 
94
101
  # Deletes a record from a zone
@@ -21,6 +21,10 @@ module Splicer
21
21
  false
22
22
  end
23
23
 
24
+ def get_zone_for(zone)
25
+ false
26
+ end
27
+
24
28
  def get_records_for(zone)
25
29
  []
26
30
  end
@@ -1,3 +1,3 @@
1
1
  module Splicer
2
- VERSION = '2.2.1'
2
+ VERSION = '2.2.2'
3
3
  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.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Johnston
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-03-03 00:00:00.000000000 Z
13
+ date: 2016-03-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  version: '0'
146
146
  requirements: []
147
147
  rubyforge_project:
148
- rubygems_version: 2.4.8
148
+ rubygems_version: 2.2.3
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Use this gem if you are using multiple DNS providers, and want a unified