eurydice 1.2.4-java → 1.2.5-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/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eurydice (1.2.4-java)
4
+ eurydice (1.2.5-java)
5
5
  pelops-jars (>= 1.3.0)
6
6
 
7
7
  GEM
@@ -51,11 +51,13 @@ module Eurydice
51
51
  def empty_pelops_bytes
52
52
  ::Pelops::Bytes::EMPTY
53
53
  end
54
-
54
+
55
+ BYTES_FROM_LONG_METHOD = ::Pelops::Bytes.java_method(:fromLong, [Java::long])
56
+
55
57
  def to_pelops_bytes(obj, type=nil)
56
58
  case type
57
59
  when :long
58
- ::Pelops::Bytes.from_long(obj)
60
+ BYTES_FROM_LONG_METHOD.call(obj)
59
61
  else
60
62
  ::Pelops::Bytes.new(obj.to_s.to_java_bytes)
61
63
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
 
4
4
  module Eurydice
5
- VERSION = '1.2.4'
5
+ VERSION = '1.2.5'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eurydice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
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: 2013-05-13 00:00:00.000000000 Z
12
+ date: 2013-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: pelops-jars