clumpy 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,10 @@ module Clumpy
47
47
  end
48
48
 
49
49
  def cluster_options
50
- { values_threshold: options[:values_threshold] }
50
+ {
51
+ values_threshold: options[:values_threshold],
52
+ include_values: options[:include_values]
53
+ }
51
54
  end
52
55
 
53
56
  def cluster_class
@@ -1,3 +1,3 @@
1
1
  module Clumpy
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -24,8 +24,8 @@ describe Clumpy::Builder do
24
24
  end
25
25
 
26
26
  it "passes the values threshold through to the cluster" do
27
- builder = Clumpy::Builder.new([point1], values_threshold: 100)
28
- builder.cluster_options.should eq({ values_threshold: 100 })
27
+ builder = Clumpy::Builder.new([point1], values_threshold: 100, include_values: true)
28
+ builder.cluster_options.should eq({ values_threshold: 100, include_values: true })
29
29
  clusters = builder.cluster
30
30
  clusters.first.instance_variable_get(:@options).should eq builder.cluster_options
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clumpy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -113,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  segments:
115
115
  - 0
116
- hash: 2390143742544744460
116
+ hash: 3119910671482455644
117
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  segments:
124
124
  - 0
125
- hash: 2390143742544744460
125
+ hash: 3119910671482455644
126
126
  requirements: []
127
127
  rubyforge_project:
128
128
  rubygems_version: 1.8.25