hanami-controller 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/hanami/action/mime.rb +7 -1
- data/lib/hanami/controller/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9cfb818515da7bb2f825a1016ebfd221cfb3c75
|
4
|
+
data.tar.gz: e459b2afa444cd3a7e5ddb6f77ee7594cedf59c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd1689d659b55ee1a01114eba2c37e27768ad926c0c3e1adf9b90c5030a92e5b35383e297c494e7e4ce037183a0b356c6410d76b3b6a948a3db2ece4f7cade22
|
7
|
+
data.tar.gz: a2fa0502c2e59c9eb6d22f5850ed0454fe4ea59531460575f7fcdc383fc90f9ca399e487013940b3b7c6fb743035cd190765fd67d12fd1ffc2c18f678c308cea
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Hanami::Controller
|
2
2
|
Complete, fast and testable actions for Rack
|
3
3
|
|
4
|
+
## v0.6.1 - 2016-02-05
|
5
|
+
### Changed
|
6
|
+
- [Anatolii Didukh] Optimise memory usage by freezing MIME types constant
|
7
|
+
|
4
8
|
## v0.6.0 - 2016-01-22
|
5
9
|
### Changed
|
6
10
|
- [Luca Guidi] Renamed the project
|
data/lib/hanami/action/mime.rb
CHANGED
@@ -41,6 +41,12 @@ module Hanami
|
|
41
41
|
# @api private
|
42
42
|
DEFAULT_CHARSET = 'utf-8'.freeze
|
43
43
|
|
44
|
+
# The default mime types list
|
45
|
+
#
|
46
|
+
# @since 0.6.1
|
47
|
+
# @api private
|
48
|
+
MIME_TYPES = ::Rack::Mime::MIME_TYPES.values.freeze
|
49
|
+
|
44
50
|
# Override Ruby's hook for modules.
|
45
51
|
# It includes Mime types logic
|
46
52
|
#
|
@@ -418,7 +424,7 @@ module Hanami
|
|
418
424
|
# @api private
|
419
425
|
def accepts
|
420
426
|
unless accept == DEFAULT_ACCEPT
|
421
|
-
best_q_match(accept,
|
427
|
+
best_q_match(accept, MIME_TYPES)
|
422
428
|
end
|
423
429
|
end
|
424
430
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-02-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|