| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Ruport-util
Revision: 48
Author: sandal
Date: 02 Apr 2008 00:40:04
Changes:0.14.0
Files:| ... | ...@@ -0,0 +1,34 @@ | |
| 1 | begin | |
| 2 | require "rubygems" | |
| 3 | gem "ruport", "=1.6.0" | |
| 4 | rescue LoadError | |
| 5 | nil | |
| 6 | end | |
| 7 | ||
| 8 | class Array | |
| 9 | def to_table(columns) | |
| 10 | Table(columns) { |t| each { |r| t << r }} | |
| 11 | end | |
| 12 | end | |
| 13 | ||
| 14 | require "spec" | |
| 15 | require 'ruport' | |
| 16 | this = File.dirname(__FILE__) | |
| 17 | lib = File.expand_path(File.join(this, '..', 'lib')) | |
| 18 | $LOAD_PATH.unshift(lib) | |
| 19 | require "ruport/util" | |
| 20 | ||
| 21 | # Use this to require optional dependencies where tests are expected to fail if | |
| 22 | # a library is not installed, for example Hpricot or Scruffy. | |
| 23 | # It will be parsed by the wrapper and marked. | |
| 24 | ||
| 25 | def testcase_requires(*following) | |
| 26 | following.each do |file| | |
| 27 | require(file.to_s) | |
| 28 | end | |
| 29 | rescue LoadError => ex | |
| 30 | puts ex | |
| 31 | puts "Can't run #{$0}: #{ex}" | |
| 32 | puts "Usually you should not worry about this failure, just install the" | |
| 33 | puts "library and try again (if you want to use that feature later on)" | |
| 34 | end |
| ... | ...@@ -1,5 +1,5 @@ | |
| 1 | 1 | module Ruport |
| 2 | 2 | module Util |
| 3 | VERSION = "0.13.1" | |
| 3 | VERSION = "0.14.0" | |
| 4 | 4 | |
| 5 | 5 | file = __FILE__ |
| ... | ...@@ -1,5 +1,5 @@ | |
| 1 | 1 | begin |
| 2 | 2 | require "rubygems" |
| 3 | gem "ruport", "=1.5.0" | |
| 3 | gem "ruport", "=1.6.0" | |
| 4 | 4 | rescue LoadError |
| 5 | 5 | nil |
| ... | ...@@ -34,5 +34,5 @@ | |
| 34 | 34 | spec = Gem::Specification.new do |spec| |
| 35 | 35 | spec.name = "ruport-util" |
| 36 | spec.version = "0.13.1" | |
| 36 | spec.version = "0.14.0" | |
| 37 | 37 | spec.platform = Gem::Platform::RUBY |
| 38 | 38 | spec.summary = "A set of tools and helper libs for Ruby Reports" |
| ... | ...@@ -49,5 +49,5 @@ | |
| 49 | 49 | spec.rdoc_options << '--title' << 'ruport-util Documentation' << |
| 50 | 50 | '--main' << 'INSTALL' << '-q' |
| 51 | spec.add_dependency('ruport', ">=1.4.0") | |
| 51 | spec.add_dependency('ruport', ">=1.6.0") | |
| 52 | 52 | spec.add_dependency('mailfactory',">=1.2.3") |
| 53 | 53 | spec.add_dependency('rubyzip','>=0.9.1') |