oni 5.0.0 → 5.0.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: caeb912891a2409d8e6172aa32e46b35d6cbd2a21013bc56bd15e72b0cc1ab91
4
- data.tar.gz: 659d955159d3a7787739c96f714b35a86471b94b05b2a7ae3c30ba7c6587e166
3
+ metadata.gz: 9584b31ab67e080e5f151a5ef02094a45cc9660acfa71c67315451c6c638fa84
4
+ data.tar.gz: d5a7c223d6766e5593c47b77e70d315fe70b3f5dd0da0148b7153aa19c65b985
5
5
  SHA512:
6
- metadata.gz: 7a2aca94f8984a5944bfea8356ea72f8f324df9fd7dcc6741d14cffcc0fd6a1078ce36c93e3d589e3a6b0d05db7d42e8c5ef1ba6edfece1afb6df91027167f00
7
- data.tar.gz: 9f444c0a04d0c390c739712820525bc492eaccae6adfe6f1a3befd1a0506334f1c7cea5c160c73d71a407cc86927aceeefc6ac35a306589f0cbb9998210a08cb
6
+ metadata.gz: '015680f50a3da3d650bd767adf8a413e712de25377f0e07aa60613ed53c4150ed4a594806bc311401d5f478a9e666c21be1e0655ee990cd4d7c76f4ef0cb4d1b'
7
+ data.tar.gz: 77ce42a13d7f6983f8a3f28c24aba811cf66e10e9e14cb1ab42c9c37e756c04086cbd065fe8046ed1ffe16c7005c87db02f6b58b577bf668ccdce9900d91029e
@@ -59,17 +59,17 @@ module Oni
59
59
  # @return [Aws::SQS::QueuePoller]
60
60
  #
61
61
  def queue
62
- return Aws::SQS::QueuePoller.new(queue_url)
62
+ @queue ||= Aws::SQS::QueuePoller.new queue_url
63
63
  end
64
64
 
65
65
  ##
66
66
  # @return [String]
67
67
  #
68
68
  def queue_url
69
- sqs = Aws::SQS::Client.new
70
- response = sqs.get_queue_url(:queue_name => option(:queue_name))
71
-
72
- return response.queue_url
69
+ @queue_url ||= self.then do
70
+ response = Aws::SQS::Client.new.get_queue_url queue_name: option(:queue_name)
71
+ response.queue_url
72
+ end
73
73
  end
74
74
 
75
75
  end
data/lib/oni/version.rb CHANGED
@@ -1,3 +1,5 @@
1
1
  module Oni
2
- VERSION = '5.0.0'
3
- end # Oni
2
+
3
+ VERSION = '5.0.1'
4
+
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oni
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yorick Peterse
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-03-28 00:00:00.000000000 Z
12
+ date: 2024-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake