Skip to content

Commit

Permalink
cleaning up
Browse files Browse the repository at this point in the history
git-svn-id: http://manifest.rubyforge.org/svn/trunk/manifest@17 9304de6f-5db2-47b2-8f37-0218b1ca5ad2
  • Loading branch information
atoulme committed Feb 22, 2009
1 parent 65fae46 commit 6cc240a
Show file tree
Hide file tree
Showing 14 changed files with 109 additions and 1,680 deletions.
2 changes: 1 addition & 1 deletion License.txt
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/

Expand Down
21 changes: 1 addition & 20 deletions Manifest.txt
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
33 changes: 32 additions & 1 deletion README.txt
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.
53 changes: 52 additions & 1 deletion Rakefile
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
2 changes: 1 addition & 1 deletion config/requirements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
include FileUtils

require 'rubygems'
%w[rake hoe newgem rubigen].each do |req_gem|
%w[rake newgem rubigen].each do |req_gem|
begin
require req_gem
rescue LoadError
Expand Down
2 changes: 2 additions & 0 deletions lib/manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ def read(text)
}
end
end

module_function :read
end
2 changes: 1 addition & 1 deletion lib/manifest/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Manifest #:nodoc:
module VERSION #:nodoc:
MAJOR = 0
MINOR = 0
TINY = 2
TINY = 3

STRING = [MAJOR, MINOR, TINY].join('.')
end
Expand Down
Empty file removed log/debug.log
Empty file.
Loading

0 comments on commit 6cc240a

Please sign in to comment.