Permalink
Browse files

- I removed the hoe details because:

  1) It referred to specific files being kept within someone's home directory
  2) It failed with the latest version (or at least version 2.12.5) of hoe
  3) It prevented the tests from being run

- Added back in the test rake command, so that the tests can be run using 'rake'

- Renamed the gem from ifad-rtf.gemspec to rtf.gemspec
  • Loading branch information...
1 parent 21637c9 commit 76859c0b4eb69464279c23dfdb7bf05c14c319d3 @thechrisoshow committed Jan 9, 2012
Showing with 10 additions and 29 deletions.
  1. +9 −16 Rakefile
  2. +1 −1 ifad-rtf.gemspec → rtf.gemspec
  3. +0 −12 test/text_node_test.rb
View
@@ -3,24 +3,8 @@ $:.unshift(File.expand_path(File.dirname(__FILE__)))
require 'rake'
require 'rubygems'
-require 'hoe'
require 'rtf'
-Hoe.plugin :git
-
-h=Hoe.spec 'clbustos-rtf' do
- # Original author: Peter Wood
- self.developer 'Claudio Bustos', 'clbustos_at_gmail.com'
- self.version=RTF::VERSION
- self.git_log_author=true
- path = File.expand_path("~/.rubyforge/user-config.yml")
- config = YAML.load(File.read(path))
- host = "#{config["username"]}@rubyforge.org"
-
- remote_dir = "#{host}:/var/www/gforge-projects/ruby-statsample/rtf"
- self.rdoc_locations << remote_dir
- self.extra_dev_deps << ["hoe",">=0"]
-end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
@@ -31,3 +15,12 @@ begin
rescue LoadError
puts "RCov is not available. In order to run rcov, you must: sudo gem install rcov"
end
+
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib' << 'test'
+ t.pattern = 'test/**/*.rb'
+ t.verbose = false
+end
+
+task :default => :test
@@ -4,7 +4,7 @@
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
- s.name = %q{ifad-rtf}
+ s.name = %q{rtf}
s.version = "0.4.2"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
View
@@ -55,21 +55,9 @@ def test_utf8
nodes[0].text="ASCCI"
assert_equal("ASCCI", nodes[0].to_rtf)
-<<<<<<< HEAD
-
-
-=======
-
-
->>>>>>> 1f91b59bae2b26554f7d1d8e8b1b20d9add52b3d
utf8="Á"
exp="\\u#{utf8.unpack("U")[0]}\\'3f"
nodes[0].text=utf8
assert_equal(exp, nodes[0].to_rtf)
-<<<<<<< HEAD
-
-=======
-
->>>>>>> 1f91b59bae2b26554f7d1d8e8b1b20d9add52b3d
end
end

0 comments on commit 76859c0

Please sign in to comment.