lolita-file-upload 1.0.3 → 1.0.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7836a67bebb54acbed08ef87e3cf5c983f86ab7
|
4
|
+
data.tar.gz: 13c09714998553e928f783bbb7a4cfffd9d76c1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 703645f38ef99faa01bf05461889ae85a3aa90f3062e6665f3ae50da6779eba2d664c864f172457df36ebd7bb43a3779650a53451864bd28f9feb9eb52d75170
|
7
|
+
data.tar.gz: a04323b915908c705656da69db9280ae15590bade5c55aa41fd4c60253c1339ff7ad78418703a678aec22c486d490c0a7ef13fff3321f4e1190d23b8d852764a
|
data/README.md
CHANGED
@@ -9,9 +9,8 @@ File upload gem for Lolita.
|
|
9
9
|
* cd your_project_path
|
10
10
|
* rails g lolita_file_upload:install
|
11
11
|
* add `lolita_gallery` as plugin to `config/tinymce.yml` configuration.
|
12
|
-
|
13
|
-
|
14
|
-
If you update to newest version of gem, than run `rails g lolita_file_upload:assets`
|
12
|
+
* run `bundle exec rails g lolita:file_upload:install` it will create new migration file
|
13
|
+
* run `bundle exec rake db:migrate db:test:clone` to create file tables
|
15
14
|
|
16
15
|
##Configuration
|
17
16
|
|
@@ -5,7 +5,9 @@
|
|
5
5
|
<%= image_tag url %>
|
6
6
|
<% else %>
|
7
7
|
<% ext = File.extname(file.send(tab.uploader).url).gsub(/^\./,"") %>
|
8
|
-
|
8
|
+
<% icons = Lolita::FileUpload.get_available_file_icons %>
|
9
|
+
<% icon = icons[ext] ? icons[ext] : icons['unknown'] %>
|
10
|
+
<%= image_tag icon %>
|
9
11
|
<%= file.send(tab.uploader).url %>
|
10
12
|
<% end %>
|
11
13
|
<div class="links">
|
data/lolita-file-upload.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "lolita-file-upload"
|
6
|
-
s.version = "1.0.
|
6
|
+
s.version = "1.0.4"
|
7
7
|
s.platform = Gem::Platform::RUBY
|
8
8
|
s.authors = ["ITHouse (Latvia)", "Arturs Meisters", "Gatis Tomsons"]
|
9
9
|
s.description = "File upload gem for Lolita with with fulll integration - models, controller, views"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolita-file-upload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ITHouse (Latvia)
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-03-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: lolita
|
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
220
220
|
version: '0'
|
221
221
|
requirements: []
|
222
222
|
rubyforge_project:
|
223
|
-
rubygems_version: 2.2.
|
223
|
+
rubygems_version: 2.2.1
|
224
224
|
signing_key:
|
225
225
|
specification_version: 4
|
226
226
|
summary: File upload gem for Lolita CMS
|