summaryrefslogtreecommitdiff
blob: 97fed308d0232746325d2d27c716c73c5a60e743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From ece3b86050af6d510f52042a31034650e07aa2e1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@flameeyes.eu>
Date: Wed, 21 Dec 2011 12:51:06 +0100
Subject: [PATCH] Always require log_buddy/version, even when Jeweler is not
 found.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The LogBuddy::VERSION constant is used by the RDoc task as well, so make
sure to require it in top-level, as the Rakefile won't work otherwise.

Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
---
 Rakefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Rakefile b/Rakefile
index 1f1a62c..3f779fe 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,8 +1,9 @@
 $:.unshift File.expand_path('../lib', __FILE__)
 
+require 'log_buddy/version'
+
 begin
   require 'jeweler'
-  require 'log_buddy/version'
   Jeweler::Tasks.new do |gem|
     gem.name = "log_buddy"
     gem.version = LogBuddy::Version::STRING
-- 
1.7.8