alm 0.3.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04e96b7d781e70dd99c36140194db950a767d65f1b11be9f86dcb2935cec6028
4
- data.tar.gz: 63c434d18bd6e292e4e2c82ce350fe9036647b90c3b95458c277dd9399af646e
3
+ metadata.gz: a46543a181a5fc3b6e46089d51f3ad3a53df625a7440d6739c32662a4f47cb33
4
+ data.tar.gz: 18afffc015e32c37584f3b4b546dc2c14bdab88b1c6d031c21cba4c5255db6bc
5
5
  SHA512:
6
- metadata.gz: b2306341ae6d37f852f7d34cef09a7aebdde56006d8ac27be64496818bdb5d9a3e5c96a1559cd7841a9383306ccb7abc8bf7be3324df1694463fe21cdbfd1c08
7
- data.tar.gz: 328de95e9d4b41f9a222ef16d2bef0f8eec9ac2e55304a565ca346f237941e5a4c31f97e9ba638455b9ee0a3c7988448717345457bc01599979ba930c4ea45c3
6
+ metadata.gz: c156cb988a4afcf2346c09ff429bc8ba2c3b8804be36ee71cf02f2f3731121e697a762f88976c8259be1b76239c619e1b7aee478d12f7be33e92a3b8bd5a4570
7
+ data.tar.gz: 1897707c463787ec4451048943ba0be30f969d5960406a8b1a2a317295ca38ee334236027d60fc978bd77d1131781838adffce82bea6b815dcf6bfee6d41267f
data/exe/alm CHANGED
@@ -41,10 +41,12 @@ end
41
41
  file = options[:file]
42
42
  file_path = File.expand_path(file, Dir.pwd)
43
43
 
44
+ appimg_dir = File.expand_path(file, "#{Dir.home}/.local/appimage")
45
+
44
46
  case options[:action]
45
47
  when :add
46
48
  # ADD VERIFICATION PROCESS
47
- avp_verification = Verifications::AVP.process(file_path)
49
+ avp_verification = Verifications::AVP.process(appimg_dir)
48
50
  case avp_verification
49
51
  when :AVP_PPR
50
52
  Modules::ADD.start([file])
@@ -62,7 +64,7 @@ when :remove
62
64
  when :RVP_PPR
63
65
  Modules::REMOVE.start([file])
64
66
  when :RVP_NEXIST
65
- puts "\e[31m[ERROR | RVP_NEXIST ] - alm: File #{file} not found in #{file_path}\e[0m"
67
+ puts "\e[31m[ERROR | RVP_NEXIST ] - alm: File #{file} not found in the AppImage directory\e[0m"
66
68
  else
67
69
  puts "\e[31m[ERROR | RVP_FAILED ] - alm: RVP Verification failed unexpectedly\e[0m"
68
70
  end
data/lib/alm/modules.rb CHANGED
@@ -31,7 +31,7 @@ module Modules
31
31
  end
32
32
 
33
33
  if system("mv '#{file_path}' '#{appimg_path}'")
34
- puts "\n>>> - alm: #{file_arg} successfully added to #{appimg_path}\n"
34
+ puts ">>> - alm: #{file_arg} successfully added to #{appimg_path}\n"
35
35
  else
36
36
  puts "\e[31m[ERROR | RUNTIME_ERROR] - alm: Failed to move #{file_arg} to #{appimg_path}\e[0m"
37
37
  end
data/lib/alm/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alm
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mvguest