rubyfca 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/bin/rubyfca +1 -1
  3. data/lib/rubyfca.rb +3 -3
  4. data/rubyfca.gemspec +3 -3
  5. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
data/bin/rubyfca CHANGED
@@ -72,7 +72,7 @@ end
72
72
  # context data is converted to a hash table
73
73
  #
74
74
  begin
75
- ctxt = FormalContext.new(inputdata, opts[:full])
75
+ ctxt = FormalContext.new(inputdata, !opts[:full])
76
76
  ctxt.calcurate
77
77
  # rescue => e
78
78
  # puts e
data/lib/rubyfca.rb CHANGED
@@ -39,7 +39,7 @@ end
39
39
  class FormalContext
40
40
 
41
41
  ## Converte cxt data to three basic structures of objects, attributes, and matrix
42
- def initialize(input, label_contraction = true)
42
+ def initialize(input, label_contraction = false)
43
43
  if input.size == 0
44
44
  showerror("File is empty", 1)
45
45
  end
@@ -309,7 +309,7 @@ class FormalContext
309
309
  attrfull = []
310
310
  0.upto(@gammaM.size - 1) do |j|
311
311
  if @gammaM[j][i] == 2
312
- obj = opts[:full] ? @objects[j] + " " + [0x261C].pack("U") : @objects[j]
312
+ obj = opts[:full] ? @objects[j] + " " + [0x261C].pack("U") : @objects[j]
313
313
  objfull << obj
314
314
  elsif @gammaM[j][i] == 1
315
315
  objfull << @objects[j]
@@ -317,7 +317,7 @@ class FormalContext
317
317
  end
318
318
  0.upto(@muM.size - 1) do |k|
319
319
  if @muM[k][i] == 2
320
- att = opts[:full] ? @attributes[k] + " " + [0x261C].pack("U") : @attributes[k]
320
+ att = opts[:full] ? @attributes[k] + " " + [0x261C].pack("U") : @attributes[k]
321
321
  attrfull << att
322
322
  elsif @muM[k][i] == 1
323
323
  attrfull << @attributes[k]
data/rubyfca.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rubyfca}
8
- s.version = "0.2.4"
9
-
8
+ s.version = "0.2.5"
9
+ s.required_ruby_version = "=1.8.7"
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Yoichiro Hasebe", "Kow Kuroda"]
12
- s.date = %q{2009-09-04}
12
+ s.date = %q{2009-09-14}
13
13
  s.default_executable = %q{rubyfca}
14
14
  s.description = %q{Command line Formal Concept Ananlysis (FCA) tool written in Ruby}
15
15
  s.email = %q{yohasebe@gmail.com}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyfca
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoichiro Hasebe
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-09-04 00:00:00 +09:00
13
+ date: 2009-09-14 00:00:00 +09:00
14
14
  default_executable: rubyfca
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -58,9 +58,9 @@ require_paths:
58
58
  - lib
59
59
  required_ruby_version: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
61
+ - - "="
62
62
  - !ruby/object:Gem::Version
63
- version: "0"
63
+ version: 1.8.7
64
64
  version:
65
65
  required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  requirements: