haku 1.2.0 → 1.2.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
  SHA256:
3
- metadata.gz: b65774c4966531378070fabd031b8bdb943b10b7ec18f6fea1424d00d5ab382d
4
- data.tar.gz: 7505219941e0b0dcb7189671dcf9a8593f3cdaa6d9c893b0b4ba6c438c6ee56b
3
+ metadata.gz: b979c27207c602a94817468a4fee308998a346d45bd283329254e1d1e3939cdc
4
+ data.tar.gz: e93c17d806c17d9609f9baed6c7d45a1e8bd6ee54d4fd0ea8cae0403864a588b
5
5
  SHA512:
6
- metadata.gz: e310f74ec63fe80d30381b56e36515311786dc6e8c13b065dab9d99a93ee6c9b87891582017f0de199c3e7e18d5ea2534adc9f7927633151127a2abb236fec91
7
- data.tar.gz: c9ca7c513ec7cb2f92b9719071e84d0817d8722480274409b1937aa33062995845eb979bd91314ee41337756dcfe6faa55e7cfe8170fd89aae9a92056cbe92fa
6
+ metadata.gz: 9c9053105cd3b54068ac71ef00a79af0d6a0f002043c2297cdd2e78979f16953a0574f97b8b95550cf058f02cbaba2332d08a5d4b126869313e4ae3f26709727
7
+ data.tar.gz: 31088c71ca7f7b5be9d7339996e0a007a745780784bbfb59cc5f12b5453a147b1bb1ea21574dd2bb61d2c6b3a47e1e3a6286e1530bc02c73b498b9bf3421c093
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.2.1] - 2022-04-20
4
+ - Fix accessors creation when result is plain array
5
+
3
6
  ## [1.2.0] - 2022-04-20
4
7
  - Refactor how response is created on finish
5
8
 
data/Gemfile.lock CHANGED
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- haku (1.2.0)
14
+ haku (1.2.1)
15
15
  activesupport (>= 6.0, < 8.0)
16
16
 
17
17
  GEM
data/lib/haku/result.rb CHANGED
@@ -10,8 +10,12 @@ module Haku
10
10
 
11
11
  return unless @payload.respond_to?(:to_h)
12
12
 
13
- @payload.to_h.each_key do |key|
14
- define_singleton_method(key) { @payload[key] }
13
+ begin
14
+ @payload.to_h.each_key do |key|
15
+ define_singleton_method(key) { @payload[key] }
16
+ end
17
+ rescue StandardError
18
+ # no create accessors
15
19
  end
16
20
  end
17
21
 
data/lib/haku/version.rb CHANGED
@@ -4,7 +4,7 @@ module Haku
4
4
  module VERSION
5
5
  MAJOR = 1
6
6
  MINOR = 2
7
- TINY = 0
7
+ TINY = 1
8
8
  PRE = nil
9
9
 
10
10
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haku
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Aranda
@@ -68,8 +68,8 @@ licenses:
68
68
  - MIT
69
69
  metadata:
70
70
  homepage_uri: https://github.com/javierav/haku
71
- source_code_uri: https://github.com/javierav/haku/tree/v1.2.0
72
- changelog_uri: https://github.com/javierav/haku/blob/v1.2.0/CHANGELOG.md
71
+ source_code_uri: https://github.com/javierav/haku/tree/v1.2.1
72
+ changelog_uri: https://github.com/javierav/haku/blob/v1.2.1/CHANGELOG.md
73
73
  rubygems_mfa_required: 'true'
74
74
  post_install_message:
75
75
  rdoc_options: