lib/zonesync/cloudflare.rb in zonesync-0.6.1 vs lib/zonesync/cloudflare.rb in zonesync-0.7.0

- old
+ new

@@ -17,19 +17,21 @@ http.patch("/#{id}", { name: new_record[:name], type: new_record[:type], ttl: new_record[:ttl], content: new_record[:rdata], + comment: new_record[:comment], }) end def add record http.post(nil, { name: record[:name], type: record[:type], ttl: record[:ttl], content: record[:rdata], + comment: record[:comment], }) end def records @records ||= begin @@ -53,9 +55,10 @@ Record.new( normalize_trailing_period(attrs["name"]), attrs["type"], attrs["ttl"].to_i, rdata, + attrs["comment"], ).to_h end def normalize_trailing_period value value =~ /\.$/ ? value : value + "."