el_finder 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -3
- data/lib/el_finder/connector.rb +7 -1
- data/lib/el_finder/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -7,10 +7,10 @@
|
|
7
7
|
Ruby library to provide server side functionality for elFinder. elFinder is an
|
8
8
|
open-source file manager for web, written in JavaScript using jQuery UI.
|
9
9
|
|
10
|
-
##
|
10
|
+
## Note regarding 2.x API:
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
FYI, I'm working on a pure 2.x API implementation. Nothing to release yet, and the holidays are in the way,
|
13
|
+
but wanted to "get the word out."
|
14
14
|
|
15
15
|
## Requirements:
|
16
16
|
|
data/lib/el_finder/connector.rb
CHANGED
@@ -243,7 +243,13 @@ module ElFinder
|
|
243
243
|
@response[:errorData][@options[:original_filename_method].call(file)] = 'File exceeds the maximum allowed filesize'
|
244
244
|
else
|
245
245
|
dst = @current + @options[:original_filename_method].call(file)
|
246
|
-
|
246
|
+
if file.respond_to?(:tempfile)
|
247
|
+
file.tempfile.close
|
248
|
+
src = file.tempfile.path
|
249
|
+
else
|
250
|
+
file.close
|
251
|
+
src = file.path
|
252
|
+
end
|
247
253
|
FileUtils.mv(src, dst.fullpath)
|
248
254
|
FileUtils.chmod @options[:upload_file_mode], dst
|
249
255
|
select << to_hash(dst)
|
data/lib/el_finder/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: el_finder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11
|
12
|
+
date: 2012-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: image_size
|