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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b7ce978164016f494019e49859aed0f399352511ea7d529bbe7e20e706b913b
4
- data.tar.gz: 41ed24ad24dad676802b9094edc695de9ff5c567081e4699d899ad3be95948c0
3
+ metadata.gz: 9cda39e06e206a8072e15e27b03605acc10eefcb05896fe9a50fb89e1909d889
4
+ data.tar.gz: 14c6b0359a68ad20f69f0f391d4b426bf02704e433364c3a8a67f4ff5addc2ea
5
5
  SHA512:
6
- metadata.gz: fb35c6493b5b1b6cf5360921bbb480bff5f36ec3e19a58705f8d0f06160e3246c158de7a6ed92996c9365b4db0ba17ba97dea89cc934d6cb5464c54d5b50325e
7
- data.tar.gz: fd986fd0ecdc9c4f04549b451036b76330aa56cc8cdc2bd3d0be063869dc0f0d2969d48fa8efa39a2e69e10b68562e3e63767eb3ad42e03a75a0610e2888aac7
6
+ metadata.gz: b89d7716bd84d115ecb7a43a0f5c18d51180e722c8b1c46de7471ed987f1a84c93490e140af6b7a4f4665d66615150bf18011cd2b5d8c3646b91017a8581a61f
7
+ data.tar.gz: aa0ca7721d6d6c82588dfd061efa735b87c01a26ce8250f14a185113a6a68d0951d5256b70cb07fa4c1685664b64cc5546f14f5b2c8e00fbadbd82e7f7bf555d
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Momoka
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.4'
5
5
  end
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!(*filenames)
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!(*filenames)
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
@@ -25,5 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{\Aexe/}) {|f| File.basename(f)}
26
26
  spec.require_paths = ['lib']
27
27
 
28
- spec.add_dependency 'dotenv'
28
+ spec.add_dependency 'dotenv', '>= 3'
29
29
  end
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.2
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: 2022-12-04 00:00:00.000000000 Z
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: '0'
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: '0'
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.4.0.dev
68
+ rubygems_version: 3.5.3
70
69
  signing_key:
71
70
  specification_version: 4
72
71
  summary: Dotenv encryptor with AES-256-CBC
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'dotenv'
4
-
5
- module Dotenv
6
- def self.parse!(*filenames)
7
- with(*filenames) do |f|
8
- Environment.new(f, false)
9
- end
10
- end
11
- end