diff options
author | Austin Ziegler <austin@zieglers.ca> | 2020-06-28 14:59:37 -0400 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2020-06-28 15:10:04 -0400 |
commit | 2a9a662142d0e62337f4e8c92abca41ebf42cf59 (patch) | |
tree | 6997f89789c2cf340bf6a63c01ae7c479ab2db77 /Rakefile | |
parent | 20ea8f2a77b544c4aa8af1522102475ceeb9fff2 (diff) | |
download | diff-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-- | Rakefile | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -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') |