refinerycms-images 3.0.6 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/app/controllers/refinery/admin/images_controller.rb +1 -1
- data/app/models/refinery/image.rb +3 -0
- data/app/views/refinery/admin/images/_existing_image.html.erb +2 -2
- data/app/views/refinery/admin/images/_grid_view.html.erb +1 -1
- data/db/migrate/20100913234707_create_refinerycms_images_schema.rb +1 -1
- data/db/migrate/20120625093918_remove_image_ext_from_refinery_images.rb +1 -1
- data/db/migrate/20140814073957_add_title_and_alt_to_refinery_images.rb +1 -1
- data/db/migrate/20150430171341_translate_refinery_images.rb +1 -1
- data/db/migrate/20170703143514_remove_translated_columns_from_refinery_images.rb +6 -0
- data/refinerycms-images.gemspec +3 -2
- metadata +34 -7
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a0c7a18b1cd99d731f036563027bec891ffc7b1
|
4
|
+
data.tar.gz: 2b022bf06efe08c71920b0d925648f1da6964b1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b61d61ad50018c0d8062b0074ca65633cba12c963d2d10126db72e622c000288e12e054304c1f12322a8ffc1de28315646e2042f7daba76630247ab866a94313
|
7
|
+
data.tar.gz: 342cd899334e5748b659c9a90bf49d1a97ca2da4a24d112b6290196f55b9b4889f5de03a314b4e76da64d60878109e052e6959c42e6f5f1c7b523673bb550a44
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
@@ -43,7 +43,7 @@ module Refinery
|
|
43
43
|
if params[:image].present? && params[:image][:image].is_a?(Array)
|
44
44
|
params[:image][:image].each do |image|
|
45
45
|
params[:image][:image_title] = params[:image][:image_title].presence || auto_title(image.original_filename)
|
46
|
-
@images << (@image = ::Refinery::Image.create({image: image}.merge(image_params.except(:image))))
|
46
|
+
@images << (@image = ::Refinery::Image.create({image: image}.merge(image_params.except(:image).to_h)))
|
47
47
|
end
|
48
48
|
else
|
49
49
|
@images << (@image = ::Refinery::Image.create(image_params))
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<div id="existing_image_area" class="dialog_area" <%= 'style="display:none;"'.html_safe if @image.errors.any? %>>
|
2
|
-
<%= render '/refinery/admin/search', :url => refinery.insert_admin_images_path(params.dup.except('image')) %>
|
2
|
+
<%= render '/refinery/admin/search', :url => refinery.insert_admin_images_path(params.to_unsafe_h.dup.except('image')) %>
|
3
3
|
<input type="hidden" name="selected_image" id="selected_image" />
|
4
4
|
<div id="existing_image_area_content" class="clearfix">
|
5
5
|
<% if @images.any? %>
|
@@ -19,7 +19,7 @@
|
|
19
19
|
<%= t('no_results', :scope => 'refinery.admin.search') %>
|
20
20
|
<% end %>
|
21
21
|
</div>
|
22
|
-
<%= will_paginate @images, :params => params.dup.merge(:action => "insert") %>
|
22
|
+
<%= will_paginate @images, :params => params.to_unsafe_h.dup.merge(:action => "insert") %>
|
23
23
|
|
24
24
|
<% unless @app_dialog or @images.empty? %>
|
25
25
|
<div id="existing_image_size_area" class="clearfix">
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
<%= action_icon :preview, image.url, t('view_live_html', scope: 'refinery.admin.images') %>
|
8
8
|
<%= action_icon :edit, refinery.edit_admin_image_path(image), t('edit', scope: 'refinery.admin.images') %>
|
9
|
-
<%= action_icon :delete, refinery.admin_image_path(image, params.slice(:page)), t('delete', scope: 'refinery.admin.images'), class: 'confirm-delete',
|
9
|
+
<%= action_icon :delete, refinery.admin_image_path(image, params.to_unsafe_h.slice(:page)), t('delete', scope: 'refinery.admin.images'), class: 'confirm-delete',
|
10
10
|
data: { confirm: t('message', scope: 'refinery.admin.delete', title: image.title) } %>
|
11
11
|
<%= action_icon :info, '#', "Title: #{image.title} Alt text: #{image.alt}" %>
|
12
12
|
|
data/refinerycms-images.gemspec
CHANGED
@@ -19,8 +19,9 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = `git ls-files`.split("\n")
|
20
20
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
21
21
|
|
22
|
-
s.add_dependency 'dragonfly', '~> 1.1.0'
|
23
|
-
s.add_dependency 'globalize', ['>=
|
22
|
+
s.add_dependency 'dragonfly', '~> 1.1', '>= 1.1.0'
|
23
|
+
s.add_dependency 'globalize', ['>= 5.1.0.beta1', '< 5.2']
|
24
|
+
s.add_dependency 'activemodel-serializers-xml', '~> 1.0', '>= 1.0.1'
|
24
25
|
s.add_dependency 'refinerycms-core', version
|
25
26
|
|
26
27
|
s.required_ruby_version = Refinery::Version.required_ruby_version
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-images
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
@@ -32,13 +32,16 @@ cert_chain:
|
|
32
32
|
jOQmH9VbgbfUrXYM1YOKdlwW5sPR1f4PKLDlvEE+bppIUgKOgLOIv3i7KwrGvFOq
|
33
33
|
5r7Wz/HY31SM47mkK21saPJG4NvUFEycf0wlpzP657Pl9aVo47aKKbxX
|
34
34
|
-----END CERTIFICATE-----
|
35
|
-
date: 2017-
|
35
|
+
date: 2017-09-29 00:00:00.000000000 Z
|
36
36
|
dependencies:
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: dragonfly
|
39
39
|
requirement: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.1'
|
44
|
+
- - ">="
|
42
45
|
- !ruby/object:Gem::Version
|
43
46
|
version: 1.1.0
|
44
47
|
type: :runtime
|
@@ -46,6 +49,9 @@ dependencies:
|
|
46
49
|
version_requirements: !ruby/object:Gem::Requirement
|
47
50
|
requirements:
|
48
51
|
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.1'
|
54
|
+
- - ">="
|
49
55
|
- !ruby/object:Gem::Version
|
50
56
|
version: 1.1.0
|
51
57
|
- !ruby/object:Gem::Dependency
|
@@ -54,7 +60,7 @@ dependencies:
|
|
54
60
|
requirements:
|
55
61
|
- - ">="
|
56
62
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
63
|
+
version: 5.1.0.beta1
|
58
64
|
- - "<"
|
59
65
|
- !ruby/object:Gem::Version
|
60
66
|
version: '5.2'
|
@@ -64,24 +70,44 @@ dependencies:
|
|
64
70
|
requirements:
|
65
71
|
- - ">="
|
66
72
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
73
|
+
version: 5.1.0.beta1
|
68
74
|
- - "<"
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '5.2'
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: activemodel-serializers-xml
|
79
|
+
requirement: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.0'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 1.0.1
|
87
|
+
type: :runtime
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '1.0'
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.0.1
|
71
97
|
- !ruby/object:Gem::Dependency
|
72
98
|
name: refinerycms-core
|
73
99
|
requirement: !ruby/object:Gem::Requirement
|
74
100
|
requirements:
|
75
101
|
- - '='
|
76
102
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
103
|
+
version: 4.0.0
|
78
104
|
type: :runtime
|
79
105
|
prerelease: false
|
80
106
|
version_requirements: !ruby/object:Gem::Requirement
|
81
107
|
requirements:
|
82
108
|
- - '='
|
83
109
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
110
|
+
version: 4.0.0
|
85
111
|
description: Handles all image upload and processing functionality in Refinery CMS.
|
86
112
|
email: refinerycms@p.arndt.io
|
87
113
|
executables: []
|
@@ -141,6 +167,7 @@ files:
|
|
141
167
|
- db/migrate/20120625093918_remove_image_ext_from_refinery_images.rb
|
142
168
|
- db/migrate/20140814073957_add_title_and_alt_to_refinery_images.rb
|
143
169
|
- db/migrate/20150430171341_translate_refinery_images.rb
|
170
|
+
- db/migrate/20170703143514_remove_translated_columns_from_refinery_images.rb
|
144
171
|
- lib/generators/refinery/images/images_generator.rb
|
145
172
|
- lib/generators/refinery/images/templates/config/initializers/refinery/images.rb.erb
|
146
173
|
- lib/refinery/images.rb
|
@@ -190,7 +217,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
190
217
|
requirements:
|
191
218
|
- - ">="
|
192
219
|
- !ruby/object:Gem::Version
|
193
|
-
version: 2.
|
220
|
+
version: 2.2.2
|
194
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
222
|
requirements:
|
196
223
|
- - ">="
|
metadata.gz.sig
CHANGED
Binary file
|