momoka 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/momoka/version.rb +1 -1
- data/lib/momoka.rb +2 -3
- data/momoka.gemspec +1 -1
- metadata +5 -6
- data/lib/momoka/dotenv_inject.rb +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cda39e06e206a8072e15e27b03605acc10eefcb05896fe9a50fb89e1909d889
|
4
|
+
data.tar.gz: 14c6b0359a68ad20f69f0f391d4b426bf02704e433364c3a8a67f4ff5addc2ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b89d7716bd84d115ecb7a43a0f5c18d51180e722c8b1c46de7471ed987f1a84c93490e140af6b7a4f4665d66615150bf18011cd2b5d8c3646b91017a8581a61f
|
7
|
+
data.tar.gz: aa0ca7721d6d6c82588dfd061efa735b87c01a26ce8250f14a185113a6a68d0951d5256b70cb07fa4c1685664b64cc5546f14f5b2c8e00fbadbd82e7f7bf555d
|
data/lib/momoka/version.rb
CHANGED
data/lib/momoka.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
require 'base64'
|
4
4
|
require 'dotenv'
|
5
5
|
require 'openssl'
|
6
|
-
require_relative 'momoka/dotenv_inject'
|
7
6
|
require_relative 'momoka/version'
|
8
7
|
|
9
8
|
module Momoka
|
@@ -15,7 +14,7 @@ module Momoka
|
|
15
14
|
end
|
16
15
|
|
17
16
|
def load!(*filenames, key_file: nil)
|
18
|
-
env = Dotenv.parse
|
17
|
+
env = Dotenv.parse(*filenames, overwrite: true)
|
19
18
|
decrypt!(env, key_file: key_file)
|
20
19
|
env.each {|k, v| ENV[k] ||= v}
|
21
20
|
end
|
@@ -27,7 +26,7 @@ module Momoka
|
|
27
26
|
end
|
28
27
|
|
29
28
|
def overload!(*filenames, key_file: nil)
|
30
|
-
env = Dotenv.parse
|
29
|
+
env = Dotenv.parse(*filenames, overwrite: true)
|
31
30
|
decrypt!(env, key_file: key_file)
|
32
31
|
env.each {|k, v| ENV[k] = v}
|
33
32
|
end
|
data/momoka.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: momoka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ishotihadus
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3'
|
27
27
|
description: Dotenv encryptor with AES-256-CBC
|
28
28
|
email:
|
29
29
|
- hanachan.pao@gmail.com
|
@@ -42,7 +42,6 @@ files:
|
|
42
42
|
- exe/momoka-cli
|
43
43
|
- lib/momoka.rb
|
44
44
|
- lib/momoka/cli.rb
|
45
|
-
- lib/momoka/dotenv_inject.rb
|
46
45
|
- lib/momoka/load.rb
|
47
46
|
- lib/momoka/version.rb
|
48
47
|
- momoka.gemspec
|
@@ -66,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
65
|
- !ruby/object:Gem::Version
|
67
66
|
version: '0'
|
68
67
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
68
|
+
rubygems_version: 3.5.3
|
70
69
|
signing_key:
|
71
70
|
specification_version: 4
|
72
71
|
summary: Dotenv encryptor with AES-256-CBC
|