-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://manifest.rubyforge.org/svn/trunk/manifest@17 9304de6f-5db2-47b2-8f37-0218b1ca5ad2
- Loading branch information
Showing
14 changed files
with
109 additions
and
1,680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pache License | ||
Apache License | ||
Version 2.0, January 2004 | ||
http://www.apache.org/licenses/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,5 @@ | ||
History.txt | ||
License.txt | ||
Manifest.txt | ||
README.txt | ||
Rakefile | ||
config/hoe.rb | ||
config/requirements.rb | ||
lib/manifest.rb | ||
lib/manifest/version.rb | ||
log/debug.log | ||
script/destroy | ||
script/generate | ||
script/txt2html | ||
setup.rb | ||
tasks/deployment.rake | ||
tasks/environment.rake | ||
tasks/website.rake | ||
test/test_helper.rb | ||
test/test_manifest.rb | ||
website/index.html | ||
website/index.txt | ||
website/javascripts/rounded_corners_lite.inc.js | ||
website/stylesheets/screen.css | ||
website/template.rhtml | ||
lib/manifest/version.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,32 @@ | ||
README | ||
= Manifest | ||
|
||
* http://manifest.rubyforge.org | ||
|
||
== DESCRIPTION: | ||
|
||
Manifest is a library to read Manifest files located in jars and OSGi bundles. | ||
|
||
== REQUIREMENTS: | ||
|
||
Development: | ||
* rspec | ||
|
||
== INSTALL: | ||
|
||
* sudo gem install manifest | ||
|
||
== LICENSE: | ||
|
||
Copyright (c) 2008-2009 Antoine Toulme, Ketan Padegaonkar | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,55 @@ | ||
require 'config/requirements' | ||
require 'config/hoe' # setup Hoe + all gem configuration | ||
|
||
Dir['tasks/**/*.rake'].each { |rake| load rake } | ||
desc 'Generate website files' | ||
task :website_generate => :ruby_env do | ||
(Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt| | ||
sh %{ #{RUBY_APP} script/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} } | ||
end | ||
end | ||
|
||
desc 'Upload website files to rubyforge' | ||
task :website_upload do | ||
host = "#{rubyforge_username}@rubyforge.org" | ||
remote_dir = "/var/www/gforge-projects/#{PATH}/" | ||
local_dir = 'website' | ||
sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}} | ||
end | ||
|
||
desc 'Generate and upload website files' | ||
task :website => [:website_generate, :website_upload] | ||
|
||
desc 'Release the website and new gem version' | ||
task :deploy => [:check_version, :website, :release] do | ||
puts "Remember to create SVN tag:" | ||
puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " + | ||
"svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} " | ||
puts "Suggested comment:" | ||
puts "Tagging release #{CHANGES}" | ||
end | ||
|
||
desc 'Runs tasks website_generate and install_gem as a local deployment of the gem' | ||
task :local_deploy => [:website_generate, :install_gem] | ||
|
||
task :check_version do | ||
unless ENV['VERSION'] | ||
puts 'Must pass a VERSION=x.y.z release version' | ||
exit | ||
end | ||
unless ENV['VERSION'] == VERS | ||
puts "Please update your version.rb to match the release version, currently #{VERS}" | ||
exit | ||
end | ||
end | ||
|
||
desc 'Install the package as a gem, without generating documentation(ri/rdoc)' | ||
task :install_gem_no_doc => [:clean, :package] do | ||
sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri" | ||
end | ||
|
||
namespace :manifest do | ||
desc 'Recreate Manifest.txt to include ALL files' | ||
task :refresh do | ||
`rake check_manifest | patch -p0 > Manifest.txt` | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,6 @@ def read(text) | |
} | ||
end | ||
end | ||
|
||
module_function :read | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.