Skip to content

Commit

Permalink
added hoe
Browse files Browse the repository at this point in the history
  • Loading branch information
capnregex committed Sep 14, 2010
1 parent 4ec3f8d commit 718bf0f
Show file tree
Hide file tree
Showing 9 changed files with 120 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .autotest
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
=== 1.0.0 / 2010-09-13

* 1 major enhancement

* Birthday!

8 changes: 8 additions & 0 deletions Manifest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.autotest
History.txt
Manifest.txt
README.txt
Rakefile
bin/enum
lib/enum.rb
test/test_enum.rb
57 changes: 57 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
= enum

* 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)

== DEVELOPERS:

After checking out the source, run:

$ rake newb

This task will install any missing dependencies, run the tests/specs,
and generate the RDoc.

== LICENSE:

(The MIT License)

Copyright (c) 2010 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.
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# -*- ruby -*-

require 'rubygems'
require 'hoe'

Hoe.spec 'enum' do
# developer('FIX', 'FIX@example.com')

# self.rubyforge_name = 'enumx' # if different than 'enum'
end

# vim: syntax=ruby
3 changes: 3 additions & 0 deletions bin/enum
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env ruby

abort "you need to write me"
2 changes: 2 additions & 0 deletions init.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Enum

$LOAD_PATH.push File.join(File.dirname(__FILE__),'lib')
require 'enum'
1 change: 1 addition & 0 deletions lib/enum.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Enum
class Enum
VERSION = '1.0.0'
include Comparable
protected
def init *args
Expand Down
8 changes: 8 additions & 0 deletions test/test_enum.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require "test/unit"
require "enum"

class TestEnum < Test::Unit::TestCase
def test_sanity
flunk "write tests or I will kneecap you"
end
end

0 comments on commit 718bf0f

Please sign in to comment.