jruby-scala-collections-scala2.11 0.1.6-java → 0.1.7-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/jruby/scala_support.rb +3 -2
  2. metadata +2 -2
@@ -1,6 +1,7 @@
1
1
  require 'jruby'
2
2
  require 'set'
3
3
  require 'ext/collections.jar'
4
+ require 'java'
4
5
 
5
6
  module JRuby::ScalaSupport
6
7
  class ImmutableException < StandardError; end
@@ -159,7 +160,7 @@ module JRuby::ScalaSupport
159
160
  private
160
161
  def real_map
161
162
  case @raw
162
- when scala.collection.Map::WithDefault then @raw.send(:underlying)
163
+ when Java::scala.collection.Map::WithDefault then @raw.send(:underlying)
163
164
  else @raw
164
165
  end
165
166
  end
@@ -213,7 +214,7 @@ module JRuby::ScalaSupport
213
214
 
214
215
  def new(default_value=nil, &default_block)
215
216
  raise ArgumentError, "You can only provide either a default value or a block" if default_value && default_block
216
- h = scala.collection.mutable.HashMap.new
217
+ h = Java::scala.collection.mutable.HashMap.new
217
218
  if default_block
218
219
  h = h.with_default {|k| default_block.call(h,k) }
219
220
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-scala-collections-scala2.11
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: java
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-04-28 00:00:00.000000000 Z
13
+ date: 2015-05-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake