opener-core 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/opener/core/resource_switcher.rb +4 -3
- data/lib/opener/core/version.rb +1 -1
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YjhhZDc2OTMwNGNjMTQ4NzA0MDJhZDQ0YzQ5YTcyZjQzNzBhODljZg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4bfae88333e21eda0e27c4d9e9c52acad728adf1
|
4
|
+
data.tar.gz: 7c85f777caab8251f6914cb4b73ad744e0e23241
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MDczNzg2NTk4NTgyNGZiMTM1NTIzYTY5MGMxMTIxZDFlMzE2ZTk4NDIyNGQy
|
11
|
-
NTgwN2Y0MjkwZjZjZWYwN2RjNjM5YzAzZjkyNWEzOGEwYTVmMGQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MWRkYWFlM2E1MzJhNTEwNDk5N2UzM2JhMmFmMWQ5YWI1YmZmNjU3MzBlYjQ3
|
14
|
-
M2M5NzU2YWRiOGM0YWVhNjM0ZmVlZWFhM2QyMGE1NWM4MjVjMjY1MTJjMjdj
|
15
|
-
ODExYWI5ZDJhNzlkODkwZGNjNWJiZmJlMzI1NmE0MDQyZDFmZDM=
|
6
|
+
metadata.gz: 970138e4bf9921a30802ed0429be14604ebbd2fd77f6659721fa5f79335115daff75e7fdfbcdf678173da25dd1db6944c8f37bdb866c5620a93b2368cae44ce1
|
7
|
+
data.tar.gz: 195b9bfb90c84eed237647ac9685f212b523c5a344f0f66e22ba4a1c4cce740231d5df07df8a306e231fda24ae2ec8b686230d2cf54844365f623c7f2093c331
|
@@ -40,8 +40,9 @@ module Opener
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def download(url)
|
43
|
-
filename
|
44
|
-
destination =
|
43
|
+
filename = get_filename_from_url(url)
|
44
|
+
destination = File.join(Dir.tmpdir, filename)
|
45
|
+
|
45
46
|
`wget -N -O #{destination} #{url}`
|
46
47
|
|
47
48
|
return destination
|
@@ -50,7 +51,7 @@ module Opener
|
|
50
51
|
def unzip(file, path)
|
51
52
|
extname = File.extname(file)
|
52
53
|
if extname == ".zip"
|
53
|
-
`unzip #{file} -
|
54
|
+
`unzip -o #{file} -d #{path}`
|
54
55
|
else
|
55
56
|
`tar -zxvf #{file} --directory #{path}`
|
56
57
|
end
|
data/lib/opener/core/version.rb
CHANGED
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.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- development@olery.com
|
@@ -14,28 +14,28 @@ dependencies:
|
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.5'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Gem that contains some low lever generic functions for all OpeNER components.
|
@@ -44,13 +44,13 @@ executables: []
|
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
+
- README.md
|
48
|
+
- lib/opener/core.rb
|
47
49
|
- lib/opener/core/argv_splitter.rb
|
48
50
|
- lib/opener/core/opt_parser.rb
|
49
51
|
- lib/opener/core/resource_switcher.rb
|
50
52
|
- lib/opener/core/version.rb
|
51
|
-
- lib/opener/core.rb
|
52
53
|
- opener-core.gemspec
|
53
|
-
- README.md
|
54
54
|
homepage: http://opener-project.github.com
|
55
55
|
licenses:
|
56
56
|
- Apachev2
|
@@ -61,18 +61,19 @@ require_paths:
|
|
61
61
|
- lib
|
62
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- -
|
69
|
+
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 2.
|
74
|
+
rubygems_version: 2.2.2
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Gem that contains some low lever generic functions for all OpeNER components.
|
78
78
|
test_files: []
|
79
|
+
has_rdoc:
|