awspec 0.85.0 → 0.85.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: 0ecc5bcbd50df3ba389eb54c44bdaf0f9eeaca97
4
- data.tar.gz: 2b675e957707e721b63395384747effa950e9b7c
3
+ metadata.gz: d45c7d7e3ad340bc104fca0115c5b7de032de014
4
+ data.tar.gz: 6353ca3d1721a55cb89bed5da113fa87135dfa15
5
5
  SHA512:
6
- metadata.gz: 3dc3a7a3e8fd97051c647447765fcd98f6bb2a1c57867700420b47073726c5624266cddc913361f3fbca002031257b15ed879f7091473b7478d901778396823c
7
- data.tar.gz: 01c4ea57979c011be6d80bcbef82a042868293f8a89ea8cf1cecfdc8b81284519846f64e27dccb564e7631ddd18e0b1631ff402457d1f5e2afa9dd7d41f90d30
6
+ metadata.gz: e17224da1c143bef00991cedae5042d5fc9fc1d49ddeab9177f17acb41cc07ccdcd94379a21616bff23dbce18db6345a53aad585b0ba933b015ce72610982e02
7
+ data.tar.gz: fb5e81d2451f526cefd35d2fa53b56b12c563bac8a5cfe6b6e1cc5320d9740ce6029060821ffac869c775012a389b4415dfebff7456476b33900bc2eeb532c4e
@@ -56,6 +56,16 @@ Aws.config[:route53] = {
56
56
  }
57
57
  ]
58
58
  },
59
+ {
60
+ name: 'www.example.com.',
61
+ type: 'A',
62
+ ttl: 600,
63
+ resource_records: [
64
+ {
65
+ value: '123.456.7.890'
66
+ }
67
+ ]
68
+ },
59
69
  {
60
70
  name: 'example.com.',
61
71
  type: 'NS',
@@ -17,12 +17,12 @@ module Awspec::Type
17
17
  ret = resource_via_client_record_sets.find do |record_set|
18
18
  # next if record_set.type != type.upcase
19
19
  next unless record_set.type.casecmp(type) == 0
20
- options[:ttl] = record_set[:ttl] unless options[:ttl]
21
20
  if !record_set.resource_records.empty?
22
21
  sorted = record_set.resource_records.map { |r| r.value }.sort.join("\n")
22
+ ttl = options[:ttl] || record_set[:ttl]
23
23
  record_set.name == name && \
24
24
  value.split("\n").sort.join("\n") == sorted && \
25
- record_set.ttl == options[:ttl]
25
+ record_set.ttl == ttl
26
26
  else
27
27
  # ALIAS
28
28
  record_set.name == name && \
@@ -1,3 +1,3 @@
1
1
  module Awspec
2
- VERSION = '0.85.0'
2
+ VERSION = '0.85.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.85.0
4
+ version: 0.85.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - k1LoW
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-08 00:00:00.000000000 Z
11
+ date: 2017-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec