Skip to content
This repository
Browse code

SHAPSHOT feature is no longer required

  • Loading branch information...
commit 52e0b5118944c3fcedd66be89d0e480b17b15b1a 1 parent 2307218
Simone Carletti authored

Showing 2 changed files with 15 additions and 18 deletions. Show diff stats Hide diff stats

  1. +2 1  README.md
  2. +13 17 Rakefile
3  README.md
Source Rendered
@@ -202,5 +202,6 @@ See the CHANGELOG.rdoc file for details.
202 202
203 203 ## License
204 204
205   -*Whois* is copyright (c) 2009-2012 Simone Carletti.
  205 +Copyright (c) 2009-2012 Simone Carletti.
  206 +
206 207 This is Free Software distributed under the MIT license.
30 Rakefile
@@ -5,12 +5,8 @@ require 'whois'
5 5
6 6
7 7 # Common package properties
8   -PKG_NAME = ENV['PKG_NAME'] || Whois::GEM
9   -PKG_VERSION = ENV['PKG_VERSION'] || Whois::VERSION
10   -
11   -if ENV['SNAPSHOT'].to_i == 1
12   - PKG_VERSION << "." << Time.now.utc.strftime("%Y%m%d%H%M%S")
13   -end
  8 +PKG_NAME = Whois::GEM
  9 +PKG_VERSION = Whois::VERSION
14 10
15 11
16 12 # Run test by default.
@@ -55,6 +51,17 @@ task :gemspec do
55 51 File.open(file, "w") {|f| f << spec.to_ruby }
56 52 end
57 53
  54 +desc "Remove any temporary products, including gemspec"
  55 +task :clean => [:clobber] do
  56 + rm "#{spec.name}.gemspec" if File.file?("#{spec.name}.gemspec")
  57 +end
  58 +
  59 +desc "Remove any generated file"
  60 +task :clobber => [:clobber_package]
  61 +
  62 +desc "Package the library and generates the gemspec"
  63 +task :package => [:gemspec]
  64 +
58 65
59 66 require 'rspec/core/rake_task'
60 67
@@ -92,17 +99,6 @@ namespace :multitest do
92 99 end
93 100
94 101
95   -task :clean_gemspec do
96   - rm "#{spec.name}.gemspec" rescue nil
97   -end
98   -
99   -task :clean => [:clean_gemspec]
100   -task :clobber => [:clobber_package]
101   -
102   -desc "Package the library and generates the gemspec"
103   -task :package => [:gemspec]
104   -
105   -
106 102 require 'yard'
107 103 require 'yard/rake/yardoc_task'
108 104

0 comments on commit 52e0b51

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