jruby_coercion 0.0.4-java → 0.0.5-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,9 @@ module ::JrubyCoercion::RubyToJava
31
31
  new_type_registry[mapped_to] = DEFAULT_CONVERTER
32
32
  end
33
33
 
34
+ # Class should include Coercable
35
+ from_type.__send__(:include, ::JrubyCoercion::Coercable)
36
+
34
37
  return new_type_registry
35
38
  end
36
39
  end
@@ -39,8 +42,6 @@ end
39
42
 
40
43
  # Setup default mappings for jruby
41
44
  ::JrubyCoercion::RubyToJava::Registry::DEFAULT_TYPE_MAP.each do |ruby_type, java_type|
42
- ruby_type.__send__(:include, ::JrubyCoercion::Coercable)
43
-
44
45
  ::JrubyCoercion::RubyToJava::Registry.register_converter(ruby_type,
45
46
  java_type,
46
47
  ::JrubyCoercion::RubyToJava::Registry::DEFAULT_CONVERTER)
@@ -1,3 +1,3 @@
1
1
  module JrubyCoercion
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby_coercion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: java
7
7
  authors: