wrapi 0.1.2 → 0.1.3

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: ff558eb0e62fb544d7beadc13a7c0c87379b782b08ddc2965fb8bf2a72bd5949
4
- data.tar.gz: c3de6d2a2ffafdfaf924ebb7ad56bc4773eaff7892ed2e974a44456b43dd4a9d
3
+ metadata.gz: 7707119492c003388e3396aebeb7a50b64009075e35fa6fbe8f779ae8312785e
4
+ data.tar.gz: a503388426775cd56de06672c62b7ba7086963d8191f2782e519061c13c21b28
5
5
  SHA512:
6
- metadata.gz: 6c2b08f4aecd91f74d2f01939d95c712899b9b03c38bd5b5e01763b43143ea9754e2353916c64e4fdf159a9069fbf3e48310685a195ef050a4913e8f2a58dbac
7
- data.tar.gz: 26e5aa20ded0ed3701515afb906859121a9d6f4ba2ee978828918785c39c8216153a35420cdd163617d7734f1c2f612c554a89559613ad81c6ec4f1d455c54c1
6
+ metadata.gz: 1f7d3ef57fcd6ab8e0fcd92d387d093d0f46430349139f2b51718718c63da1d2429768b42fa159ec22384a26a753b2bdeaff9bac3f0778cbfdc344be3439aa7e
7
+ data.tar.gz: a669367530c66723672ab9523e055d752e235f45aee312366a4c1edbbd9240e2f137d5ea5f965f09b5f7371c873841bb0843d26364452ec93ba9985af883ff64
data/CHANGELOG.md CHANGED
@@ -5,3 +5,9 @@
5
5
 
6
6
  ## [0.1.1] - 2024-02-5
7
7
  - default endpoint to nil and raise error in connection when not available
8
+
9
+ ## [0.1.2] - 2024-02-5
10
+ - default endpoint to nil and raise error in connection when not available
11
+
12
+ ## [0.1.3] - 2024-02-5
13
+ - fix entity should return empty array insted of nil
data/lib/wrapi/entity.rb CHANGED
@@ -59,7 +59,7 @@ module WrAPI
59
59
  def entify(a)
60
60
  a.map do |item|
61
61
  item.is_a?(Hash) ? self.class.new(item) : item
62
- end if !a.empty? && a[0].is_a?(Hash)
62
+ end
63
63
  end
64
64
  end
65
65
  end
data/lib/wrapi/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WrAPI
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wrapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janco Tanis