terraspace 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/templates/base/project/.gitignore +1 -0
- data/lib/terraspace/booter.rb +1 -0
- data/lib/terraspace/dotenv.rb +25 -0
- data/lib/terraspace/version.rb +1 -1
- data/terraspace.gemspec +1 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b24e7a97ebf99ac393d03ef6ffec1381fae0508ae2c9f6bbaa9f0d7aad3139c3
|
4
|
+
data.tar.gz: 5f553f4265a69128ef74dc7fdf22ea1dafbe0b2f73396fa4fa9b98cfcf24060a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cd672d6cd5bafdb40f2275a4ee34eab50ac3855b4df2ee535a89b3732f1fda7f07693da14bf2d9c82d49ae07871debdc115aca4e175068148917fa37b6694ec
|
7
|
+
data.tar.gz: b3103984ef841b2082abf33fd84505db942e09b1a6a8bd0ca0a45774dbb018a31c202f1a3cf9fb0c7a87f1a51abf3825acbd12b325fa12264150d42deb323af8
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
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.0.1] - 2022-01-15
|
7
|
+
- [#189](https://github.com/boltops-tools/terraspace/pull/189) dotenv support
|
8
|
+
|
6
9
|
## [1.0.0] - 2022-01-08
|
7
10
|
Highlights:
|
8
11
|
- Non-cloud provider support
|
data/lib/terraspace/booter.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'dotenv'
|
2
|
+
|
3
|
+
module Terraspace
|
4
|
+
class Dotenv
|
5
|
+
def load!
|
6
|
+
::Dotenv.load(*files)
|
7
|
+
end
|
8
|
+
|
9
|
+
# dotenv files with the following precedence:
|
10
|
+
#
|
11
|
+
# - .env.dev.local - Highest precedence
|
12
|
+
# - .env.dev
|
13
|
+
# - .env.local
|
14
|
+
# - .env - Lowest precedence
|
15
|
+
#
|
16
|
+
def files
|
17
|
+
[
|
18
|
+
".env.#{Terraspace.env}.local",
|
19
|
+
".env.#{Terraspace.env}",
|
20
|
+
".env.local",
|
21
|
+
".env",
|
22
|
+
].compact
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
data/lib/terraspace/version.rb
CHANGED
data/terraspace.gemspec
CHANGED
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_dependency "bundler"
|
23
23
|
spec.add_dependency "cli-format"
|
24
24
|
spec.add_dependency "deep_merge"
|
25
|
+
spec.add_dependency "dotenv"
|
25
26
|
spec.add_dependency "dsl_evaluator"
|
26
27
|
spec.add_dependency "eventmachine-tail"
|
27
28
|
spec.add_dependency "graph"
|
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.0.
|
4
|
+
version: 1.0.1
|
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-01-
|
11
|
+
date: 2022-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: dotenv
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: dsl_evaluator
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -635,6 +649,7 @@ files:
|
|
635
649
|
- lib/terraspace/dependency/helper/output.rb
|
636
650
|
- lib/terraspace/dependency/node.rb
|
637
651
|
- lib/terraspace/dependency/registry.rb
|
652
|
+
- lib/terraspace/dotenv.rb
|
638
653
|
- lib/terraspace/ext.rb
|
639
654
|
- lib/terraspace/ext/bundler.rb
|
640
655
|
- lib/terraspace/ext/core/module.rb
|