neofiles 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/app/controllers/neofiles/admin_controller.rb +2 -2
- data/lib/neofiles/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05fc29838f6ca0180bff7c925fa9b4b96d66919c
|
4
|
+
data.tar.gz: b8c5598dfe9acd5ce8b80642f45dd2b8a5096352
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a01586a5f619729c4738a631ed4a2f2925d459ae12203f7063473ddf1fa02a2e4fe69ee92f6b8b9d0418b6072a356c8906fac8f1b97327426eb2a8c020f43105
|
7
|
+
data.tar.gz: ebe4f4334de4ae3f011eb89db4496cefb94b0f4fcc4c928f02df11501242911e91cca8c05bcc9bb5a5d1ec3631bb2eb9695020a6e37acef9700427b518f10206
|
data/README.md
CHANGED
@@ -73,7 +73,7 @@ Installation, dependencies
|
|
73
73
|
Add Neofiles and its dependencies to your gemfile:
|
74
74
|
|
75
75
|
``` ruby
|
76
|
-
gem 'neofiles'
|
76
|
+
gem 'neofiles'
|
77
77
|
gem 'ruby-imagespec', git: 'git://github.com/dim/ruby-imagespec.git'
|
78
78
|
gem 'mini_magick', '3.7.0'
|
79
79
|
```
|
@@ -126,7 +126,7 @@ Routes `/neofiles/admin/*` form AJAX backend for file manipulations. The last 3
|
|
126
126
|
Usage with CCK
|
127
127
|
--------------
|
128
128
|
|
129
|
-
Neofiles gem is used mainly with two other gems: cck & cck_forms (CCK stands for Content Construction Kit).
|
129
|
+
Neofiles gem is used mainly with two other gems: cck & [cck_forms](http://github.com/ilya-konanykhin/cck_forms) (CCK stands for Content Construction Kit).
|
130
130
|
|
131
131
|
Using these gems together provides straightforward and extremely easy way to handle file storage and manipulation.
|
132
132
|
|
@@ -414,4 +414,4 @@ Roadmap, TODOs
|
|
414
414
|
License
|
415
415
|
-------
|
416
416
|
|
417
|
-
Released under the [MIT License](http://www.opensource.org/licenses/MIT).
|
417
|
+
Released under the [MIT License](http://www.opensource.org/licenses/MIT).
|
@@ -165,8 +165,8 @@ class Neofiles::AdminController < ApplicationController
|
|
165
165
|
Rails.application.config.neofiles.before_save.try!(:call, file)
|
166
166
|
file.save!
|
167
167
|
|
168
|
-
# returns JSON {
|
169
|
-
render json: {filelink: neofiles_file_path(file), filename: file.filename}
|
168
|
+
# returns JSON {url: '/neofiles/serve-file/#{file.id}'}
|
169
|
+
render json: {filelink: neofiles_file_path(file), filename: file.filename, url: neofiles_file_path(file), name: file.filename}
|
170
170
|
end
|
171
171
|
|
172
172
|
# Returns JSON of files assigned to specific owner to show them in Redactor.js tab "previously uploaded files".
|
data/lib/neofiles/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neofiles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konanykhin Ilya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|