allq 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/allq/client.rb +4 -4
- data/lib/allq/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e89dbc59e26a596fb3727ea8dbacac30dfdfec75
|
|
4
|
+
data.tar.gz: e0e98d3aa58b2e3872e9d4f70658f5d7f8618cbf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 39c1ff67a85ba99409034f72bd0b634868a631c68cc8c81ba7bc8c1a730fa3ac5b7340a692bbac96ab9021c3257f77913c232914f6d59769f23924e1b7ebcd61
|
|
7
|
+
data.tar.gz: 2eb4f2b3b6f34cab2fa7bd9f715a54cb78f202d58174bc93879577a449ba48f4dc37cb84e3f021aa556dc7e89e811a50c92dd1fe526d632766f5ee8eb8175a77
|
data/lib/allq/client.rb
CHANGED
|
@@ -6,9 +6,9 @@ class AllQ
|
|
|
6
6
|
|
|
7
7
|
URL = ENV['ALLQ_CLIENT_URL'] || '127.0.0.1:7766'
|
|
8
8
|
def initialize(url = nil)
|
|
9
|
-
url = URL if url.nil?
|
|
9
|
+
@url = URL if url.nil?
|
|
10
10
|
@connection = nil
|
|
11
|
-
reload
|
|
11
|
+
reload!
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def parent_job(tube, body, ttl: 3600, delay: 0, parent_id: nil, priority: 5, limit: nil, noop: false)
|
|
@@ -90,9 +90,9 @@ class AllQ
|
|
|
90
90
|
@connection.close
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
def reload
|
|
93
|
+
def reload!
|
|
94
94
|
@connection.close if @connection
|
|
95
|
-
@connection = AllQ::Connection.new(url)
|
|
95
|
+
@connection = AllQ::Connection.new(@url)
|
|
96
96
|
@get_action = AllQ::Get.new(@connection, self)
|
|
97
97
|
@put_action = AllQ::Put.new(@connection, self)
|
|
98
98
|
@done_action = AllQ::Done.new(@connection, self)
|
data/lib/allq/version.rb
CHANGED