dee_ee 0.99.0 → 0.99.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 +4 -4
- data/bin/dee_ee +10 -0
- data/lib/blackout.rb +10 -0
- metadata +12 -14
- data/exe/de +0 -47
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20aafa0b52e047b9f9a77d3b62b5e0deada4ca557f3b1bcf5ef39335db4ae5d1
|
|
4
|
+
data.tar.gz: bb3e8f7d20977cb8d1404adf44c4aa9aa43fa670d2f2c800e5d8dfa944edbc2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c129ce3620e1e15ed4d0f5bd0d46c613fb0119ff5f2f753ad1a5231028c263340ab60ccd27246c008477fcaef9bde306f1e45feed11485b1c628b886d9792352
|
|
7
|
+
data.tar.gz: 72bee40026c8ea521f498529ae48a6e24924513d9bc7091579e727fa43867f22cd00882097a26b26e2993a220b65b475a9bef033bacfa8ea4b12e3aaf703512b
|
data/bin/dee_ee
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
puts <<~DESC
|
|
2
|
+
# A Blackout Against Fascism
|
|
3
|
+
|
|
4
|
+
In response to the takeover of tech by fascists I am removing my OSS
|
|
5
|
+
contributions. This library will fail until such time that we win the
|
|
6
|
+
fight and humanity is restored to our culture. If you are inconvenienced
|
|
7
|
+
by this action, let me know so that I know this is working.
|
|
8
|
+
DESC
|
|
9
|
+
|
|
10
|
+
exit 1
|
data/lib/blackout.rb
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
puts <<~DESC
|
|
2
|
+
# A Blackout Against Fascism
|
|
3
|
+
|
|
4
|
+
In response to the takeover of tech by fascists I am removing my OSS
|
|
5
|
+
contributions. This library will fail until such time that we win the
|
|
6
|
+
fight and humanity is restored to our culture. If you are inconvenienced
|
|
7
|
+
by this action, let me know so that I know this is working.
|
|
8
|
+
DESC
|
|
9
|
+
|
|
10
|
+
exit 1
|
metadata
CHANGED
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dee_ee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.99.
|
|
4
|
+
version: 0.99.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kelly Wolf Stannard
|
|
8
|
-
bindir:
|
|
8
|
+
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
|
-
description:
|
|
13
|
-
dotenv allows you to write a file called '.env' that will provide environment
|
|
14
|
-
variables within that file's directory and subdirectories. This gem provides a
|
|
15
|
-
de executable to read and inject those env variables to the command.
|
|
12
|
+
description: 'Blackout against fascism
|
|
16
13
|
|
|
17
|
-
|
|
14
|
+
'
|
|
18
15
|
email:
|
|
19
16
|
- kwstannard@gmail.com
|
|
20
17
|
executables:
|
|
21
|
-
-
|
|
18
|
+
- dee_ee
|
|
22
19
|
extensions: []
|
|
23
20
|
extra_rdoc_files: []
|
|
24
21
|
files:
|
|
25
|
-
-
|
|
26
|
-
|
|
22
|
+
- bin/dee_ee
|
|
23
|
+
- lib/blackout.rb
|
|
24
|
+
homepage: https://drewdevault.com/weird-guys/
|
|
27
25
|
licenses:
|
|
28
26
|
- MIT
|
|
29
27
|
metadata:
|
|
30
28
|
allowed_push_host: https://rubygems.org
|
|
31
|
-
homepage_uri:
|
|
32
|
-
source_code_uri:
|
|
29
|
+
homepage_uri: https://drewdevault.com/weird-guys/
|
|
30
|
+
source_code_uri: https://drewdevault.com/weird-guys/
|
|
33
31
|
rdoc_options: []
|
|
34
32
|
require_paths:
|
|
35
33
|
- lib
|
|
@@ -44,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
44
42
|
- !ruby/object:Gem::Version
|
|
45
43
|
version: '0'
|
|
46
44
|
requirements: []
|
|
47
|
-
rubygems_version:
|
|
45
|
+
rubygems_version: 4.0.9
|
|
48
46
|
specification_version: 4
|
|
49
|
-
summary:
|
|
47
|
+
summary: Blackout against fascism
|
|
50
48
|
test_files: []
|
data/exe/de
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
puts(<<HELP) || exit(1) if ARGV.empty?
|
|
4
|
-
|
|
5
|
-
de is a solution to manageme environment variables on development machines.
|
|
6
|
-
It transverses the parents of the present working directory, concatenates any
|
|
7
|
-
.env files found, and runs the given command. Optionally set NAME to also load
|
|
8
|
-
files of the pattern .env.{NAME}
|
|
9
|
-
|
|
10
|
-
Usage: de {command}
|
|
11
|
-
NAME={env name} de {command}
|
|
12
|
-
|
|
13
|
-
Precedence order.
|
|
14
|
-
1) Inline shell variables. eg: "FOO=1 de env | grep FOO" will return 1.
|
|
15
|
-
2) shell process variables. eg: "export FOO=1"
|
|
16
|
-
3) $PWD/.env.{NAME}
|
|
17
|
-
4) $PWD/.env
|
|
18
|
-
5) $PWD/../.env.{NAME}
|
|
19
|
-
6) $PWD/../.env
|
|
20
|
-
7) and so on until the root directory
|
|
21
|
-
|
|
22
|
-
Tip: You may want to consider having ".env.local" files and also setting
|
|
23
|
-
"export NAME=local" in your shell rc file.
|
|
24
|
-
|
|
25
|
-
Valid variable formats (anything else will be ignored):
|
|
26
|
-
|
|
27
|
-
KEY=value
|
|
28
|
-
KEY=value with spaces
|
|
29
|
-
KEY="double quoted
|
|
30
|
-
multiline
|
|
31
|
-
value"
|
|
32
|
-
KEY='single quoted
|
|
33
|
-
multiline
|
|
34
|
-
value'
|
|
35
|
-
HELP
|
|
36
|
-
|
|
37
|
-
require 'pathname'
|
|
38
|
-
env = Pathname.pwd.ascend
|
|
39
|
-
.reduce([]) {|a, x| a << x.join(".env.#{ENV['NAME']}") << x.join(".env")}
|
|
40
|
-
.reverse
|
|
41
|
-
.select(&:exist?)
|
|
42
|
-
.map(&:read)
|
|
43
|
-
.join
|
|
44
|
-
|
|
45
|
-
regexp = /^(?<a>\w+)=(?:'(?<b>.+?)'|"\g<b>"|\g<b>)$/m
|
|
46
|
-
ENV.update env.scan(regexp).to_h.merge(ENV.to_h)
|
|
47
|
-
exec(ENV, *ARGV)
|