ruby-terraform 1.7.0.pre.10 → 1.7.0.pre.11

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
  SHA256:
3
- metadata.gz: 102ce285cd2f81079ad3007995506cb41124e61f5d70ae93d98c6de235b64d75
4
- data.tar.gz: ac4c7f3e50f9ed75054bee0674529071b42d16b852a22d042f23cd36659e92cd
3
+ metadata.gz: f862162fcf6b6a867d5d941ab4c9ea77a8becf5c9cbae1eb7f125a3b0af961a5
4
+ data.tar.gz: f8a4e9a47744a984dd6d91a51607c1d6bfb65b5d8dca05d07f7c313b551ee3ec
5
5
  SHA512:
6
- metadata.gz: 8c939e042d81d927564c89f53bd8fcd32cde4c0d02590ff8e4616c474edd5d46d94336afcc83d58cfc836347361eaf21ed2b0fe9fd9bf65a3d3f513e4f73d960
7
- data.tar.gz: 8abd681b0fc3a1ada5ac560d4b8299b8c477d6a9e5f23a07ab0885f4ba7c83281b0cd2d4ce53968c1ace506fb8538f607c9083a1bb05daabbeacfb53cc017435
6
+ metadata.gz: bbb840db295d429f7acc440f8d6b82dc54ba52fa025a1cc158ead7bfb543abee9d458239d5fb0e7f9a7b40c998aad8b0d6d5213e054e4491e56da191a267a765
7
+ data.tar.gz: '0803b4b3d638d9ce2b6a05c87f1be13b0a020764a62834e492f8a9e13ee53fe5abc7da69e1156b01f5231223768c0fcf4252c19fb8115c5a45e3a4b528376412'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-terraform (1.7.0.pre.10)
4
+ ruby-terraform (1.7.0.pre.11)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
@@ -31,6 +31,14 @@ module RubyTerraform
31
31
  change.delete?
32
32
  end
33
33
 
34
+ def present_before?
35
+ update? || delete?
36
+ end
37
+
38
+ def present_after?
39
+ create? || update?
40
+ end
41
+
34
42
  def inspect
35
43
  to_h.inspect
36
44
  end
@@ -46,6 +46,14 @@ module RubyTerraform
46
46
  end
47
47
  end
48
48
 
49
+ def output_changes_matching(definition)
50
+ output_changes.filter do |output_change|
51
+ definition.all? do |method, value|
52
+ output_change.send(method) == value
53
+ end
54
+ end
55
+ end
56
+
49
57
  def inspect
50
58
  @content.inspect
51
59
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyTerraform
4
- VERSION = '1.7.0.pre.10'
4
+ VERSION = '1.7.0.pre.11'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0.pre.10
4
+ version: 1.7.0.pre.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-01 00:00:00.000000000 Z
11
+ date: 2022-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: immutable-struct