tfwrapper 0.4.1 → 0.6.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 +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +5 -5
- data/.travis.yml +62 -0
- data/ChangeLog.md +31 -0
- data/Gemfile +4 -0
- data/README.md +48 -5
- data/lib/tfwrapper/helpers.rb +25 -3
- data/lib/tfwrapper/raketasks.rb +91 -10
- data/lib/tfwrapper/version.rb +1 -1
- data/spec/acceptance/acceptance_helpers.rb +16 -3
- data/spec/acceptance/acceptance_spec.rb +229 -0
- data/spec/fixtures/landscapeTest/Rakefile +38 -0
- data/spec/fixtures/landscapeTest/failingTerraform/main.tf +28 -0
- data/spec/fixtures/landscapeTest/main.tf +32 -0
- data/spec/fixtures/landscapeTest/state.json +43 -0
- data/spec/fixtures/landscapeTest/with_landscape_default.out +45 -0
- data/spec/fixtures/landscapeTest/with_landscape_dots.out +45 -0
- data/spec/fixtures/landscapeTest/with_landscape_lines.out +70 -0
- data/spec/fixtures/landscapeTest/with_landscape_stream.out +71 -0
- data/spec/fixtures/landscapeTest/without_landscape.out +62 -0
- data/spec/fixtures/testOne.tf +1 -0
- data/spec/fixtures/testThree/bar/testThreeBar.tf +1 -0
- data/spec/fixtures/testThree/baz/testThreeBaz.tf +1 -0
- data/spec/fixtures/testThree/foo/testThreeFoo.tf +1 -0
- data/spec/fixtures/testTwo/foo/bar/testTwo.tf +1 -0
- data/spec/spec_helper.rb +7 -0
- data/spec/unit/helpers_spec.rb +131 -3
- data/spec/unit/raketasks_spec.rb +250 -26
- data/tfwrapper.gemspec +1 -0
- metadata +36 -4
- data/circle.yml +0 -28
data/tfwrapper.gemspec
CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |gem|
|
|
23
23
|
# awful, but these are to allow use with ruby 2.1.x
|
24
24
|
gem.add_development_dependency 'ruby_dep', '1.3.1'
|
25
25
|
gem.add_development_dependency 'listen', '3.0.7'
|
26
|
+
gem.add_development_dependency 'rb-inotify', '0.9.10'
|
26
27
|
|
27
28
|
# guard-yard uses Pry which needs readline. If we're in RVM, we'll need this:
|
28
29
|
gem.add_development_dependency 'rb-readline', '~> 0.5'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tfwrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jantman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: retries
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 3.0.7
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rb-inotify
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.10
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.9.10
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rb-readline
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -351,13 +365,13 @@ extra_rdoc_files: []
|
|
351
365
|
files:
|
352
366
|
- ".gitignore"
|
353
367
|
- ".rubocop.yml"
|
368
|
+
- ".travis.yml"
|
354
369
|
- ChangeLog.md
|
355
370
|
- Gemfile
|
356
371
|
- Guardfile
|
357
372
|
- LICENSE
|
358
373
|
- README.md
|
359
374
|
- Rakefile
|
360
|
-
- circle.yml
|
361
375
|
- lib/tfwrapper.rb
|
362
376
|
- lib/tfwrapper/helpers.rb
|
363
377
|
- lib/tfwrapper/raketasks.rb
|
@@ -366,6 +380,15 @@ files:
|
|
366
380
|
- spec/acceptance/acceptance_spec.rb
|
367
381
|
- spec/acceptance/consulserver.rb
|
368
382
|
- spec/fixtures/Rakefile
|
383
|
+
- spec/fixtures/landscapeTest/Rakefile
|
384
|
+
- spec/fixtures/landscapeTest/failingTerraform/main.tf
|
385
|
+
- spec/fixtures/landscapeTest/main.tf
|
386
|
+
- spec/fixtures/landscapeTest/state.json
|
387
|
+
- spec/fixtures/landscapeTest/with_landscape_default.out
|
388
|
+
- spec/fixtures/landscapeTest/with_landscape_dots.out
|
389
|
+
- spec/fixtures/landscapeTest/with_landscape_lines.out
|
390
|
+
- spec/fixtures/landscapeTest/with_landscape_stream.out
|
391
|
+
- spec/fixtures/landscapeTest/without_landscape.out
|
369
392
|
- spec/fixtures/testOne.tf
|
370
393
|
- spec/fixtures/testThree/Rakefile
|
371
394
|
- spec/fixtures/testThree/bar/testThreeBar.tf
|
@@ -398,7 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
398
421
|
version: '0'
|
399
422
|
requirements: []
|
400
423
|
rubyforge_project:
|
401
|
-
rubygems_version: 2.
|
424
|
+
rubygems_version: 2.7.6
|
402
425
|
signing_key:
|
403
426
|
specification_version: 4
|
404
427
|
summary: Rake tasks for running Hashicorp Terraform sanely
|
@@ -407,6 +430,15 @@ test_files:
|
|
407
430
|
- spec/acceptance/acceptance_spec.rb
|
408
431
|
- spec/acceptance/consulserver.rb
|
409
432
|
- spec/fixtures/Rakefile
|
433
|
+
- spec/fixtures/landscapeTest/Rakefile
|
434
|
+
- spec/fixtures/landscapeTest/failingTerraform/main.tf
|
435
|
+
- spec/fixtures/landscapeTest/main.tf
|
436
|
+
- spec/fixtures/landscapeTest/state.json
|
437
|
+
- spec/fixtures/landscapeTest/with_landscape_default.out
|
438
|
+
- spec/fixtures/landscapeTest/with_landscape_dots.out
|
439
|
+
- spec/fixtures/landscapeTest/with_landscape_lines.out
|
440
|
+
- spec/fixtures/landscapeTest/with_landscape_stream.out
|
441
|
+
- spec/fixtures/landscapeTest/without_landscape.out
|
410
442
|
- spec/fixtures/testOne.tf
|
411
443
|
- spec/fixtures/testThree/Rakefile
|
412
444
|
- spec/fixtures/testThree/bar/testThreeBar.tf
|
data/circle.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
|
2
|
-
dependencies:
|
3
|
-
cache_directories:
|
4
|
-
- "~/.rvm/gems"
|
5
|
-
pre:
|
6
|
-
- sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install git
|
7
|
-
override:
|
8
|
-
- 'bundle install'
|
9
|
-
- 'rvm 2.0.0-p598 exec bundle install'
|
10
|
-
- 'rvm 2.1.8 exec bundle install'
|
11
|
-
- 'rvm 2.2.5 exec bundle install'
|
12
|
-
- 'rvm 2.3.1 exec bundle install'
|
13
|
-
|
14
|
-
test:
|
15
|
-
override:
|
16
|
-
- 'bundle exec ruby --version'
|
17
|
-
- 'bundle exec rake spec:unit'
|
18
|
-
- 'bundle exec rake rubocop'
|
19
|
-
- 'rvm 2.0.0-p598 exec bundle exec rake spec:unit'
|
20
|
-
- 'rvm 2.1.8 exec bundle exec rake spec:unit'
|
21
|
-
- 'rvm 2.2.5 exec bundle exec rake spec:unit'
|
22
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:unit'
|
23
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:acceptance TF_VERSION=0.9.2'
|
24
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:acceptance TF_VERSION=0.9.7'
|
25
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:acceptance TF_VERSION=0.10.0'
|
26
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:acceptance TF_VERSION=0.10.2'
|
27
|
-
- 'rvm 2.3.1 exec bundle exec rake spec:acceptance TF_VERSION=latest'
|
28
|
-
- 'bundle exec rake yard:generate'
|