Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Rakefiled it up.

  • Loading branch information...
commit 5c70140c91bbb76e89a891f9af97f8e621fa5a9b 1 parent d946b03
Erik Hollensbe authored
View
3  .gitignore
@@ -0,0 +1,3 @@
+.test-result
+pkg
+rdoc
View
76 Rakefile
@@ -0,0 +1,76 @@
+#
+# Please see the COPYING file in the source distribution for copyright information.
+#
+
+begin
+ require 'rubygems'
+ gem 'test-unit'
+rescue LoadError
+end
+
+$:.unshift 'lib'
+require 'rake/testtask'
+require 'rake/packagetask'
+require 'rake/gempackagetask'
+require 'rake/rdoctask'
+require 'deprecated'
+
+task :default => [ :dist ]
+
+#
+# Tests
+#
+
+Rake::TestTask.new do |t|
+ t.libs << 'lib'
+ t.test_files = FileList['test/test*.rb']
+ t.verbose = true
+end
+
+#
+# Distribution
+#
+
+task :dist => [:test, :repackage, :gem, :rdoc]
+task :distclean => [:clobber_package, :clobber_rdoc]
+task :clean => [:distclean]
+
+#
+# Documentation
+#
+
+Rake::RDocTask.new do |rd|
+ rd.rdoc_dir = "rdoc"
+ rd.main = "Deprecated"
+ rd.rdoc_files.include("./lib/**/*.rb")
+ rd.options = %w(-ap)
+end
+
+#
+# Packaging
+#
+
+
+spec = Gem::Specification.new do |s|
+ s.name = "deprecated"
+ s.version = Deprecated::VERSION
+ s.author = "Erik Hollensbe"
+ s.email = "erik@hollensbe.org"
+ s.summary = "An easy way to handle deprecating and conditionally running deprecated code"
+ s.has_rdoc = true
+ s.files = Dir['Rakefile'] + Dir['lib/deprecated.rb'] + Dir['test/test_deprecated.rb']
+ s.test_file = "test/test_deprecated.rb"
+ s.rubyforge_project = 'deprecated'
+end
+
+Rake::GemPackageTask.new(spec) do |s|
+end
+
+Rake::PackageTask.new(spec.name, spec.version) do |p|
+ p.need_tar_gz = true
+ p.need_zip = true
+ p.package_files.include("./setup.rb")
+ p.package_files.include("./Rakefile")
+ p.package_files.include("./lib/**/*.rb")
+ p.package_files.include("./test/**/*")
+end
View
10 deprecated.gemspec
@@ -1,10 +0,0 @@
-spec = Gem::Specification.new
-spec.name = "deprecated"
-spec.version = "2.0.1"
-spec.author = "Erik Hollensbe"
-spec.email = "erik@hollensbe.org"
-spec.summary = "An easy way to handle deprecating and conditionally running deprecated code"
-spec.has_rdoc = true
-spec.files = Dir['lib/deprecated.rb'] + Dir['test/deprecated.rb']
-spec.test_file = "test/deprecated.rb"
-spec.rubyforge_project = 'deprecated'
View
2  lib/deprecated.rb
@@ -80,6 +80,8 @@
#++
module Deprecated
+
+ VERSION = "2.0.1"
#
# set_action defines the action that will be taken when code marked
View
0  test/deprecated.rb → test/test_deprecated.rb
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.