rVM 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -1 +0,0 @@
1
-
data/lib/rvm.rb CHANGED
@@ -1,7 +1,7 @@
1
- require 'rvm/base/interpreter'
2
- require 'rvm/base/classes'
3
- require 'rvm/base/functions'
4
- require 'rvm/base/languages'
1
+ require 'rvm/interpreter'
2
+ require 'rvm/classes'
3
+ require 'rvm/functions'
4
+ require 'rvm/languages'
5
5
  #This is the rVM Library
6
6
  module RVM
7
7
  class << self
@@ -19,7 +19,7 @@ module RVM
19
19
  module Classes
20
20
 
21
21
  extend PluginHost
22
- plugin_path File.dirname(__FILE__), '../classes/'
22
+ plugin_path File.dirname(__FILE__), '/classes/'
23
23
  default :string
24
24
  # The Parent for new classes, meant never to be used alone.
25
25
  # It takes care of registering the calss to the PluginHost,
@@ -64,19 +64,13 @@ module RVM
64
64
  true
65
65
  end
66
66
 
67
- alias method_missing_old method_missing
68
- alias respond_to_old respond_to?
69
-
70
- # Implements a fallcback to allow use of function plugins within classes.
71
- def respond_to?(symbol,include_private = false)
72
- respond_to_old(symbol,include_private)
73
- end
67
+ alias method_missing_old_classes method_missing
74
68
 
75
69
  def method_missing(m, *args)
76
70
  if (RVM::Functions.has? m)
77
71
  RVM::Functions[m].execute args, @env
78
72
  else
79
- method_missing_old m, *args
73
+ method_missing_old_classes m, *args
80
74
  end
81
75
  end
82
76
 
@@ -1,4 +1,3 @@
1
- require 'lib/base/classes'
2
1
  module RVM
3
2
  module Classes
4
3
  class List < Array
@@ -1,4 +1,4 @@
1
- module RVM
1
+ module RVM
2
2
  module Classes
3
3
  class Number < Class
4
4
  register_for :number
@@ -43,7 +43,7 @@ module RVM
43
43
  def value
44
44
  @value
45
45
  end
46
-
46
+
47
47
  def respond_to?(symbol,include_private = false)
48
48
  super(symbol,include_private)
49
49
  end
@@ -67,4 +67,4 @@ module RVM
67
67
  end
68
68
  end
69
69
  end
70
- end
70
+ end
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/interpreter'
3
3
  module RVM
4
4
  module Functions
5
5
  extend PluginHost
6
- plugin_path File.dirname(__FILE__), '../functions/*/'
6
+ plugin_path File.dirname(__FILE__), '/functions/*/'
7
7
  class Function
8
8
  extend Plugin
9
9
  plugin_host Functions
@@ -22,7 +22,7 @@ module RVM
22
22
  # code = RVM::Classes[:math].compile '(1 + 1) * 3^2'
23
23
  module Languages
24
24
  extend PluginHost
25
- plugin_path File.dirname(__FILE__), '../languages'
25
+ plugin_path File.dirname(__FILE__), '/languages'
26
26
 
27
27
  # The Compiler class, it holds the compiler. As those grow big I suggest
28
28
  # to split the actuall code into multiple fils. Have a look at the MUSHCode
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rVM
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
  - Heinz N. Gies
@@ -23,12 +23,6 @@ extra_rdoc_files:
23
23
  - README
24
24
  files:
25
25
  - lib/rvm
26
- - lib/rvm/base
27
- - lib/rvm/base/classes.rb
28
- - lib/rvm/base/functions.rb
29
- - lib/rvm/base/interpreter.rb
30
- - lib/rvm/base/languages.rb
31
- - lib/rvm/base/plugin.rb
32
26
  - lib/rvm/classes
33
27
  - lib/rvm/classes/block.rb
34
28
  - lib/rvm/classes/boolean.rb
@@ -36,6 +30,7 @@ files:
36
30
  - lib/rvm/classes/list.rb
37
31
  - lib/rvm/classes/number.rb
38
32
  - lib/rvm/classes/string.rb
33
+ - lib/rvm/classes.rb
39
34
  - lib/rvm/functions
40
35
  - lib/rvm/functions/list
41
36
  - lib/rvm/functions/list/align.rb
@@ -58,12 +53,16 @@ files:
58
53
  - lib/rvm/functions/string/ljust.rb
59
54
  - lib/rvm/functions/string/regmatch.rb
60
55
  - lib/rvm/functions/string/rjust.rb
56
+ - lib/rvm/functions.rb
57
+ - lib/rvm/interpreter.rb
61
58
  - lib/rvm/languages
62
59
  - lib/rvm/languages/math
63
60
  - lib/rvm/languages/math/compiler.rb
64
61
  - lib/rvm/languages/math/tokenizer.rb
65
62
  - lib/rvm/languages/math/tree.rb
66
63
  - lib/rvm/languages/math.rb
64
+ - lib/rvm/languages.rb
65
+ - lib/rvm/plugin.rb
67
66
  - lib/rvm.rb
68
67
  - README
69
68
  has_rdoc: true