Permalink
Browse files

Extracted from Rudy

  • Loading branch information...
0 parents commit a18d78d816b2373aafbdce0dc8ede340eb6243f1 @delano committed May 7, 2009
Showing with 501 additions and 0 deletions.
  1. +8 −0 CHANGES.txt
  2. +19 −0 LICENSE.txt
  3. +23 −0 README.rdoc
  4. +104 −0 Rakefile
  5. +292 −0 lib/storable.rb
  6. +55 −0 storable.gemspec
@@ -0,0 +1,8 @@
+STORABLE, CHANGES
+
+
+#### 0.5 (2009-05-07) ###############################
+
+* First public release. See commit history for solutious-stella, solutious-rudy,
+and delano-delanotes for complete history of SysInfo (was SystemInfo).
+
@@ -0,0 +1,19 @@
+Copyright (c) 2009 Delano Mandelbaum, Solutious Inc
+
+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.
@@ -0,0 +1,23 @@
+= Storable - v0.5
+
+All your system-independent infoz in one handy class.
+
+== Installation
+
+Via Rubygems, one of:
+
+ $ sudo gem install storable
+ $ sudo gem install delano-storable --source http://gems.github.com/
+
+or via download:
+* storable-latest.tar.gz[http://github.com/delano/storable/tarball/latest]
+* storable-latest.zip[http://github.com/delano/storable/zipball/latest]
+
+
+== Credits
+
+* Delano Mandelbaum (delano@solutious.com)
+
+== License
+
+See: LICENSE.txt
@@ -0,0 +1,104 @@
+require 'rubygems'
+require 'rake/clean'
+require 'rake/gempackagetask'
+require 'rake/rdoctask'
+require 'fileutils'
+include FileUtils
+
+task :default => :package
+
+# CONFIG =============================================================
+
+# Change the following according to your needs
+README = "README.txt"
+CHANGES = "CHANGES.txt"
+LICENSE = "LICENSE.txt"
+
+# Files and directories to be deleted when you run "rake clean"
+CLEAN.include [ 'pkg', '*.gem', '.config']
+
+# Virginia assumes your project and gemspec have the same name
+name = (Dir.glob('*.gemspec') || ['virginia']).first.split('.').first
+load "#{name}.gemspec"
+version = @spec.version
+
+# That's it! The following defaults should allow you to get started
+# on other things.
+
+
+# TESTS/SPECS =========================================================
+
+
+
+# INSTALL =============================================================
+
+Rake::GemPackageTask.new(@spec) do |p|
+ p.need_tar = true if RUBY_PLATFORM !~ /mswin/
+end
+
+task :release => [ :rdoc, :package ]
+task :install => [ :rdoc, :package ] do
+ sh %{sudo gem install pkg/#{name}-#{version}.gem}
+end
+task :uninstall => [ :clean ] do
+ sh %{sudo gem uninstall #{name}}
+end
+
+
+# RUBYFORGE RELEASE / PUBLISH TASKS ==================================
+
+if @spec.rubyforge_project
+ desc 'Publish website to rubyforge'
+ task 'publish:rdoc' => 'doc/index.html' do
+ sh "scp -rp doc/* rubyforge.org:/var/www/gforge-projects/#{name}/"
+ end
+
+ desc 'Public release to rubyforge'
+ task 'publish:gem' => [:package] do |t|
+ sh <<-end
+ rubyforge add_release -o Any -a #{CHANGES} -f -n #{README} #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.gem &&
+ rubyforge add_file -o Any -a #{CHANGES} -f -n #{README} #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.tgz
+ end
+ end
+end
+
+
+
+# RUBY DOCS TASK ==================================
+
+Rake::RDocTask.new do |t|
+ t.rdoc_dir = 'doc'
+ t.title = @spec.summary
+ t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
+ t.options << '--charset' << 'utf-8'
+ t.rdoc_files.include(LICENSE)
+ t.rdoc_files.include(README)
+ t.rdoc_files.include(CHANGES)
+ #t.rdoc_files.include('bin/*')
+ #t.rdoc_files.include('lib/**/*.rb')
+end
+
+
+
+
+#Hoe.new('rspec', Spec::VERSION::STRING) do |p|
+# p.summary = Spec::VERSION::SUMMARY
+# p.description = "Behaviour Driven Development for Ruby."
+# p.rubyforge_name = 'rspec'
+# p.developer('RSpec Development Team', 'rspec-devel@rubyforge.org')
+# p.extra_dev_deps = [["cucumber",">= 0.1.13"]]
+# p.remote_rdoc_dir = "rspec/#{Spec::VERSION::STRING}"
+# p.rspec_options = ['--options', 'spec/spec.opts']
+# p.history_file = 'History.rdoc'
+# p.readme_file = 'README.rdoc'
+# p.post_install_message = <<-POST_INSTALL_MESSAGE
+##{'*'*50}
+#
+# Thank you for installing rspec-#{Spec::VERSION::STRING}
+#
+# Please be sure to read History.rdoc and Upgrade.rdoc
+# for useful information about this release.
+#
+#{'*'*50}
+#POST_INSTALL_MESSAGE
+#end
Oops, something went wrong.

0 comments on commit a18d78d

Please sign in to comment.