bizside 2.0.1 → 2.0.2
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/bizside/file_uploader.rb +2 -2
- data/lib/bizside/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6dbf04b48547a39ca0f729cbc3f456c94e30862ed11492ccf7f25bc883053f66
|
|
4
|
+
data.tar.gz: ae396f40a073d80684580ddf9e85d9ae6113cc78f151acf7b6c523fa04f1ea9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c23a9c930e62f2c1fa6116ebdc2e7bd9ff9c2b82df6da82184aa7dddce580f02459b738aeaab9203f35cd0564ca4d52213e2d7e334768c97785f931623e30db2
|
|
7
|
+
data.tar.gz: a6777413583e1a3abd2777d48191ebc5eb760c1dfb491ccae1c47cef5020c0d1e163698bf687c5b71f6dd156808f9ed1b7779737c78a78a1d8657cb59db2098b
|
|
@@ -53,7 +53,7 @@ module Bizside
|
|
|
53
53
|
|
|
54
54
|
def download_file_from_fog(path)
|
|
55
55
|
tmp_path = "/tmp/#{Bizside.config.add_on_name}-#{Bizside::StringUtils.current_time_string}-#{File.basename(path)}"
|
|
56
|
-
system("curl '#{file.url}' -o '#{tmp_path}'")
|
|
56
|
+
raise "File download failed.(curl '#{file.url}' -o '#{tmp_path}')" unless system("curl '#{file.url}' -o '#{tmp_path}'")
|
|
57
57
|
tmp_path
|
|
58
58
|
end
|
|
59
59
|
|
|
@@ -62,7 +62,7 @@ module Bizside
|
|
|
62
62
|
unless File.exist?(cache_path)
|
|
63
63
|
FileUtils.mkdir_p(File.dirname(cache_path))
|
|
64
64
|
tmp_path = download_file_from_fog(path)
|
|
65
|
-
system("mv '#{tmp_path}' '#{cache_path}'")
|
|
65
|
+
raise "Failed to move file.(mv '#{tmp_path}' '#{cache_path}')" unless system("mv '#{tmp_path}' '#{cache_path}'")
|
|
66
66
|
end
|
|
67
67
|
cache_path
|
|
68
68
|
end
|
data/lib/bizside/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bizside
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- bizside-developers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-11-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|