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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9dcc6b0f9213ae2af553a733bccf759947c3815a9942c10c6942ad790920c4ec
4
- data.tar.gz: 93a2466cbd7420b711fc9d2ca8a4d910bb2507054fc52b60a32b5268bb614349
3
+ metadata.gz: 6dbf04b48547a39ca0f729cbc3f456c94e30862ed11492ccf7f25bc883053f66
4
+ data.tar.gz: ae396f40a073d80684580ddf9e85d9ae6113cc78f151acf7b6c523fa04f1ea9b
5
5
  SHA512:
6
- metadata.gz: f8e2f4bd706c81e0a9029af91a19af46835843e44b5074809bda0f17331eb66284da30723a57e5133220d168db5ea07b49c874198d06bc077654021d94d92cd0
7
- data.tar.gz: 31bfb0c73147bcf7246d8378cc6b426d834fc989bca781d684ce7016f586070aa45e0c3a4ea7b65592b5c0c268becfcd1a279d8f0afcb624a4612d542558f2c3
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
@@ -1,3 +1,3 @@
1
1
  module Bizside
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.2'
3
3
  end
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.1
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-10-28 00:00:00.000000000 Z
11
+ date: 2021-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport