babascript 0.3.0 → 0.3.1

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: a293bf20186ddf403fc4022f152840758f7f5b81
4
- data.tar.gz: d5bbc70c8519861c00a77a7e723a8cae27ba8a1e
3
+ metadata.gz: 5463775290d79ff10698593b08451606b7d4ac09
4
+ data.tar.gz: 996d2fb316f5c5e011a0811f43178b26c17f3b82
5
5
  SHA512:
6
- metadata.gz: 63efbea184e3b2cf66ac5dbb0a068cc6db2099a260092bc4edd87f94d40bde0a5ec70e25d5b0612a52c8a8565e16fa0f4d8ac0eb2a1d64decc1ed8a8f235a3ca
7
- data.tar.gz: a8b7f2692fbda07a7865b5e7fba70e180436b4cdc1dda2e76b6bb004e8afb567dfaaffb037529eac4e0159f3c85bfd6dab36cc83d7ef4a251da4e97fa45be533
6
+ metadata.gz: 3521e611442e9a59353f66b08b8f1f1e163160978244267efa578e25de08cb5143b65f44618e8eb04f47e9975f707a6ecac2c690fe1b96b8438abc50883cc8be
7
+ data.tar.gz: 8748617ea93465e5910c66563febb2347273ea44092c39e5ab8b7f3e209845d7c3284e407e75f94fa9d6f9be91030f635ce3d635b38bb8666f2644c43e0ed9c4
@@ -1,3 +1,7 @@
1
+ === 0.3.1 2013-10-06
2
+
3
+ * update for Linda protocol v1.0.0
4
+
1
5
  === 0.3.0 2013-09-22
2
6
 
3
7
  * select TupleSpace in "BabaScript.baba do"
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "em-rocketio-linda-client"
21
+ spec.add_dependency "em-rocketio-linda-client", "~> 1.0"
22
22
  spec.add_dependency "json"
23
23
  spec.add_dependency "args_parser"
24
24
 
@@ -35,7 +35,7 @@ EM::run do
35
35
  ts = linda.tuplespace[ args[:space] ]
36
36
 
37
37
  def take_task_and_run(ts)
38
- ts.take [:babascript, :eval] do |tuple|
38
+ ts.take [:babascript, :eval] do |tuple, info|
39
39
  loop do
40
40
  print %Q{#{tuple[2]}(#{tuple[3].join(', ')}) >}
41
41
  line = STDIN.gets.strip
@@ -42,7 +42,7 @@ module BabaScript
42
42
  ts = linda.tuplespace[@space]
43
43
  ts.write tuple
44
44
  if block_given?
45
- ts.take [:babascript, :return, cid] do |result|
45
+ ts.take [:babascript, :return, cid] do |result, info|
46
46
  next if result.size < 4
47
47
  block.call result[3]
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module BabaScript
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -12,7 +12,7 @@ class TestBabaScript < MiniTest::Test
12
12
  linda = EM::RocketIO::Linda::Client.new base
13
13
  ts = linda.tuplespace[ space ]
14
14
  linda.io.once :connect do
15
- ts.take [:babascript, :eval] do |tuple|
15
+ ts.take [:babascript, :eval] do |tuple, info|
16
16
  tuple_ = tuple
17
17
  ts.write [:babascript, :return, tuple[4]["callback"], "ざんまい"]
18
18
  EM::add_timer 1 do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babascript
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-21 00:00:00.000000000 Z
12
+ date: 2013-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: em-rocketio-linda-client
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: '1.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: '1.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: json
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.0.5
149
+ rubygems_version: 2.1.5
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: BabaScript is a script launguage which runs on @takumibaba