babascript 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +5 -0
- data/babascript.gemspec +2 -2
- data/bin/baba +4 -2
- data/bin/ibb +18 -0
- data/lib/babascript/baba.rb +4 -0
- data/lib/babascript/version.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db671bc38e7cc058d96a3a85a564913346f92da7
|
4
|
+
data.tar.gz: 5131878d519a7934f314275076f98f0ade0d0d72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a94b0218a75e4432c129905ce14b98f9aba6ed09ccd4d27c68368981f797254b1410b26f015c9f8ffc63cf1bc65efadf9a7c0f4036ec09abd72d35cefcb71669
|
7
|
+
data.tar.gz: f536534f55415d7f197ba7da30e68eab6833c3cfd92ee9c524964203977813b4c22f788643efd397441a6144227f565cd70bee99b0a38520e8f1b25dfdc9ab2f
|
data/History.txt
CHANGED
data/babascript.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'babascript/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "babascript"
|
8
8
|
spec.version = BabaScript::VERSION
|
9
|
-
spec.authors = ["Sho Hashimoto"]
|
10
|
-
spec.email = ["hashimoto@shokai.org"]
|
9
|
+
spec.authors = ["Sho Hashimoto", "Takumi Baba"]
|
10
|
+
spec.email = ["hashimoto@shokai.org", "contact@mail.takumibaba.com"]
|
11
11
|
spec.description = %q{BabaScript is a script launguage which runs on @takumibaba}
|
12
12
|
spec.summary = spec.description
|
13
13
|
spec.homepage = "https://github.com/masuilab/babascript"
|
data/bin/baba
CHANGED
@@ -28,11 +28,13 @@ end
|
|
28
28
|
|
29
29
|
if args.has_param? :e
|
30
30
|
puts args[:e]
|
31
|
-
|
31
|
+
BabaScript.baba do
|
32
|
+
puts instance_eval args[:e]
|
33
|
+
end
|
32
34
|
else
|
33
35
|
args.argv.each do |fname|
|
34
36
|
File.open(fname) do |f|
|
35
37
|
BabaScript::Baba.run f.read
|
36
38
|
end
|
37
39
|
end
|
38
|
-
end
|
40
|
+
end
|
data/bin/ibb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rubygems'
|
3
|
+
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
|
4
|
+
require 'babascript'
|
5
|
+
load "#{ENV['HOME']}/.ibbrc" if File.exists? "#{ENV['HOME']}/.ibbrc"
|
6
|
+
|
7
|
+
BabaScript.baba do
|
8
|
+
STDERR.puts "BabaScript v#{BabaScript::VERSION} - ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
9
|
+
print "[IBB] > "
|
10
|
+
while line = STDIN.gets do
|
11
|
+
line.strip!
|
12
|
+
unless line.empty?
|
13
|
+
puts "(waiting response)"
|
14
|
+
p instance_eval line
|
15
|
+
end
|
16
|
+
print "[IBB] > "
|
17
|
+
end
|
18
|
+
end
|
data/lib/babascript/baba.rb
CHANGED
@@ -28,6 +28,10 @@ module BabaScript
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.method_missing(name, *args)
|
31
|
+
self.exec name, *args
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.exec(name, *args)
|
31
35
|
cid = __create_callback_id
|
32
36
|
tuple = [:babascript, :eval, name, args, {:callback => cid}]
|
33
37
|
ts = linda.tuplespace[BabaScript.LINDA_SPACE]
|
data/lib/babascript/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: babascript
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
8
|
+
- Takumi Baba
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: em-rocketio-linda-client
|
@@ -83,9 +84,11 @@ dependencies:
|
|
83
84
|
description: BabaScript is a script launguage which runs on @takumibaba
|
84
85
|
email:
|
85
86
|
- hashimoto@shokai.org
|
87
|
+
- contact@mail.takumibaba.com
|
86
88
|
executables:
|
87
89
|
- baba
|
88
90
|
- baba-vm
|
91
|
+
- ibb
|
89
92
|
extensions: []
|
90
93
|
extra_rdoc_files: []
|
91
94
|
files:
|
@@ -98,6 +101,7 @@ files:
|
|
98
101
|
- babascript.gemspec
|
99
102
|
- bin/baba
|
100
103
|
- bin/baba-vm
|
104
|
+
- bin/ibb
|
101
105
|
- lib/babascript.rb
|
102
106
|
- lib/babascript/baba.rb
|
103
107
|
- lib/babascript/version.rb
|
@@ -124,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
128
|
version: '0'
|
125
129
|
requirements: []
|
126
130
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.0.
|
131
|
+
rubygems_version: 2.0.5
|
128
132
|
signing_key:
|
129
133
|
specification_version: 4
|
130
134
|
summary: BabaScript is a script launguage which runs on @takumibaba
|