active_admin_jcrop 0.0.6 → 0.0.7
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: 9e9fce20298ee9a26815ef13a02cbe86fe31aeac
|
4
|
+
data.tar.gz: 5f215eaf265c9193974ddd7952beee004866c01e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9042855b869ae6f22d8423a86aa0094e59b22d153113242088738b1bb657a5d5322b409d0b166d2ac0aa7feda42fa1fb3b1442a477eac02283fba09576442ca
|
7
|
+
data.tar.gz: 7e0154e0c0ff9a551cbd5b894755fa44f579fe6d7ca50b06f2b92dac95109584cb76b47f847b320d9a53cc52b1dac8a9b797abbc5780fa103bc28b267e4782e7
|
data/MIT-LICENSE
CHANGED
@@ -18,9 +18,12 @@ module Paperclip
|
|
18
18
|
def has_attached_file(*args)
|
19
19
|
super
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
attribute_name = args[0]
|
22
|
+
definition = attachment_definitions[attribute_name]
|
23
|
+
definition[:processors] ||= []
|
24
|
+
|
25
|
+
unless definition[:processors].include?(:active_admin_jcropper)
|
26
|
+
definition[:processors] << :active_admin_jcropper
|
24
27
|
end
|
25
28
|
end
|
26
29
|
end
|
@@ -23,7 +23,7 @@ module Formtastic
|
|
23
23
|
|
24
24
|
def jcrop_options
|
25
25
|
options[:jcrop_options] ||= {}
|
26
|
-
options[:jcrop_options].assert_valid_keys(:aspectRatio, :minSize, :maxSize, :setSelect, :bgColor, :bgOpacity)
|
26
|
+
options[:jcrop_options].assert_valid_keys(:aspectRatio, :minSize, :maxSize, :setSelect, :bgColor, :bgOpacity, :boxWidth)
|
27
27
|
options[:jcrop_options].reverse_merge!(setSelect: [0,0,100,100])
|
28
28
|
end
|
29
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_jcrop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Nacif
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -273,6 +273,7 @@ files:
|
|
273
273
|
- spec/dummy/db/migrate/20140609202215_devise_create_admin_users.rb
|
274
274
|
- spec/dummy/db/migrate/20140619201236_drop_admin_user_table.rb
|
275
275
|
- spec/dummy/db/schema.rb
|
276
|
+
- spec/dummy/log/test.log
|
276
277
|
- spec/dummy/public/404.html
|
277
278
|
- spec/dummy/public/422.html
|
278
279
|
- spec/dummy/public/500.html
|
@@ -354,6 +355,7 @@ test_files:
|
|
354
355
|
- spec/dummy/db/migrate/20140609202215_devise_create_admin_users.rb
|
355
356
|
- spec/dummy/db/migrate/20140619201236_drop_admin_user_table.rb
|
356
357
|
- spec/dummy/db/schema.rb
|
358
|
+
- spec/dummy/log/test.log
|
357
359
|
- spec/dummy/public/404.html
|
358
360
|
- spec/dummy/public/422.html
|
359
361
|
- spec/dummy/public/500.html
|