buncher 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/buncher.rb +3 -3
- metadata +2 -5
data/lib/buncher.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'buncher/buncher'
|
2
2
|
module Buncher
|
3
|
-
VERSION = "1.0.
|
3
|
+
VERSION = "1.0.13"
|
4
4
|
# your cluster needs to look like this. Make a bunch of them and pass them in. It's ok to pass in empty elements to start.
|
5
5
|
class Cluster
|
6
6
|
attr_accessor :elements
|
@@ -86,8 +86,8 @@ module Buncher
|
|
86
86
|
end
|
87
87
|
solutions.select! {|min_fK| min_fK <= 0.85}
|
88
88
|
min_fKs =solutions.keys.sort[0...plausable] || [1.0]
|
89
|
-
if options[:plausable]
|
90
|
-
solutions.select {|key| min_fKs.include?(key)}
|
89
|
+
if options[:plausable] && !min_fKs.empty?
|
90
|
+
solutions.select {|key| min_fKs.include?(key)}.sort
|
91
91
|
elsif !min_fKs.empty?
|
92
92
|
solutions[min_fKs.first]
|
93
93
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buncher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|
@@ -231,9 +231,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
231
231
|
- - ! '>='
|
232
232
|
- !ruby/object:Gem::Version
|
233
233
|
version: '0'
|
234
|
-
segments:
|
235
|
-
- 0
|
236
|
-
hash: 630999455354425102
|
237
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
238
235
|
none: false
|
239
236
|
requirements:
|