ruby-terraform 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fbeec4544d4c60733a6173770fa06c536ed7476
4
- data.tar.gz: 59a40104a6f6227f6c2ff07e9876d1c98651d6c7
3
+ metadata.gz: acbc70e1b10fbc9f305f995a9cc8e7da481ad34b
4
+ data.tar.gz: 8b9a79e22182b36563ac148dd97ab6108b3be014
5
5
  SHA512:
6
- metadata.gz: 86894496b91742a7e2f85b581fe82e98d152ce51953ca9fa6ba096a4fba531d38bdaa9a8b037a85a34368efe67809976fa73198cb36c98ed030b0d3feb321fb8
7
- data.tar.gz: fd5d003b89d7515766e3af53ff33d873371db4888d7b6cef6dc6a9a7413fc179b9367ecd10739a38e6bf3d5ab96b8b19f627c24664da52aa04c108f11963d926
6
+ metadata.gz: c125acdec57d4fab6c08867c50d1887a3ed0d1a2e034bf3b1a0a64909d62698371b1d5d8472cc5a3acc9eb2cb3925de68a30ae6d78a73dc02103303a60603e4a
7
+ data.tar.gz: 505598e213e0ad5dda21027bf98ef133fe79355b3fd6141df4c0207ae960ed6a16ac84af986d0aac5aa6a8cd4eb4291cb646dd3ec199e9f7046432e36d6c663d
@@ -0,0 +1,9 @@
1
+ version: 2
2
+ jobs:
3
+ test:
4
+ working_directory: ~/ruby-terraform
5
+ docker:
6
+ - image: ruby:2.3.7
7
+ steps:
8
+ - checkout
9
+ - run: ./scripts/ci/steps/test.sh
data/.envrc ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env bash
2
+
3
+ PROJECT_DIR="$(pwd)"
4
+
5
+ PATH_add ${PROJECT_DIR}
data/.gitignore CHANGED
@@ -11,6 +11,7 @@
11
11
  /test/tmp/
12
12
  /test/version_tmp/
13
13
  /tmp/
14
+ .rakeTasks
14
15
 
15
16
  ## Documentation cache and generated files:
16
17
  /.yardoc/
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.0.0-p648
1
+ 2.3.7
data/README.md CHANGED
@@ -134,9 +134,10 @@ The plan command supports the following options passed as keyword arguments:
134
134
  `var_files` are provided, all var files will be passed to terraform.
135
135
  * `state`: the path to the state file in which to store state; defaults to
136
136
  terraform.tfstate in the working directory or the remote state if configured.
137
- * `plan`: the name of the in which to save the generated plan.
137
+ * `plan`: the name of the file in which to save the generated plan.
138
138
  * `input`: when `false`, will not ask for input for variables not directly set; defaults to `true`.
139
- * `destroy`: when `true`, no backup file will be written; defaults to `false`.
139
+ * `destroy`: when `true`, a plan will be generated to destroy all resources
140
+ managed by the given configuration and state; defaults to `false`.
140
141
  * `no_color`: whether or not the output from the command should be in color;
141
142
  defaults to `false`.
142
143
 
data/Rakefile CHANGED
@@ -4,3 +4,7 @@ require "rspec/core/rake_task"
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
6
  task :default => :spec
