opener-core 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/opener/core/resource_switcher.rb +4 -2
- data/lib/opener/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmZmOTZhYTk1OTk4MjI3NzM5MmQxYWQxYjRkNDgwOWZiMWM5NDVjMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDFkZGQ4ZTIxOTc4NmQ0YzgwZGQ5MGEzOTkxNjBkNmE2ZDExNmUzYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTgwYWM4NmNhOGE4NjQxMjBhMThkZjNjYTFlMjRiMjMzNTU1OTc5MGI5OTcw
|
10
|
+
ZmRhNDFlNzAzMDYyNjY0YzU0YjYwZjY3YWFjOWQ5ZDU3ODYxMjJiYmNkZTdl
|
11
|
+
MmU1NTIwMzVmOGZhNzZjNDNjYTE1Mzg5ZDYwNGY5MjNmNmI0Nzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDEzZTM3NDZjZTA5ZDk2MmM1MTA3ZDhmNmZmYjk2ZmUwZjIzNWI1ZDBjNjE4
|
14
|
+
OWM2ZDM5MjIxNDA5ZTM5NjJjYWQ1N2Q2YTZhNzkxNDUwY2E2ZDE4NDY4ZmRk
|
15
|
+
YzczYjcxNjExN2Q0ZTk1MDc1OGQ4ZWM2NTk2NzM2YjQyYmU3MGY=
|
@@ -48,10 +48,12 @@ module Opener
|
|
48
48
|
|
49
49
|
def unzip(file, path)
|
50
50
|
extname = File.extname(file)
|
51
|
+
full_filename = Dir.glob("#{file}*").first
|
52
|
+
puts "Extracting full_filename"
|
51
53
|
if extname == ".zip"
|
52
|
-
puts `unzip -o #{
|
54
|
+
puts `unzip -o #{full_filename} -d #{path}`
|
53
55
|
else
|
54
|
-
puts `tar -zxvf #{
|
56
|
+
puts `tar -zxvf #{full_filename} --directory #{path}`
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
data/lib/opener/core/version.rb
CHANGED