onlyoffice_file_helper 0.5.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebad99290f1b01ca78c2c2ff8d1d387d39aa6680d9c1f79e34e5c8a5fd88c92a
|
4
|
+
data.tar.gz: 9a6030f9416d7d8e195c5de56102550b297fdcb7d971ad5053fc2a8029b2b4de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
20
|
+
File.write(file_path, content)
|
21
21
|
OnlyofficeLoggerHelper.log("Created file: #{file_path} with content: #{content}")
|
22
22
|
file_path
|
23
23
|
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.
|
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:
|
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.
|
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.
|
216
|
+
rubygems_version: 3.3.19
|
216
217
|
signing_key:
|
217
218
|
specification_version: 4
|
218
219
|
summary: ONLYOFFICE Helper Gem for File operation
|