splicer 2.2.0 → 2.2.1

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: ee3f3666c4fb37ba0db7c158873b85a2e1bd83b3
4
- data.tar.gz: ce1c2e7aa24e3721fd94aec9c53f151802799335
3
+ metadata.gz: 3e920b4724f5a501658506c30b64212d4809e51b
4
+ data.tar.gz: 17abca31fd6d2d3c0cdfbff3a7fc4b3e3f0dbc9e
5
5
  SHA512:
6
- metadata.gz: bb157253f48075777154b7ed69b8c32ba6dbb22934aba83f5831c814838dbb92b32f0417fcb14227cfb82e8b12b3dc21d3218a09887fdc8f866e3a9f813b255e
7
- data.tar.gz: 90b05fe18fea57e79e9d76dbf851b0bd1f8a118a967c356bff6502c71ed24622bc7b7737a4d498659fdb3bcf493ee8d2ff345ad303e7358ba47e69afd6423604
6
+ metadata.gz: 95541d2c81ca80a4fb4f24c1d7a649560dc124ca90f151fbde16fd4438de39ef4de2954bf163bc25fb113fc6dcb8d605974cd87dd88b7009d8edbc4ad866db44
7
+ data.tar.gz: 2a6d38e5869a7dd5eb06a5d5780dcb788d835e48eaaa54a0c05dd9901ba8e62dd19d36b510dd3223df979a3429bb0b6567ff2ecd14e646c131feaecb4891fae6
@@ -5,6 +5,11 @@ module Splicer
5
5
  end
6
6
 
7
7
  class RequestError < Error
8
+ attr_reader :data
9
+ def initialize(message, data = {})
10
+ super(message)
11
+ @data = data
12
+ end
8
13
  end
9
14
 
10
15
  end
@@ -1,3 +1,3 @@
1
1
  module Splicer
2
- VERSION = "2.2.0"
2
+ VERSION = '2.2.1'
3
3
  end
data/lib/splicer.rb CHANGED
@@ -89,13 +89,6 @@ module Splicer
89
89
  def self.get_records_for(zone)
90
90
  return [] if zone_is_invalid(zone)
91
91
  providers.map { |provider| provider.get_records_for(zone)}.flatten
92
- # records = []
93
- # providers.each do |provider|
94
- # result = provider.get_records_for(zone)
95
- # next unless result
96
- # result.each { |record| records << record }
97
- # end
98
- # records
99
92
  end
100
93
 
101
94
  # Deletes a record from a zone
data/splicer.gemspec CHANGED
@@ -4,19 +4,19 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'splicer/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "splicer"
7
+ spec.name = 'splicer'
8
8
  spec.version = Splicer::VERSION
9
- spec.authors = ["Matthew Johnston", "Joshua Stowers"]
10
- spec.email = ["warmwaffles@gmail.com", "joshua@pressable.com"]
9
+ spec.authors = ['Matthew Johnston', 'Joshua Stowers', 'Oliver Garcia']
10
+ spec.email = %w{warmwaffles@gmail.com joshua@pressable.com oliver@pressable.com}
11
11
  spec.description = %q{Splicer allows communication with one or more dns providers}
12
12
  spec.summary = %q{Use this gem if you are using multiple DNS providers, and want a unified interface to manage each of them simultaneously}
13
- spec.homepage = "https://github.com/pressable/splicer"
14
- spec.license = "MIT"
13
+ spec.homepage = 'https://github.com/pressable/splicer'
14
+ spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files`.split($/)
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
19
+ spec.require_paths = %w{lib}
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1.3', '>= 1.3.0'
22
22
  spec.add_development_dependency 'rake', '~> 10.4', '>= 10.4.0'
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splicer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Johnston
8
8
  - Joshua Stowers
9
+ - Oliver Garcia
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2015-11-25 00:00:00.000000000 Z
13
+ date: 2016-03-03 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: bundler
@@ -75,6 +76,7 @@ description: Splicer allows communication with one or more dns providers
75
76
  email:
76
77
  - warmwaffles@gmail.com
77
78
  - joshua@pressable.com
79
+ - oliver@pressable.com
78
80
  executables: []
79
81
  extensions: []
80
82
  extra_rdoc_files: []
@@ -143,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
145
  version: '0'
144
146
  requirements: []
145
147
  rubyforge_project:
146
- rubygems_version: 2.2.3
148
+ rubygems_version: 2.4.8
147
149
  signing_key:
148
150
  specification_version: 4
149
151
  summary: Use this gem if you are using multiple DNS providers, and want a unified