dither 0.1.1-java → 0.1.2-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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5879b93dbdf86596a688c299f73d55b3753cff5
4
- data.tar.gz: e0f19fa64d4cffb7fb14b127a4aa75cdbe9f6cfd
3
+ metadata.gz: c582d7e985006e8d5b98303291257514d2f4c026
4
+ data.tar.gz: dba7a0e4fd1b60bf679da1ff87f6abf3b64763a9
5
5
  SHA512:
6
- metadata.gz: a12088d26a2e8470d50a77c6e85d50c6e517f6b50558a8ba94d75aaeed2a125792b1b7753da901553be4306ebdf1e595bbad3e953a6254b82d23914014d07066
7
- data.tar.gz: f2e4e2d01551c8295f3bd440b821fc213cb8af09e3a3cc970940cf4d546de62e565ea82dac5515942195d7d94aa3076166da01d8fd0b1dc3e8a6d73bdb41011a
6
+ metadata.gz: d7128598020a1cce2e6dfe984f87de5bc73c5f3e08e84b5b0655e4bdb5a5512a8b9ba2b74847a5ada27229a9e454416f695ccec696f3071a2af26019bfa40198
7
+ data.tar.gz: f40eb774516e42d9547904ef2cd25a392c3c4809f50c4f38861832111563dda0d703aff57c9987a319eed8dab4c6735676e7a568b108f40f56f1de344c739141
data/dither.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  if RUBY_PLATFORM =~ /java/
24
24
  s.platform = "java"
25
25
  # compile dither-java on jdk 7
26
- files << "lib/dither-0.1.0.jar"
26
+ files << "lib/dither-0.1.1.jar"
27
27
  end
28
28
  s.files = files
29
29
 
@@ -68,6 +68,9 @@ module Dither
68
68
 
69
69
  def filter
70
70
  return unless constraints
71
+ comb.first.each do |pair|
72
+ scratch[pair.i] = pair.j
73
+ end
71
74
  scratch.each_with_index do |e, i|
72
75
  scratch[i] = nil if constraints.any? { |a| a.in_test_case?(e) }
73
76
  end
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Dither
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
Binary file
data/lib/dither.rb CHANGED
@@ -46,7 +46,7 @@ require 'dither/aetg_pairwise'
46
46
 
47
47
  if RUBY_PLATFORM =~ /java/
48
48
  require 'java'
49
- require 'dither-0.1.0.jar'
49
+ require 'dither-0.1.1.jar'
50
50
 
51
51
  require 'dither/java_ext/dither'
52
52
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dither
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: java
6
6
  authors:
7
7
  - Jason Gowan
@@ -83,7 +83,7 @@ files:
83
83
  - spec/dither/chinese_postman_problem_spec.rb
84
84
  - spec/dither/dither_spec.rb
85
85
  - spec/spec_helper.rb
86
- - lib/dither-0.1.0.jar
86
+ - lib/dither-0.1.1.jar
87
87
  homepage: https://github.com/jesg/dither
88
88
  licenses:
89
89
  - MIT
data/lib/dither-0.1.0.jar DELETED
Binary file