rools 0.3 → 0.4

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/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  = Rools CHANGELOG
2
2
 
3
+ == Rools - 0.4 released 2007/11/05
4
+ * facts can include a range (Grant Mcinnes idea)
5
+ * Fixed examples on website
6
+
3
7
  == Rools - 0.3
4
8
  * facts can now have a defined namespace
5
9
  * fixed csv_test
data/RAKEFILE CHANGED
@@ -71,6 +71,7 @@ ws = Rote::DocTask.new(:doc) do |site|
71
71
  site.res.include('**/*.gif')
72
72
  site.res.include('**/*.jpg')
73
73
  site.res.include('**/*.css')
74
+ site.res.include('**/examples/*')
74
75
  end
75
76
 
76
77
  # Add rdoc deps to doc task
@@ -191,20 +192,20 @@ end
191
192
  # Check Rools specifications using rspec
192
193
  Spec::Rake::SpecTask.new('specs') do |t|
193
194
  t.spec_opts = ['--format', 'specdoc']
194
- t.spec_files = FileList['specs/**/*.rb']
195
+ t.spec_files = FileList['spec/**/*.rb']
195
196
  end
196
197
 
197
198
  Spec::Rake::SpecTask.new('spec_coverage') do |t|
198
199
  t.spec_opts = ['--format', 'specdoc']
199
- t.spec_files = FileList['specs/**/*.rb']
200
+ t.spec_files = FileList['spec/**/*.rb']
200
201
  t.rcov = true
201
202
  t.rcov_dir = './html/output/coverage'
202
- t.rcov_opts = ['--exclude', 'specs']
203
+ t.rcov_opts = ['--exclude', 'spec']
203
204
  end
204
205
 
205
206
  desc "Run all specs and store html output in html/output/report.html"
206
207
  Spec::Rake::SpecTask.new('spec_html') do |t|
207
- t.spec_files = FileList['specs/**/*_spec.rb']
208
+ t.spec_files = FileList['spec/**/*_spec.rb']
208
209
  t.spec_opts = ['--format html:html/output/rspec_report.html','--backtrace']
209
210
  end
210
211
 
@@ -214,3 +215,10 @@ RCov::VerifyTask.new(:verify_rcov => :spec_coverage) do |t|
214
215
  end
215
216
 
216
217
  task :rcov => [:verify_rcov, :spec_html]
218
+
219
+ namespace :spec do
220
+ task :autotest do
221
+ require './spec/rspec_autotest'
222
+ RspecAutotest.run
223
+ end
224
+ end
@@ -16,7 +16,7 @@ module Rools
16
16
  end
17
17
 
18
18
  def value
19
- if @fact_value.size == 1
19
+ if @fact_value.respond_to?("size") && @fact_value.size == 1
20
20
  @fact_value[0]
21
21
  else
22
22
  @fact_value
@@ -9,7 +9,7 @@ require 'rexml/document'
9
9
  module Rools
10
10
  class RuleSet < Base
11
11
  attr_reader :num_executed, :num_evaluated, :facts, :status
12
-
12
+
13
13
  PASS = :pass
14
14
  FAIL = :fail
15
15
  UNDETERMINED = :undetermined
@@ -1,4 +1,4 @@
1
1
  module Rools
2
- ROOLS_VERSION = '0.3'
2
+ ROOLS_VERSION = '0.4'
3
3
  ROOLS_COVERAGE = 100.0
4
4
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: rools
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.3"
7
- date: 2007-07-18 00:00:00 -04:00
6
+ version: "0.4"
7
+ date: 2007-11-05 00:00:00 -05:00
8
8
  summary: A Rules Engine written in Ruby
9
9
  require_paths:
10
10
  - lib