Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove manifest

  • Loading branch information...
commit 4dcbab9c7b48f2cff31cc18e051c9498fc18434a 1 parent fa823fa
@quix authored
Showing with 3 additions and 19 deletions.
  1. +3 −19 levitate.rb
View
22 levitate.rb
@@ -109,10 +109,6 @@ def self.attribute(name, &block)
"README.rdoc"
end
- attribute :manifest_file do
- "MANIFEST"
- end
-
attribute :generated_files do
[]
end
@@ -122,11 +118,9 @@ def self.attribute(name, &block)
end
attribute :files do
- if File.file? manifest_file
- File.read(manifest_file).split("\n")
- elsif source_control?
+ if source_control?
IO.popen("git ls-files") { |pipe| pipe.read.split "\n" }
- end.to_a + [manifest_file] + generated_files
+ end.to_a + generated_files
end
attribute :rdoc_files do
@@ -291,10 +285,6 @@ def define_package
if source_control?
require 'rubygems/package_task'
- task manifest_file do
- create_manifest
- end
- CLEAN.add manifest_file
task :package => :clean
Gem::PackageTask.new(gemspec).define
end
@@ -550,7 +540,7 @@ def define_release
task :finish_release do
git "tag", "#{gem_name}-" + version.to_s
git "push", "--tags", "origin", "master"
- sh "gem", "push", gem
+ sh "gem", "push", "pkg/#{gem_name}-#{version}.#{ext}"
end
task :release => [:prerelease, :package, :publish, :finish_release]
@@ -578,12 +568,6 @@ def git(*args)
sh "git", *args
end
- def create_manifest
- write_file(manifest_file) {
- files.sort.join("\n")
- }
- end
-
def open_browser(*files)
sh(*([browser].flatten + files))
end
Please sign in to comment.
Something went wrong with that request. Please try again.