Empact-hierclust 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{Empact-hierclust}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brandt Kurowski", "Ben Woosley"]
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.2.1 2010-11-01
2
+
3
+ * 1 minor enhancement
4
+ * Add Point#data, which is set to the options hash from the initializer
5
+
1
6
  == 0.2.0 2010-11-01
2
7
 
3
8
  * 1 major enhancement:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -3,9 +3,11 @@ module Hierclust
3
3
  class Point
4
4
  # x-coordinate
5
5
  attr_accessor :coordinates
6
+ attr_accessor :data
6
7
 
7
8
  # Create a new Point with the given coordinates.
8
9
  def initialize(*coordinates)
10
+ @data = coordinates.last.is_a?(Hash) ? coordinates.pop : {}
9
11
  @coordinates = coordinates
10
12
  end
11
13
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Empact-hierclust
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brandt Kurowski