bind-it 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/bind-it.rb +1 -1
- data/lib/bind-it/rjb_proxy.rb +11 -0
- metadata +2 -2
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
BindIt is a tool that allows to build platform-agnostic Ruby wrappers for JAVA code. The resulting bindings will work both on the JRuby and MRI platforms. On the MRI platform, BindIt uses the Ruby-Java-Bridge (Rjb) to access Java objects.
|
4
4
|
|
5
|
-
BindIt is tested on MRI Ruby 1.9.2 and 1.9.3, as well as JRuby 1.7.1.
|
5
|
+
BindIt is tested on MRI Ruby 1.9.2 and 1.9.3, as well as JRuby 1.6.7.2 and 1.7.1.
|
6
6
|
|
7
7
|
**Installing**
|
8
8
|
|
data/lib/bind-it.rb
CHANGED
data/lib/bind-it/rjb_proxy.rb
CHANGED
@@ -23,6 +23,17 @@ module BindIt::RjbProxy
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
+
alias :old_method_missing :method_missing
|
27
|
+
|
28
|
+
# Bug fix for Rjb, which sometimes fails to
|
29
|
+
# un-camel-case methods in the method_missing handler.
|
30
|
+
def method_missing(sym, *args, &block)
|
31
|
+
sym = sym.to_s.gsub(/^[a-z]|_[a-z]/) do |a|
|
32
|
+
a.upcase
|
33
|
+
end.gsub('_', '').tap { |s| s[0] = s[0].downcase }
|
34
|
+
old_method_missing(sym.intern,*args,&block)
|
35
|
+
end
|
36
|
+
|
26
37
|
end
|
27
38
|
|
28
39
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bind-it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-12-
|
12
|
+
date: 2012-12-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rjb
|