terraspace 2.1.1 → 2.1.2

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: 3651e7cf7b8fe679a5266a2bc6bbad9f30d2c98d8636bbf6105ee7d61585d2ed
4
- data.tar.gz: 8dd9e2fb0801ea3f4e82711460edbf18cc578932443d7ef9c2844fe644e49a09
3
+ metadata.gz: '03096c453bba884de848aa0eaa9fe82204f6a5e66efd1fda10a512dfe6509747'
4
+ data.tar.gz: c9d9df2c2188457f06247b603ca0e39b7197c8f7286fcf3dfe8ef659e356254b
5
5
  SHA512:
6
- metadata.gz: da083a64468e8b447e10881762d52e52859ce74c72be6d8f7ca0e8a457da1818f99cd3e615a87b7f43758abcc46297b1eec1c2e1550b1b89c96e47c0ad851b96
7
- data.tar.gz: 6b51fd61cbdabe1a5e51fac73d3a93fba10143ac040526d8283d48afa90a9c3d26e738e1d50449bfd1a029cce99001a2af0f91edb3f0ca005779f256572eac9c
6
+ metadata.gz: 7cece8de2acae3e9c3d4fcb88e7a89c3bbad55a135f246426c54d5ab5176f467b3c4dcdc1a0b288b03f15266088b7dec27c71373b7ce70e1f9313110ec236ca0
7
+ data.tar.gz: bd251ca2dd8baea3739c2cb69cfb2d144916f2a80ccd1eaad22d30401c4bf6de32938263438ebb4d334dfb262ca49801aad46cd0293ea56e102082686f50d1f7
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
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.1.2] - 2022-07-13
7
+ - [#249](https://github.com/boltops-tools/terraspace/pull/249) fix cost.enabled setting when nil
8
+
6
9
  ## [2.1.1] - 2022-07-12
7
10
  - [#248](https://github.com/boltops-tools/terraspace/pull/248) fix destroy success return
8
11
 
data/README.md CHANGED
@@ -118,6 +118,7 @@ To install modules:
118
118
  * [Configurable CLI](https://terraspace.cloud/docs/config/args/): Configurable [CLI Hooks](https://terraspace.cloud/docs/config/hooks/) and [CLI Args](https://terraspace.cloud/docs/config/args/) allow you to adjust the underlying terraform command.
119
119
  * [Testing](https://terraspace.cloud/docs/testing/): A testing framework that allows you to create test harnesses, deploy real-resources, and have higher confidence that your code works.
120
120
  * [Terraform Cloud and Terraform Enterprise Support](https://terraspace.cloud/docs/cloud/): TFC and TFE are both supported. Terraspace adds additional conveniences to make working with Terraform Cloud Workspaces easier.
121
+ * [Terraspace Cloud Support](https://terraspace.cloud/docs/cloud/): Terraspace Cloud adds additional features and conveniences like a Dashboard, History, Team Management, Permissions, Real-time Logging, and Cost Estimates. It's specifically designed for Terraspace. You might also be interested in this blog post: [Terraspace Cloud Intro](https://blog.boltops.com/2022/06/10/terraspace-cloud/)
121
122
 
122
123
  ## Comparison
123
124
 
@@ -52,7 +52,7 @@ module Terraspace
52
52
  config.cloud.record = "changes" # IE: changes or all
53
53
  config.cloud.stack = ":APP-:ROLE-:MOD_NAME-:ENV-:EXTRA-:REGION"
54
54
  config.cloud.cost = ActiveSupport::OrderedOptions.new
55
- config.cloud.cost.enabled = cast_value(ENV['TS_COST'])
55
+ config.cloud.cost.enabled = cast_boolean(ENV['TS_COST'])
56
56
  config.cloud.vcs = ActiveSupport::OrderedOptions.new
57
57
  config.cloud.vcs.name = nil # github, gitlab, bitbucket. Else default to registered terraspace_vcs_* plugin
58
58
 
@@ -102,8 +102,8 @@ module Terraspace
102
102
  # https://stackoverflow.com/questions/36228873/ruby-how-to-convert-a-string-to-boolean
103
103
  # https://github.com/rails/rails/blob/5-1-stable/activemodel/lib/active_model/type/boolean.rb
104
104
  # so dont have to add activemodel as a dependency just for this method
105
- FALSE_VALUES = [false, 0, "0", "f", "F", "false", "FALSE", "off", "OFF"].to_set
106
- def cast_value(value)
105
+ FALSE_VALUES = [nil, false, 0, "0", "f", "F", "false", "FALSE", "off", "OFF"].to_set
106
+ def cast_boolean(value)
107
107
  if value == ""
108
108
  nil
109
109
  else
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
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.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-12 00:00:00.000000000 Z
11
+ date: 2022-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport