em-rocketio-linda-client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/History.txt +4 -0
- data/lib/em-rocketio-linda-client/client.rb +3 -3
- data/lib/em-rocketio-linda-client/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: 98dfdf7000ed33fed66fef953dee21449acf8815
|
4
|
+
data.tar.gz: a31dfc4320438cc867428cdf697b57500f54a7d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9321a9e566c9e232d72b59de669038a8273d6f74b1b6f49af986559d303a41d9a2cf5f1fe1e18b20aec0462a67d9f813784eaa4991311ed95c2918293db3c92
|
7
|
+
data.tar.gz: 6a33d796dc72c353629baf72c081c6d0f89e4e6e2be4b78485781cc8d1738a7d0658503d14dd471cba79f6f92bb8cf9ba35cfb12abf3b82634d641305cd9a7f5
|
data/.gitignore
CHANGED
data/History.txt
CHANGED
@@ -38,7 +38,7 @@ module EM
|
|
38
38
|
unless [Hash, Array].include? tuple.class
|
39
39
|
raise ArgumentError, "tuple must be Array or Hash"
|
40
40
|
end
|
41
|
-
callback_id = "#{Time.now.to_i}#{Time.now.usec}"
|
41
|
+
callback_id = "#{Time.now.to_i}#{Time.now.usec}_#{rand(1000000).to_i}"
|
42
42
|
@linda.io.once "__linda_read_callback_#{callback_id}", &block
|
43
43
|
@linda.io.push "__linda_read", [@name, tuple, callback_id]
|
44
44
|
end
|
@@ -47,7 +47,7 @@ module EM
|
|
47
47
|
unless [Hash, Array].include? tuple.class
|
48
48
|
raise ArgumentError, "tuple must be Array or Hash"
|
49
49
|
end
|
50
|
-
callback_id = "#{Time.now.to_i}#{Time.now.usec}"
|
50
|
+
callback_id = "#{Time.now.to_i}#{Time.now.usec}_#{rand(1000000).to_i}"
|
51
51
|
@linda.io.once "__linda_take_callback_#{callback_id}", &block
|
52
52
|
@linda.io.push "__linda_take", [@name, tuple, callback_id]
|
53
53
|
end
|
@@ -56,7 +56,7 @@ module EM
|
|
56
56
|
unless [Hash, Array].include? tuple.class
|
57
57
|
raise ArgumentError, "tuple must be Array or Hash"
|
58
58
|
end
|
59
|
-
callback_id = "#{Time.now.to_i}#{Time.now.usec}"
|
59
|
+
callback_id = "#{Time.now.to_i}#{Time.now.usec}_#{rand(1000000).to_i}"
|
60
60
|
@linda.io.on "__linda_watch_callback_#{callback_id}", &block
|
61
61
|
@linda.io.push "__linda_watch", [@name, tuple, callback_id]
|
62
62
|
end
|