uploadbox 0.0.26 → 0.1.0

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: 6e69b851e5010f766fb42166ba80f943c424b5a5
4
- data.tar.gz: 0ca5b5a05d77b7f3ecf137865cb1410317c474b1
3
+ metadata.gz: 782516400aa6c4212d4d39ff83538bf91206d8b6
4
+ data.tar.gz: a9abccfb642a8b1017254af815d0d7f81af5f6d0
5
5
  SHA512:
6
- metadata.gz: 8fb2a027f185b105d076894a97085bfcbc41c62edd58be4f43d29c8ba981a76bd31762b9417a8b356971bdc955f23939584f1a6361eee952a1b80ceb0c4a3ce9
7
- data.tar.gz: b40d34448a260eec1d46c76b1270f99233e5367ad01242f0e77d8e27075b77c8804ef160c2fea093b635f304d389e68e455932d6eed53bdd4787d530c2139ab7
6
+ metadata.gz: 8f1d9a79ddd83e63e5b13b2dae0403dbd5aa3fd044f852aa8f1e18308a64fdc605d87f3f76839b37ba6af3015bd8af94802d14e767c12e546470cb8181516ad9
7
+ data.tar.gz: 1ba0b9a02d05d7f80e02b1100845d32978cf8243caf4a869de9c688ae73c982afd93e84b5614e3b9570ec1bbd7700c03e01c1d4eb822eb5ec4d6176d026623a2
data/README.md CHANGED
@@ -1,12 +1,16 @@
1
1
  [![Code Climate](https://codeclimate.com/github/startae/uploadbox.png)](https://codeclimate.com/github/startae/uploadbox)
2
2
 
3
- # Do not use (not yet released)
3
+ # Early Beta
4
+ This is still an early beta version and will change a lot until it reaches API stability.
5
+ That said, it's already being used on production projects.
4
6
 
5
7
  ## Installation
6
8
 
9
+ Make sure you have [ImageMagick](http://www.imagemagick.org/) installed.
10
+
7
11
  Add to Gemfile
8
12
  ```
9
- gem 'uploadbox'
13
+ gem 'uploadbox', '0.1.0'
10
14
  ```
11
15
 
12
16
  Run generators
@@ -14,6 +18,11 @@ Run generators
14
18
  rails g uploadbox:image
15
19
  ```
16
20
 
21
+ Migrate database
22
+ ```
23
+ rake db:migrate
24
+ ```
25
+
17
26
  Add jquery and uploadbox to `application.js`
18
27
  ```
19
28
  //= require jquery
@@ -28,26 +37,13 @@ Add uploadbox to `application.css`
28
37
  */
29
38
  ```
30
39
 
31
- Migrate database
32
- ```
33
- rake db:migrate
34
- ```
35
-
36
- Create a development bucket on S3
37
-
38
- Set environmet variables
39
- ```
40
- S3_KEY=AAAA123BBBB
41
- S3_SECRET=abc123ABcEffgee122
42
- S3_REGION=us-east-1
43
- S3_BUCKET=uploads-development
44
- ```
40
+ Create a development bucket on [Amazon S3](http://aws.amazon.com/s3/)
45
41
 
46
42
  Edit CORS config for the bucket
47
43
  ```
48
44
  <CORSConfiguration>
49
45
  <CORSRule>
50
- <AllowedOrigin>http://localhost:5000</AllowedOrigin>
46
+ <AllowedOrigin>http://localhost:3000</AllowedOrigin>
51
47
  <AllowedMethod>GET</AllowedMethod>
52
48
  <AllowedMethod>POST</AllowedMethod>
53
49
  <AllowedMethod>PUT</AllowedMethod>
@@ -56,6 +52,8 @@ Edit CORS config for the bucket
56
52
  </CORSConfiguration>
57
53
  ```
58
54
 
55
+ Get S3 Key an Secret from Amazon S3 Credentials and update your .env file
56
+
59
57
  ## Usage
60
58
  Add `uploads_one` to your model
61
59
  ```
@@ -69,12 +67,14 @@ Empty `@post.picture.thumb` will render `app/assets/images/thumb_default.png`
69
67
 
70
68
  Add field to form
71
69
  ```
72
- <%= f.uploader :picture %>
70
+ <%= f.uploads_one :picture %>
73
71
  ```
74
72
 
75
- Attach upload on controller
73
+ Allow picture attribute on controller
76
74
  ```
77
- @post.attach_picture(params[:picture_id])
75
+ def post_params
76
+ params.require(:post).permit(:title, :body, :picture)
77
+ end
78
78
  ```
79
79
 
80
80
  Show image
@@ -113,7 +113,6 @@ HEROKU_API_KEY=ab12acvc12 \
113
113
  HEROKU_APP=your-app-name \
114
114
  S3_KEY=AAAA123BBBB \
115
115
  S3_SECRET=abc123ABcEffgee122 \
116
- S3_REGION=us-east-1 \
117
116
  S3_BUCKET=uploads-production \
118
117
  ```
119
118
 
@@ -6,15 +6,13 @@ class @ImageUploader
6
6
  @uploadNameInput = @container.find('input[name="image[upload_name]"]')
7
7
  @idInput = @container.find('[data-item="id"]')
8
8
  @container.find('a.btn.fileupload-exists').bind('ajax:success', @delete)
9
- @thumbContainer = @container.find('.fileupload-preview.thumbnail')
9
+ @thumbContainer = @container.find('.fileupload-preview.preview')
10
10
 
11
11
  @fileInput.show()
12
12
 
13
13
  @fileInput.fileupload
14
14
  type: 'POST'
15
15
  dataType: 'xml'
16
- replaceFileInput: false
17
- autoUpload: true
18
16
  formData: @getFormData
19
17
  dropZone: @container
20
18
  pasteZone: @container
@@ -100,7 +98,7 @@ class @ImageUploader
100
98
 
101
99
  delete: =>
102
100
  @idInput.val('')
103
- @container.find('.fileupload-preview.thumbnail img').detach()
101
+ @container.find('.fileupload-preview.preview img').detach()
104
102
  @container.find('.fileupload').addClass('fileupload-new').removeClass('fileupload-exists')
105
103
 
106
104
  fail: (e, data) =>
@@ -109,6 +107,7 @@ class @ImageUploader
109
107
  @container.closest('form').find('[type=submit]').attr("disabled", false)
110
108
 
111
109
  showThumb: (image) =>
110
+ console.log 'showThumb'
112
111
  @loader.detach()
113
112
  @idInput.val(image.id)
114
113
  @container.find('a.btn.fileupload-exists').attr('href', image.url)
@@ -117,11 +116,7 @@ class @ImageUploader
117
116
  img.attr('src', image.versions[@thumbContainer.data('version')])
118
117
  img.attr('width', @thumbContainer.data('width'))
119
118
  img.attr('height', @thumbContainer.data('height')).hide()
120
- @container.find('.fileupload-preview.thumbnail').append(img.fadeIn())
119
+ @container.find('.fileupload-preview.preview').append(img.fadeIn())
121
120
  @container.find('.fileupload').removeClass('fileupload-new').addClass('fileupload-exists')
122
121
  @container.find('.fileupload').removeClass('uploading').removeClass('processing')
123
122
  @container.closest('form').find('[type=submit]').attr("disabled", false)
124
-
125
- $ ->
126
- $('[data-component="ImageUploader"]').each (i, el) ->
127
- $(el).data('image_uploader', new ImageUploader($(el)))
@@ -1,5 +1,4 @@
1
1
  @import bootstrap/progress
2
- @import fontello
3
2
 
4
3
  .uploadbox-image-uploader
5
4
  position: relative
@@ -9,26 +8,6 @@
9
8
  text-align: center
10
9
  text-decoration: none
11
10
  box-sizing: border-box
12
- border: 1px solid #f7f7f7
13
- &:hover
14
- .btn
15
- border: 1px solid darken(#f7f7f7, 20%)
16
-
17
- .icon
18
- opacity: .5
19
-
20
- .fileupload-exists
21
- .icon
22
- display: none
23
-
24
- .icon
25
- position: absolute
26
- top: 0
27
- left: 0
28
- width: 100%
29
- height: 100%
30
- opacity: .3
31
-
32
11
 
33
12
  .fileupload
34
13
  &:before
@@ -47,10 +26,10 @@
47
26
  top: 10px
48
27
 
49
28
  &.uploading:before
50
- content: 'Enviando...'
29
+ content: 'Enviando'
51
30
 
52
31
  &.processing:before
53
- content: 'Processando... Quase lá.'
32
+ content: 'Processando'
54
33
 
55
34
 
56
35
  .fileupload-new .btn.fileupload-exists
@@ -103,9 +82,22 @@
103
82
  cursor: pointer
104
83
  width: 100%
105
84
 
106
- .fileupload-exists, .fileupload-new
85
+ .fileupload-exists
107
86
  margin-left: -9999px
108
87
 
88
+ .fileupload-new
89
+ position: absolute
90
+ top: 50%
91
+ left: 50%
92
+ margin-top: -14px
93
+ margin-left: -39px
94
+ display: inline-block
95
+ background: #e5e5e5
96
+ font-size: 11px
97
+ color: #111
98
+ padding: 5px 15px
99
+ border-radius: 20px
100
+
109
101
  .fileupload
110
102
  position: relative
111
103
  background-color: #eee
@@ -115,15 +107,6 @@
115
107
  margin-bottom: 0px
116
108
  vertical-align: middle
117
109
  cursor: text
118
- .thumbnail
119
- overflow: hidden
120
- display: inline-block
121
- vertical-align: middle
122
- text-align: center
123
- > img
124
- display: block
125
- vertical-align: middle
126
- max-height: 100%
127
110
  .btn
128
111
  vertical-align: middle
129
112
 
@@ -136,14 +119,6 @@
136
119
  .fileupload-new .input-append .btn-file
137
120
  border-radius: 0 3px 3px 0
138
121
 
139
- .thumbnail-borderless .thumbnail
140
- border: none
141
- border-radius: 0
142
- box-shadow: none
143
-
144
- .fileupload-new.thumbnail-borderless .thumbnail
145
- border: 1px solid #ddd
146
-
147
122
  .control-group
148
123
  &.warning .fileupload
149
124
  .uneditable-input
@@ -151,24 +126,18 @@
151
126
  border-color: #a47e3c
152
127
  .fileupload-preview
153
128
  color: #a47e3c
154
- .thumbnail
155
- border-color: #a47e3c
156
129
  &.error .fileupload
157
130
  .uneditable-input
158
131
  color: #b94a48
159
132
  border-color: #b94a48
160
133
  .fileupload-preview
161
134
  color: #b94a48
162
- .thumbnail
163
- border-color: #b94a48
164
135
  &.success .fileupload
165
136
  .uneditable-input
166
137
  color: #468847
167
138
  border-color: #468847
168
139
  .fileupload-preview
169
140
  color: #468847
170
- .thumbnail
171
- border-color: #468847
172
141
 
173
142
  .fileupload-new .fileupload-preview
174
143
  display: none
@@ -7,7 +7,7 @@
7
7
  input name="[#{resource.class.name.underscore}]#{upload_name}" data-item="id" type="hidden" value="#{resource.send(upload_name).try :id}"
8
8
 
9
9
  .fileupload data-provides="fileupload" class="fileupload-#{(resource.send("#{upload_name}?") or default) ? 'exists' : 'new'}"
10
- .fileupload-preview.thumbnail data-version="#{version}" data-width="#{width}" data-height="#{height}" style="width: #{width}px; height: #{height}px;"
10
+ .fileupload-preview.preview data-version="#{version}" data-width="#{width}" data-height="#{height}" style="width: #{width}px; height: #{height}px;"
11
11
  - if resource.send("#{upload_name}?")
12
12
  = img resource.send(upload_name).send(version)
13
13
  - elsif default
@@ -17,10 +17,9 @@
17
17
  span.btn.btn-file style="width: #{width}px; height: #{height}px;"
18
18
  span.fileupload-new = choose_label
19
19
  span.fileupload-exists = update_label
20
- i.icon.icon-picture-1 style="line-height: #{height}px; font-size: #{(width * 0.4).to_i}px"
21
20
 
22
21
 
23
- input type="file" name="image[file]" data-callback-url="#{uploadbox.images_path}" data-find-url="#{uploadbox.find_images_path(format: :json)}" data-url="https://#{CarrierWave::Uploader::Base.fog_directory}.s3.amazonaws.com/" data-secure-random="#{secure_random}" accept="image/png image/x-png, image/gif, image/jpeg" style="display: none; width: #{width}px; height: #{height}px;"
22
+ input type="file" name="image[file]" data-callback-url="#{uploadbox.images_path}" data-find-url="#{uploadbox.find_images_path(format: :json)}" data-url="https://#{CarrierWave::Uploader::Base.fog_directory}.s3.amazonaws.com/" data-secure-random="#{secure_random}" accept="image/*" style="display: none; width: #{width}px; height: #{height}px;"
24
23
  input type="hidden" name="policy" value="#{s3_policy}"
25
24
  input type="hidden" name="signature" value="#{s3_signature}"
26
25
  input type="hidden" name="AWSAccessKeyId" value="#{CarrierWave::Uploader::Base.fog_credentials[:aws_access_key_id]}"
@@ -1,8 +1,11 @@
1
1
  Description:
2
- Explain the generator
2
+ Installs uploadbox on your project
3
3
 
4
4
  Example:
5
- rails generate image Thing
5
+ rails generate uploadbox:image
6
6
 
7
7
  This will create:
8
- what/will/it/create
8
+ config/initializers/uploadbox.rb
9
+ db/migrate/create_images.rb
10
+ .env
11
+ And will update your routes.rb
@@ -8,14 +8,13 @@ module Uploadbox
8
8
  copy_file 'initializers/uploadbox.rb', 'config/initializers/uploadbox.rb'
9
9
  end
10
10
 
11
- def update_gitignore
12
- return unless File.exist?('.gitignore')
13
-
14
- append_to_file '.gitignore', "\npublic/uploads"
15
- end
16
-
17
- def copy_procfile
18
- copy_file 'Procfile', 'Procfile'
11
+ def copy_dotenv
12
+ if File.exist?('.env')
13
+ append_to_file '.env', "\n"
14
+ append_to_file '.env', File.open(File.expand_path('../templates/.env', __FILE__)).read
15
+ else
16
+ copy_file '.env', '.env'
17
+ end
19
18
  end
20
19
 
21
20
  def add_route
@@ -1,3 +1,3 @@
1
1
  module Uploadbox
2
- VERSION = "0.0.26"
2
+ VERSION = "0.1.0"
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.26
4
+ version: 0.1.0
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: 2014-01-16 00:00:00.000000000 Z
12
+ date: 2014-03-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -36,6 +36,9 @@ dependencies:
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - - '>='
39
42
  - !ruby/object:Gem::Version
40
43
  version: 2.0.1
41
44
  type: :runtime
@@ -43,6 +46,9 @@ dependencies:
43
46
  version_requirements: !ruby/object:Gem::Requirement
44
47
  requirements:
45
48
  - - ~>
49
+ - !ruby/object:Gem::Version
50
+ version: '2.0'
51
+ - - '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: 2.0.1
48
54
  - !ruby/object:Gem::Dependency
@@ -50,6 +56,9 @@ dependencies:
50
56
  requirement: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - ~>
59
+ - !ruby/object:Gem::Version
60
+ version: '4.0'
61
+ - - '>='
53
62
  - !ruby/object:Gem::Version
54
63
  version: 4.0.0
55
64
  type: :runtime
@@ -57,6 +66,9 @@ dependencies:
57
66
  version_requirements: !ruby/object:Gem::Requirement
58
67
  requirements:
59
68
  - - ~>
69
+ - !ruby/object:Gem::Version
70
+ version: '4.0'
71
+ - - '>='
60
72
  - !ruby/object:Gem::Version
61
73
  version: 4.0.0
62
74
  - !ruby/object:Gem::Dependency
@@ -64,6 +76,9 @@ dependencies:
64
76
  requirement: !ruby/object:Gem::Requirement
65
77
  requirements:
66
78
  - - ~>
79
+ - !ruby/object:Gem::Version
80
+ version: '4.0'
81
+ - - '>='
67
82
  - !ruby/object:Gem::Version
68
83
  version: 4.0.0
69
84
  type: :runtime
@@ -71,6 +86,9 @@ dependencies:
71
86
  version_requirements: !ruby/object:Gem::Requirement
72
87
  requirements:
73
88
  - - ~>
89
+ - !ruby/object:Gem::Version
90
+ version: '4.0'
91
+ - - '>='
74
92
  - !ruby/object:Gem::Version
75
93
  version: 4.0.0
76
94
  - !ruby/object:Gem::Dependency
@@ -78,6 +96,9 @@ dependencies:
78
96
  requirement: !ruby/object:Gem::Requirement
79
97
  requirements:
80
98
  - - ~>
99
+ - !ruby/object:Gem::Version
100
+ version: '1.15'
101
+ - - '>='
81
102
  - !ruby/object:Gem::Version
82
103
  version: 1.15.0
83
104
  type: :runtime
@@ -85,6 +106,9 @@ dependencies:
85
106
  version_requirements: !ruby/object:Gem::Requirement
86
107
  requirements:
87
108
  - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '1.15'
111
+ - - '>='
88
112
  - !ruby/object:Gem::Version
89
113
  version: 1.15.0
90
114
  - !ruby/object:Gem::Dependency
@@ -92,6 +116,9 @@ dependencies:
92
116
  requirement: !ruby/object:Gem::Requirement
93
117
  requirements:
94
118
  - - ~>
119
+ - !ruby/object:Gem::Version
120
+ version: '0.9'
121
+ - - '>='
95
122
  - !ruby/object:Gem::Version
96
123
  version: 0.9.0
97
124
  type: :runtime
@@ -99,6 +126,9 @@ dependencies:
99
126
  version_requirements: !ruby/object:Gem::Requirement
100
127
  requirements:
101
128
  - - ~>
129
+ - !ruby/object:Gem::Version
130
+ version: '0.9'
131
+ - - '>='
102
132
  - !ruby/object:Gem::Version
103
133
  version: 0.9.0
104
134
  - !ruby/object:Gem::Dependency
@@ -106,6 +136,9 @@ dependencies:
106
136
  requirement: !ruby/object:Gem::Requirement
107
137
  requirements:
108
138
  - - ~>
139
+ - !ruby/object:Gem::Version
140
+ version: '0.0'
141
+ - - '>='
109
142
  - !ruby/object:Gem::Version
110
143
  version: 0.0.2
111
144
  type: :runtime
@@ -113,6 +146,9 @@ dependencies:
113
146
  version_requirements: !ruby/object:Gem::Requirement
114
147
  requirements:
115
148
  - - ~>
149
+ - !ruby/object:Gem::Version
150
+ version: '0.0'
151
+ - - '>='
116
152
  - !ruby/object:Gem::Version
117
153
  version: 0.0.2
118
154
  - !ruby/object:Gem::Dependency
@@ -120,6 +156,9 @@ dependencies:
120
156
  requirement: !ruby/object:Gem::Requirement
121
157
  requirements:
122
158
  - - ~>
159
+ - !ruby/object:Gem::Version
160
+ version: '3.6'
161
+ - - '>='
123
162
  - !ruby/object:Gem::Version
124
163
  version: 3.6.0
125
164
  type: :runtime
@@ -127,6 +166,9 @@ dependencies:
127
166
  version_requirements: !ruby/object:Gem::Requirement
128
167
  requirements:
129
168
  - - ~>
169
+ - !ruby/object:Gem::Version
170
+ version: '3.6'
171
+ - - '>='
130
172
  - !ruby/object:Gem::Version
131
173
  version: 3.6.0
132
174
  - !ruby/object:Gem::Dependency
@@ -134,6 +176,9 @@ dependencies:
134
176
  requirement: !ruby/object:Gem::Requirement
135
177
  requirements:
136
178
  - - ~>
179
+ - !ruby/object:Gem::Version
180
+ version: '1.5'
181
+ - - '>='
137
182
  - !ruby/object:Gem::Version
138
183
  version: 1.5.0
139
184
  type: :runtime
@@ -141,6 +186,9 @@ dependencies:
141
186
  version_requirements: !ruby/object:Gem::Requirement
142
187
  requirements:
143
188
  - - ~>
189
+ - !ruby/object:Gem::Version
190
+ version: '1.5'
191
+ - - '>='
144
192
  - !ruby/object:Gem::Version
145
193
  version: 1.5.0
146
194
  - !ruby/object:Gem::Dependency
@@ -148,6 +196,9 @@ dependencies:
148
196
  requirement: !ruby/object:Gem::Requirement
149
197
  requirements:
150
198
  - - ~>
199
+ - !ruby/object:Gem::Version
200
+ version: '1.25'
201
+ - - '>='
151
202
  - !ruby/object:Gem::Version
152
203
  version: 1.25.0
153
204
  type: :runtime
@@ -155,6 +206,9 @@ dependencies:
155
206
  version_requirements: !ruby/object:Gem::Requirement
156
207
  requirements:
157
208
  - - ~>
209
+ - !ruby/object:Gem::Version
210
+ version: '1.25'
211
+ - - '>='
158
212
  - !ruby/object:Gem::Version
159
213
  version: 1.25.0
160
214
  - !ruby/object:Gem::Dependency
@@ -162,6 +216,9 @@ dependencies:
162
216
  requirement: !ruby/object:Gem::Requirement
163
217
  requirements:
164
218
  - - ~>
219
+ - !ruby/object:Gem::Version
220
+ version: '3.0'
221
+ - - '>='
165
222
  - !ruby/object:Gem::Version
166
223
  version: 3.0.4
167
224
  type: :runtime
@@ -169,6 +226,9 @@ dependencies:
169
226
  version_requirements: !ruby/object:Gem::Requirement
170
227
  requirements:
171
228
  - - ~>
229
+ - !ruby/object:Gem::Version
230
+ version: '3.0'
231
+ - - '>='
172
232
  - !ruby/object:Gem::Version
173
233
  version: 3.0.4
174
234
  - !ruby/object:Gem::Dependency
@@ -176,6 +236,9 @@ dependencies:
176
236
  requirement: !ruby/object:Gem::Requirement
177
237
  requirements:
178
238
  - - ~>
239
+ - !ruby/object:Gem::Version
240
+ version: '0.3'
241
+ - - '>='
179
242
  - !ruby/object:Gem::Version
180
243
  version: 0.3.15
181
244
  type: :runtime
@@ -183,13 +246,39 @@ dependencies:
183
246
  version_requirements: !ruby/object:Gem::Requirement
184
247
  requirements:
185
248
  - - ~>
249
+ - !ruby/object:Gem::Version
250
+ version: '0.3'
251
+ - - '>='
186
252
  - !ruby/object:Gem::Version
187
253
  version: 0.3.15
254
+ - !ruby/object:Gem::Dependency
255
+ name: dotenv-rails
256
+ requirement: !ruby/object:Gem::Requirement
257
+ requirements:
258
+ - - ~>
259
+ - !ruby/object:Gem::Version
260
+ version: '0.10'
261
+ - - '>='
262
+ - !ruby/object:Gem::Version
263
+ version: 0.10.0
264
+ type: :runtime
265
+ prerelease: false
266
+ version_requirements: !ruby/object:Gem::Requirement
267
+ requirements:
268
+ - - ~>
269
+ - !ruby/object:Gem::Version
270
+ version: '0.10'
271
+ - - '>='
272
+ - !ruby/object:Gem::Version
273
+ version: 0.10.0
188
274
  - !ruby/object:Gem::Dependency
189
275
  name: jquery-rails
190
276
  requirement: !ruby/object:Gem::Requirement
191
277
  requirements:
192
278
  - - ~>
279
+ - !ruby/object:Gem::Version
280
+ version: '3.0'
281
+ - - '>='
193
282
  - !ruby/object:Gem::Version
194
283
  version: 3.0.4
195
284
  type: :development
@@ -197,6 +286,9 @@ dependencies:
197
286
  version_requirements: !ruby/object:Gem::Requirement
198
287
  requirements:
199
288
  - - ~>
289
+ - !ruby/object:Gem::Version
290
+ version: '3.0'
291
+ - - '>='
200
292
  - !ruby/object:Gem::Version
201
293
  version: 3.0.4
202
294
  - !ruby/object:Gem::Dependency
@@ -204,6 +296,9 @@ dependencies:
204
296
  requirement: !ruby/object:Gem::Requirement
205
297
  requirements:
206
298
  - - ~>
299
+ - !ruby/object:Gem::Version
300
+ version: '0.9'
301
+ - - '>='
207
302
  - !ruby/object:Gem::Version
208
303
  version: 0.9.0
209
304
  type: :development
@@ -211,6 +306,9 @@ dependencies:
211
306
  version_requirements: !ruby/object:Gem::Requirement
212
307
  requirements:
213
308
  - - ~>
309
+ - !ruby/object:Gem::Version
310
+ version: '0.9'
311
+ - - '>='
214
312
  - !ruby/object:Gem::Version
215
313
  version: 0.9.0
216
314
  - !ruby/object:Gem::Dependency
@@ -218,6 +316,9 @@ dependencies:
218
316
  requirement: !ruby/object:Gem::Requirement
219
317
  requirements:
220
318
  - - ~>
319
+ - !ruby/object:Gem::Version
320
+ version: '0.7'
321
+ - - '>='
221
322
  - !ruby/object:Gem::Version
222
323
  version: 0.7.2
223
324
  type: :development
@@ -225,6 +326,9 @@ dependencies:
225
326
  version_requirements: !ruby/object:Gem::Requirement
226
327
  requirements:
227
328
  - - ~>
329
+ - !ruby/object:Gem::Version
330
+ version: '0.7'
331
+ - - '>='
228
332
  - !ruby/object:Gem::Version
229
333
  version: 0.7.2
230
334
  - !ruby/object:Gem::Dependency
@@ -232,6 +336,9 @@ dependencies:
232
336
  requirement: !ruby/object:Gem::Requirement
233
337
  requirements:
234
338
  - - ~>
339
+ - !ruby/object:Gem::Version
340
+ version: '1.3'
341
+ - - '>='
235
342
  - !ruby/object:Gem::Version
236
343
  version: 1.3.7
237
344
  type: :development
@@ -239,6 +346,9 @@ dependencies:
239
346
  version_requirements: !ruby/object:Gem::Requirement
240
347
  requirements:
241
348
  - - ~>
349
+ - !ruby/object:Gem::Version
350
+ version: '1.3'
351
+ - - '>='
242
352
  - !ruby/object:Gem::Version
243
353
  version: 1.3.7
244
354
  - !ruby/object:Gem::Dependency
@@ -246,6 +356,9 @@ dependencies:
246
356
  requirement: !ruby/object:Gem::Requirement
247
357
  requirements:
248
358
  - - ~>
359
+ - !ruby/object:Gem::Version
360
+ version: '2.14'
361
+ - - '>='
249
362
  - !ruby/object:Gem::Version
250
363
  version: 2.14.0
251
364
  type: :development
@@ -253,6 +366,9 @@ dependencies:
253
366
  version_requirements: !ruby/object:Gem::Requirement
254
367
  requirements:
255
368
  - - ~>
369
+ - !ruby/object:Gem::Version
370
+ version: '2.14'
371
+ - - '>='
256
372
  - !ruby/object:Gem::Version
257
373
  version: 2.14.0
258
374
  - !ruby/object:Gem::Dependency
@@ -260,6 +376,9 @@ dependencies:
260
376
  requirement: !ruby/object:Gem::Requirement
261
377
  requirements:
262
378
  - - ~>
379
+ - !ruby/object:Gem::Version
380
+ version: '2.1'
381
+ - - '>='
263
382
  - !ruby/object:Gem::Version
264
383
  version: 2.1.0
265
384
  type: :development
@@ -267,6 +386,9 @@ dependencies:
267
386
  version_requirements: !ruby/object:Gem::Requirement
268
387
  requirements:
269
388
  - - ~>
389
+ - !ruby/object:Gem::Version
390
+ version: '2.1'
391
+ - - '>='
270
392
  - !ruby/object:Gem::Version
271
393
  version: 2.1.0
272
394
  - !ruby/object:Gem::Dependency
@@ -274,6 +396,9 @@ dependencies:
274
396
  requirement: !ruby/object:Gem::Requirement
275
397
  requirements:
276
398
  - - ~>
399
+ - !ruby/object:Gem::Version
400
+ version: '4.2'
401
+ - - '>='
277
402
  - !ruby/object:Gem::Version
278
403
  version: 4.2.1
279
404
  type: :development
@@ -281,6 +406,9 @@ dependencies:
281
406
  version_requirements: !ruby/object:Gem::Requirement
282
407
  requirements:
283
408
  - - ~>
409
+ - !ruby/object:Gem::Version
410
+ version: '4.2'
411
+ - - '>='
284
412
  - !ruby/object:Gem::Version
285
413
  version: 4.2.1
286
414
  - !ruby/object:Gem::Dependency
@@ -288,6 +416,9 @@ dependencies:
288
416
  requirement: !ruby/object:Gem::Requirement
289
417
  requirements:
290
418
  - - ~>
419
+ - !ruby/object:Gem::Version
420
+ version: '1.3'
421
+ - - '>='
291
422
  - !ruby/object:Gem::Version
292
423
  version: 1.3.0
293
424
  type: :development
@@ -295,6 +426,9 @@ dependencies:
295
426
  version_requirements: !ruby/object:Gem::Requirement
296
427
  requirements:
297
428
  - - ~>
429
+ - !ruby/object:Gem::Version
430
+ version: '1.3'
431
+ - - '>='
298
432
  - !ruby/object:Gem::Version
299
433
  version: 1.3.0
300
434
  - !ruby/object:Gem::Dependency
@@ -316,6 +450,9 @@ dependencies:
316
450
  requirement: !ruby/object:Gem::Requirement
317
451
  requirements:
318
452
  - - ~>
453
+ - !ruby/object:Gem::Version
454
+ version: '1.3'
455
+ - - '>='
319
456
  - !ruby/object:Gem::Version
320
457
  version: 1.3.6
321
458
  type: :development
@@ -323,6 +460,9 @@ dependencies:
323
460
  version_requirements: !ruby/object:Gem::Requirement
324
461
  requirements:
325
462
  - - ~>
463
+ - !ruby/object:Gem::Version
464
+ version: '1.3'
465
+ - - '>='
326
466
  - !ruby/object:Gem::Version
327
467
  version: 1.3.6
328
468
  - !ruby/object:Gem::Dependency
@@ -330,6 +470,9 @@ dependencies:
330
470
  requirement: !ruby/object:Gem::Requirement
331
471
  requirements:
332
472
  - - ~>
473
+ - !ruby/object:Gem::Version
474
+ version: '0.7'
475
+ - - '>='
333
476
  - !ruby/object:Gem::Version
334
477
  version: 0.7.1
335
478
  type: :development
@@ -337,6 +480,9 @@ dependencies:
337
480
  version_requirements: !ruby/object:Gem::Requirement
338
481
  requirements:
339
482
  - - ~>
483
+ - !ruby/object:Gem::Version
484
+ version: '0.7'
485
+ - - '>='
340
486
  - !ruby/object:Gem::Version
341
487
  version: 0.7.1
342
488
  - !ruby/object:Gem::Dependency
@@ -344,6 +490,9 @@ dependencies:
344
490
  requirement: !ruby/object:Gem::Requirement
345
491
  requirements:
346
492
  - - ~>
493
+ - !ruby/object:Gem::Version
494
+ version: '0.3'
495
+ - - '>='
347
496
  - !ruby/object:Gem::Version
348
497
  version: 0.3.2
349
498
  type: :development
@@ -352,35 +501,30 @@ dependencies:
352
501
  requirements:
353
502
  - - ~>
354
503
  - !ruby/object:Gem::Version
355
- version: 0.3.2
356
- - !ruby/object:Gem::Dependency
357
- name: dotenv-rails
358
- requirement: !ruby/object:Gem::Requirement
359
- requirements:
360
- - - '>='
361
- - !ruby/object:Gem::Version
362
- version: '0'
363
- type: :development
364
- prerelease: false
365
- version_requirements: !ruby/object:Gem::Requirement
366
- requirements:
504
+ version: '0.3'
367
505
  - - '>='
368
506
  - !ruby/object:Gem::Version
369
- version: '0'
507
+ version: 0.3.2
370
508
  - !ruby/object:Gem::Dependency
371
509
  name: launchy
372
510
  requirement: !ruby/object:Gem::Requirement
373
511
  requirements:
512
+ - - ~>
513
+ - !ruby/object:Gem::Version
514
+ version: '2.4'
374
515
  - - '>='
375
516
  - !ruby/object:Gem::Version
376
- version: '0'
517
+ version: 2.4.2
377
518
  type: :development
378
519
  prerelease: false
379
520
  version_requirements: !ruby/object:Gem::Requirement
380
521
  requirements:
522
+ - - ~>
523
+ - !ruby/object:Gem::Version
524
+ version: '2.4'
381
525
  - - '>='
382
526
  - !ruby/object:Gem::Version
383
- version: '0'
527
+ version: 2.4.2
384
528
  description: Uploadbox makes easy to manage files in your Rails application.
385
529
  email:
386
530
  - julio@startae.com.br
@@ -389,10 +533,9 @@ executables: []
389
533
  extensions: []
390
534
  extra_rdoc_files: []
391
535
  files:
392
- - app/assets/font/fontello.eot
393
- - app/assets/font/fontello.svg
394
- - app/assets/font/fontello.ttf
395
- - app/assets/font/fontello.woff
536
+ - MIT-LICENSE
537
+ - README.md
538
+ - Rakefile
396
539
  - app/assets/javascripts/_gallery_uploader.coffee
397
540
  - app/assets/javascripts/_image_uploader.coffee
398
541
  - app/assets/javascripts/_manager.coffee
@@ -405,7 +548,6 @@ files:
405
548
  - app/assets/javascripts/jquery.ui.widget.js
406
549
  - app/assets/javascripts/uploadbox.coffee
407
550
  - app/assets/stylesheets/bootstrap/_progress.css
408
- - app/assets/stylesheets/fontello.css
409
551
  - app/assets/stylesheets/uploadbox.sass
410
552
  - app/controllers/uploadbox/application_controller.rb
411
553
  - app/controllers/uploadbox/images_controller.rb
@@ -421,21 +563,17 @@ files:
421
563
  - config/routes.rb
422
564
  - config/spring.rb
423
565
  - lib/form_builder.rb
566
+ - lib/generators/uploadbox/image/USAGE
424
567
  - lib/generators/uploadbox/image/image_generator.rb
425
568
  - lib/generators/uploadbox/image/templates/initializers/uploadbox.rb
426
569
  - lib/generators/uploadbox/image/templates/migrate/create_images.rb
427
570
  - lib/generators/uploadbox/image/templates/models/image.rb
428
- - lib/generators/uploadbox/image/templates/Procfile
429
- - lib/generators/uploadbox/image/USAGE
430
571
  - lib/heroku_resque_auto_scale.rb
431
572
  - lib/tasks/uploadbox_tasks.rake
573
+ - lib/uploadbox.rb
432
574
  - lib/uploadbox/engine.rb
433
575
  - lib/uploadbox/image_uploader.rb
434
576
  - lib/uploadbox/version.rb
435
- - lib/uploadbox.rb
436
- - MIT-LICENSE
437
- - Rakefile
438
- - README.md
439
577
  homepage: https://github.com/startae/uploadbox
440
578
  licenses:
441
579
  - MIT
@@ -456,7 +594,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
456
594
  version: '0'
457
595
  requirements: []
458
596
  rubyforge_project:
459
- rubygems_version: 2.1.11
597
+ rubygems_version: 2.2.1
460
598
  signing_key:
461
599
  specification_version: 4
462
600
  summary: Ajax file uploader for Rails applications.
Binary file
@@ -1,13 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
- <svg xmlns="http://www.w3.org/2000/svg">
4
- <metadata>Copyright (C) 2013 by original authors @ fontello.com</metadata>
5
- <defs>
6
- <font id="fontello" horiz-adv-x="1000" >
7
- <font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
8
- <missing-glyph horiz-adv-x="1000" />
9
- <glyph glyph-name="picture-1" unicode="&#xe800;" d="m357 529q0-45-31-76t-76-32t-76 32t-31 76t31 75t76 32t76-32t31-75z m572-215v-250h-786v107l178 179l90-89l285 285z m53 393h-893q-7 0-12-5t-6-13v-678q0-8 6-13t12-5h893q7 0 13 5t5 13v678q0 7-5 13t-13 5z m89-18v-678q0-37-26-63t-63-27h-893q-36 0-63 27t-26 63v678q0 37 26 63t63 27h893q37 0 63-27t26-63z" horiz-adv-x="1071.4" />
10
- <glyph glyph-name="plus-1" unicode="&#xe802;" d="m786 439v-107q0-22-16-38t-38-15h-232v-233q0-22-16-37t-38-16h-107q-22 0-38 16t-15 37v233h-232q-23 0-38 15t-16 38v107q0 23 16 38t38 16h232v232q0 22 15 38t38 16h107q23 0 38-16t16-38v-232h232q22 0 38-16t16-38z" horiz-adv-x="785.7" />
11
- </font>
12
- </defs>
13
- </svg>
Binary file
Binary file
@@ -1,54 +0,0 @@
1
- @font-face {
2
- font-family: 'fontello';
3
- src: url('fontello.eot?18809145');
4
- src: url('fontello.eot?18809145#iefix') format('embedded-opentype'),
5
- url('fontello.woff?18809145') format('woff'),
6
- url('fontello.ttf?18809145') format('truetype'),
7
- url('fontello.svg?18809145#fontello') format('svg');
8
- font-weight: normal;
9
- font-style: normal;
10
- }
11
- /* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
12
- /* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
13
- /*
14
- @media screen and (-webkit-min-device-pixel-ratio:0) {
15
- @font-face {
16
- font-family: 'fontello';
17
- src: url('../font/fontello.svg?18809145#fontello') format('svg');
18
- }
19
- }
20
- */
21
-
22
- [class^="icon-"]:before, [class*=" icon-"]:before {
23
- font-family: "fontello";
24
- font-style: normal;
25
- font-weight: normal;
26
- speak: none;
27
-
28
- display: inline-block;
29
- text-decoration: inherit;
30
- width: 1em;
31
- margin-right: .2em;
32
- text-align: center;
33
- /* opacity: .8; */
34
-
35
- /* For safety - reset parent styles, that can break glyph codes*/
36
- font-variant: normal;
37
- text-transform: none;
38
-
39
- /* fix buttons height, for twitter bootstrap */
40
- line-height: 1em;
41
-
42
- /* Animation center compensation - margins should be symmetric */
43
- /* remove if not needed */
44
- margin-left: .2em;
45
-
46
- /* you can be more comfortable with increased icons size */
47
- /* font-size: 120%; */
48
-
49
- /* Uncomment for 3D effect */
50
- /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
51
- }
52
-
53
- .icon-picture-1:before { content: '\e800'; } /* '' */
54
- .icon-plus-1:before { content: '\e802'; } /* '' */
@@ -1 +0,0 @@
1
- web: bundle exec rails server -p $PORT