paperclip_s3du 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NGFmODY5MWFjMTgzYzkzNThlYTBkNTQyODU5ZTQ2ZGZkNjBhYmU4OQ==
5
+ data.tar.gz: !binary |-
6
+ NzZhMDNkNTY3ZmFmNjYzNjM4MjY0OGJjMWZmNzk0MGNmMGE4ZTM5MQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ Yjg1ZmJlMzE3M2Y2NmNlYTFhNWEyMTBlZjc4NTdhYjI1ZjZiNTUzOWU5ZTQ4
10
+ ZmJiZjE3MDJmNjcxOGM4YjI4Yzc1MDdhNWUyZTM2MDdhN2MzMGVhNGIzMTY3
11
+ YzVkNmJhMzliYzljYjc3MzBmNDk1MGI2MjM2ZDU0ZGNjNjBjYTg=
12
+ data.tar.gz: !binary |-
13
+ YTZlNTc0YWU5MGI5MDIyYjY2ZTk2ZGRhNmY5YmQyYjJiOWQ5YWE2NGI4ODFk
14
+ MTg4YTVhM2E4NTE4ODcxNWY1ZDljYWM0MWE1NTg5ZTNhZWYyYTQ4NDk4ZTM2
15
+ MTljNTY2YzdmM2E3ODhiMjM3NWFjMTE4YWJjNGY4MzVjZWQwYzQ=
@@ -1,12 +1,13 @@
1
1
  module Paperclip
2
2
  module S3DU
3
3
  class S3DirectUpload
4
- attr_reader :path, :size, :content_type
4
+ attr_reader :path, :size, :content_type, :fingerprint
5
5
 
6
6
  def initialize hash = {}
7
7
  @path = hash[:file_path]
8
8
  @size = hash[:file_size]
9
9
  @content_type = hash[:content_type]
10
+ @fingerprint = hash[:fingerprint]
10
11
  end
11
12
 
12
13
  def original_filename
@@ -1,7 +1,7 @@
1
1
  module Paperclip
2
2
  module S3DU
3
3
  class S3DirectUploadAdapter < Paperclip::AbstractAdapter
4
- delegate :path, :original_filename, :content_type, :size, :to => :@target
4
+ delegate :path, :original_filename, :content_type, :size, :fingerprint, :to => :@target
5
5
 
6
6
  def initialize(target)
7
7
  @target = target
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'paperclip_s3du'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
4
4
  s.date = '2013-03-09'
5
5
  s.summary = "Already-uploaded Paperclip"
6
6
  s.description = "Paperclip support for already-uploaded-in-s3 files."
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip_s3du
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Guilherme Vieira
@@ -14,7 +13,6 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: paperclip
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -43,26 +40,25 @@ files:
43
40
  - paperclip_s3du.gemspec
44
41
  homepage: https://github.com/flipstudio/s3du
45
42
  licenses: []
43
+ metadata: {}
46
44
  post_install_message:
47
45
  rdoc_options: []
48
46
  require_paths:
49
47
  - lib
50
48
  required_ruby_version: !ruby/object:Gem::Requirement
51
- none: false
52
49
  requirements:
53
50
  - - ! '>='
54
51
  - !ruby/object:Gem::Version
55
52
  version: '0'
56
53
  required_rubygems_version: !ruby/object:Gem::Requirement
57
- none: false
58
54
  requirements:
59
55
  - - ! '>='
60
56
  - !ruby/object:Gem::Version
61
57
  version: '0'
62
58
  requirements: []
63
59
  rubyforge_project:
64
- rubygems_version: 1.8.19
60
+ rubygems_version: 2.1.9
65
61
  signing_key:
66
- specification_version: 3
62
+ specification_version: 4
67
63
  summary: Already-uploaded Paperclip
68
64
  test_files: []