onlyoffice_file_helper 0.5.0 → 1.0.0

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: b18003c971b29ad3a526be4c6a1c5a9715a679852e9f1f669b5df5556af68d84
4
- data.tar.gz: 830540033c0e29f1c6407102cb635a3988889533bb3bc8fd047c2972aaa24e50
3
+ metadata.gz: ebad99290f1b01ca78c2c2ff8d1d387d39aa6680d9c1f79e34e5c8a5fd88c92a
4
+ data.tar.gz: 9a6030f9416d7d8e195c5de56102550b297fdcb7d971ad5053fc2a8029b2b4de
5
5
  SHA512:
6
- metadata.gz: f02f38cced0b75b7d4c203d9b8c7c92d463a67a1948cf512ffecc3b5a07e46adea14ebd9d5f0e2347d00cd144b2eecba1337648bc3a854d1a181df87171967ec
7
- data.tar.gz: 4ce796b78aebc6478b4d88ef9ad304b13e43710ff7ba69cab1a8290b6437ee2182d990a21cd64869b4d088b32c85dcd8be95c389c25274b3418cb3a1d89d50f7
6
+ metadata.gz: a76a442f4083aa6e26ae4513249bb100954a03923474116b145dec81b07268c2310875b16935f2e166967426fa25919186e6856cbf2d7f9ae5298c28ee6aec68
7
+ data.tar.gz: 5810ca797300bbf5ec5aa99092cc0f53b8046db7e0000e176fb989834275c7b302d68a75afd5710687b52ecd938c02ec46c3832a04c200f4fd3715b9f7e26659
@@ -17,7 +17,7 @@ module OnlyofficeFileHelper
17
17
  # @param [String] content content of file
18
18
  # @return [String] path to created file
19
19
  def create_file_with_content(file_path: '/tmp/temp_file.ext', content: '')
20
- File.open(file_path, 'w') { |f| f.write(content) }
20
+ File.write(file_path, content)
21
21
  OnlyofficeLoggerHelper.log("Created file: #{file_path} with content: #{content}")
22
22
  file_path
23
23
  end
@@ -10,7 +10,7 @@ module OnlyofficeFileHelper
10
10
  # @param path [String] directory to delete
11
11
  # @return [Void]
12
12
  def delete_directory(path)
13
- FileUtils.rm_rf(path) if Dir.exist?(path)
13
+ FileUtils.rm_rf(path)
14
14
  end
15
15
 
16
16
  # List of files in directory as array
@@ -2,5 +2,5 @@
2
2
 
3
3
  module OnlyofficeFileHelper
4
4
  # @return [String] version of gem
5
- VERSION = '0.5.0'
5
+ VERSION = '1.0.0'
6
6
  end
@@ -32,17 +32,6 @@ module OnlyofficeFileHelper
32
32
  name.to_s
33
33
  end
34
34
 
35
- # Return name of file from full path
36
- # @param [String] file_path full file path
37
- # @param [true, false] keep_extension keep extension in result?
38
- # @return [Sting] name of file, with extension or not
39
- def get_filename(file_path, keep_extension = true)
40
- filename_from_path(file_path, keep_extension: keep_extension)
41
- end
42
-
43
- extend Gem::Deprecate
44
- deprecate :get_filename, :filename_from_path, 2025, 1
45
-
46
35
  # Wait for downloading file
47
36
  # @param path [String] path to waiting download
48
37
  # @param timeout [Integer] timeout to wait
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_file_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-09-16 00:00:00.000000000 Z
12
+ date: 2022-08-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: onlyoffice_logger_helper
@@ -197,6 +197,7 @@ metadata:
197
197
  documentation_uri: https://www.rubydoc.info/gems/onlyoffice_file_helper
198
198
  homepage_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_file_helper
199
199
  source_code_uri: https://github.com/ONLYOFFICE-QA/onlyoffice_file_helper
200
+ rubygems_mfa_required: 'true'
200
201
  post_install_message:
201
202
  rdoc_options: []
202
203
  require_paths:
@@ -205,14 +206,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
205
206
  requirements:
206
207
  - - ">="
207
208
  - !ruby/object:Gem::Version
208
- version: '2.5'
209
+ version: '2.7'
209
210
  required_rubygems_version: !ruby/object:Gem::Requirement
210
211
  requirements:
211
212
  - - ">="
212
213
  - !ruby/object:Gem::Version
213
214
  version: '0'
214
215
  requirements: []
215
- rubygems_version: 3.2.27
216
+ rubygems_version: 3.3.19
216
217
  signing_key:
217
218
  specification_version: 4
218
219
  summary: ONLYOFFICE Helper Gem for File operation