bind-it 0.2.5-java → 0.2.6-java

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -51,9 +51,7 @@ module MyBindings
51
51
  # Will search for class in default_namespace.
52
52
  ['MyClass'],
53
53
  # Supply a non-default namespace.
54
- ['MyClass', 'path.to.namespace'],
55
- # Rename the Java class in Ruby.
56
- ['MyClass', 'path.to.namespace', 'MyClass2']
54
+ ['MyClass', 'path.to.namespace']
57
55
  ]
58
56
 
59
57
  # Load the default JARs and classes.
@@ -67,4 +65,4 @@ obj = MyBindings::MyClass.new
67
65
 
68
66
  **Contributing**
69
67
 
70
- Feel free to fork the project and send me a pull request!
68
+ Feel free to fork the project and send me a pull request!
@@ -1,7 +1,7 @@
1
1
  # BindIt is a tool to facilitate the creation of Java bindings in Ruby.
2
2
  module BindIt
3
3
 
4
- VERSION = '0.2.5'
4
+ VERSION = '0.2.6'
5
5
  require 'bind-it/binding'
6
6
 
7
7
  end
@@ -28,6 +28,9 @@ module BindIt::RjbProxy
28
28
  # Bug fix for Rjb, which sometimes fails to
29
29
  # un-camel-case methods in the method_missing handler.
30
30
  def method_missing(sym, *args, &block)
31
+ if [:to_int, :to_hash, :to_path, :to_str, :to_ary].include?(sym)
32
+ super(sym, *args, &block)
33
+ end
31
34
  sym = sym.to_s.gsub(/^[a-z]|_[a-z]/) do |a|
32
35
  a.upcase
33
36
  end.gsub('_', '').tap { |s| s[0] = s[0].downcase }
@@ -36,4 +39,4 @@ module BindIt::RjbProxy
36
39
 
37
40
  end
38
41
 
39
- end
42
+ 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.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: java
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-26 00:00:00.000000000 Z
12
+ date: 2013-01-07 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. '