tflat 0.1.8 → 0.1.9

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: 42600069942f24bb77fc24d41b850db4ccdbdeac276f4064ea49a4a8d322ff78
4
- data.tar.gz: d40ec5e868f261109b9a8a260aa123732b04a233cbdda30e67c0dd8411d642b6
3
+ metadata.gz: 477d11199b705ebb767ae9a5ee5ee47198916a19e36c0de49a48e33c870ad2db
4
+ data.tar.gz: 4f5246942104168f4e6349273ad5234d0cf8b7669bbd9899da921b1429fbf27d
5
5
  SHA512:
6
- metadata.gz: 0b9fca3508a34e031087b032112ae6c02d4cd8aaac2107fdf13a8f244b4c0e734008bfac16998ef3a3af7f87514adb26df069fd511b9db341c65dabebd5bd0fe
7
- data.tar.gz: d891a1eb93b6cd99c8543a13aeade06b3bde60f9d3f0157efd9affe3023de4629c0584d2a37785bb7a8122ad0f947a7afed456ff432d4de4dbe77ab0dc11648d
6
+ metadata.gz: cc3581e57180a8e52ab0305fb8c7fc8794b18bb5deace8e10756b61bc7b0242ae8b7aa410bc6b7f8e4e9d667918563fb9f5b839d6d2312f334a87c640a5796cf
7
+ data.tar.gz: 1a80300c23cfe728bf11717a4e7c22b42e61503628e44bbe76f44607eb9db5f72ef2684aa1893bb9fbd4154277a0ee9541b1256c644b2baae9102a1ac7c85968
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.9 - Dec 14 2018
4
+ - Sort files by name before rendering ERB. That allows you to add files like `_globals/variables.tf` with some custom ruby code that will run before parsing anything else.
5
+ - Fix bug with exception handling
6
+
3
7
  ## 0.1.8 - Dec 5 2018
4
8
  - Set environment variable TFLAT_WORKSPACE to have the `.tflat` folder have a suffix. Useful for running same code on different states, for example.
5
9
 
@@ -71,7 +71,7 @@ module Tflat
71
71
  end
72
72
 
73
73
  def parse_erb
74
- Dir.glob("#{@tflat_folder}/*").each do |entry|
74
+ Dir.glob("#{@tflat_folder}/*").sort.each do |entry|
75
75
  next unless File.file?(entry)
76
76
  next if File.binary?(entry)
77
77
  puts "- #{@tag} -> #{entry}"
@@ -79,7 +79,7 @@ module Tflat
79
79
  rendered = render(entry)
80
80
  rescue Exception => e
81
81
  puts "- #{@tag} ERROR: Could not parse ERB on file #{entry}"
82
- puts e.full_message
82
+ puts e.message
83
83
  exit 1
84
84
  end
85
85
  File.write(entry, rendered)
@@ -1,3 +1,3 @@
1
1
  module Tflat
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tflat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Arruda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-05 00:00:00.000000000 Z
11
+ date: 2018-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ptools