relaxo 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +9 -3
- data/lib/relaxo/connection.rb +6 -4
- data/lib/relaxo/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: 9e6c02feb308c631c2fd94b56f377faa51c912eb
|
4
|
+
data.tar.gz: 28d754e42bb951740a67bbd434843040669c64dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63a3a123c7e53afaf78fea848c7774f4d6363adedca1df785411ba50c3776edfe741a0b3addcac3a8d17943e35013a0a6758554664f8594bb80c3db55eb2d118
|
7
|
+
data.tar.gz: 68456b24f209d5b3715c7ca4f66604387c15a04e72d2dd7969e328b13d57f98cffdcc5bdfe27c98743d0822c40959235dd5f571272b1a66f05ce017bfa71a7e4
|
data/.travis.yml
CHANGED
data/lib/relaxo/connection.rb
CHANGED
@@ -35,10 +35,6 @@ module Relaxo
|
|
35
35
|
|
36
36
|
attr :url
|
37
37
|
|
38
|
-
private def fetch_uuids(count)
|
39
|
-
@uuids += Client.get("#{@url}/_uuids?count=#{count}")["uuids"]
|
40
|
-
end
|
41
|
-
|
42
38
|
# This implementation could be improved. It's not exactly fast to request 1 UUID at a time. One idea is to add a UUID queue to Transaction which allows UUIDs to be fetched in bulk on a per-transaction basis, and reused if the transaction fails.
|
43
39
|
def next_uuid
|
44
40
|
@uuid_lock.synchronize do
|
@@ -60,5 +56,11 @@ module Relaxo
|
|
60
56
|
def configuration
|
61
57
|
Client.get("#{@url}/_config")
|
62
58
|
end
|
59
|
+
|
60
|
+
private
|
61
|
+
|
62
|
+
def fetch_uuids(count)
|
63
|
+
@uuids += Client.get("#{@url}/_uuids?count=#{count}")["uuids"]
|
64
|
+
end
|
63
65
|
end
|
64
66
|
end
|
data/lib/relaxo/version.rb
CHANGED