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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 718a5c9b332f2c0cb922fce8816cdeb5fa057d5d
4
- data.tar.gz: 075fac4368ae5df6999c87d8ee82539892677047
3
+ metadata.gz: db671bc38e7cc058d96a3a85a564913346f92da7
4
+ data.tar.gz: 5131878d519a7934f314275076f98f0ade0d0d72
5
5
  SHA512:
6
- metadata.gz: d579c334b9a3e510319ee43eb398d59ffed8f1996c0a1cf0ad243ab692db72752c9799bcbff26d066282e79e5a6e418c4d63bf1df6378076f1e8068bbbcde264
7
- data.tar.gz: ef40667cd83672aabc2c6bb982df44eed232a9846c2052d170ec8d8515ce726acbb41931afac8d50e04b3b1bb42b410626a1226d20cdfef6ced52160a3e26527
6
+ metadata.gz: a94b0218a75e4432c129905ce14b98f9aba6ed09ccd4d27c68368981f797254b1410b26f015c9f8ffc63cf1bc65efadf9a7c0f4036ec09abd72d35cefcb71669
7
+ data.tar.gz: f536534f55415d7f197ba7da30e68eab6833c3cfd92ee9c524964203977813b4c22f788643efd397441a6144227f565cd70bee99b0a38520e8f1b25dfdc9ab2f
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.2.2 2013-08-07
2
+
3
+ * add ibb command
4
+ * bugfix baba command
5
+
1
6
  === 0.2.1 2013-07-04
2
7
 
3
8
  * fix baba-vm
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
- puts BabaScript::Baba.instance_eval args[:e]
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
@@ -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]
@@ -1,3 +1,3 @@
1
1
  module BabaScript
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-07-04 00:00:00.000000000 Z
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.3
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