pdns 0.6.0 → 0.7.0

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: 534df87960852275d6c803b259465e949b664806
4
- data.tar.gz: 63af97e3363bc09fa1f423c779db35867679c556
3
+ metadata.gz: eb9ba7be6b5e1031a9f7c7454dba7198505e9c0b
4
+ data.tar.gz: 00f803dbf94b6983afffccb835ee4b78b1e50146
5
5
  SHA512:
6
- metadata.gz: e5d439453e314c371a92552f89609780edf4711e914fbb8f91ea7867f2f5bfa606a47e6dd0a7e4b5a4aaaafb031d6f57af6aad8479f11a590127e2710998f18e
7
- data.tar.gz: 11697e54b9c684076c74a419dd01c43bb864785ea71015cd041ef957c25568e9f445f971735fc89a9e32e938708431e41b95bbcda9f1eb14c995a77c59cf97af
6
+ metadata.gz: aef352b6a92a0d5cd35e50b1ade5c7080102494b8ff840aedc307f7b090857d6826f87f791dc6f8e9ae27b26139bd0df1356910fa3200913a88944c033d48b47
7
+ data.tar.gz: f960ce9a0fd0e5add272d21bd6ac8e8ab6c9d4691ca966513e05e338ce499fe63b49bf83700c6fbe98d1aff8be86092eca059a22d040da4ffa7340cf333a18d0
@@ -35,7 +35,7 @@ module PDNS
35
35
  end
36
36
 
37
37
  def domain_params
38
- params[:domain].permit %i(name type)
38
+ (params[:domain] || params).permit %i(name type)
39
39
  end
40
40
  end
41
41
  end
@@ -62,7 +62,7 @@ module PDNS
62
62
  end
63
63
 
64
64
  def set_record
65
- permitted = params.permit %i(id type content ttl prio)
65
+ permitted = params.permit %i(id type content ttl prio auth)
66
66
  permitted[:name] = permitted.delete :id
67
67
 
68
68
  record = @domain.records.where(permitted)
@@ -77,7 +77,7 @@ module PDNS
77
77
  end
78
78
 
79
79
  def record_params
80
- params[:record].permit %i(name type content ttl prio)
80
+ (params[:record] || params).permit %i(name type content ttl prio auth)
81
81
  end
82
82
 
83
83
  def delete_records
@@ -1,3 +1,3 @@
1
1
  module PDNS
2
- VERSION = '0.6.0'
2
+ VERSION = '0.7.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows