BOAST 0.4 → 0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/BOAST.gemspec +2 -2
- data/lib/BOAST.rb +1 -0
- data/lib/BOAST/Algorithm.rb +0 -19
- data/lib/BOAST/Parens.rb +20 -0
- metadata +2 -1
data/BOAST.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'BOAST'
|
3
|
-
s.version = "0.
|
3
|
+
s.version = "0.5"
|
4
4
|
s.author = "Brice Videau"
|
5
5
|
s.email = "brice.videau@imag.fr"
|
6
6
|
s.homepage = "https://forge.imag.fr/projects/boast/"
|
7
7
|
s.summary = "BOAST is a computing kernel metaprogramming tool."
|
8
8
|
s.description = "BOAST aims at providing a framework to metaprogram, benchmark and validate computing kernels"
|
9
|
-
s.files = %w( BOAST.gemspec LICENSE lib/BOAST.rb lib/BOAST/Algorithm.rb lib/BOAST/CKernel.rb lib/BOAST/BOAST_OpenCL.rb lib/BOAST/Transitions.rb)
|
9
|
+
s.files = %w( BOAST.gemspec LICENSE lib/BOAST.rb lib/BOAST/Algorithm.rb lib/BOAST/CKernel.rb lib/BOAST/BOAST_OpenCL.rb lib/BOAST/Transitions.rb lib/BOAST/Parens.rb)
|
10
10
|
s.has_rdoc = true
|
11
11
|
s.license = 'BSD'
|
12
12
|
s.required_ruby_version = '>= 1.9.3'
|
data/lib/BOAST.rb
CHANGED
data/lib/BOAST/Algorithm.rb
CHANGED
@@ -1,22 +1,3 @@
|
|
1
|
-
class Object
|
2
|
-
alias_method :orig_method_missing, :method_missing
|
3
|
-
|
4
|
-
def method_missing(m, *a, &b)
|
5
|
-
s=nil
|
6
|
-
klass = begin
|
7
|
-
s = (self.is_a?(Module) ? self : self.class)
|
8
|
-
s.const_get(m)
|
9
|
-
rescue NameError
|
10
|
-
end
|
11
|
-
|
12
|
-
return klass.send(:parens, *a, &b) if klass.respond_to? :parens
|
13
|
-
|
14
|
-
return BOAST::FuncCall::new(m,*a,&b) if s == BOAST
|
15
|
-
|
16
|
-
orig_method_missing m, *a, &b
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
1
|
module BOAST
|
21
2
|
|
22
3
|
extend TypeTransition
|
data/lib/BOAST/Parens.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
class Object
|
2
|
+
alias_method :orig_method_missing, :method_missing
|
3
|
+
|
4
|
+
def method_missing(m, *a, &b)
|
5
|
+
#puts "WARNING: unknown #{m}"
|
6
|
+
s=nil
|
7
|
+
klass = begin
|
8
|
+
s = (self.is_a?(Module) ? self : self.class)
|
9
|
+
s.const_get(m)
|
10
|
+
rescue NameError
|
11
|
+
end
|
12
|
+
|
13
|
+
return klass.send(:parens, *a, &b) if klass.respond_to? :parens
|
14
|
+
|
15
|
+
return BOAST::FuncCall::new(m,*a,&b) if s == BOAST
|
16
|
+
|
17
|
+
orig_method_missing m, *a, &b
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: BOAST
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.5'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- lib/BOAST/CKernel.rb
|
74
74
|
- lib/BOAST/BOAST_OpenCL.rb
|
75
75
|
- lib/BOAST/Transitions.rb
|
76
|
+
- lib/BOAST/Parens.rb
|
76
77
|
homepage: https://forge.imag.fr/projects/boast/
|
77
78
|
licenses:
|
78
79
|
- BSD
|