trusty-clipped-extension 3.1.2 → 3.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -19
- data/app/controllers/admin/assets_controller.rb +2 -1
- data/lib/trusty-clipped-extension.rb +1 -1
- data/trusty-clipped-extension.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c7870dd8f93f612fe64926f97ae2ad59a969898
|
4
|
+
data.tar.gz: 323b6d75f201492d2ce7010e83e3dad655dc3a2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe435a4124f36c1c190cee022d7e5d4449f1db12c0866e42b439f494875a4845e65ea3dc35511c23ff732ca6e9081ade6a203160c238f06a0bdb9f3d4dd93182
|
7
|
+
data.tar.gz: a3bc26bb3c1508506fc9915fd41146f9e7065f2df536fe09754db11f5b85498207ec483dcab49b4955c9de0da8639d5b58b65252e68e2dedeccad46146ef6092
|
data/Gemfile.lock
CHANGED
@@ -8,11 +8,11 @@ GIT
|
|
8
8
|
PATH
|
9
9
|
remote: .
|
10
10
|
specs:
|
11
|
-
trusty-clipped-extension (3.1.
|
11
|
+
trusty-clipped-extension (3.1.3)
|
12
12
|
acts_as_list (~> 0.9.5)
|
13
13
|
cocaine (~> 0.5.8)
|
14
14
|
kraken-io
|
15
|
-
paperclip (
|
15
|
+
paperclip (< 5.2)
|
16
16
|
rake (< 11.0)
|
17
17
|
trusty-cms (~> 3.1.0)
|
18
18
|
uuidtools (~> 2.1.5)
|
@@ -58,7 +58,7 @@ GEM
|
|
58
58
|
i18n (~> 0.7)
|
59
59
|
minitest (~> 5.1)
|
60
60
|
tzinfo (~> 1.1)
|
61
|
-
acts_as_list (0.9.
|
61
|
+
acts_as_list (0.9.10)
|
62
62
|
activerecord (>= 3.0)
|
63
63
|
acts_as_tree (2.6.1)
|
64
64
|
activerecord (>= 3.0.0)
|
@@ -74,7 +74,7 @@ GEM
|
|
74
74
|
rack (>= 1.0.0)
|
75
75
|
rack-test (>= 0.5.4)
|
76
76
|
xpath (~> 2.0)
|
77
|
-
chunky_png (1.3.
|
77
|
+
chunky_png (1.3.10)
|
78
78
|
ckeditor (4.2.4)
|
79
79
|
cocaine
|
80
80
|
orm_adapter (~> 0.5.0)
|
@@ -114,7 +114,7 @@ GEM
|
|
114
114
|
factory_girl_rails (4.6.0)
|
115
115
|
factory_girl (~> 4.5.0)
|
116
116
|
railties (>= 3.0.0)
|
117
|
-
ffi (1.9.
|
117
|
+
ffi (1.9.23)
|
118
118
|
globalid (0.4.1)
|
119
119
|
activesupport (>= 4.2.0)
|
120
120
|
haml (5.0.4)
|
@@ -126,19 +126,15 @@ GEM
|
|
126
126
|
haml (>= 4.0.6, < 6.0)
|
127
127
|
html2haml (>= 1.0.1)
|
128
128
|
railties (>= 4.0.1)
|
129
|
-
highline (1.7.
|
129
|
+
highline (1.7.10)
|
130
130
|
html2haml (2.2.0)
|
131
131
|
erubis (~> 2.7.0)
|
132
132
|
haml (>= 4.0, < 6)
|
133
133
|
nokogiri (>= 1.6.0)
|
134
134
|
ruby_parser (~> 3.5)
|
135
|
-
httparty (0.
|
135
|
+
httparty (0.16.0)
|
136
136
|
multi_xml (>= 0.5.2)
|
137
137
|
i18n (0.8.6)
|
138
|
-
jquery-rails (4.3.1)
|
139
|
-
rails-dom-testing (>= 1, < 3)
|
140
|
-
railties (>= 4.2.0)
|
141
|
-
thor (>= 0.14, < 2.0)
|
142
138
|
json (2.1.0)
|
143
139
|
kraken-io (0.1.3)
|
144
140
|
activesupport
|
@@ -160,11 +156,11 @@ GEM
|
|
160
156
|
mini_mime (1.0.0)
|
161
157
|
mini_portile2 (2.2.0)
|
162
158
|
minitest (5.10.3)
|
163
|
-
multi_json (1.
|
159
|
+
multi_json (1.13.1)
|
164
160
|
multi_xml (0.6.0)
|
165
161
|
multipart-post (2.0.0)
|
166
|
-
mysql2 (0.4.
|
167
|
-
nio4r (2.
|
162
|
+
mysql2 (0.4.10)
|
163
|
+
nio4r (2.2.0)
|
168
164
|
nokogiri (1.8.0)
|
169
165
|
mini_portile2 (~> 2.2.0)
|
170
166
|
orm_adapter (0.5.0)
|
@@ -244,16 +240,16 @@ GEM
|
|
244
240
|
rspec-mocks (~> 3.6.0)
|
245
241
|
rspec-support (~> 3.6.0)
|
246
242
|
rspec-support (3.6.0)
|
247
|
-
ruby_parser (3.
|
243
|
+
ruby_parser (3.11.0)
|
248
244
|
sexp_processor (~> 4.9)
|
249
245
|
sass (3.4.25)
|
250
|
-
sass-rails (5.0.
|
246
|
+
sass-rails (5.0.7)
|
251
247
|
railties (>= 4.0.0, < 6)
|
252
248
|
sass (~> 3.1)
|
253
249
|
sprockets (>= 2.8, < 4.0)
|
254
250
|
sprockets-rails (>= 2.0, < 4.0)
|
255
251
|
tilt (>= 1.1, < 3)
|
256
|
-
sexp_processor (4.10.
|
252
|
+
sexp_processor (4.10.1)
|
257
253
|
slop (3.6.0)
|
258
254
|
sprockets (3.7.1)
|
259
255
|
concurrent-ruby (~> 1.0)
|
@@ -270,7 +266,7 @@ GEM
|
|
270
266
|
thor (0.19.4)
|
271
267
|
thread_safe (0.3.6)
|
272
268
|
tilt (2.0.8)
|
273
|
-
trusty-cms (3.1.
|
269
|
+
trusty-cms (3.1.10)
|
274
270
|
RedCloth (~> 4.3.2)
|
275
271
|
acts_as_tree (~> 2.6.1)
|
276
272
|
bundler (~> 1.7)
|
@@ -281,7 +277,6 @@ GEM
|
|
281
277
|
haml (~> 5.0)
|
282
278
|
haml-rails (~> 1.0.0)
|
283
279
|
highline (~> 1.7.8)
|
284
|
-
jquery-rails (~> 4.3.1)
|
285
280
|
mysql2 (~> 0.4.2)
|
286
281
|
rack (~> 2.0.1)
|
287
282
|
rack-cache (~> 1.7)
|
@@ -31,11 +31,12 @@ class Admin::AssetsController < Admin::ResourceController
|
|
31
31
|
|
32
32
|
def create
|
33
33
|
@assets, @page_attachments = [], []
|
34
|
+
compress = current_site.try(:compress) ? current_site.compress : true
|
34
35
|
asset_params[:asset][:asset].to_a.each do |uploaded_asset|
|
35
36
|
if uploaded_asset.content_type == "application/octet-stream"
|
36
37
|
flash[:notice] = "Please only upload assets that have a valid extension in the name."
|
37
38
|
else
|
38
|
-
uploaded_asset = compress(uploaded_asset) if $kraken.api_key.present? && COMPRESS_FILE_TYPE.include?(uploaded_asset.content_type)
|
39
|
+
uploaded_asset = compress(uploaded_asset) if $kraken.api_key.present? && COMPRESS_FILE_TYPE.include?(uploaded_asset.content_type) && compress
|
39
40
|
@asset = Asset.create(:asset => uploaded_asset, :caption => asset_params[:asset][:caption])
|
40
41
|
if params[:for_attachment]
|
41
42
|
@page = Page.find_by_id(params[:page_id]) || Page.new
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = TrustyCmsClippedExtension::DESCRIPTION
|
14
14
|
|
15
15
|
s.add_dependency "acts_as_list", "~> 0.9.5"
|
16
|
-
s.add_dependency "paperclip", "
|
16
|
+
s.add_dependency "paperclip", "< 5.2"
|
17
17
|
s.add_dependency "uuidtools", "~> 2.1.5"
|
18
18
|
s.add_dependency "cocaine", "~> 0.5.8"
|
19
19
|
s.add_dependency "trusty-cms", "~> 3.1.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-clipped-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Bingman
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date:
|
18
|
+
date: 2018-02-27 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: acts_as_list
|
@@ -35,16 +35,16 @@ dependencies:
|
|
35
35
|
name: paperclip
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "<"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '5.
|
40
|
+
version: '5.2'
|
41
41
|
type: :runtime
|
42
42
|
prerelease: false
|
43
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "<"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '5.
|
47
|
+
version: '5.2'
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: uuidtools
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|