http-errors 0.1.1 → 0.1.3

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
  SHA256:
3
- metadata.gz: c0670ef6f5cf56d85ed94be70116811f22b8ebc6a07fe5a39c7cb40b9dda87a7
4
- data.tar.gz: 52d14a9ae364056fc387b30bdace07c81ab7f2ffbac48013b5b5a06cd8f05dfb
3
+ metadata.gz: 9611aebc08a89ead78a4f863649af9bb08cde738b621837e5c7884b4670d041c
4
+ data.tar.gz: 8047f043247204c3b5af8e8834330f24b3c2a796c5b65a0c64491f3ce320f05d
5
5
  SHA512:
6
- metadata.gz: baeae7036992947916b95cb6fcc37557db377d3081074a3cb05b7cc0408d13a94a72bc7eb8ccf7ba019f7aea3df3a66701f24e079f807a5f2a745f4129920b90
7
- data.tar.gz: 62bfc91b53da0207bda75493dacee3b4691f7d2227d4530ed9f63e590f42db5654714b658259ddee5103d5e6b7a9300eea2bc338977c11218fd9785f2a1487b7
6
+ metadata.gz: af71199f2c1cd1db0a98376be01894b096fdc64190fe590c86838214cbbdc20f7e3e0e006575349e583c3780a51398b79cb3383ac5a8d0119255f0f5c0590096
7
+ data.tar.gz: d1790f039c057bdde93d7ad27e897dbfac40d65dcfa5673f98b700b4822159d9a93bf2f65dac1e464c3f28177e5fd224bbf5146e8a68ca6553ab0ab73ca4e62a
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+ *.gem
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- http-errors (0.1.1)
4
+ http-errors (0.1.2)
5
5
  activesupport (~> 5.1)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activesupport (5.1.6)
10
+ activesupport (5.2.0)
11
11
  concurrent-ruby (~> 1.0, >= 1.0.2)
12
12
  i18n (>= 0.7, < 2)
13
13
  minitest (~> 5.1)
@@ -9,6 +9,8 @@ require "http_error/response"
9
9
  require "http_error/bad_request"
10
10
  require "http_error/forbidden"
11
11
  require "http_error/internal_server_error"
12
+ require "http_error/not_found"
12
13
  require "http_error/not_implemented"
13
14
  require "http_error/teapot"
15
+ require "http_error/to_many_requests"
14
16
  require "http_error/unauthorized"
@@ -0,0 +1,8 @@
1
+ require "http_error/error"
2
+
3
+ module HttpError
4
+ class NotFound < Error
5
+ self.status = 404
6
+ self.message = 'Not found'
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require "http_error/error"
2
+
3
+ module HttpError
4
+ class ToManyRequests < Error
5
+ self.status = 429
6
+ self.message = 'To Many Requests'
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module HttpErrors
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
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.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Kampp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-06 00:00:00.000000000 Z
11
+ date: 2018-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,16 +83,17 @@ files:
83
83
  - Rakefile
84
84
  - bin/console
85
85
  - bin/setup
86
- - http-errors-0.1.0.gem
87
86
  - http_errors.gemspec
88
87
  - lib/http_error.rb
89
88
  - lib/http_error/bad_request.rb
90
89
  - lib/http_error/error.rb
91
90
  - lib/http_error/forbidden.rb
92
91
  - lib/http_error/internal_server_error.rb
92
+ - lib/http_error/not_found.rb
93
93
  - lib/http_error/not_implemented.rb
94
94
  - lib/http_error/response.rb
95
95
  - lib/http_error/teapot.rb
96
+ - lib/http_error/to_many_requests.rb
96
97
  - lib/http_error/unauthorized.rb
97
98
  - lib/http_error/version.rb
98
99
  homepage: https://github.com/YouWeApS/arctic-gems-http_errors
Binary file