diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-26 20:03:30 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-26 20:03:30 -0700 |
commit | ec8ae73b763f8d814adbae4868bac5f7b6c49a48 (patch) | |
tree | bda2605c5a6c4dea6c0ce087d53062e21cb5b1f4 | |
download | psych-ec8ae73b763f8d814adbae4868bac5f7b6c49a48.zip |
initial commit
-rw-r--r-- | .autotest | 23 | ||||
-rw-r--r-- | CHANGELOG.rdoc | 6 | ||||
-rw-r--r-- | Manifest.txt | 7 | ||||
-rw-r--r-- | README.rdoc | 48 | ||||
-rw-r--r-- | Rakefile | 29 | ||||
-rwxr-xr-x | bin/psych | 3 | ||||
-rw-r--r-- | ext/psych/extconf.rb | 9 | ||||
-rw-r--r-- | lib/psych.rb | 3 | ||||
-rw-r--r-- | test/test_psych.rb | 8 |
9 files changed, 136 insertions, 0 deletions
diff --git a/.autotest b/.autotest new file mode 100644 index 0000000..ef753ad --- /dev/null +++ b/.autotest @@ -0,0 +1,23 @@ +# -*- ruby -*- + +require 'autotest/restart' + +# Autotest.add_hook :initialize do |at| +# at.extra_files << "../some/external/dependency.rb" +# +# at.libs << ":../some/external" +# +# at.add_exception 'vendor' +# +# at.add_mapping(/dependency.rb/) do |f, _| +# at.files_matching(/test_.*rb$/) +# end +# +# %w(TestA TestB).each do |klass| +# at.extra_class_map[klass] = "test/test_misc.rb" +# end +# end + +# Autotest.add_hook :run_command do |at| +# system "rake build" +# end diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc new file mode 100644 index 0000000..3ae4609 --- /dev/null +++ b/CHANGELOG.rdoc @@ -0,0 +1,6 @@ +=== 1.0.0 / 2009-09-26 + +* 1 major enhancement + + * Birthday! + diff --git a/Manifest.txt b/Manifest.txt new file mode 100644 index 0000000..0c84276 --- /dev/null +++ b/Manifest.txt @@ -0,0 +1,7 @@ +History.txt +Manifest.txt +README.txt +Rakefile +bin/psych +lib/psych.rb +test/test_psych.rb diff --git a/README.rdoc b/README.rdoc new file mode 100644 index 0000000..fb21684 --- /dev/null +++ b/README.rdoc @@ -0,0 +1,48 @@ += psych + +* FIX (url) + +== DESCRIPTION: + +FIX (describe your package) + +== FEATURES/PROBLEMS: + +* FIX (list of features or problems) + +== SYNOPSIS: + + FIX (code sample of usage) + +== REQUIREMENTS: + +* FIX (list of requirements) + +== INSTALL: + +* FIX (sudo gem install, anything else) + +== LICENSE: + +(The MIT License) + +Copyright (c) 2009 FIX + +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. diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..542ef4e --- /dev/null +++ b/Rakefile @@ -0,0 +1,29 @@ +# -*- ruby -*- + +require 'rubygems' +require 'hoe' + +# Make sure hoe-debugging is installed +Hoe.plugin :debugging + +HOE = Hoe.spec 'psych' do + developer('Aaron Patterson', 'aaronp@rubyforge.org') + self.readme_file = 'README.rdoc' + self.history_file = 'CHANGELOG.rdoc' + self.extra_rdoc_files = FileList['*.rdoc'] + + %w{ rake-compiler }.each do |dep| + self.extra_dev_deps << [dep, '>= 0'] + end +end + +gem 'rake-compiler', '>= 0.4.1' +require "rake/extensiontask" + +RET = Rake::ExtensionTask.new("psych", HOE.spec) do |ext| + ext.lib_dir = File.join(*['lib', 'psych', ENV['FAT_DIR']].compact) +end + +Rake::Task[:test].prerequisites << :compile + +# vim: syntax=ruby diff --git a/bin/psych b/bin/psych new file mode 100755 index 0000000..1b4eff8 --- /dev/null +++ b/bin/psych @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby + +abort "you need to write me" diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb new file mode 100644 index 0000000..5e50432 --- /dev/null +++ b/ext/psych/extconf.rb @@ -0,0 +1,9 @@ +require 'mkmf' + +$CFLAGS << " -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline" + +libyaml = dir_config('libyaml', '/opt/local/include', '/opt/local/lib') + +find_header('yaml.h') + +create_makefile('psych/psych') diff --git a/lib/psych.rb b/lib/psych.rb new file mode 100644 index 0000000..31cd7f6 --- /dev/null +++ b/lib/psych.rb @@ -0,0 +1,3 @@ +class Psych + VERSION = '1.0.0' +end diff --git a/test/test_psych.rb b/test/test_psych.rb new file mode 100644 index 0000000..33a3cc0 --- /dev/null +++ b/test/test_psych.rb @@ -0,0 +1,8 @@ +require "test/unit" +require "psych" + +class TestPsych < Test::Unit::TestCase + def test_sanity + flunk "write tests or I will kneecap you" + end +end |