http_errors 0.0.1 → 0.0.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: fe69137054f3069526b0f91c9214abbd6ef76ca7
4
- data.tar.gz: 97327c80c2d11b8b9fc88f42af084e800d750e5a
3
+ metadata.gz: 1805c2101f0b1fb86332cf9364cbe67df763adbe
4
+ data.tar.gz: ba39a45fef9d530972291956a17722fc2ed126a6
5
5
  SHA512:
6
- metadata.gz: b13c7bfffd3681fcd9cf2bdd0cb6cbfa680368e71350f45230932acb3a13b5848d833fd4635a98bdddf5a3ee17bfbb13331b321950a4db2395ae8c58e7e24074
7
- data.tar.gz: 93b578759ec786b5aaecd0d92e8cd6d62928487c68c3bf995233151da614e701ce32785766766e56d1b24d2d1a4c6f2f514d01706a7af60da88b73d5f454a442
6
+ metadata.gz: 3eb3751ecd3ad0cb4bddb70ab4774a741d280cd9d0525bf8f1fed68c6798c5f03a6aa5581098fe9670428312f4e8afe041f79a9f57e28f471fe7ee909e0ef3b0
7
+ data.tar.gz: 01760e2050bbbffe02beabe7b13810efc8631a3102dc14c2801f53e83f3037ad8dc4c11c1dc5f81e7ceaf43c620e01fba37974225f9e9c317fff370cfefc2827
data/lib/http_errors.rb CHANGED
@@ -7,6 +7,10 @@ module HttpErrors
7
7
  attr_accessor :status
8
8
  attr_accessor :head
9
9
  end
10
+
11
+ def initialize(message = nil)
12
+ super
13
+ end
10
14
  end
11
15
 
12
16
  # Unauthorized error raised when request comes from unknown source or user
@@ -27,7 +31,7 @@ module HttpErrors
27
31
  self.head = :not_acceptable
28
32
  end
29
33
 
30
- # NotAcceptable error raised when users provided not acceptable data
34
+ # NotFound error raised when requested data was not found in resources
31
35
  NotFound = Class.new(HTTPError) do
32
36
  self.status = 404
33
37
  self.head = :not_found
@@ -1,3 +1,3 @@
1
1
  module HttpErrors
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Lelonek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-04 00:00:00.000000000 Z
11
+ date: 2014-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler