Permalink
Browse files

Initial carpentry

  • Loading branch information...
0 parents commit 8e745832928b9fba280adfb9b994cebdb582ffb4 @delano committed Jul 8, 2009
Showing with 172 additions and 0 deletions.
  1. +6 −0 CHANGES.txt
  2. +19 −0 LICENSE.txt
  3. +18 −0 README.txt
  4. +81 −0 Rakefile
  5. +48 −0 attic.gemspec
@@ -0,0 +1,6 @@
+ATTIC, CHANGES
+
+
+#### 0.2 (2009-07-08) ###############################
+
+NOTE: Initial public release
@@ -0,0 +1,19 @@
+Copyright (c) 2009 Solutious Inc, Delano Mandelbaum
+
+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,18 @@
+= Attic - v0.2
+
+A place for Ruby objects to hide instance variables.
+
+== Installation
+
+One of:
+
+* `$ gem install attic`
+* `$ gem install delano-attic --source http://gems.github.com/`
+
+== Credits
+
+* Delano (@solutious.com)
+
+== License
+
+See: LICENSE.txt
@@ -0,0 +1,81 @@
+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 = 'attic'
+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' << '-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
+
+
@@ -0,0 +1,48 @@
+@spec = Gem::Specification.new do |s|
+ s.name = "attic"
+ s.rubyforge_project = "attic"
+ s.version = "0.2"
+ s.summary = "A place for Ruby objects to hide instance variables."
+ s.description = s.summary
+ s.author = "Delano Mandelbaum"
+ s.email = "delano@solutious.com"
+ s.homepage = "http://github.com/delano/attic"
+
+ # = EXECUTABLES =
+ # The list of executables in your project (if any). Don't include the path,
+ # just the base filename.
+ s.executables = %w[]
+
+ # Directories to extract rdocs from
+ s.require_paths = %w[lib]
+
+ # Specific files to include rdocs from
+ s.extra_rdoc_files = %w[README.rdoc LICENSE.txt CHANGES.txt]
+
+ # Update --main to reflect the default page to display
+ s.rdoc_options = ["--line-numbers", "--title", s.summary, "--main", "README.rdoc"]
+
+ # = DEPENDENCIES =
+ # Add all gem dependencies
+ #s.add_dependency 'name1'
+ #s.add_dependency 'name2', '>= 0.0.0'
+
+ # = MANIFEST =
+ # The complete list of files to be included in the release. When GitHub packages your gem,
+ # it doesn't allow you to run any command that accesses the filesystem. You will get an
+ # error. You can ask your VCS for the list of versioned files:
+ # git ls-files
+ # svn list -R
+ s.files = %w(
+ CHANGES.txt
+ LICENSE.txt
+ README.txt
+ Rakefile
+ attic.gemspec
+ )
+
+ s.has_rdoc = true
+ s.rubygems_version = '1.3.0'
+
+
+end

0 comments on commit 8e74583

Please sign in to comment.