awful 0.0.49 → 0.0.50

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: 8722f1124b6982b1d93ecfe83eb8dc7f5694bd63
4
- data.tar.gz: ebb9000c775bec167dec4316502a4e80f75e5d3a
3
+ metadata.gz: f12925d0bab66ac09364ba581a5f6ee28c44f913
4
+ data.tar.gz: 04f50da9a56ac7720ed49fc2d363646874666425
5
5
  SHA512:
6
- metadata.gz: 5662fcb3b13b199eabc9208dc4e9cb0e44eec935e8d1ff259495f1724d89af8168de1e927a1ea6b063843ad3ccd0bc5ead03d03097ace450951381f780c62d4f
7
- data.tar.gz: 48520ffd2b25c15bc856b614e8dc11fcb6503e383348815cc6e7f8f4d0d01fc78705a294d7635441a69a11c66ce6d1cb2ad12d2cb9bccf8b5831078453448e0e
6
+ metadata.gz: fe326b2911daeb85415e25cb03661a50024b6808b8ee9902afeaff221cede87f59454d08938362985b5465c9c887eee2397d558822ba0132423e96c2df11bb84
7
+ data.tar.gz: 1f3ff88f3722080a089046ffda92ef5c7df7f04309947e3532348558cc0fa9ad2ad33dc8ca1c3b7e51aec1997eecda91145679a37160ab218e14f48e98c06fce
data/lib/awful/s3.rb CHANGED
@@ -51,6 +51,12 @@ module Awful
51
51
  end
52
52
  end
53
53
 
54
+ desc 'upload FILE BUCKET/OBJECT', 'upload FILE to given object'
55
+ def upload(file, s3path)
56
+ bucket, key = s3path.split('/', 2)
57
+ s3_resource.bucket(bucket).object(key).upload_file(file)
58
+ end
59
+
54
60
  end
55
61
 
56
62
  end
data/lib/awful/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = "0.0.49"
2
+ VERSION = "0.0.50"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.49
4
+ version: 0.0.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2015-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler