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 +4 -4
- data/lib/splicer.rb +8 -1
- data/lib/splicer/provider.rb +4 -0
- data/lib/splicer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a01855dd95da7119c487e00becbce495420b0208
|
4
|
+
data.tar.gz: d4dc46377bd36ec72e211888ad5e05772adf73eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/splicer/provider.rb
CHANGED
data/lib/splicer/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|