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 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
- ## Todo:
10
+ ## Note regarding 2.x API:
11
11
 
12
- * Document library.
13
- * Document how to implement custom image size/resize methods.
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
 
@@ -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
- src = file.respond_to?(:tempfile) ? file.tempfile.path : file.path
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)
@@ -1,5 +1,5 @@
1
1
  # Represents ElFinder namespace.
2
2
  module ElFinder
3
3
  # Gem version.
4
- VERSION = '1.1.3'
4
+ VERSION = '1.1.4'
5
5
  end
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.3
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-24 00:00:00.000000000 Z
12
+ date: 2012-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: image_size