Skip to content
Browse files

SHAPSHOT feature is no longer required

  • Loading branch information...
1 parent 2307218 commit 52e0b5118944c3fcedd66be89d0e480b17b15b1a @weppos committed Feb 16, 2012
Showing with 15 additions and 18 deletions.
  1. +2 −1 README.md
  2. +13 −17 Rakefile
View
3 README.md
@@ -202,5 +202,6 @@ See the CHANGELOG.rdoc file for details.
## License
-*Whois* is copyright (c) 2009-2012 Simone Carletti.
+Copyright (c) 2009-2012 Simone Carletti.
+
This is Free Software distributed under the MIT license.
View
30 Rakefile
@@ -5,12 +5,8 @@ require 'whois'
# Common package properties
-PKG_NAME = ENV['PKG_NAME'] || Whois::GEM
-PKG_VERSION = ENV['PKG_VERSION'] || Whois::VERSION
-
-if ENV['SNAPSHOT'].to_i == 1
- PKG_VERSION << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
-end
+PKG_NAME = Whois::GEM
+PKG_VERSION = Whois::VERSION
# Run test by default.
@@ -55,6 +51,17 @@ task :gemspec do
File.open(file, "w") {|f| f << spec.to_ruby }
end
+desc "Remove any temporary products, including gemspec"
+task :clean => [:clobber] do
+ rm "#{spec.name}.gemspec" if File.file?("#{spec.name}.gemspec")
+end
+
+desc "Remove any generated file"
+task :clobber => [:clobber_package]
+
+desc "Package the library and generates the gemspec"
+task :package => [:gemspec]
+
require 'rspec/core/rake_task'
@@ -92,17 +99,6 @@ namespace :multitest do
end
-task :clean_gemspec do
- rm "#{spec.name}.gemspec" rescue nil
-end
-
-task :clean => [:clean_gemspec]
-task :clobber => [:clobber_package]
-
-desc "Package the library and generates the gemspec"
-task :package => [:gemspec]
-
-
require 'yard'
require 'yard/rake/yardoc_task'

0 comments on commit 52e0b51

Please sign in to comment.
Something went wrong with that request. Please try again.