api-blueprint 0.8.1 → 0.8.2
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/lib/api-blueprint/key_replacer.rb +2 -0
- data/lib/api-blueprint/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: a4db8c416ab681520c37549a23c64f3c08986ce2
|
|
4
|
+
data.tar.gz: 131b16485841d7cc1402a41af93d424521e2cfd8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 64f08508b8ab4ebd582cddf1a7f546701c188ebd0733d23ac4593f2d2d087dd78e89ffa6daf79250ebe8ba859a87456cebc2513524026da74fbadcc67b4fd659
|
|
7
|
+
data.tar.gz: e6170acd7334cdb8b5cf2188c9dae396a753cffd3110782123c7c1536ee7adcd986ebb8b3195c475f4226073dbd5c3e70e3617cc799715ae7b6220282b705d6f
|
|
@@ -2,6 +2,8 @@ module ApiBlueprint
|
|
|
2
2
|
class KeyReplacer
|
|
3
3
|
|
|
4
4
|
def self.replace(attributes, replacements)
|
|
5
|
+
return attributes unless attributes.is_a? Hash
|
|
6
|
+
|
|
5
7
|
attributes.dup.deep_symbolize_keys.tap do |item|
|
|
6
8
|
replacements.each do |bad, good|
|
|
7
9
|
item[good] = item.delete bad if item.has_key? bad
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: api-blueprint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Damien Timewell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-05-
|
|
11
|
+
date: 2018-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-types
|