From 912fdb48825a8344996be91bed37b97b6d228beb Mon Sep 17 00:00:00 2001 From: Adam Sanderson Date: Tue, 17 Aug 2010 22:30:57 -0700 Subject: [PATCH] Preparing for gem and binary. --- README | 8 ++++++++ Rakefile | 33 +++++++++++++++++++++++++++++++++ VERSION | 2 +- lib/qwandry.rb | 1 + 4 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 README create mode 100644 Rakefile diff --git a/README b/README new file mode 100644 index 0000000..eb95fce --- /dev/null +++ b/README @@ -0,0 +1,8 @@ +Qwandry, a questionable tool +============================= +Why spend time trying to remember where libraries, projects, and packages are lurking, +when your computer already knows? + + qw activerecord # open the activerecord gem + qw matrix # open the ruby standard library matrix file + diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..ed35586 --- /dev/null +++ b/Rakefile @@ -0,0 +1,33 @@ +require 'rake' +require 'rake/testtask' +require 'rake/rdoctask' + +begin + require 'jeweler' + Jeweler::Tasks.new do |s| + s.name = "qwandry" + s.summary = "Qwandry lets you quickly edit ruby gems and libraries" + s.description = <<-DESC + Open a gem or library's source directory with your default editor. + DESC + s.email = "netghost@gmail.com" + s.homepage = "http://github.com/adamsanderson/qwandry" + s.authors = ["Adam Sanderson"] + s.has_rdoc = false + s.files = FileList["[A-Z]*", "{bin,lib,test}/**/*"] + + # Testing + s.test_files = FileList["test/**/*_test.rb"] + end + +rescue LoadError + puts "Jeweler not available. Install it for jeweler-related tasks with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" +end + +Rake::TestTask.new do |t| + t.libs << 'lib' + t.pattern = 'test/**/*_test.rb' + t.verbose = false +end + +task :default => :test diff --git a/VERSION b/VERSION index 77d6f4c..8acdd82 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.0 +0.0.1 diff --git a/lib/qwandry.rb b/lib/qwandry.rb index 6fa765f..d3f6c32 100644 --- a/lib/qwandry.rb +++ b/lib/qwandry.rb @@ -18,4 +18,5 @@ module Qwandry autoload :Repository, "qwandry/repository" autoload :FlatRepository, "qwandry/flat_repository" autoload :Package, "qwandry/package" + end \ No newline at end of file