terradactyl-terraform 0.15.0 → 1.0.0

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: a4c248e4fe981818a665e02636456e0cd6e88049d0e0495fe1cc3e2487c933ff
4
- data.tar.gz: 37c74ac64e91d4697f00776c3b3e5491f065d2ef008bf0b813785593131008dc
3
+ metadata.gz: 781eb6e61ab0938ebf9b48f361a01e79acc62a9dde8dd156bdd1fc330de3f85b
4
+ data.tar.gz: 414597476d74bcbac7da78ebf93e7e912d54568ed63b205c98ca4ac59145fd0e
5
5
  SHA512:
6
- metadata.gz: 340b3e0c1ddfa250c5f04dbc59c4fdc4d6a25077f1097d41a5ab1588fbaa3467a20dbb1232baed536cd4c2e8deba7873e5841f914a2a97af26b245af775f33b3
7
- data.tar.gz: 98c08dcd41f886c6d43f8921a84795b555585b2b923f07ff438610060eb0785ae266cbec381dddb079c3a580680b644174c027ccec9d9574ee9e45bca283de44
6
+ metadata.gz: 6af4090cea4a2bb2628a50a456963980fae1e968d4f8a616d71ee652a64a62e75ed03ed2ace27aa3075224e41872ce851772b6529910414041b8eba6cb9dfcb8
7
+ data.tar.gz: 5378985cd4cf8cef9d63645b7764baa8bdd484e6f17f8dfe3c76dd64cabaecc70ace8397a20340ba76064a9efd53226729b942e9a9b903dec35fecfb61e47a14
data/.gitignore CHANGED
@@ -11,3 +11,7 @@ vendor
11
11
 
12
12
  # rspec failure tracking
13
13
  .rspec_status
14
+
15
+ # terraform artifacts
16
+ *.tfout
17
+ .terraform
data/.rubocop.yml CHANGED
@@ -10,6 +10,8 @@ Metrics/CyclomaticComplexity:
10
10
  Max: 10
11
11
  Metrics/ClassLength:
12
12
  Max: 115
13
+ Naming/ClassAndModuleCamelCase:
14
+ Enabled: false
13
15
  Naming/UncommunicativeMethodParamName:
14
16
  MinNameLength: 2
15
17
  Style/IfUnlessModifier:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.0 (2021-06-09)
4
+
5
+ NEW FEATURES:
6
+
7
+ * add support for Terraform version `~> 1.0.0`
8
+
9
+ BUG FIXES:
10
+
11
+ * fix broken version revision resolution
12
+
3
13
  ## 0.15.0 (2021-04-27)
4
14
 
5
15
  NEW FEATURES:
@@ -3,8 +3,15 @@
3
3
  module Terradactyl
4
4
  module Terraform
5
5
  class << self
6
+ def calc_revision(version)
7
+ major, minor = version.split(/\.|-/).take(2)
8
+ major = major.to_i.zero? ? major : major + '_'
9
+ minor = minor.rjust(2, '0') # pad a single digit
10
+ ['Rev', major, minor].join
11
+ end
12
+
6
13
  def revision(version)
7
- version ? ['Rev', *version.split(/\.|-/).take(2)].join : revisions.last
14
+ version ? calc_revision(version) : revisions.last
8
15
  end
9
16
 
10
17
  def revisions
@@ -50,6 +50,12 @@ module Terradactyl
50
50
  end
51
51
  end
52
52
 
53
+ module Rev1_00
54
+ module Destroy
55
+ include Terradactyl::Terraform::Rev015::Destroy
56
+ end
57
+ end
58
+
53
59
  module Commands
54
60
  class Destroy < Base
55
61
  end
@@ -47,6 +47,12 @@ module Terradactyl
47
47
  end
48
48
  end
49
49
 
50
+ module Rev1_00
51
+ module Init
52
+ include Terradactyl::Terraform::Rev015::Init
53
+ end
54
+ end
55
+
50
56
  module Commands
51
57
  class Init < Base
52
58
  end
@@ -98,6 +98,11 @@ module Terradactyl
98
98
  end
99
99
  end
100
100
 
101
+ module Rev1_00
102
+ class PlanFileParser < Rev012::PlanFileParser
103
+ end
104
+ end
105
+
101
106
  module Rev011
102
107
  class PlanFileParser < Rev012::PlanFileParser
103
108
  def checksum
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Terradactyl
4
4
  module Terraform
5
- VERSION = '0.15.0'
5
+ VERSION = '1.0.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terradactyl-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Warsing
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-28 00:00:00.000000000 Z
11
+ date: 2021-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip