kong_schema 1.3.4 → 1.3.5

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: 07c38fd45ad857c1d106e563a717e1adad472b83
4
- data.tar.gz: b000dc659c55e8d550a49ad003d0359592380235
3
+ metadata.gz: e7c98658adc5e56106c3d568f06c573a4af2ad92
4
+ data.tar.gz: 5aa1b1caed005df1b98c46206cf3d3489a8403a2
5
5
  SHA512:
6
- metadata.gz: 97da9bea2762e350dc5d8ec6beb65ba340dbcd65caf19fab44baa872542f5ee72e531d63605dec04d08084e8b2a0bd13034e3861006d43ddf24f7f3ae88dc58b
7
- data.tar.gz: 0d0c6a0770c4a78d4ab1bb9c7cb3417cb3f3a2afe5183cb327a50670b6c377ca9fb82d3a7359d8ae54337686b1b25137accda471f010755c3c8b2a3a0639a0b9
6
+ metadata.gz: c72442fcf8f8e87d39385268be36d6b74c212417f5019e02b5713e212ffbeac1d88bd57ad4c61472e87e1612479ee9549a39d57bf6b6b5696f7b7da8df0deb38
7
+ data.tar.gz: 5a50fe568175d2f479c9df479c514f3b4af93835874310cb371d6084d674cfa502a82a64efaa6f11c82e167170e246079c5aaea1fe9a04853b801242e95fa1b3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.3.5
2
+
3
+ - Fixed an issue that caused the reporter to fail when an Api object's
4
+ "methods" attribute was an array and not a comma-delimited string
5
+
1
6
  ## 1.3.4
2
7
 
3
8
  - Fixed an issue that was causing Api objects to appear empty in a diff when in
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kong_schema (1.3.4)
4
+ kong_schema (1.3.5)
5
5
  diffy (~> 3.2)
6
6
  gli (~> 2.16)
7
7
  json (~> 2.1)
@@ -81,7 +81,7 @@ module KongSchema
81
81
  def normalize_api_attributes(record, attrs)
82
82
  case record
83
83
  when Kong::Api
84
- attrs.merge('methods' => attrs['methods'].split(','))
84
+ attrs.merge('methods' => Array(attrs['methods']).join(',').split(','))
85
85
  else
86
86
  attrs
87
87
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KongSchema
4
- VERSION = "1.3.4".freeze
4
+ VERSION = "1.3.5".freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kong_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmad Amireh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-09 00:00:00.000000000 Z
11
+ date: 2018-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli