s3_direct_up 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8e012d2e87980a3531c04a8be23695700ed05ab3
4
+ data.tar.gz: 1ef22ed5405f6324cb009275c07baedfe7868a67
5
+ SHA512:
6
+ metadata.gz: 9afb2267e3503b135162f5b7a4523da22bb395396603756fcd6601115d1a819332d3429cacd098411de08698d1ccf4277de19f2c983bca01de0acbdb1807a221
7
+ data.tar.gz: 980a4ecd07f435ef08fbcba2484cba658ebc334697d20eddbc0c07db2b1b77a8f938749d39428d1ce3b78bab7f4790175da8e60ecaf914bb6b2def78ae77436d
@@ -13,6 +13,11 @@ module S3DirectUp
13
13
  def initialize(uploader=nil, options={})
14
14
  @uploader=uploader||CarrierWave::Uploader::Base
15
15
  @options=DefaultOptions.merge(options)
16
+ refresh_policy
17
+ end
18
+
19
+ def refresh_policy
20
+ @policy_raw=policy_raw
16
21
  end
17
22
 
18
23
  def get_fog_storage
@@ -78,7 +83,7 @@ module S3DirectUp
78
83
  end
79
84
 
80
85
  def encoded_policy
81
- Base64.encode64(policy_raw.to_json).gsub("\n", '')
86
+ Base64.encode64(@policy_raw.to_json).gsub("\n", '')
82
87
  end
83
88
 
84
89
  def signature
@@ -1,3 +1,3 @@
1
1
  module S3DirectUp
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3_direct_up
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - William Yeung
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-08 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: carrierwave
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
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
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: fog
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Amazon S3 direct uploader
@@ -50,7 +45,7 @@ executables: []
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
53
- - .gitignore
48
+ - ".gitignore"
54
49
  - Gemfile
55
50
  - LICENSE.txt
56
51
  - README.md
@@ -61,27 +56,25 @@ files:
61
56
  - s3_direct_up.gemspec
62
57
  homepage: ''
63
58
  licenses: []
59
+ metadata: {}
64
60
  post_install_message:
65
61
  rdoc_options: []
66
62
  require_paths:
67
63
  - lib
68
64
  required_ruby_version: !ruby/object:Gem::Requirement
69
- none: false
70
65
  requirements:
71
- - - ! '>='
66
+ - - ">="
72
67
  - !ruby/object:Gem::Version
73
68
  version: '0'
74
69
  required_rubygems_version: !ruby/object:Gem::Requirement
75
- none: false
76
70
  requirements:
77
- - - ! '>='
71
+ - - ">="
78
72
  - !ruby/object:Gem::Version
79
73
  version: '0'
80
74
  requirements: []
81
75
  rubyforge_project:
82
- rubygems_version: 1.8.24
76
+ rubygems_version: 2.2.2
83
77
  signing_key:
84
- specification_version: 3
78
+ specification_version: 4
85
79
  summary: An independent S3 direct uploader base on CarrierWave and fog.
86
80
  test_files: []
87
- has_rdoc: