pad_utils 1.9.1 → 1.10.0

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
  SHA1:
3
- metadata.gz: 04c45e50307a3d1903b5007ac5304e4b91d041fd
4
- data.tar.gz: b13ce5cfee93451fc330fcf747b7e475cd41d476
3
+ metadata.gz: 6d5fba0204ba064f38f4360292e38fceffc180f5
4
+ data.tar.gz: 1237b4dccf91136ae5f09159d2b118ad464b637d
5
5
  SHA512:
6
- metadata.gz: 5b651dbc51928884a5ff6b5771e79ce393f2d98eac87f373079c4ffcbc89d17b634a0657273969aa9e60b4f19088d25f93aba089c73b48f508746eccad4c3458
7
- data.tar.gz: cfc2610127f3fcde36e046e8ba2a9000c8e42cf4e79c3705f9c238186df1d31c425d1936fc10e9abbfdf5dca80f4369cba7cdbe2604145b9af4cfc9865aa1e1c
6
+ metadata.gz: 89c62f39ebb1cd2bdf788e11b04a1df84dc09e5cc0e86aa37940f28efdaaa11a9f3510ca26f21461404a5580d0e1b258d992bb8b49c2b46c3965ccc27dea80bb
7
+ data.tar.gz: 828b14c1f37a80296995d513c986ad8cd29ceeb15463418ef8fa523e683e9cf3ef371293ff5330484384bd40c7e3b36871a11f53de0256b90b43d29562af781f
@@ -1,4 +1,4 @@
1
1
  module PadUtils
2
2
  # PadUtils version number
3
- VERSION = "1.9.1"
3
+ VERSION = "1.10.0"
4
4
  end
data/lib/pad_utils.rb CHANGED
@@ -21,6 +21,20 @@ module PadUtils
21
21
  def self.main(arg)
22
22
  if arg[0] == '-u'
23
23
  PadUtils.puts_c PadUtils.uuid, :blue
24
+ elsif arg[0] == '-e'
25
+ if arg[1].nil? || arg[2].nil?
26
+ puts
27
+ PadUtils.puts_c "padutils -e <word to encrypt> <encryption key>"
28
+ else
29
+ PadUtils.puts_c PadUtils.encrypt content: arg[1], key: arg[2]
30
+ end
31
+ elsif arg[0] == '-d'
32
+ if arg[1].nil? || arg[2].nil?
33
+ puts
34
+ PadUtils.puts_c "padutils -d <string to decrypt> <encryption key>"
35
+ else
36
+ PadUtils.puts_c PadUtils.decrypt content: arg[1], key: arg[2]
37
+ end
24
38
  else
25
39
  help
26
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pad_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Schuele