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.
- data/Empact-hierclust.gemspec +1 -1
- data/History.txt +5 -0
- data/VERSION +1 -1
- data/lib/hierclust/point.rb +2 -0
- metadata +3 -3
data/Empact-hierclust.gemspec
CHANGED
@@ -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.
|
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
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/hierclust/point.rb
CHANGED
@@ -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:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brandt Kurowski
|