hypdf 1.0.5 → 1.0.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81c9cdc70adf46dc47fb5fe52137f2224b37a59e
4
- data.tar.gz: 42ffed84690a062161d381436ea091db7a51e6ac
3
+ metadata.gz: 819e4eca497a0941b71e32058d7a3fdac4d54c22
4
+ data.tar.gz: 84ab9d52c9c6dfa3a6418ae2c8691a3cf947801a
5
5
  SHA512:
6
- metadata.gz: 7af4b182f612e1f4975f512c7093b0282b3506764d98b8d5db73178bb4baba3fb7b2dbafe095d47443a6c36f069d0c9745ba446608b6d616aa0b30d89e2a9e1e
7
- data.tar.gz: f44ff2ac7059b1cba8cac4be765362160e664855cb21d46fb6f8761bd199debd321e82a35896c3fc9d57743387db5f182258df7b3cece1c12ac89b5a3c0239cd
6
+ metadata.gz: 6d453c9801310e4079e297bf7c3d8bbcd63e0dcd5269accba6e078f882d203a75602a06e309e01a9cdec0ab57dfecfc3291fa00f40daac85582f37e64bf4b2a1
7
+ data.tar.gz: 8a1981dede2d84c45f48391fbd3e2317213a37cb5b8e1a561358d9103b711b08fe13ca45893f8b57c55135254452da9836050b49afc96cdabad2a0dd32e28ec6
@@ -4,6 +4,8 @@ class HyPDF
4
4
 
5
5
  class AuthorizationRequired < StandardError; end
6
6
 
7
+ class S3AccessDenied < StandardError; end
8
+
7
9
  class PaymentRequired < StandardError; end
8
10
 
9
11
  class NoSuchBucket < StandardError; end
data/lib/hypdf/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class HyPDF
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
data/lib/hypdf.rb CHANGED
@@ -40,6 +40,7 @@ class HyPDF
40
40
  when 400 then raise HyPDF::ContentRequired
41
41
  when 401 then raise HyPDF::AuthorizationRequired
42
42
  when 402 then raise HyPDF::PaymentRequired
43
+ when 403 then raise HyPDF::S3AccessDenied
43
44
  when 404 then raise HyPDF::NoSuchBucket
44
45
  when 500 then raise HyPDF::InternalServerError
45
46
  end
@@ -92,6 +93,7 @@ class HyPDF
92
93
  when 400 then raise HyPDF::ContentRequired
93
94
  when 401 then raise HyPDF::AuthorizationRequired
94
95
  when 402 then raise HyPDF::PaymentRequired
96
+ when 403 then raise HyPDF::S3AccessDenied
95
97
  when 404 then raise HyPDF::NoSuchBucket
96
98
  when 500 then raise HyPDF::InternalServerError
97
99
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hypdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - redfield
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-16 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty