fuzzyrb 1.2.1 → 1.2.2

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.
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ == 1.2.2 / 2007-11-19
2
+
3
+ * Bugfix: little changes in test, so now they can be run in any of the ways:
4
+ % rake hoe:test
5
+ % ruby test/fuzzy_test.rb
6
+ % autotest (if you have zentest installed of course)
7
+
1
8
  == 1.2.1 / 2007-11-19
2
9
 
3
10
  * Bugfix: example has not included Fuzzyrb module.
data/Manifest.txt CHANGED
@@ -10,7 +10,7 @@ lib/fuzzy_rule.rb
10
10
  lib/fuzzy_set.rb
11
11
  lib/line.rb
12
12
  lib/point.rb
13
- test/test_fuzzy.rb
13
+ test/fuzzy_test.rb
14
14
  test/test_fuzzy_implication.rb
15
15
  test/test_fuzzy_rule.rb
16
16
  test/test_fuzzy_set.rb
data/Rakefile CHANGED
@@ -22,4 +22,9 @@ task :commit_changes do
22
22
  end
23
23
 
24
24
  task :publish => ['hoe:release', 'hoe:post_news', 'hoe:publish_docs', 'commit_changes']
25
+
26
+ task :default => ["hoe:test"] do
27
+ puts "Use rake -T to see avalaible options."
28
+ end
29
+
25
30
  # vim: syntax=Ruby
@@ -39,10 +39,10 @@
39
39
  #
40
40
  # Without uncomenting this line 3dplot seems not to work.
41
41
 
42
-
43
42
  $:.unshift(File.dirname(__FILE__) + "/../lib/")
44
43
  require 'fuzzy'
45
44
  include Fuzzyrb
45
+
46
46
  @smallInput = FuzzySet.trapezoid([0, 0, 0, 10])
47
47
  @largeInput = FuzzySet.trapezoid([0, 10, 10, 10])
48
48
  @smallOutput = FuzzySet.trapezoid([0, 0, 0, 10])
@@ -97,7 +97,7 @@ def count_error(implication, params)
97
97
  plot.set("isosample", "40,40")
98
98
 
99
99
  plot.data << Gnuplot::DataSet.new( [x, y, z] ) do |ds|
100
- ds.with = "lines"
100
+ ds.with = "pm3d"
101
101
  end
102
102
  end
103
103
  end
data/lib/fuzzy.rb CHANGED
@@ -56,5 +56,5 @@ require 'fuzzy_rule'
56
56
  require 'fuzzy_implication'
57
57
 
58
58
  module Fuzzyrb
59
- VERSION = "1.2.1"
59
+ VERSION = "1.2.2"
60
60
  end
@@ -1,11 +1,12 @@
1
1
  $:.unshift(File.dirname(__FILE__) + "/../lib/")
2
2
  $:.unshift(File.dirname(__FILE__) + "/../test/")
3
- require 'test/unit'
4
- require 'test/unit/ui/console/testrunner'
5
3
 
6
4
  require 'fuzzy'
7
5
  include Fuzzyrb
8
6
 
7
+ require 'test/unit'
8
+ require 'test/unit/ui/console/testrunner'
9
+
9
10
  require 'test_fuzzy_set'
10
11
  require 'test_fuzzy_rule'
11
12
  require 'test_fuzzy_implication'
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/ruby
2
- $:.unshift(File.dirname(__FILE__) + "../lib/")
2
+ $:.unshift(File.dirname(__FILE__) + "/../lib/")
3
3
  require 'test/unit'
4
+ require 'fuzzy'
5
+ include Fuzzyrb
4
6
 
5
7
  class TestFuzzyImplication < Test::Unit::TestCase
6
8
  def setup
@@ -2,6 +2,7 @@
2
2
  $:.unshift(File.dirname(__FILE__) + "/../lib/")
3
3
  require 'test/unit'
4
4
  require 'fuzzy'
5
+ include Fuzzyrb
5
6
 
6
7
  class TestFuzzyRule < Test::Unit::TestCase
7
8
  def setup
@@ -2,6 +2,7 @@
2
2
  $:.unshift(File.dirname(__FILE__) + "/../lib/")
3
3
  require 'test/unit'
4
4
  require 'fuzzy'
5
+ include Fuzzyrb
5
6
 
6
7
  class TestFuzzySet < Test::Unit::TestCase
7
8
  def test_trapezoid1
data/test/test_point.rb CHANGED
@@ -2,6 +2,7 @@
2
2
  $:.unshift(File.dirname(__FILE__) + "/../lib/")
3
3
  require 'test/unit'
4
4
  require 'fuzzy'
5
+ include Fuzzyrb
5
6
 
6
7
  class TestPoint < Test::Unit::TestCase
7
8
  def setup
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: fuzzyrb
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.2.1
6
+ version: 1.2.2
7
7
  date: 2007-11-19 00:00:00 +01:00
8
8
  summary: Fuzzy Sets for Ruby
9
9
  require_paths:
@@ -63,13 +63,12 @@ files:
63
63
  - lib/fuzzy_set.rb
64
64
  - lib/line.rb
65
65
  - lib/point.rb
66
- - test/test_fuzzy.rb
66
+ - test/fuzzy_test.rb
67
67
  - test/test_fuzzy_implication.rb
68
68
  - test/test_fuzzy_rule.rb
69
69
  - test/test_fuzzy_set.rb
70
70
  - test/test_point.rb
71
71
  test_files:
72
- - test/test_fuzzy.rb
73
72
  - test/test_fuzzy_implication.rb
74
73
  - test/test_fuzzy_rule.rb
75
74
  - test/test_fuzzy_set.rb
metadata.gz.sig CHANGED
Binary file