Skip to content

Commit

Permalink
Properly implementing Hoe.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Austin Ziegler committed Aug 1, 2011
1 parent 095afd9 commit d3ae209
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d3ae209

Please sign in to comment.