jahuty 3.1.0 → 3.1.1
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/jahuty/resource/factory.rb +1 -1
- data/lib/jahuty/resource/problem.rb +8 -0
- data/lib/jahuty/resource/render.rb +6 -0
- data/lib/jahuty/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2c235fb1ce67c99a9bf584d4e899802b3c63114b91331439a3d3832b721e28e
|
4
|
+
data.tar.gz: 1c3b9ed4d76d7b7bc9ae21dc975a4ff4bad728f7a1374f1e53a12c0b5307ae19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1eef3b6308a8ff3f6b967840d51de4ea2281e3e144f81bdbc91009c2a81068522e50ded68c0dd20c89e070672899d26d393d371718472bd2f837e65520483677
|
7
|
+
data.tar.gz: e9e72191ea7766ab12ca962176f838f01129903bc28b7677e453a346726c5197ac1f4f225bdb85309f68d755c32adbec61a921eb0039f4582a04d9b171f071c8
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## 3.1.1 - 2020-02-26
|
9
|
+
|
10
|
+
- Add support for extra, unused attributes returned by the API to support evolution.
|
11
|
+
- Fix the `method redefined` warnings in `cache/manager_spec.rb` and `cache/facade_spec.rb`.
|
12
|
+
- Fix the `expect { }.not_to raise_error(SpecificErrorClass)` false positives warnings in `resource/render_spec.rb`.
|
13
|
+
|
8
14
|
## 3.1.0 - 2020-01-04
|
9
15
|
|
10
16
|
- Add caching support for any cache implementation that supports `get/set` or `read/write` methods.
|
@@ -12,6 +12,14 @@ module Jahuty
|
|
12
12
|
@type = type
|
13
13
|
@detail = detail
|
14
14
|
end
|
15
|
+
|
16
|
+
def self.from(data)
|
17
|
+
raise ArgumentError.new, 'Key :status missing' unless data.key?(:status)
|
18
|
+
raise ArgumentError.new, 'Key :type missing' unless data.key?(:type)
|
19
|
+
raise ArgumentError.new, 'Key :detail missing' unless data.key?(:detail)
|
20
|
+
|
21
|
+
Problem.new(data.slice(:status, :type, :detail))
|
22
|
+
end
|
15
23
|
end
|
16
24
|
end
|
17
25
|
end
|
data/lib/jahuty/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jahuty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Clayton
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|