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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a1418f14ee8f29596ee75dfd660b0a16159768c
4
- data.tar.gz: 3e95c39c5b73b8a02d0a42c306817e840f360df3
3
+ metadata.gz: 2c97bba3b2913058520472b8a4ed7dc1862a475f
4
+ data.tar.gz: 7bf7990eeb768fab8d59756f2285824ceb6a48a8
5
5
  SHA512:
6
- metadata.gz: ac6cd4d0df5f5b2d97552c422a072b5b8d8fb7e9538616537d24bf79e57ef98fffbc58f9bebd61bfaebb0f6632835f57d87a619899156569f6eac863d32a528d
7
- data.tar.gz: 13eef4db648d1ece1b19207947f6bf8bb65845f2d8898d13697a898d553fa3d0074c4052fed11c4d4ff00d592a7819e6307a0f9529b4b37750748a3beb713a0b
6
+ metadata.gz: d417eb0a71979808fab155102e8211b654fe1ab2838cdd1a7e742a0f05ccb73f889f142d5acadae9621ca8306ba40f50cc9b4c22173e473e48f5691efb6f857b
7
+ data.tar.gz: a74b618dd3986af0898ab40a7935042f81077fb4b0e972eb1dac18ff8947d05b0143ba2743bbb1f46f42434dcf7245ff7a24c22a6f7151f003fcf06bcfc0ab8d
@@ -1,7 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.2.2
4
+ - 2.2.3
5
+ - 2.2.4
4
6
  - 2.3.0
7
+ - 2.3.1
5
8
  script: bundle exec rake spec
6
9
  env:
7
10
  - AWS_ACCESS_KEY=foo AWS_SECRET_ACCESS_KEY=bar
@@ -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
- ![build status on master](https://travis-ci.org/jae2/ruby-tfoutputs.svg?branch=master) [![Gem Version](https://badge.fury.io/rb/tfoutputs.svg)](https://badge.fury.io/rb/tfoutputs)
9
+ [![Build Status](https://travis-ci.org/jae2/ruby-tfoutputs.svg?branch=master)](https://travis-ci.org/jae2/ruby-tfoutputs) [![Gem Version](https://badge.fury.io/rb/tfoutputs.svg)](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
- protected
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|
@@ -1,5 +1,5 @@
1
1
  module TfOutputs
2
2
  module Configurator
3
- VERSION = '0.2.1'.freeze
3
+ VERSION = '0.2.2'.freeze
4
4
  end
5
5
  end
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.1
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-10-20 00:00:00.000000000 Z
11
+ date: 2016-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler