summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2020-06-28 14:59:37 -0400
committerAustin Ziegler <austin@zieglers.ca>2020-06-28 15:10:04 -0400
commit2a9a662142d0e62337f4e8c92abca41ebf42cf59 (patch)
tree6997f89789c2cf340bf6a63c01ae7c479ab2db77 /Rakefile
parent20ea8f2a77b544c4aa8af1522102475ceeb9fff2 (diff)
downloaddiff-lcs-2a9a662142d0e62337f4e8c92abca41ebf42cf59.tar.gz
Fix some issues with 1.4 on older Rubiesfix-ruby-1.8-support
- Required to fully support rspec. - Resolves #63.
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')