microstatic 0.5.1 → 0.5.2

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: ae9e8c819afc46577034785b6ddd5d5a92630c3f
4
- data.tar.gz: 500fff96e94b01479e8f0940ef2cbe6aded8a332
3
+ metadata.gz: dd08335347e315687188e922153132a78b0dce44
4
+ data.tar.gz: 39531c9c3c43b9f69cebd090f734a46b47e4b226
5
5
  SHA512:
6
- metadata.gz: cc991b82b2aa63a200e9e228294c5849f49dd78e884fed0ab212a7027db8ff342db17061ed8c411dde22eb4e1c6b8c492e229ae57cbd6e4684ed8d87a8500dcf
7
- data.tar.gz: db96cf7cacc0bfb239491e7580d2707e78cba806b52eb0af7b5d1cb392f06653fd65cbeb69fed14df08ced646ba6d01423ee3c075fe9cfe1f05183e7d6012dbf
6
+ metadata.gz: 9512a0b05ee9cdea6e8d1905342a02119d7f70ca63f6480ad285b8c1486afdc87bdbd1b7aca9d4bc2cfab8ffcbaf220cc33c5e4d3f421da61610cf0fd0791ac5
7
+ data.tar.gz: 489f2e1b4f06d22648645b2a776b957af6f198dc6b088078e850c233e481ee2c3390e02502184f38cc568b9a39953bdc976a3d39767434aedc0c851bbb48e24d
@@ -18,9 +18,14 @@ class Uploader
18
18
  begin
19
19
  s3_object = connection.head_object(@bucket,s3_key)
20
20
  rescue Excon::Errors::NotFound
21
+ log_action("NOT FOUND", s3_key)
22
+ s3_object = false
23
+ rescue Excon::Errors::Forbidden
24
+ log_action("FORBIDDEN", s3_key)
21
25
  s3_object = false
22
26
  end
23
27
 
28
+
24
29
  if s3_object
25
30
  update_object_if_changed(s3_key, pathname,s3_object)
26
31
  else
@@ -1,3 +1,3 @@
1
1
  module Microstatic
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microstatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Hodgson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-23 00:00:00.000000000 Z
11
+ date: 2015-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog