7stud2
(7stud --)
1
I've bootstrapped a gem using hoe and its the Rakefile:
# -*- ruby -*-
require 'rubygems'
require 'hoe'
require 'thor'
Hoe.plugin :bundler
Hoe.plugin :minitest
Hoe.plugin :deps
Hoe.spec 'launchcloud' do
developer('Millisami', 'millisami@gmail.com')
end
# vim: syntax=ruby
Since there ain't any .gemspec, if I want to add the dependencies into
the Rakefile, where to put it?
For e.g., if I want the nokogiri gem as its dependencies, where do I
specify it just like Bundler's Gemfile.
I've used the bundler plugin `Hoe.plugin :bundler` and running `rake
bundler:gemfile`, which generates the Gemfile but where its getting
used?
Should I've to put `require bundler/setup`? If yes, then where? If not,
how does the Gemfile gems is loaded?
If I don't want to use that plugin, where can I put the dependencies?
Is it inside the:
Hoe.spec 'launchcloud' do
gem 'nokogiri'
end
block?
Will the above work?
···
--
Posted via http://www.ruby-forum.com/.
% ri Hoe.dependency
= Hoe.dependency
(from gem hoe-3.1.0)
···
On Oct 27, 2012, at 07:20 , Milli Sami <lists@ruby-forum.com> wrote:
I've bootstrapped a gem using hoe and its the Rakefile:
# -*- ruby -*-
require 'rubygems'
require 'hoe'
require 'thor'
Hoe.plugin :bundler
Hoe.plugin :minitest
Hoe.plugin :deps
Hoe.spec 'launchcloud' do
developer('Millisami', 'millisami@gmail.com')
end
# vim: syntax=ruby
Since there ain't any .gemspec, if I want to add the dependencies into
the Rakefile, where to put it?
For e.g., if I want the nokogiri gem as its dependencies, where do I
specify it just like Bundler's Gemfile.
------------------------------------------------------------------------------
dependency(name, version, type = :runtime)
------------------------------------------------------------------------------
Add a dependency declaration to your spec. Pass :dev to type for developer
dependencies.
so it would be:
Hoe.spec 'launchcloud' do
developer('Millisami', 'millisami@gmail.com')
dependency "nokogiri", "~> 1.5.5"
end