libsvmloader 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: feb8cd299e4b1221e3c6cb4c2d2b006890f70a55
4
- data.tar.gz: 99e4bcd0831930025f00bf00b72cc8063ea22a96
3
+ metadata.gz: a02d403d7d0960462edd290a33ac4b41c3aea2db
4
+ data.tar.gz: fd5fa99a1dd15d76c60c2dcf5ef2361f92fc5e65
5
5
  SHA512:
6
- metadata.gz: a0a83f69953b4fabebde09baff9e674723d8e2c05960caf3d390a6cacb520b077bdc515d27a2dc63c60e21720ced6569ce5151fef477df0472301231406101cd
7
- data.tar.gz: 4da38d07e12770f2072837c34545398d41ad77f6b15d2e6f94805b2f236dd5e39d76acb2b6319ff4a6b99213a943bdd83e2c2796404b14719815e72dfca3f2ac
6
+ metadata.gz: 44400787b97fd5933c36c23b83458ff9628d38829f7e12479aec87425adf6a88312bebc769ad7f89dd1f1fcade3fe785772e97dbb39d54ba075c6a7410dd4404
7
+ data.tar.gz: d1d336f24796652fdf203dc773853403cc980ccfc4f3c02e7e7da476e669be2cdbeb5c4bf076c72ad7ce1160dff4fb74a3dbff966e399efd4d2fd32767eb6738
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.3
2
+ - Changed the visibility of protected methods to the private.
3
+ - Fixed the description in the gemspec file.
4
+
1
5
  # 0.1.2
2
6
  - Changed the way to read a file.
3
7
 
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # LibSVMLoader
2
2
 
3
+ [![Build Status](https://travis-ci.org/yoshoku/LibSVMLoader.svg?branch=master)](https://travis-ci.org/yoshoku/LibSVMLoader)
4
+ [![Gem Version](https://badge.fury.io/rb/libsvmloader.svg)](https://badge.fury.io/rb/libsvmloader)
5
+ [![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/yoshoku/LibSVMLoader/blob/master/LICENSE.txt)
6
+
3
7
  LibSVMLoader loads (and dumps) dataset file with the libsvm file format.
4
8
 
5
9
  ## Installation
@@ -48,7 +48,7 @@ class LibSVMLoader
48
48
  end
49
49
  end
50
50
 
51
- protected
51
+ private
52
52
 
53
53
  def parse_libsvm_line(line, zero_based)
54
54
  tokens = line.split
@@ -1,3 +1,3 @@
1
1
  class LibSVMLoader
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
@@ -1,27 +1,36 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path("../lib", __FILE__)
2
+ lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "libsvmloader/version"
4
+ require 'libsvmloader/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "libsvmloader"
7
+ spec.name = 'libsvmloader'
8
8
  spec.version = LibSVMLoader::VERSION
9
- spec.authors = ["yoshoku"]
10
- spec.email = ["yoshoku@outlook.com"]
9
+ spec.authors = ['yoshoku']
10
+ spec.email = ['yoshoku@outlook.com']
11
11
 
12
- spec.summary = %q{LibSVMLoader loads (and dumps) dataset file with the libsvm file format.}
13
- spec.homepage = "https://github.com/yoshoku/libsvmloader"
14
- spec.license = "MIT"
12
+ spec.summary = <<MSG
13
+ LibSVMLoader loads (and dumps) dataset file with the libsvm file format.
14
+ MSG
15
+ spec.description = <<MSG
16
+ LibSVMLoader is a class that loads (and dumps) dataset file with the libsvm file format.
17
+ The sample matrix for feature vectors and target vector for labels are represented by the NMatrix format.
18
+ MSG
19
+ spec.homepage = 'https://github.com/yoshoku/libsvmloader'
20
+ spec.license = 'MIT'
15
21
 
16
22
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
23
  f.match(%r{^(test|spec|features)/})
18
24
  end
19
- spec.bindir = "exe"
25
+ spec.bindir = 'exe'
20
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
- spec.require_paths = ["lib"]
27
+ spec.require_paths = ['lib']
22
28
 
23
- spec.add_development_dependency "bundler", "~> 1.15"
24
- spec.add_development_dependency "rake", "~> 10.0"
25
- spec.add_development_dependency "rspec", "~> 3.0"
26
- spec.add_development_dependency "nmatrix", "~> 0.2.3"
29
+ spec.required_ruby_version = '>= 2.1'
30
+
31
+ spec.add_runtime_dependency 'nmatrix', '~> 0.2.3'
32
+
33
+ spec.add_development_dependency 'bundler', '~> 1.15'
34
+ spec.add_development_dependency 'rake', '~> 10.0'
35
+ spec.add_development_dependency 'rspec', '~> 3.0'
27
36
  end
metadata CHANGED
@@ -1,72 +1,74 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libsvmloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-07 00:00:00.000000000 Z
11
+ date: 2018-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: nmatrix
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.15'
20
- type: :development
19
+ version: 0.2.3
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.15'
26
+ version: 0.2.3
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '1.15'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '1.15'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rspec
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.0'
47
+ version: '10.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.0'
54
+ version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: nmatrix
56
+ name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.3
61
+ version: '3.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.3
69
- description:
68
+ version: '3.0'
69
+ description: |
70
+ LibSVMLoader is a class that loads (and dumps) dataset file with the libsvm file format.
71
+ The sample matrix for feature vectors and target vector for labels are represented by the NMatrix format.
70
72
  email:
71
73
  - yoshoku@outlook.com
72
74
  executables:
@@ -102,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
104
  requirements:
103
105
  - - ">="
104
106
  - !ruby/object:Gem::Version
105
- version: '0'
107
+ version: '2.1'
106
108
  required_rubygems_version: !ruby/object:Gem::Requirement
107
109
  requirements:
108
110
  - - ">="
@@ -110,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
112
  version: '0'
111
113
  requirements: []
112
114
  rubyforge_project:
113
- rubygems_version: 2.6.13
115
+ rubygems_version: 2.4.5.4
114
116
  signing_key:
115
117
  specification_version: 4
116
118
  summary: LibSVMLoader loads (and dumps) dataset file with the libsvm file format.