kmeans 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- # encoding: utf-8
1
+ # -*- mode: ruby; coding: utf-8 -*-
2
2
 
3
3
  require 'rubygems'
4
4
 
@@ -12,7 +12,7 @@ task :spec do
12
12
  end
13
13
  end
14
14
 
15
- unless /^1\.8\./ =~ RUBY_VERSION
15
+ if RUBY_VERSION >= '1.9.0'
16
16
  desc "Run RSpec code examples with simplecov"
17
17
  task :simplecov do
18
18
  ENV['COVERAGE'] = "on"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -1,3 +1,8 @@
1
+ === 0.0.9 / 2013-07-04
2
+
3
+ * Fix bug of cluster nil name.
4
+
5
+
1
6
  === 0.0.8 / 2013-03-19
2
7
 
3
8
  * Correspond to string or nil included hash.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "kmeans"
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["id774"]
12
- s.date = "2013-03-19"
12
+ s.date = "2013-07-04"
13
13
  s.description = "K-means clustering"
14
14
  s.email = "idnanashi@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -2,7 +2,7 @@
2
2
  # -*- coding: utf-8 -*-
3
3
 
4
4
  module Kmeans
5
- VERSION = "0.0.8"
5
+ VERSION = "0.0.9"
6
6
  require File.dirname(__FILE__) + "/kmeans/pair"
7
7
  require File.dirname(__FILE__) + "/kmeans/pearson"
8
8
  require File.dirname(__FILE__) + "/kmeans/cluster"
@@ -26,7 +26,7 @@ module Kmeans
26
26
  @out << "-\n"
27
27
  else
28
28
  if labels == nil
29
- @out << clust.id + "\n"
29
+ @out << clust.id.to_s + "\n"
30
30
  else
31
31
  @out << labels[clust.id] + "\n"
32
32
  end
@@ -5,6 +5,8 @@
5
5
  #
6
6
  # Maintainer: id774 <idnanashi@gmail.com>
7
7
  #
8
+ # v1.2 4/17,2013
9
+ # Using simplecov for coverage.
8
10
  # v1.1 3/14,2013
9
11
  # Show ruby version.
10
12
  # v1.0 3/16,2012
@@ -18,7 +20,7 @@ kickstart() {
18
20
  }
19
21
 
20
22
  run_tests() {
21
- rake spec
23
+ rake simplecov
22
24
  }
23
25
 
24
26
  main() {
@@ -5,7 +5,7 @@ require File.dirname(__FILE__) + '/../spec_helper'
5
5
  describe Kmeans do
6
6
  context 'のバージョンを参照した場合' do
7
7
  it "バージョンが正しく表示される" do
8
- expect = '0.0.8'
8
+ expect = '0.0.9'
9
9
  Kmeans.const_get(:VERSION).should be_true
10
10
  Kmeans.const_get(:VERSION).should == expect
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kmeans
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
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: 2013-03-19 00:00:00.000000000 Z
12
+ date: 2013-07-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber