media_types-deserialization 0.1.1 → 0.1.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bbd23e88f2aede4504ab00dc8bbbdf38dcd23bf0ac7eeaa27703a08e467918a
|
4
|
+
data.tar.gz: 37cce138d77c59e7c42b7928eab60a6837ef3e93cb31cea00374e4e47e992fcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d732f74c55fe45c860686f857218e240181e5055765d4abf0da4347213ecc00296b8a7d3a51667f21c97c15f191a9272ba7303d709f97fed7b3e218f4bfe1f4
|
7
|
+
data.tar.gz: ffae9954054d4c84cdb8303e7d392f7ea12ad6659cc5c28eabba73b2681b1c4c337d604327ff7703d593cc51ba2ee9b3eb8cf56124b8596513486c33adfe4c54
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.2
|
4
|
+
|
5
|
+
- Fix `ContentTypeNotRecognised` backtrace
|
6
|
+
- Fix issue when there is no content ánd no content-type (explicit nil)
|
7
|
+
|
3
8
|
## 0.1.1
|
4
9
|
|
5
|
-
- Fix error regarding ContentTypeNotRecognised (called as function instead of error class)
|
10
|
+
- Fix error regarding `ContentTypeNotRecognised` (called as function instead of error class)
|
6
11
|
- Change `lookup_media_type_by_symbol` interface so that MediaTypes and Mime types can be mixed as return value
|
7
12
|
|
8
13
|
## 0.1.0
|
data/Gemfile.lock
CHANGED
@@ -68,6 +68,7 @@ module MediaTypes
|
|
68
68
|
|
69
69
|
def request_content_type_symbol
|
70
70
|
content_type = request_content_type
|
71
|
+
return nil unless content_type
|
71
72
|
result = lookup_content_type_symbol.respond_to?(:call) ?
|
72
73
|
instance_exec(content_type, &lookup_content_type_symbol) :
|
73
74
|
lookup_content_type_via_mime_type(content_type)
|