nazrin 2.6.0 → 2.6.1

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
  SHA1:
3
- metadata.gz: b4ce63b4f44d461d41771edbfecbe562fb5a6ee1
4
- data.tar.gz: fd395ff1f407073c9e1d459a894abd1dae15e000
3
+ metadata.gz: bc6244cc7531a08e3055fb2a8e9deeb2b7f6ade3
4
+ data.tar.gz: 08161217158c5a9ee6aa1b46f3f923e6dcb6ae5c
5
5
  SHA512:
6
- metadata.gz: 0dd0eda86c2138afac23b2f0696398a630aed40d85cc0f64122d6bcc4d56b931239cc191087a18a788a0e3892734f660ccebbb379fbd1549a8d68b1d1e8af76a
7
- data.tar.gz: fce06d4b56e903a0b13bafb19ee78152a020dd82c3ff1db2e900b742807f51612bf6a8134e38e73093ae6bbc2e8b7ecb3ff70a8716e074642a1ecee9fa786145
6
+ metadata.gz: 71d70120f54110d155a7735a5b50d351e867f212656e4ac76a4ad3302e9271bf05f81f773343f21e043438745d51a490e50e75ec3f5fa3e243f65dcebba291be
7
+ data.tar.gz: 1178dd089c2c2f52ba0562430facbfda14de8085b07e3ef544de58db7b3124aaf1cd99defa7004d64d7b6ff152ad6aa3ddbb166e24e0d3605c72984a0e576582
@@ -1,3 +1,9 @@
1
+ ## [2.6.1](https://github.com/tsuwatch/nazrin/compare/v2.6.0...v2.6.1)
2
+
3
+ ### Fixes:
4
+
5
+ * Fix struct data accessor for `_no_fields` requests [#29](https://github.com/tsuwatch/nazrin/pull/29) - [@AMHOL](https://github.com/AMHOL)
6
+
1
7
  ## [2.6.0](https://github.com/tsuwatch/nazrin/compare/v2.5.0...v2.6.0)
2
8
 
3
9
  ### Features:
@@ -60,7 +60,9 @@ module Nazrin
60
60
 
61
61
  def data_from_response(res)
62
62
  res.data[:hits][:hit].map do |hit|
63
- self.class.transform_attributes(hit[:fields])
63
+ self.class.transform_attributes(
64
+ { 'id' => hit[:id] }.merge(hit[:fields] || {})
65
+ )
64
66
  end
65
67
  end
66
68
  end
@@ -1,3 +1,3 @@
1
1
  module Nazrin
2
- VERSION = '2.6.0'
2
+ VERSION = '2.6.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nazrin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomohiro Suwa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-17 00:00:00.000000000 Z
11
+ date: 2018-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core