Skip to content

Commit

Permalink
=Minor tweak to the VERSION constant. Removed the net/ssh/version req…
Browse files Browse the repository at this point in the history
…uirement and made it into a simple constant. Then made sure the Rakefile correctly uses the version when building the gem. No version bump for this check-in. Still 1.0.2.
  • Loading branch information
Brian V. Hughes committed Sep 26, 2009
1 parent 68fb7ae commit 45eb45d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Expand Up @@ -6,10 +6,12 @@ load 'tasks/setup.rb'


ensure_in_path 'lib' ensure_in_path 'lib'
require 'net/dnd' require 'net/dnd'
require 'net/dnd/version'


task :default => 'spec:specdoc' task :default => 'spec:specdoc'


PROJ.name = 'net-dnd' PROJ.name = 'net-dnd'
PROJ.version = Net::DND::VERSION
PROJ.authors = 'Brian V. Hughes' PROJ.authors = 'Brian V. Hughes'
PROJ.email = 'brianvh@dartmouth.edu' PROJ.email = 'brianvh@dartmouth.edu'
PROJ.url = 'http://dev.dartmouth.edu/projects/' PROJ.url = 'http://dev.dartmouth.edu/projects/'
Expand Down
13 changes: 3 additions & 10 deletions lib/net/dnd/version.rb
@@ -1,18 +1,11 @@
require 'net/ssh/version'

module Net module Net
module DND module DND
# Describes the current version of the Net::DND library
class Version < Net::SSH::Version
MAJOR = 1 MAJOR = 1
MINOR = 0 MINOR = 0
TINY = 2 PATCH = 2


# The current version, as a Version instance VERSION = [MAJOR, MINOR, PATCH].join(".")
CURRENT = new(MAJOR, MINOR, TINY)


# The current version, as a String instance
STRING = CURRENT.to_s
end
end end
end end
2 changes: 1 addition & 1 deletion tasks/setup.rb
Expand Up @@ -17,7 +17,7 @@ class OpenStruct; undef :gem; end
:authors => nil, :authors => nil,
:email => nil, :email => nil,
:url => "\000", :url => "\000",
:version => ENV['VERSION'] || '1.0.1', :version => ENV['VERSION'] || '0.0.0',
:exclude => %w(tmp$ bak$ ~$ CVS \.DS_Store \.svn/ \.git/ ^pkg/), :exclude => %w(tmp$ bak$ ~$ CVS \.DS_Store \.svn/ \.git/ ^pkg/),
:release_name => ENV['RELEASE'], :release_name => ENV['RELEASE'],


Expand Down

0 comments on commit 45eb45d

Please sign in to comment.