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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fc9bb8ce4c30ef64e02a15976fea3b1fa95c55c
4
- data.tar.gz: 572e20aaf3340941cb87480965a9dbf1b1f06edb
3
+ metadata.gz: e89dbc59e26a596fb3727ea8dbacac30dfdfec75
4
+ data.tar.gz: e0e98d3aa58b2e3872e9d4f70658f5d7f8618cbf
5
5
  SHA512:
6
- metadata.gz: b6131a91fe939cd4a1c90baecff04df4d03c17459b7ffd742ad5c0b0582dcd02534f07dfbc63750b13a70555b882d8dcaf7fe7ce2398213d82e0bff544e37b18
7
- data.tar.gz: cffbdab95f6135fa3a3e407b698f5318abaebad5d1cb6aa16b911245c27561b42e8507b1ee6eeb5b81f035383da524a86abbf58583d6807434a30af692072c2b
6
+ metadata.gz: 39c1ff67a85ba99409034f72bd0b634868a631c68cc8c81ba7bc8c1a730fa3ac5b7340a692bbac96ab9021c3257f77913c232914f6d59769f23924e1b7ebcd61
7
+ data.tar.gz: 2eb4f2b3b6f34cab2fa7bd9f715a54cb78f202d58174bc93879577a449ba48f4dc37cb84e3f021aa556dc7e89e811a50c92dd1fe526d632766f5ee8eb8175a77
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Allq
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: allq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason