From e57510d5dfcd42b24aa7f714c0fa2f93f7d966d2 Mon Sep 17 00:00:00 2001 From: dan sinclair Date: Sat, 19 Feb 2011 21:05:56 -0500 Subject: [PATCH] initial commit --- .gitignore | 1 + Gemfile | 3 +++ LICENSE | 18 ++++++++++++++++++ Rakefile | 18 ++++++++++++++++++ bin/rtf_parse | 0 lib/ruby-rtf.rb | 0 lib/ruby-rtf/version.rb | 0 ruby-rtf.gemspec | 28 ++++++++++++++++++++++++++++ 8 files changed, 68 insertions(+) create mode 100644 .gitignore create mode 100644 Gemfile create mode 100644 LICENSE create mode 100644 Rakefile create mode 100644 bin/rtf_parse create mode 100644 lib/ruby-rtf.rb create mode 100644 lib/ruby-rtf/version.rb create mode 100644 ruby-rtf.gemspec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1269488 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +data diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..8926307 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source 'http://rubygems.org' + +gemspec \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..598959f --- /dev/null +++ b/LICENSE @@ -0,0 +1,18 @@ +Copyright (c) 2011 dan sinclair + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..92bc695 --- /dev/null +++ b/Rakefile @@ -0,0 +1,18 @@ +require 'bundler' +Bundler::GemHelper.install_tasks + +require 'yard' +require 'rspec/core/rake_task' + +task :default => [:spec] + +desc "run spec tests" +RSPec::Core::RakeTask.new('spec') do |t| + t.pattern = 'spec/**/*_spec.rb' +end + +desc 'Generate Documentation' +YARD::Rake::YardocTask.new do |t| + t.files = ['lib/**/*.rb', '-', 'LICENSE'] + t.options = ['--main', 'README', '--no-private'] +end \ No newline at end of file diff --git a/bin/rtf_parse b/bin/rtf_parse new file mode 100644 index 0000000..e69de29 diff --git a/lib/ruby-rtf.rb b/lib/ruby-rtf.rb new file mode 100644 index 0000000..e69de29 diff --git a/lib/ruby-rtf/version.rb b/lib/ruby-rtf/version.rb new file mode 100644 index 0000000..e69de29 diff --git a/ruby-rtf.gemspec b/ruby-rtf.gemspec new file mode 100644 index 0000000..18bdc03 --- /dev/null +++ b/ruby-rtf.gemspec @@ -0,0 +1,28 @@ +require 'ruby-rtf/version' + +Gem::Specification.new do |s| + s.name = 'ruby-rtf' + + s.version = RubyRTF::VERSION + + s.authors = 'dan sinclair' + s.email = 'dj2@everburning.com' + + s.homepage = 'http://github.com/dj2/ruby-rtf' + s.summary = 'Library for working with RTF files' + s.description = s.summary + + s.add_development_dependency 'rspec', '>2.0' + s.add_development_dependency 'metric_fu' + + s.add_development_dependency 'yard' + s.add_development_dependency 'bluecloth' + + s.bindir = 'bin' + s.executables << 'rtf_parse' + + s.files = `git ls-files`.split("\n") + s.test_files = `git ls-files -- spec/*`.split("\n") + + s.require_paths = ['lib'] +end \ No newline at end of file