bind-it 0.2.2-java → 0.2.3-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -2,14 +2,14 @@
|
|
2
2
|
name: bind-it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.3
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- Louis Mullie
|
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
|
description: ! ' BindIt is a thin wrapper over the Ruby-Java-Bridge (Rjb) to facilitate
|
15
15
|
the creation of Java bindings in Ruby. '
|