From 964416275e771a279a3379a4ef44122a1cfd54c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20Fazekas?= Date: Wed, 25 Dec 2024 11:51:37 +0100 Subject: [PATCH] remove version.rb.old, release should be using md not rdoc --- .gitignore | 2 ++ Manifest | 2 +- Rakefile | 2 +- lib/net/scp/version.rb.old | 68 -------------------------------------- 4 files changed, 4 insertions(+), 70 deletions(-) delete mode 100644 lib/net/scp/version.rb.old diff --git a/.gitignore b/.gitignore index b36a3c1..b11bd0c 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ doc /vendor/ .bundle/config Gemfile.lock + +lib/net/ssh/version.rb.old diff --git a/Manifest b/Manifest index 9614d57..8b5951d 100644 --- a/Manifest +++ b/Manifest @@ -7,7 +7,7 @@ lib/net/scp.rb lib/uri/open-scp.rb lib/uri/scp.rb Rakefile -README.rdoc +README.md setup.rb test/common.rb test/test_all.rb diff --git a/Rakefile b/Rakefile index 4f4d13d..d0daedc 100644 --- a/Rakefile +++ b/Rakefile @@ -71,7 +71,7 @@ RDoc::Task.new do |rdoc| rdoc.rdoc_dir = "rdoc" rdoc.title = "#{name} #{version}" rdoc.generator = 'hanna' # gem install hanna-nouveau - rdoc.main = 'README.rdoc' + rdoc.main = 'README.md' rdoc.rdoc_files.include("README*") rdoc.rdoc_files.include("bin/*.rb") rdoc.rdoc_files.include("lib/**/*.rb") diff --git a/lib/net/scp/version.rb.old b/lib/net/scp/version.rb.old deleted file mode 100644 index e502b16..0000000 --- a/lib/net/scp/version.rb.old +++ /dev/null @@ -1,68 +0,0 @@ -module Net - class SCP - # A class for describing the current version of a library. The version - # consists of three parts: the +major+ number, the +minor+ number, and the - # +tiny+ (or +patch+) number. - # - # Two Version instances may be compared, so that you can test that a version - # of a library is what you require: - # - # require 'net/scp/version' - # - # if Net::SCP::Version::CURRENT < Net::SCP::Version[2,1,0] - # abort "your software is too old!" - # end - class Version - include Comparable - - # A convenience method for instantiating a new Version instance with the - # given +major+, +minor+, and +tiny+ components. - def self.[](major, minor, tiny, pre = nil) - new(major, minor, tiny, pre) - end - - attr_reader :major, :minor, :tiny - - # Create a new Version object with the given components. - def initialize(major, minor, tiny, pre = nil) - @major, @minor, @tiny, @pre = major, minor, tiny, pre - end - - # Compare this version to the given +version+ object. - def <=>(version) - to_i <=> version.to_i - end - - # Converts this version object to a string, where each of the three - # version components are joined by the '.' character. E.g., 2.0.0. - def to_s - @to_s ||= [@major, @minor, @tiny, @pre].compact.join(".") - end - - # Converts this version to a canonical integer that may be compared - # against other version objects. - def to_i - @to_i ||= @major * 1_000_000 + @minor * 1_000 + @tiny - end - - # The major component of this version of the Net::SSH library - MAJOR = 4 - - # The minor component of this version of the Net::SSH library - MINOR = 0 - - # The tiny component of this version of the Net::SSH library - TINY = 0 - - # The prerelease component of this version of the Net::SSH library - # nil allowed - PRE = nil - - # The current version of the Net::SSH library as a Version instance - CURRENT = new(*[MAJOR, MINOR, TINY, PRE].compact) - - # The current version of the Net::SSH library as a String - STRING = CURRENT.to_s - end - end -end