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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b1b67a7956122386c9d98158958c06677447acd
4
- data.tar.gz: 5e2694046612f0a8b0bd4cac71e03f6a0fb8cbaa
3
+ metadata.gz: 98dfdf7000ed33fed66fef953dee21449acf8815
4
+ data.tar.gz: a31dfc4320438cc867428cdf697b57500f54a7d6
5
5
  SHA512:
6
- metadata.gz: 507b12f18fca968eac264b77472c29db111ad765ef22a306fb015a98814d3469e177ef07b98af46fcc2712d666d1454c4692b429da6f478b518684f7d1c8c5c1
7
- data.tar.gz: b438e51efb1b5e4a5f6dc4a198b6be50872b3377aab8f25b02b84ab97d8ba2c72f066496612f83d2446f454bc2263437adceae70920913cb9f8fa4a56f21a13b
6
+ metadata.gz: c9321a9e566c9e232d72b59de669038a8273d6f74b1b6f49af986559d303a41d9a2cf5f1fe1e18b20aec0462a67d9f813784eaa4991311ed95c2918293db3c92
7
+ data.tar.gz: 6a33d796dc72c353629baf72c081c6d0f89e4e6e2be4b78485781cc8d1738a7d0658503d14dd471cba79f6f92bb8cf9ba35cfb12abf3b82634d641305cd9a7f5
data/.gitignore CHANGED
@@ -3,7 +3,7 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
6
+ .ruby-version
7
7
  InstalledFiles
8
8
  _yardoc
9
9
  coverage
@@ -1,3 +1,7 @@
1
+ === 0.0.2 2013-05-29
2
+
3
+ * bugfix callback_id duplication in client lib
4
+
1
5
  === 0.0.1 2013-05-29
2
6
 
3
7
  * first release
@@ -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
@@ -2,7 +2,7 @@ module EM
2
2
  module RocketIO
3
3
  module Linda
4
4
  class Client
5
- VERSION = "0.0.1"
5
+ VERSION = "0.0.2"
6
6
  end
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: em-rocketio-linda-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto