uploadbox 0.2.0.beta → 0.2.0.beta1

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: ceb2ca3efe6cd4d8445e02f68131325e8afd0f62
4
- data.tar.gz: a3c2e0d3bad7ccd9b3b5f48c7f6b906d04e13545
3
+ metadata.gz: 365c5ad54ff379fc88b5469c9933914cb1363e29
4
+ data.tar.gz: 49bdb736e4b44c3577ccd1d4bad43f544ea51da0
5
5
  SHA512:
6
- metadata.gz: 5d82e4d94916edb0360dbde08f0abeca13abd56dcc71d91c9bd5238271ee06a4a0e7451896f8131bb1127f65684874e46ccb43d2ed26583a6cccc1bc66e41f2b
7
- data.tar.gz: 99e05a4feed7f68e4937257679394877a57258fb6e5a755799339f080092bad9ee13d2fb0dfa6cbe6d428f8835ce5840c8d1356366a6acb218ee5229ae08c96c
6
+ metadata.gz: 8ea56c760edd69d047bf871c3ba9869021f79091c916950f839e48fde1c48b23293b69af8cb7725aeac2e39b5a7f0b3fc7aa2b95639d4ab2d95afeec709c78f9
7
+ data.tar.gz: 855624a60138ff7af95ff09369dcd849912f3032bd6841b9af1a7b51288f6f6a68f892670fdaf3f6533f0af77d62a352054197da47d2ca0f15b3555597717ba6
data/README.md CHANGED
@@ -112,17 +112,17 @@ Don't use your development bucket
112
112
 
113
113
  Set environmet variables
114
114
  ```
115
- heroku config:add
115
+ heroku config:add \
116
116
  HEROKU_API_KEY=ab12acvc12 \
117
117
  HEROKU_APP=your-app-name \
118
118
  S3_KEY=AAAA123BBBB \
119
119
  S3_SECRET=abc123ABcEffgee122 \
120
- S3_BUCKET=uploads-production \
120
+ S3_BUCKET=uploads-production
121
121
  ```
122
122
 
123
123
  Add Redis
124
124
  ```
125
- heroku addons:add rediscloud:20
125
+ heroku addons:add rediscloud
126
126
  ```
127
127
 
128
128
  ## Upgrade from 0.1.x
@@ -27,6 +27,7 @@ class @GalleryUploader
27
27
  @container.append(@clone)
28
28
  previewInstanceName = Manager.getInstanceName('UploaderPreview')
29
29
  preview = new UploaderPreview(@clone, data.files[0])
30
+ @container.trigger('upload:start', preview)
30
31
  @clone.data(previewInstanceName, preview)
31
32
  @previews[preview.id()] = preview
32
33
  data.context = preview.id()
@@ -6,14 +6,13 @@ class @Manager
6
6
  classNames = container.data('component').split(' ')
7
7
 
8
8
  for className in classNames
9
- try
9
+ if window[className]
10
10
  instanceName = Manager.getInstanceName(className)
11
11
  unless container.data(instanceName)
12
12
  instance = new (eval(className))(container)
13
13
  container.data(instanceName, instance)
14
- catch error
15
- try
16
- console.warn "#{className} component not found"
14
+ else
15
+ console.warn "#{className} component not found"
17
16
 
18
17
  $(document).ready ->
19
- $('[data-component]').each (i, el) -> Manager.init($(el))
18
+ $('[data-component]').each (i, el) -> Manager.init($(el))
@@ -90,6 +90,8 @@ class @UploaderPreview
90
90
  @container.find('.fileupload').removeClass('uploading').addClass('processing')
91
91
  @container.closest('form').find('[type=submit]').attr("disabled", false)
92
92
 
93
+ $(@).trigger('upload:done', @fileInput.data('url') + @filePath)
94
+
93
95
  $.ajax
94
96
  type: 'POST'
95
97
  url: @fileInput.data('callback-url')
@@ -130,7 +132,6 @@ class @UploaderPreview
130
132
  @container.detach()
131
133
 
132
134
  showThumb: (image) =>
133
- console.log 'showThumb'
134
135
  @loader.fadeOut =>
135
136
  @loader.detach()
136
137
  @idInput.val(image.id)
@@ -1,3 +1,3 @@
1
1
  module Uploadbox
2
- VERSION = "0.2.0.beta"
2
+ VERSION = "0.2.0.beta1"
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.2.0.beta
4
+ version: 0.2.0.beta1
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-03-26 00:00:00.000000000 Z
12
+ date: 2014-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -17,7 +17,7 @@ dependencies:
17
17
  requirements:
18
18
  - - '>='
19
19
  - !ruby/object:Gem::Version
20
- version: 4.0.0
20
+ version: 4.0.4
21
21
  - - <
22
22
  - !ruby/object:Gem::Version
23
23
  version: '5'
@@ -27,70 +27,10 @@ dependencies:
27
27
  requirements:
28
28
  - - '>='
29
29
  - !ruby/object:Gem::Version
30
- version: 4.0.0
30
+ version: 4.0.4
31
31
  - - <
32
32
  - !ruby/object:Gem::Version
33
33
  version: '5'
