prospectus_terraform 0.0.1 → 0.0.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: c8f43f4d7dbc603b5b871a6b60bbd42d00dc7f418a66345cd317b08f2a5c44e9
4
- data.tar.gz: 59a50d7af377742b718765c01b74aaf8287083d223dfb1fa1f6336b1051fe0f5
3
+ metadata.gz: '02811a888903a0ead923f15fb076df1b20443bb1ca2b8d0314fa4c3b040399bd'
4
+ data.tar.gz: b999733ff83659871f986de82a7356d84a87ced3d4d471ef1195b1f69975a248
5
5
  SHA512:
6
- metadata.gz: 0644a4f47fd1b300a6fd5cdc570dea45664b6942e9c19751253e29347e8231fb23d2c253e2309619723f5fc95705d9c6fb5a8d9eac1ef269b6cf1af85a4f583d
7
- data.tar.gz: 793a6fa9213fc9d6c61b2663a561b65910abf7a421d5844cbb466bbd920a8ed6fa03b270375b6db6949cec68e1407729278110f1c1d284aa87c49ac508e1ff27
6
+ metadata.gz: 7a62a3d25fe1d88ab38ff0a81a21d47b01d7c4d8dd344cbd323aee6b030ff75bee5bf8e37049eec6bfecfcc12aa6b31dba0393e2badaa87c385adadf379b6950
7
+ data.tar.gz: ca31168771644c9a572255f5b42d9edb3baaaf17b4b7bcfb2f5d75e68374aa4765c7a2769f73b1b9ce1f6bf42519d0d54d9c2c3719d4c0763b42fee1638e213f
data/.circle-ruby CHANGED
@@ -1,3 +1,3 @@
1
- 2.5.1
2
- 2.4.4
3
- 2.3.7
1
+ 2.5.3
2
+ 2.4.5
3
+ 2.3.8
@@ -1,9 +1,11 @@
1
+ require 'open3'
2
+
1
3
  module ProspectusTerraform
2
4
  ##
3
5
  # Lookup object to find providers
4
6
  class Lookup
5
- PROVIDER_REGEX = /provider\.(?<key>[\w-]+) (?<value>[\d.]+)$/
6
- REPO_REGEX = %r{^ // provider\.(?<key>[\w-]+) (?<value>[\w-]+\/[\w-]+)}
7
+ PROVIDER_REGEX = /provider\.(?<key>[\w-]+) (?<value>[\d.]+)$/.freeze
8
+ REPO_REGEX = %r{^ // provider\.(?<key>[\w-]+) (?<value>[\w-]+\/[\w-]+)}.freeze # rubocop:disable Metrics/LineLength
7
9
 
8
10
  def results
9
11
  @results ||= providers.map do |name, version|
@@ -16,7 +18,10 @@ module ProspectusTerraform
16
18
  end
17
19
 
18
20
  def provider_lines
19
- @provider_lines ||= `terraform providers`.lines
21
+ return @provider_lines if @provider_lines
22
+ stdout, stderr, status = Open3.capture3('terraform providers')
23
+ raise('Terraform command failed') unless status.success? && stderr.empty?
24
+ @provider_lines = stdout.lines
20
25
  end
21
26
 
22
27
  def repos
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'prospectus_terraform'
3
- s.version = '0.0.1'
3
+ s.version = '0.0.2'
4
4
  s.date = Time.now.strftime('%Y-%m-%d')
5
5
 
6
6
  s.summary = 'Prospectus helpers for Terraform'
@@ -20,5 +20,5 @@ Gem::Specification.new do |s|
20
20
  s.add_development_dependency 'goodcop', '~> 0.6.0'
21
21
  s.add_development_dependency 'rake', '~> 12.3.0'
22
22
  s.add_development_dependency 'rspec', '~> 3.8.0'
23
- s.add_development_dependency 'rubocop', '~> 0.59.0'
23
+ s.add_development_dependency 'rubocop', '~> 0.60.0'
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prospectus_terraform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-20 00:00:00.000000000 Z
11
+ date: 2018-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prospectus
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.59.0
103
+ version: 0.60.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.59.0
110
+ version: 0.60.0
111
111
  description: Prospectus helpers for Terraform
112
112
  email: me@lesaker.org
113
113
  executables: []