Getting the Constant VERSION

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi List,

if i'm using the constant VERSION in the main ruby file, how can i
access that from a Rakefile?

Greetings
Sascha

- --
Yours sincerly
Sascha Manns

Maifeldstraße 10
56727 Mayen
Phone: +49-1573-9242730
Email: Sascha.Manns@directbox.com
Web: http://saigkill.github.io
Jabber: saigkill@jabber.org
GPG: hkp://keys.gnupg.net

Hello,

You have to require (that is, include) the ruby script e.g.:

require 'hoe'
require './lib/hellohoe.rb' ## lets you use HelloHoe::VERSION etc.

Hoe.spec 'hellohoe' do
  self.version = HelloHoe::VERSION
  self.author = 'Your Name Here'
  self.email = 'you@example.com'
end

Cheers.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi Gerald,

thank you very much. That helps.

Greetings
Sascha

Hello,

You have to require (that is, include) the ruby script e.g.:

require 'hoe'
require './lib/hellohoe.rb' ## lets you use HelloHoe::VERSION etc.

Hoe.spec 'hellohoe' do
  self.version = HelloHoe::VERSION
  self.author = 'Your Name Here'
  self.email = 'you@example.com'
end

Cheers.

- --
Yours sincerly
Sascha Manns

Maifeldstraße 10
56727 Mayen
Phone: +49-1573-9242730
Email: Sascha.Manns@directbox.com
Web: http://saigkill.github.io
Jabber: saigkill@jabber.org
GPG: hkp://keys.gnupg.net

···

Am 26.09.2015 um 10:22 schrieb Gerald Bauer:

Nope. From the readme:

* Auto-intuits changes, description, summary, and version.

and then look at Hoe#check_for_version in lib/hoe.rb.

You just need to have VERSION defined in your code.

···

On Sep 26, 2015, at 01:22, Gerald Bauer <gerald.bauer@gmail.com> wrote:

Hello,

You have to require (that is, include) the ruby script e.g.:

require 'hoe'
require './lib/hellohoe.rb' ## lets you use HelloHoe::VERSION etc.

Hoe.spec 'hellohoe' do
self.version = HelloHoe::VERSION
self.author = 'Your Name Here'
self.email = 'you@example.com'
end