34
- - !ruby/object:Gem::Dependency
35
- name: slim
36
- requirement: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '2.0'
41
- - - '>='
42
- - !ruby/object:Gem::Version
43
- version: 2.0.1
44
- type: :runtime
45
- prerelease: false
46
- version_requirements: !ruby/object:Gem::Requirement
47
- requirements:
48
- - - ~>
49
- - !ruby/object:Gem::Version
50
- version: '2.0'
51
- - - '>='
52
- - !ruby/object:Gem::Version
53
- version: 2.0.1
54
- - !ruby/object:Gem::Dependency
55
- name: sass-rails
56
- requirement: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ~>
59
- - !ruby/object:Gem::Version
60
- version: '4.0'
61
- - - '>='
62
- - !ruby/object:Gem::Version
63
- version: 4.0.0
64
- type: :runtime
65
- prerelease: false
66
- version_requirements: !ruby/object:Gem::Requirement
67
- requirements:
68
- - - ~>
69
- - !ruby/object:Gem::Version
70
- version: '4.0'
71
- - - '>='
72
- - !ruby/object:Gem::Version
73
- version: 4.0.0
74
- - !ruby/object:Gem::Dependency
75
- name: coffee-rails
76
- requirement: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - ~>
79
- - !ruby/object:Gem::Version
80
- version: '4.0'
81
- - - '>='
82
- - !ruby/object:Gem::Version
83
- version: 4.0.0
84
- type: :runtime
85
- prerelease: false
86
- version_requirements: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ~>
89
- - !ruby/object:Gem::Version
90
- version: '4.0'
91
- - - '>='
92
- - !ruby/object:Gem::Version
93
- version: 4.0.0
94
34
  - !ruby/object:Gem::Dependency
95
35
  name: fog
96
36
  requirement: !ruby/object:Gem::Requirement
@@ -355,22 +295,16 @@ dependencies:
355
295
  name: rspec-rails
356
296
  requirement: !ruby/object:Gem::Requirement
357
297
  requirements:
358
- - - ~>
359
- - !ruby/object:Gem::Version
360
- version: '2.14'
361
- - - '>='
298
+ - - '='
362
299
  - !ruby/object:Gem::Version
363
- version: 2.14.0
300
+ version: 3.0.0.beta1
364
301
  type: :development
365
302
  prerelease: false
366
303
  version_requirements: !ruby/object:Gem::Requirement
367
304
  requirements:
368
- - - ~>
369
- - !ruby/object:Gem::Version
370
- version: '2.14'
371
- - - '>='
305
+ - - '='
372
306
  - !ruby/object:Gem::Version
373
- version: 2.14.0
307
+ version: 3.0.0.beta1
374
308
  - !ruby/object:Gem::Dependency
375
309
  name: capybara
376
310
  requirement: !ruby/object:Gem::Requirement
@@ -525,6 +459,66 @@ dependencies:
525
459
  - - '>='
526
460
  - !ruby/object:Gem::Version
527
461
  version: 2.4.2
462
+ - !ruby/object:Gem::Dependency
463
+ name: sass-rails
464
+ requirement: !ruby/object:Gem::Requirement
465
+ requirements:
466
+ - - ~>
467
+ - !ruby/object:Gem::Version
468
+ version: '4.0'
469
+ - - '>='
470
+ - !ruby/object:Gem::Version
471
+ version: 4.0.2
472
+ type: :development
473
+ prerelease: false
474
+ version_requirements: !ruby/object:Gem::Requirement
475
+ requirements:
476
+ - - ~>
477
+ - !ruby/object:Gem::Version
478
+ version: '4.0'
479
+ - - '>='
480
+ - !ruby/object:Gem::Version
481
+ version: 4.0.2
482
+ - !ruby/object:Gem::Dependency
483
+ name: coffee-rails
484
+ requirement: !ruby/object:Gem::Requirement
485
+ requirements:
486
+ - - ~>
487
+ - !ruby/object:Gem::Version
488
+ version: '4.0'
489
+ - - '>='
490
+ - !ruby/object:Gem::Version
491
+ version: 4.0.0
492
+ type: :development
493
+ prerelease: false
494
+ version_requirements: !ruby/object:Gem::Requirement
495
+ requirements:
496
+ - - ~>
497
+ - !ruby/object:Gem::Version
498
+ version: '4.0'
499
+ - - '>='
500
+ - !ruby/object:Gem::Version
501
+ version: 4.0.0
502
+ - !ruby/object:Gem::Dependency
503
+ name: slim
504
+ requirement: !ruby/object:Gem::Requirement
505
+ requirements:
506
+ - - ~>
507
+ - !ruby/object:Gem::Version
508
+ version: '2.0'
509
+ - - '>='
510
+ - !ruby/object:Gem::Version
511
+ version: 2.0.1
512
+ type: :development
513
+ prerelease: false
514
+ version_requirements: !ruby/object:Gem::Requirement
515
+ requirements:
516
+ - - ~>
517
+ - !ruby/object:Gem::Version
518
+ version: '2.0'
519
+ - - '>='
520
+ - !ruby/object:Gem::Version
521
+ version: 2.0.1
528
522
  description: Uploadbox makes easy to manage files in your Rails application.
529
523
  email:
530
524
  - julio@startae.com.br