simple-s3 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,12 +2,15 @@ class SimpleS3
2
2
 
3
3
  def self.config
4
4
  if @config.nil?
5
- @config = YAML.load_file('./simple-s3.yml')
5
+ path = './simple-s3.yml'
6
+ raise "Simple-S3: Config file not found #{path}" unless File.exist?(path)
7
+ @config = YAML.load_file(path)
6
8
  end
7
9
  @config
8
10
  end
9
11
 
10
12
  def self.upload!
13
+ raise @config.to_yaml
11
14
  bucket = @config['bucket'].to_s
12
15
  raise 'Simple-S3: Bucket not defined' if bucket.length == 0
13
16
 
@@ -1,3 +1,3 @@
1
1
  class SimpleS3
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/simple-s3.gem CHANGED
Binary file
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matias Niemela