capriza-aws 0.0.21 → 0.0.22

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.
data/lib/capriza-aws.rb CHANGED
@@ -86,13 +86,15 @@ module Capriza
86
86
  end
87
87
 
88
88
 
89
+ require 'aws-sdk'
90
+ require 'find'
91
+
89
92
  class S3Upload
90
93
 
91
94
  def initialize(options = {})
92
95
  @options = options
93
- S3connect.new(@options[:config])
94
- s3 = AWS::S3.new()
95
- @s3 = AWS::S3.new(:region => @options[:s3_endpoint])
96
+ AWS.config(@options[:config])
97
+ @s3 = AWS::S3.new(:s3_endpoint => @options[:config]['s3_endpoint'])
96
98
  end
97
99
 
98
100
  def upload
@@ -1,5 +1,5 @@
1
1
  module Capriza
2
2
  module Aws
3
- VERSION = "0.0.21"
3
+ VERSION = "0.0.22"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capriza-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: