terraspace 1.1.3 → 1.1.4

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: '0898edc00c5c61938fca0f22e97cd6cc1786e94ddc31f089ce095a75b3543240'
4
- data.tar.gz: 9ecef3964e431d2665bf98adacea090cf09a4db0aa91a70d8955a8301444857a
3
+ metadata.gz: 50baca1ee67aedb6160857e20b413db3e31923ee2f6bd8347723e2445d9b59ef
4
+ data.tar.gz: 0ac181788709d0700c0cfcd8085c375b453e84aef6333b9c93b446ff1bb30938
5
5
  SHA512:
6
- metadata.gz: ef0e86ce8739f13f2d5dfe1aa9caa7cae4a31603e6f365c36ba3d3edab25e98b824babb2077f15a983bc8f9f65146c91cc4c89850717fefb88e9bd258e32aecb
7
- data.tar.gz: 71313596f783a4a635bec2e3536e38bdc22d0d4983ca862e1c0f45eeeca898eaa1474da0d25db76b7b8af4c557deb85ee293fb29883f1a376343c16a081244ab
6
+ metadata.gz: ce1c04ca24e818cef35397bf9fb7cadb9e9b28838a0e15c3ec18e0e4d0b49d3bdfba4bb01e6d3e9788e5410e99c44dc827ec79a0432ae94d90fd4413c2c446ad
7
+ data.tar.gz: 95d7c2cea1917b0e3c919a43afadf24b2970dbd87c2d46d5b5846d62c6e9cc115751a7ab63defb74ad1c79917984262a7d9987eee1134e87d2778c9edcc3a175
data/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [1.1.4] - 2022-02-21
7
+ - [#210](https://github.com/boltops-tools/terraspace/pull/210) write files without magic conversion, fixes #209
8
+ - cleanup argv and root
9
+ - write files without magic conversion, fixes #209
10
+
6
11
  ## [1.1.3] - 2022-02-17
7
12
  - [#207](https://github.com/boltops-tools/terraspace/pull/207) dont fork when all.concurrency = 1
8
13
 
@@ -34,7 +34,7 @@ module Terraspace::Compiler
34
34
  if content.respond_to?(:path) # IO filehandle
35
35
  FileUtils.cp(content.path, dest_path) # preserves permission
36
36
  else # just content
37
- IO.write(dest_path, content)
37
+ IO.write(dest_path, content, mode: "wb")
38
38
  end
39
39
  logger.debug "Created #{Terraspace::Util.pretty_path(dest_path)}"
40
40
  end
@@ -11,11 +11,8 @@ module Terraspace
11
11
  def root
12
12
  @@root ||= ENV['TS_ROOT'] || Dir.pwd
13
13
  end
14
-
15
14
  # allow testing frameworks to switch roots
16
- def root=(v)
17
- @@root = v
18
- end
15
+ cattr_writer :root
19
16
 
20
17
  def cache_root
21
18
  ENV['TS_CACHE_ROOT'] || config.build.cache_root || "#{root}/.terraspace-cache"
@@ -61,22 +58,7 @@ module Terraspace
61
58
 
62
59
  # Terraspace.argv provides consistency when terraspace is being called by rspec-terraspace test harness
63
60
  # So use Terraspace.argv instead of ARGV constant
64
- def argv=(argv)
65
- @@argv = argv
66
- end
67
-
68
- def argv
69
- @@argv
70
- end
71
-
72
- @@check_project = true
73
- def check_project
74
- @@check_project
75
- end
76
-
77
- # allow testing frameworks to disable
78
- def check_project=(v)
79
- @@check_project = v
80
- end
61
+ cattr_accessor :argv
62
+ cattr_accessor :check_project, default: true
81
63
  end
82
64
  end
@@ -8,7 +8,7 @@ class Module
8
8
  # Caller lines are different for OSes:
9
9
  #
10
10
  # windows: "C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/terraspace-1.1.1/lib/terraspace/builder.rb:34:in `build'"
11
- # linux: "/home/ec2-user/.rvm/gems/ruby-3.0.3/gems/terraspace-1.1.1//lib/terraspace/compiler/dsl/syntax/mod.rb:4:in `<module:Mod>'"
11
+ # linux: "/home/ec2-user/.rvm/gems/ruby-3.0.3/gems/terraspace-1.1.1/lib/terraspace/compiler/dsl/syntax/mod.rb:4:in `<module:Mod>'"
12
12
  #
13
13
  def include_dir(dir)
14
14
  caller_line = caller[0]
@@ -1,3 +1,3 @@
1
1
  module Terraspace
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terraspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-17 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport