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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmRjZjhiODAyOWI2NWMwYTY5YTY2M2U5NWE0YjAxZDA5NWMzZGViNA==
4
+ ZmZmOTZhYTk1OTk4MjI3NzM5MmQxYWQxYjRkNDgwOWZiMWM5NDVjMw==
5
5
  data.tar.gz: !binary |-
6
- Y2E1NDhkYWYzNDU0YTljYjQ0N2E2M2NmYTY4MmNkY2U4MjcxOGQ4OA==
6
+ NDFkZGQ4ZTIxOTc4NmQ0YzgwZGQ5MGEzOTkxNjBkNmE2ZDExNmUzYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDUyYTg0MTM4ZjU5ZTZlYTY5MTA4N2M5NWIzYmRmZGZkMDdjMzc4Y2ZiYmE1
10
- NzdmZmZlZjY5MjQzNjcwMjRlY2ZlM2Q5MWYyNGYwODM5YjBiMjc3ZWQzNGRj
11
- ZWVjZDQ1MjI0MTE0ZDQ4N2I5N2JhYjg1MTgzZmQzMGU4ODhlYTE=
9
+ YTgwYWM4NmNhOGE4NjQxMjBhMThkZjNjYTFlMjRiMjMzNTU1OTc5MGI5OTcw
10
+ ZmRhNDFlNzAzMDYyNjY0YzU0YjYwZjY3YWFjOWQ5ZDU3ODYxMjJiYmNkZTdl
11
+ MmU1NTIwMzVmOGZhNzZjNDNjYTE1Mzg5ZDYwNGY5MjNmNmI0Nzk=
12
12
  data.tar.gz: !binary |-
13
- OTE2MzdhMDRhMGNhYWZmY2M0M2YzMzFhOWNkZDljNmM0MjgxYzU3ZGM5Yjg0
14
- ZTBiNDgxODhmZGI0ZTNiNzQwYjAzNDk4NDViOTE0ZmUwMmZlZTg5YzVmNDU1
15
- YmYxMWRmODAzYzFlZDZhYWU5NmQ1OWUxOTBkZjBjM2ZmY2U5Njg=
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 #{file} -d #{path}`
54
+ puts `unzip -o #{full_filename} -d #{path}`
53
55
  else
54
- puts `tar -zxvf #{file} --directory #{path}`
56
+ puts `tar -zxvf #{full_filename} --directory #{path}`
55
57
  end
56
58
  end
57
59
 
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  module Core
3
- VERSION = "0.1.3"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - development@olery.com