tfoutputs 0.2.1 → 0.2.2
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 +4 -4
- data/.travis.yml +3 -0
- data/CHANGELOG.md +5 -2
- data/README.md +3 -1
- data/lib/tfoutputs/configurator/state_reader.rb +8 -9
- data/lib/tfoutputs/configurator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c97bba3b2913058520472b8a4ed7dc1862a475f
|
|
4
|
+
data.tar.gz: 7bf7990eeb768fab8d59756f2285824ceb6a48a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d417eb0a71979808fab155102e8211b654fe1ab2838cdd1a7e742a0f05ccb73f889f142d5acadae9621ca8306ba40f50cc9b4c22173e473e48f5691efb6f857b
|
|
7
|
+
data.tar.gz: a74b618dd3986af0898ab40a7935042f81077fb4b0e972eb1dac18ff8947d05b0143ba2743bbb1f46f42434dcf7245ff7a24c22a6f7151f003fcf06bcfc0ab8d
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
## Version 0.2.2
|
|
2
|
+
This release includes:
|
|
3
|
+
- make :respond_to? public: [PR #4](https://github.com/jae2/ruby-tfoutputs/pull/5) - Thanks [@patdowney](https://github.com/patdowney)
|
|
1
4
|
|
|
2
5
|
## Version 0.2.1
|
|
3
6
|
This release includes:
|
|
4
|
-
- Fix backend loading: [PR #4](https://github.com/jae2/ruby-tfoutputs/pull/4) - Thanks @patdowney
|
|
7
|
+
- Fix backend loading: [PR #4](https://github.com/jae2/ruby-tfoutputs/pull/4) - Thanks [@patdowney](https://github.com/patdowney)
|
|
5
8
|
|
|
6
9
|
## Version 0.2.0 - BROKEN RELEASE
|
|
7
10
|
|
|
8
11
|
This release includes:
|
|
9
|
-
- Removal of activestate gem - [PR #2](https://github.com/jae2/ruby-tfoutputs/pull/2) Thanks @patdowney
|
|
12
|
+
- Removal of activestate gem - [PR #2](https://github.com/jae2/ruby-tfoutputs/pull/2) Thanks [@patdowney](https://github.com/patdowney)
|
|
10
13
|
- inclusion of respond_to? method - [PR #3](https://github.com/jae2/ruby-tfoutputs/pull/2)
|
|
11
14
|
|
|
12
15
|
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/_/ |_|\__,_/_.___/\__, / /_/ /_/ \____/\__,_/\__/ .___/\__,_/\__/____/
|
|
7
7
|
/____/ /_/
|
|
8
8
|
```
|
|
9
|
-
](https://travis-ci.org/jae2/ruby-tfoutputs) [](https://badge.fury.io/rb/tfoutputs)
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
# Ruby TF Outputs
|
|
@@ -87,6 +87,8 @@ state_reader = TfOutputs.configure(config)
|
|
|
87
87
|
puts(state_reader.my_output_name)
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
+
[Blog post on tfoutputs](https://jaetech.org/terraform-outputs-in-ruby/)
|
|
91
|
+
|
|
90
92
|
|
|
91
93
|
## Contributing
|
|
92
94
|
|
|
@@ -12,8 +12,15 @@ module TfOutputs
|
|
|
12
12
|
self
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
def respond_to? (method, include_private = false)
|
|
16
|
+
outputs.each do |output|
|
|
17
|
+
next unless output.keys[0] == method.to_s
|
|
18
|
+
return true
|
|
19
|
+
end
|
|
20
|
+
super
|
|
21
|
+
end
|
|
16
22
|
|
|
23
|
+
protected
|
|
17
24
|
def get_outputs_from_file
|
|
18
25
|
@file_paths.each do |path, _use_sensitive|
|
|
19
26
|
parser = JSON.parse(File.read(path))
|
|
@@ -33,14 +40,6 @@ module TfOutputs
|
|
|
33
40
|
end
|
|
34
41
|
end
|
|
35
42
|
|
|
36
|
-
def respond_to? (method, include_private = false)
|
|
37
|
-
outputs.each do |output|
|
|
38
|
-
next unless output.keys[0] == method.to_s
|
|
39
|
-
return true
|
|
40
|
-
end
|
|
41
|
-
super
|
|
42
|
-
end
|
|
43
|
-
|
|
44
43
|
def method_missing(name, *args, &block)
|
|
45
44
|
# Hack - really we should call respond_to?
|
|
46
45
|
outputs.each do |output|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tfoutputs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Edwards
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|