splicer-dns_made_easy 2.2.6 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1125bf144dd02c25aa695251a3b7d928be225387
4
- data.tar.gz: 2aaeb251d785f04b8d7808a694857a981284e178
3
+ metadata.gz: bf6f322a7d147d93167887385e53f1dc3b56d9b9
4
+ data.tar.gz: 47c9dcd718199ef4dd9048a582dfcc0550b84ddc
5
5
  SHA512:
6
- metadata.gz: 7fb0c203832692613693bf2d663f7ee40716a3afb1425531941f81de30c07ebfdaff388907d50152cde64faea2033cb8c4d6cfff254ebfabebc1b3533ce220da
7
- data.tar.gz: cea8f20dd0ec984e6b7515154b0d6068dc457e4722dedb2109997a65557f872f4301640ee9d7ba310616e8aa2154fe4bd6ff891f7d7a42559e83a31ec0efbda5
6
+ metadata.gz: 30e0ff9d7123cc9cb579330ef6706b4efb253d436dfdd560294b128606a0939c6ca3481c64c08c687de1b98a58c1d0dcbf4c6208c663940fd7e35a016d50c086
7
+ data.tar.gz: 87fc82d2ee280b183ef4d87d66890a33f5b1a136c7dc7b0c20ef187faf3646256ee7bc91d1268576eaf69e4c46997b68ba0306724e97e8a992d57b05a3269baa
@@ -87,11 +87,14 @@ module Splicer
87
87
  @records = []
88
88
  records.each do |record|
89
89
  new_record = Record.new
90
- record.each {|attribute, type| new_record.send(:"#{attribute}=", type)}
90
+ record.each do |attribute, type|
91
+ new_record.send(:"#{attribute}=", type) if new_record.respond_to?(:"#{attribute}=")
92
+ end
91
93
  @records << new_record
92
94
  end
93
95
  @records
94
- rescue
96
+ rescue => error
97
+ Splicer.logger.error "[SPLICER][DNSMADEEASY] #fetch_records domain_id=#{domain_id} #{error.message}"
95
98
  []
96
99
  end
97
100
 
@@ -114,6 +117,7 @@ module Splicer
114
117
  [Record.new(response['data'])]
115
118
  end
116
119
  rescue Splicer::Errors::Error => error
120
+ Splicer.logger.error "[SPLICER][DNSMADEEASY] #find_records name=#{name} type=#{type} domain_id=#{domain_id} #{error.message}"
117
121
  []
118
122
  end
119
123
 
@@ -2,10 +2,8 @@ module Splicer
2
2
  module DnsMadeEasy
3
3
 
4
4
  class Record
5
- attr_accessor :name, :value, :id, :type, :dynamicDns,
6
- :failed, :gtdLocation, :hardLink, :ttl,
7
- :failover, :monitor, :sourceId, :source,
8
- :data, :mxLevel
5
+ attr_accessor :data, :description, :dynamicDns, :failed, :failover, :gtdLocation, :hardLink, :id, :keywords,
6
+ :monitor, :mxLevel, :name, :redirectType, :source, :sourceId, :title, :ttl, :type, :value
9
7
 
10
8
  def initialize(params={})
11
9
  @id = params['id']
@@ -1,5 +1,5 @@
1
1
  module Splicer
2
2
  module DnsMadeEasy
3
- VERSION = '2.2.6'
3
+ VERSION = '2.2.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splicer-dns_made_easy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
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-18 00:00:00.000000000 Z
13
+ date: 2016-04-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: splicer