rbml 0.0.5.9.3 → 0.0.5.9.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  cli :name=>"happycli", :prompt=>"^_^ " do
2
- set :unknown_command do |args|
3
- puts "unknown command"
2
+ set :unknown_command do |method, args|
3
+ puts "unknown command: called #{method} with #{args}"
4
4
  end
5
5
 
6
6
  set :com do |args|
data/languages/cli/cli.rb CHANGED
@@ -20,7 +20,7 @@ module Rbml
20
20
  begin
21
21
  args.empty? ? DEFINITION.fetch(method)[nil] : DEFINITION.fetch(method)[args]
22
22
  rescue
23
- DEFINITION.fetch("unknown_command")[args]
23
+ DEFINITION.fetch("unknown_command")[method, args]
24
24
  ensure
25
25
  puts "\n"
26
26
  end
data/lib/rbml.rb CHANGED
@@ -2,7 +2,7 @@ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)) + "/../languages")
2
2
  $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Rbml
5
- VERSION = '0.0.5.9.3'
5
+ VERSION = '0.0.5.9.3.1'
6
6
  end
7
7
  require 'extensions/kernel'
8
8
  require 'extensions/primitives'
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: rbml
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.5.9.3
7
- date: 2007-05-01 00:00:00 -04:00
6
+ version: 0.0.5.9.3.1
7
+ date: 2007-05-02 00:00:00 -04:00
8
8
  summary: Rbml is a dsl framework for writing other languages in ruby
9
9
  require_paths:
10
10
  - lib