encrypt_env 1.3.6 → 1.3.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58a9ebf47dac3a056a4ec7d890463591f8ed9f0a749597cf8aa388b2359cc7bd
4
- data.tar.gz: 607a5c85ae34aa79a60983919f7d1c972769417bbd0ab59d9e2e1cfc19a791b7
3
+ metadata.gz: dd634e7fc896cefbe4579145c0a73894ed1fe51be4971d8d195f0cbc0eb39b7d
4
+ data.tar.gz: f1471056a4779bfa5cef533495ca0abc09707bd6b13a35482a9d16642356e0e6
5
5
  SHA512:
6
- metadata.gz: ad618c7bd4b93b11f0eda7ad786d363b41bd4d1c9498426931f04e5859e3e4f6f9d6e7aabbd3f15d90ccb3a23e8cfdfe614e68fc63a4e013d5c2e54434212aac
7
- data.tar.gz: 41c5be08c7ee2c47b147564abeb12b83906f876f23efe50e22b0717e124cf3a30a78da1b9025859ded45a77771df6434324192d052d4dd83274e72a5efd5ab3f
6
+ metadata.gz: aa1e838872bade1d4d17cd0d222bc3c4e0c614738cd3e257a161dfc83198b41be2ff7a964f48ad11d5dc5cab2a9cda1373fc29dc3746e04c26e2a7fc83762097
7
+ data.tar.gz: 914b09bd8214792cb400753f5605ba7ba68fdcf2abd20e4254bd548768076ff0cf24a55312cd1c1f29e54370f56875e4371f7e359f6feaa3ab61cae1520b5fe5
data/bin/encrypt_env CHANGED
@@ -7,11 +7,23 @@ require 'optparse'
7
7
  require_relative '../lib/encrypt_env/version'
8
8
 
9
9
  options = {}
10
- parsers = OptionParser.new do |parser|
11
- parser.on('-e', '--environment ENVIRONMENT', 'environment')
12
- parser.on('-s', '--set VALUE', 'value')
13
- parser.on('-t', '--type TYPE', 'type of variable')
14
- parser.on('-a', '--all', 'show all')
10
+ OptionParser.new do |parser|
11
+ parser.on('-e', '--environment ENVIRONMENT', 'environment') do |opts|
12
+ options[:environment] = opts
13
+ end
14
+
15
+ parser.on('-s', '--set VALUE', 'value') do |opts|
16
+ options[:set] = opts
17
+ end
18
+
19
+ parser.on('-t', '--type TYPE', 'type of variable') do |opts|
20
+ options[:type] = opts
21
+ end
22
+
23
+ parser.on('-a', '--all', 'show all') do |_opts|
24
+ options[:all] = true
25
+ end
26
+
15
27
  parser.on('-v', '--version', 'version') do
16
28
  puts Version::VERSION
17
29
  exit
@@ -43,9 +55,9 @@ parsers = OptionParser.new do |parser|
43
55
  HELP
44
56
  exit
45
57
  end
46
- end
58
+ end.parse!
47
59
 
48
- parsers.parse!(into: options)
60
+ # parsers.parse!
49
61
 
50
62
  argv = ARGV
51
63
  action = argv.shift
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Version
4
- VERSION = '1.3.6'
4
+ VERSION = '1.3.7'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: encrypt_env
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nhu Tan