uploadbox 0.0.5 → 0.0.6

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: a662f240833c250a53327176e51bb6062dec9c96
4
- data.tar.gz: 54283fa644cf50a8e952dcc31117fdc4a8552819
3
+ metadata.gz: 7a522ad87791ba9cd744aed842e7e62db83085f9
4
+ data.tar.gz: 284327809309d14a235135ff9fdde709761c764f
5
5
  SHA512:
6
- metadata.gz: 23144c6bfa4c07e8ede2993fb0fb57697c145e5e1a197c131c6cacb401a11d7b5b9a8a4546f85ab632a38dbce07db32b2bb7721f2bba3090d9787f5dfa0aea6b
7
- data.tar.gz: 948fbf64ea6c9cfc18b0f191fa00660c329b4090111974a11501b920ece07632c357c6dd0d14b3b294a88d437cf446579d30a463ec98d7c9dcb11be7f4349cfd
6
+ metadata.gz: 19ab47a4a5959062b0842236169d2ead8b3bdd929a01831759e3fbd29cd101dcf53caa740978fc37fc040afc5d730504c9a3df2d3260065ae41f26e8d7768230
7
+ data.tar.gz: 1ea1310f3b1f6a0609b2d9b04591bed45381184bb00c132af7f82a9c8093dedcdfd60ac9b99bd5618292ead6f2472a32fecfb7d4c7cb93d52a4394cc13426269
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Code Climate](https://codeclimate.com/github/startae/uploadbox.png)](https://codeclimate.com/github/startae/uploadbox)
2
+
1
3
  # Do not use (not yet released)
2
4
 
3
5
  ## Installation
@@ -1,134 +1,135 @@
1
1
  @import bootstrap/progress
2
2
 
3
- .btn
4
- background-color: #f7f7f7
5
- padding: 10px
6
- text-align: center
7
- text-decoration: none
8
-
9
- .clearfix
10
- *zoom: 1
11
- &:before
12
- display: table
13
- content: ""
14
- line-height: 0
15
- &:after
16
- display: table
17
- content: ""
18
- line-height: 0
19
- clear: both
20
-
21
- .hide-text
22
- font: 0/0 a
23
- color: transparent
24
- text-shadow: none
25
- background-color: transparent
26
- border: 0
27
-
28
- .input-block-level
29
- display: block
30
- width: 100%
31
- min-height: 30px
32
- box-sizing: border-box
33
-
34
- .btn-file
35
- overflow: hidden
36
- position: relative
37
- vertical-align: middle
38
- display: block
39
- > input
40
- position: absolute
41
- top: 0
42
- right: 0
43
- margin: 0
44
- opacity: 0
45
- filter: alpha(opacity = 0)
46
- transform: translate(-300px, 0) scale(4)
47
- font-size: 23px
48
- direction: ltr
49
- cursor: pointer
3
+ .uploadbox-image-uploader
4
+ .btn
5
+ background-color: #f7f7f7
6
+ padding: 10px
7
+ text-align: center
8
+ text-decoration: none
9
+
10
+ .clearfix
11
+ *zoom: 1
12
+ &:before
13
+ display: table
14
+ content: ""
15
+ line-height: 0
16
+ &:after
17
+ display: table
18
+ content: ""
19
+ line-height: 0
20
+ clear: both
21
+
22
+ .hide-text
23
+ font: 0/0 a
24
+ color: transparent
25
+ text-shadow: none
26
+ background-color: transparent
27
+ border: 0
28
+
29
+ .input-block-level
30
+ display: block
50
31
  width: 100%
32
+ min-height: 30px
33
+ box-sizing: border-box
51
34
 
52
- .fileupload
53
- position: relative
54
- background-color: #eee
55
- text-align: center
56
- .uneditable-input
57
- display: inline-block
58
- margin-bottom: 0px
59
- vertical-align: middle
60
- cursor: text
61
- .thumbnail
35
+ .btn-file
62
36
  overflow: hidden
63
- display: inline-block
37
+ position: relative
64
38
  vertical-align: middle
39
+ display: block
40
+ > input
41
+ position: absolute
42
+ top: 0
43
+ right: 0
44
+ margin: 0
45
+ opacity: 0
46
+ filter: alpha(opacity = 0)
47
+ transform: translate(-300px, 0) scale(4)
48
+ font-size: 23px
49
+ direction: ltr
50
+ cursor: pointer
51
+ width: 100%
52
+
53
+ .fileupload
54
+ position: relative
55
+ background-color: #eee
65
56
  text-align: center
66
- > img
57
+ .uneditable-input
67
58
  display: inline-block
59
+ margin-bottom: 0px
68
60
  vertical-align: middle
69
- max-height: 100%
70
- .btn
71
- vertical-align: middle
72
-
73
- .fileupload-exists .fileupload-new, .fileupload-new .fileupload-exists
74
- display: none
75
-
76
- .fileupload-inline .fileupload-controls
77
- display: inline
78
-
79
- .fileupload-new .input-append .btn-file
80
- border-radius: 0 3px 3px 0
81
-
82
- .thumbnail-borderless .thumbnail
83
- border: none
84
- padding: 0
85
- border-radius: 0
86
- box-shadow: none
87
-
88
- .fileupload-new.thumbnail-borderless .thumbnail
89
- border: 1px solid #ddd
90
-
91
- .control-group
92
- &.warning .fileupload
93
- .uneditable-input
94
- color: #a47e3c
95
- border-color: #a47e3c
96
- .fileupload-preview
97
- color: #a47e3c
98
- .thumbnail
99
- border-color: #a47e3c
100
- &.error .fileupload
101
- .uneditable-input
102
- color: #b94a48
103
- border-color: #b94a48
104
- .fileupload-preview
105
- color: #b94a48
61
+ cursor: text
106
62
  .thumbnail
107
- border-color: #b94a48
108
- &.success .fileupload
109
- .uneditable-input
110
- color: #468847
111
- border-color: #468847
112
- .fileupload-preview
113
- color: #468847
114
- .thumbnail
115
- border-color: #468847
116
-
117
- .fileupload-new .fileupload-preview
118
- display: none
63
+ overflow: hidden
64
+ display: inline-block
65
+ vertical-align: middle
66
+ text-align: center
67
+ > img
68
+ display: inline-block
69
+ vertical-align: middle
70
+ max-height: 100%
71
+ .btn
72
+ vertical-align: middle
119
73
 
120
- .fileupload-preview
121
- text-align: center
74
+ .fileupload-exists .fileupload-new, .fileupload-new .fileupload-exists
75
+ display: none
76
+
77
+ .fileupload-inline .fileupload-controls
78
+ display: inline
79
+
80
+ .fileupload-new .input-append .btn-file
81
+ border-radius: 0 3px 3px 0
82
+
83
+ .thumbnail-borderless .thumbnail
84
+ border: none
85
+ padding: 0
86
+ border-radius: 0
87
+ box-shadow: none
88
+
89
+ .fileupload-new.thumbnail-borderless .thumbnail
90
+ border: 1px solid #ddd
91
+
92
+ .control-group
93
+ &.warning .fileupload
94
+ .uneditable-input
95
+ color: #a47e3c
96
+ border-color: #a47e3c
97
+ .fileupload-preview
98
+ color: #a47e3c
99
+ .thumbnail
100
+ border-color: #a47e3c
101
+ &.error .fileupload
102
+ .uneditable-input
103
+ color: #b94a48
104
+ border-color: #b94a48
105
+ .fileupload-preview
106
+ color: #b94a48
107
+ .thumbnail
108
+ border-color: #b94a48
109
+ &.success .fileupload
110
+ .uneditable-input
111
+ color: #468847
112
+ border-color: #468847
113
+ .fileupload-preview
114
+ color: #468847
115
+ .thumbnail
116
+ border-color: #468847
117
+
118
+ .fileupload-new .fileupload-preview
119
+ display: none
120
+
121
+ .fileupload-preview
122
+ text-align: center
122
123
 
123
- .fileupload-remove
124
- position: absolute
125
- top: 0
126
- right: 0
124
+ .fileupload-remove
125
+ position: absolute
126
+ top: 0
127
+ right: 0
127
128
 
128
- .fileupload-actions
129
- position: relative
129
+ .fileupload-actions
130
+ position: relative
130
131
 
131
- .progress
132
- height: 14px
133
- margin-bottom: 0
134
- border-radius: 0
132
+ .progress
133
+ height: 14px
134
+ margin-bottom: 0
135
+ border-radius: 0
@@ -1,5 +1,5 @@
1
1
  = form.fields_for :image do
2
- div data-component="ImageUploader"
2
+ .uploadbox-image-uploader data-component="ImageUploader"
3
3
  - if namespace
4
4
  input name="[#{namespace}]#{upload_name}_id" data-item="id" type="hidden"
5
5
  - else
@@ -1,3 +1,3 @@
1
1
  module Uploadbox
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uploadbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julio Protzek
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-06 00:00:00.000000000 Z
12
+ date: 2013-09-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -267,16 +267,30 @@ dependencies:
267
267
  name: sham_rack
268
268
  requirement: !ruby/object:Gem::Requirement
269
269
  requirements:
270
- - - '>='
270
+ - - ~>
271
271
  - !ruby/object:Gem::Version
272
- version: '0'
272
+ version: 1.3.6
273
273
  type: :development
274
274
  prerelease: false
275
275
  version_requirements: !ruby/object:Gem::Requirement
276
276
  requirements:
277
- - - '>='
277
+ - - ~>
278
+ - !ruby/object:Gem::Version
279
+ version: 1.3.6
280
+ - !ruby/object:Gem::Dependency
281
+ name: simplecov
282
+ requirement: !ruby/object:Gem::Requirement
283
+ requirements:
284
+ - - ~>
285
+ - !ruby/object:Gem::Version
286
+ version: 0.7.1
287
+ type: :development
288
+ prerelease: false
289
+ version_requirements: !ruby/object:Gem::Requirement
290
+ requirements:
291
+ - - ~>
278
292
  - !ruby/object:Gem::Version
279
- version: '0'
293
+ version: 0.7.1
280
294
  description: Uploadbox makes easy to manage files in your Rails application.
281
295
  email:
282
296
  - julio@startae.com.br