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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f275fe567f142b368e67d436591e6785999eda4
4
- data.tar.gz: f46791bf4d2d9dfaa87b724c3510ab353b9ba808
3
+ metadata.gz: 05fc29838f6ca0180bff7c925fa9b4b96d66919c
4
+ data.tar.gz: b8c5598dfe9acd5ce8b80642f45dd2b8a5096352
5
5
  SHA512:
6
- metadata.gz: 824019285d3172cbae73bf5e9b77ab81df94b0a33d08919ee86296a2d63cb316f668260774f4bd0c6a0db356f15b3fee3edbf2d9e48f7cf26e91accdc108ab01
7
- data.tar.gz: 50f6c3fa91d8b6c281286fb38f0b692b3b4ef67a9e1131381a34516a4bde70ec44a9cd666df9069d5cedff41cb33f96cccd7827cca4c35c76126576930ba5354
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', git: 'git@bitbucket.org:neolabs-kz/gem_neo_files.git'
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 {filelink: '/neofiles/serve-file/#{file.id}'}
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".
@@ -1,3 +1,3 @@
1
1
  module Neofiles
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
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.2
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-06 00:00:00.000000000 Z
11
+ date: 2016-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails