From c22aa8059fb09690f4dc01c69e5e19f7f02c706c Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Tue, 10 Jun 2008 16:00:41 +0200 Subject: [PATCH] added license and todo files --- LICENSE | 20 ++++++++++++++++++++ Rakefile | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ TODO | 5 +++++ 3 files changed, 78 insertions(+) create mode 100644 LICENSE create mode 100644 TODO diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..21dc687 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2008 Jonas Nicklas + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/Rakefile b/Rakefile index 3e2892e..146ce60 100644 --- a/Rakefile +++ b/Rakefile @@ -1,7 +1,60 @@ +require 'rubygems' require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'spec/rake/spectask' +require 'rake/gempackagetask' +require 'rubygems/specification' +require 'date' + +PLUGIN = "rorem" +NAME = "rorem" +GEM_VERSION = "0.1" +AUTHOR = "Jonas Nicklas" +EMAIL = "jonas.nicklas@gmail.com" +HOMEPAGE = "http://rorem.rubyforge.org" +SUMMARY = "Random Data Generator" + +spec = Gem::Specification.new do |s| + s.name = NAME + s.version = GEM_VERSION + s.platform = Gem::Platform::RUBY + s.has_rdoc = true + s.extra_rdoc_files = ["README", "LICENSE", 'TODO'] + s.summary = SUMMARY + s.description = s.summary + s.author = AUTHOR + s.email = EMAIL + s.homepage = HOMEPAGE + s.require_path = 'lib' + s.autorequire = PLUGIN + s.files = %w(LICENSE README Rakefile TODO) + Dir.glob("{lib,spec,assets,tasks}/**/*") +end + +Rake::GemPackageTask.new(spec) do |pkg| + pkg.gem_spec = spec +end + +desc "install the plugin locally" +task :install => [:package] do + sh %{sudo gem install pkg/#{NAME}-#{VERSION} --no-update-sources} +end + +desc "create a gemspec file" +task :make_spec do + File.open("#{GEM}.gemspec", "w") do |file| + file.puts spec.to_ruby + end +end + +namespace :jruby do + + desc "Run :package and install the resulting .gem with jruby" + task :install => :package do + sh %{#{SUDO} jruby -S gem install pkg/#{NAME}-#{Merb::VERSION}.gem --no-rdoc --no-ri} + end + +end file_list = FileList['spec/*_spec.rb'] diff --git a/TODO b/TODO new file mode 100644 index 0000000..690789b --- /dev/null +++ b/TODO @@ -0,0 +1,5 @@ +TODO +==== + +* Add Distributions +* More Refined Options \ No newline at end of file