summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index c19b7d1..7beb3b6 100644
--- a/Rakefile
+++ b/Rakefile
@@ -6,10 +6,27 @@ require 'hoe'
Hoe.plugin :bundler
Hoe.plugin :doofus
-Hoe.plugin :email unless ENV['CI'] or ENV['TRAVIS']
Hoe.plugin :gemspec2
Hoe.plugin :git
-Hoe.plugin :travis
+
+if RUBY_VERSION < '1.9'
+ class Array
+ def to_h
+ Hash[*self.flatten(1)]
+ end
+ end
+
+ class Gem::Specification
+ def metadata=(*)
+ end
+ end
+
+ class Object
+ def caller_locations(*)
+ []
+ end
+ end
+end
_spec = Hoe.spec 'diff-lcs' do
developer('Austin Ziegler', 'halostatue@gmail.com')