7
+
8
+ task :release do
9
+ `gem bump --version `
10
+ end
data/go ADDED
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env bash
2
+
3
+ [ -n "$GO_DEBUG" ] && set -x
4
+ set -e
5
+
6
+ project_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
7
+
8
+ verbose="no"
9
+ skip_checks="no"
10
+ offline="no"
11
+
12
+ missing_dependency="no"
13
+
14
+ [ -n "$GO_DEBUG" ] && verbose="yes"
15
+ [ -n "$GO_SKIP_CHECKS" ] && skip_checks="yes"
16
+ [ -n "$GO_OFFLINE" ] && offline="yes"
17
+
18
+
19
+ if [[ "$skip_checks" = "no" ]]; then
20
+ echo "Checking for system dependencies."
21
+ ruby_version="$(cat "$project_dir"/.ruby-version)"
22
+ if ! type ruby >/dev/null 2>&1 || ! ruby -v | grep -q "$ruby_version"; then
23
+ echo "This codebase requires Ruby $ruby_version."
24
+ missing_dependency="yes"
25
+ fi
26
+
27
+ if ! type bundler >/dev/null 2>&1; then
28
+ echo "This codebase requires Bundler."
29
+ missing_dependency="yes"
30
+ fi
31
+
32
+ if [[ "$missing_dependency" = "yes" ]]; then
33
+ echo "Please install missing dependencies to continue."
34
+ exit 1
35
+ fi
36
+
37
+ echo "All system dependencies present. Continuing."
38
+ fi
39
+
40
+ if [[ "$offline" = "no" ]]; then
41
+ echo "Installing bundler."
42
+ if [[ "$verbose" = "yes" ]]; then
43
+ gem install --no-document bundler
44
+ else
45
+ gem install --no-document bundler > /dev/null
46
+ fi
47
+
48
+ echo "Installing ruby dependencies."
49
+ if [[ "$verbose" = "yes" ]]; then
50
+ bundle install
51
+ else
52
+ bundle install > /dev/null
53
+ fi
54
+ fi
55
+
56
+ echo "Starting rake."
57
+ if [[ "$verbose" = "yes" ]]; then
58
+ time bundle exec rake --verbose "$@"
59
+ else
60
+ time bundle exec rake "$@"
61
+ fi
@@ -1,3 +1,3 @@
1
1
  module RubyTerraform
2
- VERSION = "0.13.0"
2
+ VERSION = "0.13.1"
3
3
  end
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env bash
2
+
3
+ [ -n "$DEBUG" ] && set -x
4
+ set -e
5
+ set -o pipefail
6
+
7
+ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
8
+ PROJECT_DIR="$( cd "$SCRIPT_DIR/../../.." && pwd )"
9
+
10
+ cd "$PROJECT_DIR"
11
+
12
+ ./go spec
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Clemson
@@ -14,70 +14,70 @@ dependencies:
14
14
  name: lino
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.14'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: gem-release
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.7'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.7'
83
83
  description: Wraps the Terraform CLI so that Terraform can be invoked from a Ruby
@@ -88,9 +88,11 @@ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - .gitignore
92
- - .rspec
93
- - .ruby-version
91
+ - ".circleci/config.yml"
92
+ - ".envrc"
93
+ - ".gitignore"
94
+ - ".rspec"
95
+ - ".ruby-version"
94
96
  - CHANGELOG.md
95
97
  - CODE_OF_CONDUCT.md
96
98
  - Gemfile
@@ -101,6 +103,7 @@ files:
101
103
  - TODO.md
102
104
  - bin/console
103
105
  - bin/setup
106
+ - go
104
107
  - lib/ruby_terraform.rb
105
108
  - lib/ruby_terraform/commands.rb
106
109
  - lib/ruby_terraform/commands/apply.rb
@@ -116,6 +119,7 @@ files:
116
119
  - lib/ruby_terraform/commands/validate.rb
117
120
  - lib/ruby_terraform/version.rb
118
121
  - ruby_terraform.gemspec
122
+ - scripts/ci/steps/test.sh
119
123
  homepage: https://github.com/tobyclemson/ruby_terraform
120
124
  licenses:
121
125
  - MIT
@@ -126,17 +130,17 @@ require_paths:
126
130
  - lib
127
131
  required_ruby_version: !ruby/object:Gem::Requirement
128
132
  requirements:
129
- - - '>='
133
+ - - ">="
130
134
  - !ruby/object:Gem::Version
131
135
  version: '0'
132
136
  required_rubygems_version: !ruby/object:Gem::Requirement
133
137
  requirements:
134
- - - '>='
138
+ - - ">="
135
139
  - !ruby/object:Gem::Version
136
140
  version: '0'
137
141
  requirements: []
138
142
  rubyforge_project:
139
- rubygems_version: 2.0.14.1
143
+ rubygems_version: 2.5.2.3
140
144
  signing_key:
141
145
  specification_version: 4
142
146
  summary: A simple Ruby wrapper for invoking Terraform commands.