activeadmin-dropzone 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79023d46a4a0bd3ac710587deeeb8aeeeb1a35f7
4
- data.tar.gz: e6751d2a887c04f89711d514f7ef5fbd9af57d4c
3
+ metadata.gz: 4c583aafa8b2b98364e3138f90831e046417d4fd
4
+ data.tar.gz: ea414d1d2bb97a3f7be322638dc2176758111e29
5
5
  SHA512:
6
- metadata.gz: 08cf6b8bcbd6ca7cb758909e0fbe3abc2d2f0d11d32fbaf8696cb55cf9784aa992640fb046a02a2bf6a5ffff45dc3b98fb8e1e8df208a31fbba9b5d8d10f2f1b
7
- data.tar.gz: 244efdb55a81efa871450bc96930d98eef45e8ce326cf349c1828cd214339a3b1dd5c88ad7c1c28b7650dba61115487a152b14a215b3444c055f7dcc8190404a
6
+ metadata.gz: d08cb8a780afd811e74a57612d582813dc72c2e3f216050de2d76c92588a13c1a774a8a641833904def7d6d5aaece6e8b3ce3d5ff1b4e37453264dd30a653f09
7
+ data.tar.gz: 8da7a876ccc550bf4db9847bc44f964720022a1f19a7f2bce88c00b85f4ae46496b43549f78460db1f29e57fb43d0374911cd96bf0118b3d3993f2eec1802d76
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # activeadmin-dropzone
1
+ # activeadmin-dropzone [![Gem Version](https://badge.fury.io/rb/activeadmin-dropzone.png)](http://badge.fury.io/rb/activeadmin-dropzone)
2
2
 
3
3
  Easy to use integration of drag&drop files upload via [dropzone.js](http://www.dropzonejs.com) for [ActiveAdmin](http://www.activeadmin.info).
4
4
 
@@ -31,6 +31,10 @@ Add `input` to your ActiveAdmin form:
31
31
 
32
32
  f.input :images, as: :dropzone
33
33
 
34
+ Add `activeadmin-dropzone` to both `active_admin.js` and `active_admin.css` files:
35
+
36
+ //= require activeadmin-dropzone
37
+
34
38
  ## Configuration
35
39
 
36
40
  You can customize columns used for upload by passing `Hash` to the `dropzone_item` method. Here are the default values:
@@ -38,8 +42,8 @@ You can customize columns used for upload by passing `Hash` to the `dropzone_ite
38
42
  dropzone_item title: :title,
39
43
  position: :position,
40
44
  data: :data,
41
- file_size: :file_size,
42
- url: :url
45
+ file_size: :data_file_size,
46
+ url: :data_url
43
47
 
44
48
  ## Contributing to activeadmin-dropzone
45
49
 
@@ -53,4 +57,4 @@ You can customize columns used for upload by passing `Hash` to the `dropzone_ite
53
57
  ## Copyright
54
58
 
55
59
  Copyright (c) 2014 Maxim Gladkov. See LICENSE.txt for
56
- further details.
60
+ further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "activeadmin-dropzone"
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Maxim Gladkov"]
@@ -28,6 +28,10 @@ Gem::Specification.new do |s|
28
28
  "app/.DS_Store",
29
29
  "app/assets/.DS_Store",
30
30
  "app/assets/images/.DS_Store",
31
+ "app/assets/images/hamburger-retina.gif",
32
+ "app/assets/images/hamburger.gif",
33
+ "app/assets/images/spritemap.png",
34
+ "app/assets/images/spritemap@2x.png",
31
35
  "app/assets/javascripts/activeadmin-dropzone.js",
32
36
  "app/assets/javascripts/dropzone.js",
33
37
  "app/assets/stylesheets/activeadmin-dropzone.css.scss",
Binary file
Binary file
Binary file
@@ -1,48 +1,50 @@
1
1
  //= require dropzone
2
2
 
3
- .dropzone {
4
- margin: 10px 20px;
5
- border: 1px solid #ccc;
3
+ .active_admin {
4
+ .dropzone {
5
+ margin: 10px 20px;
6
+ border: 1px solid #ccc;
6
7
 
7
- a {
8
- text-decoration: none;
9
- font-size: 13px;
10
- color: #666;
11
- cursor: pointer;
8
+ a {
9
+ text-decoration: none;
10
+ font-size: 13px;
11
+ color: #666;
12
+ cursor: pointer;
13
+
14
+ &:hover {
15
+ color: #000;
16
+ }
17
+ }
18
+
19
+ span.notice {
20
+ position: absolute;
21
+ bottom: 10px;
22
+ right: 10px;
23
+ color: #666;
24
+ }
12
25
 
13
26
  &:hover {
14
- color: #000;
27
+ span.notice {
28
+ color: #000;
29
+ }
15
30
  }
16
31
  }
17
32
 
18
- span.notice {
19
- position: absolute;
20
- bottom: 10px;
21
- right: 10px;
33
+ .dropzone-hint {
34
+ margin: 0 0 0 20px;
35
+ font-size: 0.95em;
36
+ font-style: italic;
22
37
  color: #666;
23
38
  }
24
39
 
25
- &:hover {
26
- span.notice {
27
- color: #000;
28
- }
40
+ .sortable-placeholder {
41
+ position: relative;
42
+ display: inline-block;
43
+ margin: 17px !important;
44
+ vertical-align: top;
45
+ border: 1px dashed #acacac !important;
46
+ padding: 6px 6px 6px 6px !important;
47
+ width: 112px !important;
48
+ height: 166px !important;
29
49
  }
30
- }
31
-
32
- .dropzone-hint {
33
- margin: 0 0 0 20px;
34
- font-size: 0.95em;
35
- font-style: italic;
36
- color: #666;
37
- }
38
-
39
- .sortable-placeholder {
40
- position: relative;
41
- display: inline-block;
42
- margin: 17px !important;
43
- vertical-align: top;
44
- border: 1px dashed #acacac !important;
45
- padding: 6px 6px 6px 6px !important;
46
- width: 112px !important;
47
- height: 166px !important;
48
50
  }
@@ -70,7 +70,7 @@ module Activeadmin
70
70
  #{ options }.keys.include? key.to_sym
71
71
  end
72
72
 
73
- def #{ options[:data] }_url
73
+ def data_url
74
74
  #{ options[:data] }.url
75
75
  end
76
76
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-dropzone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxim Gladkov
@@ -58,6 +58,10 @@ files:
58
58
  - app/.DS_Store
59
59
  - app/assets/.DS_Store
60
60
  - app/assets/images/.DS_Store
61
+ - app/assets/images/hamburger-retina.gif
62
+ - app/assets/images/hamburger.gif
63
+ - app/assets/images/spritemap.png
64
+ - app/assets/images/spritemap@2x.png
61
65
  - app/assets/javascripts/activeadmin-dropzone.js
62
66
  - app/assets/javascripts/dropzone.js
63
67
  - app/assets/stylesheets/activeadmin-dropzone.css.scss