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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84b4415cd8e7238b56f556969215b94c1ed7471d
4
- data.tar.gz: fead4f882d90ea4e232dea148c22ebb93462fbc5
3
+ metadata.gz: a4db8c416ab681520c37549a23c64f3c08986ce2
4
+ data.tar.gz: 131b16485841d7cc1402a41af93d424521e2cfd8
5
5
  SHA512:
6
- metadata.gz: d1c4fbce9cd213728a8985ae19b163942f9c46a5204d50edb34bd33adb75147492ecc9fa115b18aafb001f1c4c192eb2e711d328c7375a6007c9ac5f0c06c986
7
- data.tar.gz: 04e83ea3a7a15d1d12859f56aedbf6f8b61ae623fd6c9ce287ae3ba22ff0e3dd4b333a9fa5d54af517e25f0870421e0e9a053dc712fe53271d03b6fb712f1fe3
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
@@ -1,3 +1,3 @@
1
1
  module ApiBlueprint
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.2'
3
3
  end
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.1
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-24 00:00:00.000000000 Z
11
+ date: 2018-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-types