hanami-controller 2.0.0.alpha5 → 2.0.0.alpha6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +2 -4
- data/hanami-controller.gemspec +2 -1
- data/lib/hanami/controller/version.rb +1 -1
- data/lib/hanami/http/status.rb +1 -17
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f14c59426ea7017dc546100e0443d17d5f63362cd4b6f1546adfb18ae6bd4e3
|
4
|
+
data.tar.gz: 62fafda341ad801430ab2575df6a28b6a9848a71739c977e481fe8fa00dbadfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a51c5a37c6961bff7d1c3c30906cc2e072029e6d0b4ec5782ef92d592ed4f8b247807b9aabd803004afb31fd2f23900bb8a34c9d29bc1515e30e0caba4b3318a
|
7
|
+
data.tar.gz: b69d515d608fbaf545e7d2d4e6d19fbd6d305bc10bcc0a2208dc6e740389eb7188514112028d02dd3d8e6729192eed95305b7ec3a09cdd77039b55ac5d054083
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# Hanami::Controller
|
2
2
|
Complete, fast and testable actions for Rack
|
3
3
|
|
4
|
+
## v2.0.0.alpha6 - 2022-02-10
|
5
|
+
### Added
|
6
|
+
- [Luca Guidi] Official support for Ruby: MRI 3.1
|
7
|
+
|
8
|
+
### Changed
|
9
|
+
- [Luca Guidi] Drop support for Ruby: MRI 2.6, and 2.7.
|
10
|
+
- [Sean Collins] Align with Rack list of HTTP supported status. Added: `103`, `306`, `421`, `425`, `451`, and `509`. Removed: `418`, `420`, `444`, `449`, `450`, `451`, `499`, `598`, `599`.
|
11
|
+
|
4
12
|
## v2.0.0.alpha5 - 2022-01-12
|
5
13
|
### Added
|
6
14
|
- [Philip Arndt] Added "rss" ("application/rss+xml") to list of supported MIME types
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ Complete, fast and testable actions for Rack and [Hanami](http://hanamirb.org)
|
|
26
26
|
|
27
27
|
## Rubies
|
28
28
|
|
29
|
-
__Hanami::Controller__ supports Ruby (MRI)
|
29
|
+
__Hanami::Controller__ supports Ruby (MRI) 3.0+
|
30
30
|
|
31
31
|
## Installation
|
32
32
|
|
@@ -967,6 +967,4 @@ __Hanami::Controller__ uses [Semantic Versioning 2.0.0](http://semver.org)
|
|
967
967
|
|
968
968
|
## Copyright
|
969
969
|
|
970
|
-
Copyright © 2014-
|
971
|
-
|
972
|
-
This project was formerly known as Lotus (`lotus-controller`).
|
970
|
+
Copyright © 2014-2022 Hanami Team – Released under MIT License
|
data/hanami-controller.gemspec
CHANGED
@@ -17,7 +17,8 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = []
|
18
18
|
spec.test_files = spec.files.grep(%r{^(spec)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
|
-
spec.
|
20
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
21
|
+
spec.required_ruby_version = '>= 3.0'
|
21
22
|
|
22
23
|
spec.add_dependency 'rack', '~> 2.0'
|
23
24
|
spec.add_dependency 'hanami-utils', '~> 2.0.alpha'
|
data/lib/hanami/http/status.rb
CHANGED
@@ -11,23 +11,7 @@ module Hanami
|
|
11
11
|
#
|
12
12
|
# @since 0.1.0
|
13
13
|
# @api private
|
14
|
-
ALL = ::Rack::Utils::HTTP_STATUS_CODES
|
15
|
-
103 => 'Checkpoint',
|
16
|
-
122 => 'Request-URI too long',
|
17
|
-
413 => 'Payload Too Large', # Rack 1.5 compat
|
18
|
-
414 => 'URI Too Long', # Rack 1.5 compat
|
19
|
-
416 => 'Range Not Satisfiable', # Rack 1.5 compat
|
20
|
-
418 => 'I\'m a teapot',
|
21
|
-
420 => 'Enhance Your Calm',
|
22
|
-
444 => 'No Response',
|
23
|
-
449 => 'Retry With',
|
24
|
-
450 => 'Blocked by Windows Parental Controls',
|
25
|
-
451 => 'Wrong Exchange server',
|
26
|
-
499 => 'Client Closed Request',
|
27
|
-
506 => 'Variant Also Negotiates', # Rack 1.5 compat
|
28
|
-
598 => 'Network read timeout error',
|
29
|
-
599 => 'Network connect timeout error'
|
30
|
-
}).freeze
|
14
|
+
ALL = ::Rack::Utils::HTTP_STATUS_CODES
|
31
15
|
|
32
16
|
# Return a status for the given code
|
33
17
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.alpha6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -166,7 +166,8 @@ files:
|
|
166
166
|
homepage: http://hanamirb.org
|
167
167
|
licenses:
|
168
168
|
- MIT
|
169
|
-
metadata:
|
169
|
+
metadata:
|
170
|
+
rubygems_mfa_required: 'true'
|
170
171
|
post_install_message:
|
171
172
|
rdoc_options: []
|
172
173
|
require_paths:
|
@@ -175,14 +176,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
175
176
|
requirements:
|
176
177
|
- - ">="
|
177
178
|
- !ruby/object:Gem::Version
|
178
|
-
version:
|
179
|
+
version: '3.0'
|
179
180
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
181
|
requirements:
|
181
182
|
- - ">"
|
182
183
|
- !ruby/object:Gem::Version
|
183
184
|
version: 1.3.1
|
184
185
|
requirements: []
|
185
|
-
rubygems_version: 3.
|
186
|
+
rubygems_version: 3.3.3
|
186
187
|
signing_key:
|
187
188
|
specification_version: 4
|
188
189
|
summary: Complete, fast and testable actions for Rack and Hanami
|