Permalink
Browse files

adding some stuff to ignore but mostly fixing the rdoc

  • Loading branch information...
1 parent c4b5a42 commit 8185d344366bfd16305f101c32924133ae2cdcc1 @scudco committed May 15, 2008
Showing with 39 additions and 6 deletions.
  1. +2 −1 .gitignore
  2. +20 −4 README.txt
  3. +0 −1 Rakefile
  4. +17 −0 lib/taglob.rb
View
@@ -1,2 +1,3 @@
pkg/*
-*.gem
+*.gem
+doc/*
View
@@ -4,21 +4,37 @@
tags + Dir.glob = Dir.taglob
+http://github.com/scudco/taglob/tree/master
+
== FEATURES/PROBLEMS:
* easily select tagged Ruby files
== SYNOPSIS:
+
+Taglob is great. Check this out.
+Imagine a bunch of files that look like
+ #tags: zomg,buttz,foo,important
+ class Lol
+ def lulz
+ puts "here are your lulz, sir"
+ end
+ end
+
+And then you are like dang I wish I could glob these files based on the
+tags I setup! What am I doing with my life???
+Taglob! (like Tada! but more like its unsophisticated country cousin(in name only(parentheses)))
+ Dir.taglob("**/*.rb","foo","lol")
+That will totally give you back all the files tagged with 'foo' and 'lol' in an array of strings representing the paths of those files.
+It is really just glob with some extra stuff thrown in.
+Totally small, totally useless, totally taglob.
+
require 'rubygems'
require 'taglob'
Dir.taglob('**/*.rb','foo','bar','buttz').each {|file| puts "#{file} was tagged with foo or bar or buttz!"}
-== REQUIREMENTS:
-
-* none?
-
== INSTALL:
* sudo gem install taglob
View
@@ -13,7 +13,6 @@ Hoe.new('Taglob', Taglob::VERSION) do |p|
p.remote_rdoc_dir = '' # Release to root
end
-
desc "Run all examples"
Spec::Rake::SpecTask.new('spec') do |t|
t.spec_files = FileList['spec/*.rb']
View
@@ -1,3 +1,20 @@
+# Taglob is great. Check this out.
+# Imagine a bunch of files that look like
+# #tags: zomg,buttz,foo,important
+# class Lol
+# def lulz
+# puts "here are your lulz, sir"
+# end
+# end
+#
+# And then you are like dang I wish I could glob these files based on the
+# tags I setup! What am I doing with my life???
+# Taglob! (like Tada! but more like its unsophisticated country cousin(in name only(parentheses)))
+# Dir.taglob("**/*.rb","foo","lol")
+# That will totally give you back all the files tagged with 'foo' and 'lol' in an array of strings representing the paths of those files.
+# It is really just glob with some extra stuff thrown in.
+# Totally small, totally useless, totally taglob.
+
class Taglob
VERSION = '0.0.1'
end

0 comments on commit 8185d34

Please sign in to comment.