[DRE-commits] [SCM] taskjuggler.git branch, master, updated. upstream/3.1.0-16-gbf2932d
Carl Worth
cworth at debian.org
Wed Mar 7 17:30:33 UTC 2012
The following commit has been merged in the master branch:
commit 03d7b6f8d9d28fa70a01fe53c4bd2d9f7a44f2cb
Author: Carl Worth <cworth at debian.org>
Date: Wed Mar 7 07:58:39 2012 -0800
Remove all instances of "require rubygems"
Since taskjuggler cannot know how the user installed it, (whether via
rubygems or through some other mechanism such as a distribution
package), the implementation should not require rubygems
diff --git a/lib/taskjuggler/MessageHandler.rb b/lib/taskjuggler/MessageHandler.rb
index b17848f..7f5a3a1 100644
--- a/lib/taskjuggler/MessageHandler.rb
+++ b/lib/taskjuggler/MessageHandler.rb
@@ -11,10 +11,6 @@
# published by the Free Software Foundation.
#
-if RUBY_VERSION < "1.9.0"
- require 'rubygems'
-end
-
require 'term/ansicolor'
require 'taskjuggler/TextParser/SourceFileInfo'
diff --git a/lib/taskjuggler/Tj3AppBase.rb b/lib/taskjuggler/Tj3AppBase.rb
index 781c1ee..a409ac5 100644
--- a/lib/taskjuggler/Tj3AppBase.rb
+++ b/lib/taskjuggler/Tj3AppBase.rb
@@ -11,7 +11,6 @@
# published by the Free Software Foundation.
#
-require 'rubygems'
require 'optparse'
require 'term/ansicolor'
require 'taskjuggler/Tj3Config'
@@ -104,8 +103,7 @@ EOT
end
def main(argv = ARGV)
- if Gem::Version.new(RUBY_VERSION.dup) <
- Gem::Version.new(@mininumRubyVersion)
+ if RUBY_VERSION < @mininumRubyVersion
error('This program requires at least Ruby version ' +
"#{@mininumRubyVersion}!")
end
diff --git a/spec/ICalendar_spec.rb b/spec/ICalendar_spec.rb
index 6d062b7..8ca897c 100644
--- a/spec/ICalendar_spec.rb
+++ b/spec/ICalendar_spec.rb
@@ -11,8 +11,6 @@
# published by the Free Software Foundation.
#
-require 'rubygems'
-
require 'taskjuggler/ICalendar'
require 'support/spec_helper.rb'
diff --git a/spec/IntervalList_spec.rb b/spec/IntervalList_spec.rb
index 46203c6..cb26954 100644
--- a/spec/IntervalList_spec.rb
+++ b/spec/IntervalList_spec.rb
@@ -11,8 +11,6 @@
# published by the Free Software Foundation.
#
-require 'rubygems'
-
require 'taskjuggler/IntervalList'
class TaskJuggler
diff --git a/spec/StatusSheets_spec.rb b/spec/StatusSheets_spec.rb
index 4149711..ea2b93f 100644
--- a/spec/StatusSheets_spec.rb
+++ b/spec/StatusSheets_spec.rb
@@ -11,7 +11,6 @@
# published by the Free Software Foundation.
#
-require 'rubygems'
require 'support/DaemonControl'
require 'taskjuggler/apps/Tj3SsSender'
require 'taskjuggler/apps/Tj3SsReceiver'
diff --git a/spec/TernarySearchTree_spec.rb b/spec/TernarySearchTree_spec.rb
index adfb2a7..d4c9f7f 100644
--- a/spec/TernarySearchTree_spec.rb
+++ b/spec/TernarySearchTree_spec.rb
@@ -11,8 +11,6 @@
# published by the Free Software Foundation.
#
-require 'rubygems'
-
require 'taskjuggler/TernarySearchTree'
class TaskJuggler
diff --git a/spec/TimeSheets_spec.rb b/spec/TimeSheets_spec.rb
index 09742f1..b95b1a5 100644
--- a/spec/TimeSheets_spec.rb
+++ b/spec/TimeSheets_spec.rb
@@ -11,7 +11,6 @@
# published by the Free Software Foundation.
#
-require 'rubygems'
require 'support/DaemonControl'
require 'taskjuggler/apps/Tj3TsSender'
require 'taskjuggler/apps/Tj3TsReceiver'
diff --git a/spec/Tj3Daemon_spec.rb b/spec/Tj3Daemon_spec.rb
index 216fd13..40f2d67 100644
--- a/spec/Tj3Daemon_spec.rb
+++ b/spec/Tj3Daemon_spec.rb
@@ -11,7 +11,6 @@
# published by the Free Software Foundation.
#
-require 'rubygems'
require 'support/DaemonControl'
class TaskJuggler
diff --git a/spec/Tj3_spec.rb b/spec/Tj3_spec.rb
index 05ef35d..da7cbe5 100644
--- a/spec/Tj3_spec.rb
+++ b/spec/Tj3_spec.rb
@@ -11,7 +11,6 @@
# published by the Free Software Foundation.
#
-require 'rubygems'
require 'taskjuggler/StdIoWrapper'
require 'taskjuggler/apps/Tj3'
--
taskjuggler.git
More information about the Pkg-ruby-extras-commits
mailing list