alm 0.1.0 → 0.2.0

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: fdd382555d3ae026ca3ca1f5f80653ff5e40dc42f5ed8deb07751409fcef2fc7
4
- data.tar.gz: 8a2b3f1599843407f8737abd6d405db7d71e46468a3f676367eb77b3cefb4756
3
+ metadata.gz: 31c1dfda6cae9629b240bd083ffc64a68565095c268622b6ecb990e76c220c89
4
+ data.tar.gz: e2ab3c276039a2086524e18e500873d99b29e71f49ac0c9088cc08dfedd214f3
5
5
  SHA512:
6
- metadata.gz: 04d9e5b767d44a639ffce94224c64d54aba7f485ad93d7af943ce52fec931f0f740fc47da07a126917ee29056b77d2fa395ebe8a7ab5f0e591b8f9c20925855c
7
- data.tar.gz: 45425512720109b1d5c1557d48ff772ac9d875dbf60d17a77f22b211b1f6a21883e97d0eb1877e2e7868bd3718dbe04799d70c9f301156de1c64b40574421498
6
+ metadata.gz: 37ce126b7de676fb89ccc5e03df27ce28c6348e3165f6885865c2b2c63da8d2bdbbfd387b3148d2a886a27d45eb5dab249401ebfced5f0710439b45f7f572daa
7
+ data.tar.gz: ff456a7d8377eb846e195999966562005b717765e9a618cac0a1cc2855216d4652f94bf7c7b8a1d6815ddde35fdc0d1dad527a3c8f47e0551fb3127d428d4d41
data/lib/alm/modules.rb CHANGED
@@ -12,18 +12,18 @@ module Modules
12
12
 
13
13
  begin
14
14
  unless File.directory?(appimg_path)
15
- puts "\e[33m- - - - [SUBP] - alm: No appimage directory found\e[0m"
16
- puts "\e[33m- - - - [SUBP] - alm: Creating appimage directory on #{appimg_path}...\e[0m"
15
+ puts "\e[33m - - - [SUBP] - alm: No appimage directory found\e[0m"
16
+ puts "\e[33m - - - [SUBP] - alm: Creating appimage directory on #{appimg_path}...\e[0m"
17
17
  FileUtils.mkdir_p(appimg_path)
18
- puts "\e[33m- - - - [SUBP] - alm: Appimage directory created successfully\e[0m"
18
+ puts "\e[33m - - - [SUBP] - alm: Appimage directory created successfully\e[0m"
19
19
  end
20
20
 
21
- puts ">>> - alm: Adding #{file_arg} to #{dest_path}..."
21
+ puts "\n>>> - alm: Adding #{file_arg} to #{dest_path}...\n"
22
22
 
23
23
  unless File.executable?(file_path)
24
- puts "\e[33m- - - - [SUBP] - alm: Securing executable permissions for #{file_arg}...\e[0m"
24
+ puts "\e[33m - - - [SUBP] - alm: Securing executable permissions for #{file_arg}...\e[0m"
25
25
  if system("chmod +x '#{file_path}'")
26
- puts "\e[32m- - - - [SUBP] - alm: Executable rights granted to #{file_arg}\e[0m"
26
+ puts "\e[33m - - - [SUBP] - alm: Executable rights granted to #{file_arg}\e[0m"
27
27
  else
28
28
  puts "\e[31m[ERROR | RUNTIME_ERROR] - alm: Failed to grant executable rights to #{file_arg}\e[0m"
29
29
  return
@@ -31,7 +31,7 @@ module Modules
31
31
  end
32
32
 
33
33
  if system("mv '#{file_path}' '#{appimg_path}'")
34
- puts "\e[32m>>> - alm: #{file_arg} successfully added to #{appimg_path}\e[0m"
34
+ puts "\n>>> - 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
@@ -55,7 +55,7 @@ module Modules
55
55
  begin
56
56
  if File.exist?(file_path)
57
57
  File.delete(file_path)
58
- puts "\e[32m>>> - alm: #{File.basename(file_arg)} successfully removed from #{appimg_path}\e[0m"
58
+ puts "\n>>> - alm: #{File.basename(file_arg)} successfully removed from #{appimg_path}\n"
59
59
  else
60
60
  puts "\e[31m[ERROR] - alm: File #{File.basename(file_arg)} not found in #{appimg_path}\e[0m"
61
61
  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.1.0"
4
+ VERSION = "0.2.0"
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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mvguest