wrapi 0.1.1 → 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: 98ca96c390b3ef729370d1237e095eb1436c326d4acd16600e3343f96f7499b9
4
- data.tar.gz: cf29c70d73b05dfb7dac0e9d4e1098bbf573b76f9f19de1259c4b9a0f1835897
3
+ metadata.gz: 7707119492c003388e3396aebeb7a50b64009075e35fa6fbe8f779ae8312785e
4
+ data.tar.gz: a503388426775cd56de06672c62b7ba7086963d8191f2782e519061c13c21b28
5
5
  SHA512:
6
- metadata.gz: 95c0e427ccdb8f4a1a9147e15122bbba3891556149bd1431c2668cce3038537e5f921b943a42636786aa795aecc1fdfe220ed0ed337f74e8066cd634cc9f2ec9
7
- data.tar.gz: c3f42e63e01ba136bb47a71cf396b4a1f34ca3c39d8c26c86018bfa880d60f624bc8a1e1d8aa8dfbe01ae001c98341445501d71ed90a4e2f439675cd41749731
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
@@ -67,6 +67,7 @@ module WrAPI
67
67
  self.client_secret = nil
68
68
  self.username = nil
69
69
  self.password = nil
70
+ self.endpoint = nil
70
71
 
71
72
  self.logger = nil
72
73
  self.connection_options = DEFAULT_CONNECTION_OPTIONS
@@ -10,7 +10,7 @@ module WrAPI
10
10
  private
11
11
 
12
12
  def connection
13
- raise! ArgumentError, "Option for endpoint is not defined" unless endpoint
13
+ raise ArgumentError, "Option for endpoint is not defined" unless endpoint
14
14
 
15
15
  options = setup_options
16
16
  Faraday::Connection.new(options) do |connection|
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.1'
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.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janco Tanis