struggle 1.4.5 → 1.5.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 +4 -4
- data/lib/struggle/tfile.rb +1 -15
- data/struggle.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b07bb4097ba8cbda6f72846164c33505f69fbf4a
|
4
|
+
data.tar.gz: 96ff332887fd6505cfd9f035bf5e389a2bca9180
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ccb03dbc4083f600ea1213f8140154e3676109b434b76861e62adf2ec050dfae3faaaa66dcfa67e4efc505bb62690361b2b7ee77f3bf70b798a3a89a12e402d8
|
7
|
+
data.tar.gz: 2c4358adfefddb21bf509b1c9ff13d3e30a9fb4a5cae2c4722839fca900cba4b249030baaf6b599853332f08b1da944411a73ab8eb08ba38f2910279ba665ebd
|
data/lib/struggle/tfile.rb
CHANGED
@@ -25,21 +25,7 @@ module Struggle
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
-
#before unpack
|
29
|
-
def Tfile.unpack_init
|
30
|
-
soft = ""
|
31
|
-
if system("unzip").nil?
|
32
|
-
soft += "unzip "
|
33
|
-
elsif system("unrar").nil?
|
34
|
-
soft += "unrar "
|
35
|
-
elsif system("tar").nil?
|
36
|
-
soft += "tar "
|
37
|
-
end
|
38
|
-
unless soft.blank?
|
39
|
-
system("sudo apt-get install #{soft}")
|
40
|
-
end
|
41
|
-
end
|
42
|
-
#file unpack
|
28
|
+
#file unpack(before unpack run `sudo apt-get install unzip unrar -y` || insert gemfile)
|
43
29
|
#file->file path
|
44
30
|
#path->unpacked path
|
45
31
|
#return->true, false, nil. nil not cmd
|
data/struggle.gemspec
CHANGED