terraspace 2.2.12 → 2.2.14

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: 8aaefa8e220ec2998a8483d12043c9aa998042d3ffa6b7eee76e186db7f11c26
4
- data.tar.gz: 33b63a92782d8c52136f8a2f737318ee7ad2ab5bb6f778ce6a494216863a9041
3
+ metadata.gz: b6aa27ac1150e1d8a655455563ed6b65ebbcb7393c6f93c70cbb2c6940a06b9a
4
+ data.tar.gz: d314706f83d8376cfed32d2cf1c96c19e4ce1b8196da53c8f69b93af838dc13c
5
5
  SHA512:
6
- metadata.gz: ad0378722bd9d64f8d3a91d9289d5b7aa9d29fa6773d5505846e1aa3e45e0ce666d51f81320afad95aa733cfb11cfa09e776ab49980a41d2e4f2c29a832de005
7
- data.tar.gz: 359104b53497ab56d219bbb8dec1ac78e23d4c6b6a6b79811918479a5356c1073d831e9a2c4c2653471d3f6def70e7c2d861da836b270420ace2f420ea476abd
6
+ metadata.gz: dd0e67073071970c300fffe59988b934a72fcb7755d78e5257034c41d963a39395d8a6a379d8cdd536201aa85c8601abcaadeb261afd91fe56b842e0726520a6
7
+ data.tar.gz: 8d8bb60a136df285e62014e7a8f40c07d7d9dda3ef7c08fa024fca0bd4dbe0c81f8b902b9b50939127bfb70cd39fa841a9c65a84067f2e9286bd241f4b99bd18
data/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [2.2.14] - 2023-09-12
7
+ - [#329](https://github.com/boltops-tools/terraspace/pull/329) fix terraspace check
8
+
9
+ ## [2.2.13] - 2023-08-23
10
+ - [#327](https://github.com/boltops-tools/terraspace/pull/327) terraspace check improvements: only show check when fails
11
+
6
12
  ## [2.2.12] - 2023-08-23
7
13
  - [#326](https://github.com/boltops-tools/terraspace/pull/326) terraspace check improvements
8
14
  - hide deprecated check commands
@@ -38,9 +38,9 @@ module Terraspace
38
38
  See: https://terraspace.cloud/docs/terraform/license/
39
39
  EOL
40
40
 
41
- puts "ERROR: #{name} requires Terraform between v#{@min_terraform_version}.x and #{@max_terraform_version}".color(:red)
41
+ puts "ERROR: #{name} requires Terraform between #{@min_terraform_version}.x and #{@max_terraform_version}".color(:red)
42
42
  puts <<~EOL
43
- This is because newer versions of Terraform has a BSL license
43
+ This is because newer versions of Terraform have a BSL license
44
44
  If your usage is allowed by the license, you can bypass this check with:
45
45
 
46
46
  export TS_VERSION_CHECK=0
@@ -62,6 +62,7 @@ module Terraspace
62
62
  min_ok = major > min_major ||
63
63
  (major == min_major && minor >= min_minor)
64
64
  max_ok = major < max_major ||
65
+ (major == max_major && minor < max_minor) ||
65
66
  (major == max_major && minor == max_minor && patch <= max_patch)
66
67
 
67
68
  min_ok && max_ok
@@ -7,7 +7,7 @@ class Terraspace::Cloud::Api
7
7
  def request(klass, path, data={})
8
8
  exit_on_error = data.delete(:exit_on_error) # for cani logic
9
9
  url = url(path)
10
- check.ok!(cloud: true)
10
+ check.ok!(cloud: true) unless check.ok?
11
11
  data = data.merge(versions: check.versions)
12
12
  req = build_request(klass, url, data)
13
13
  retries = 0
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "2.2.12"
2
+ VERSION = "2.2.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.12
4
+ version: 2.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-23 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport