summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAustin Ziegler <austin@halostatue.ca>2011-08-01 13:41:56 -0400
committerAustin Ziegler <austin@halostatue.ca>2011-08-01 13:41:56 -0400
commitd3ae2094927ca241e339aea21d7439ace86c364c (patch)
tree703a9f5715fc71e5d052dcd42d96af93fe259c8c /Rakefile
parent095afd9c321d4de8457dee91eb030c08981ee39b (diff)
downloaddiff-lcs-d3ae2094927ca241e339aea21d7439ace86c364c.tar.gz
Properly implementing Hoe.
The hoe spec says: Hoe.spec 'name' do self.blah = xyz end I had implemented: Hoe.spec 'name' do |spec| spec.blah = xyz end The implementation of Hoe.spec uses #instance_eval which, on most Rubies apparently silently yields self. On MacRuby, however, it doesn't yield anything, making spec 'nil'. Implementing this properly fixes the basic Rakefile on MacRuby, but MacRuby still fails the tests because of problems with RSpec.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/Rakefile b/Rakefile
index 06994ba..70bfebb 100644
--- a/Rakefile
+++ b/Rakefile
@@ -7,19 +7,19 @@ Hoe.plugin :doofus
Hoe.plugin :gemspec
Hoe.plugin :git
-Hoe.spec 'diff-lcs' do |spec|
- spec.rubyforge_name = 'ruwiki'
+Hoe.spec 'diff-lcs' do
+ self.rubyforge_name = 'ruwiki'
developer('Austin Ziegler', 'austin@rubyforge.org')
- spec.remote_rdoc_dir = 'diff-lcs/rdoc'
- spec.rsync_args << ' --exclude=statsvn/'
+ self.remote_rdoc_dir = 'diff-lcs/rdoc'
+ self.rsync_args << ' --exclude=statsvn/'
- spec.history_file = 'History.rdoc'
- spec.readme_file = 'README.rdoc'
- spec.extra_rdoc_files = FileList["*.rdoc"].to_a
+ self.history_file = 'History.rdoc'
+ self.readme_file = 'README.rdoc'
+ self.extra_rdoc_files = FileList["*.rdoc"].to_a
- spec.extra_dev_deps << ['rspec', '~> 2.0']
+ self.extra_dev_deps << ['rspec', '~> 2.0']
end
# vim: syntax=ruby