Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

Commit

Permalink
Migrated off of Hoe and to Jeweler, for building/releasing yard-dm.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Feb 11, 2010
1 parent 7231aa7 commit 7cfd702
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 74 deletions.
1 change: 1 addition & 0 deletions .specopts
@@ -0,0 +1 @@
--colour --format specdoc
1 change: 1 addition & 0 deletions .yardopts
@@ -0,0 +1 @@
--markup markdown --title 'yard-dm Documentation' --protected --files ChangeLog.md,LICENSE.txt
File renamed without changes.
22 changes: 22 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,22 @@
(The MIT License)

Copyright (c) 2010 Hal Brodigan

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.
23 changes: 0 additions & 23 deletions Manifest.txt

This file was deleted.

36 changes: 8 additions & 28 deletions README.md
@@ -1,17 +1,17 @@
# yard-dm

* http://github.com/postmodern/yard-dm/
* http://github.com/postmodern/yard-dm/issues
* [github.com/postmodern/yard-dm](http://github.com/postmodern/yard-dm/)
* [github.com/postmodern/yard-dm/issues](http://github.com/postmodern/yard-dm/issues)
* Postmodern (postmodern.mod3 at gmail.com)

## DESCRIPTION:
## Description

A YARD plugin for parsing DataMapper model syntax.

Once yard-dm is installed, YARD will automatically load the plugin when ever
the `yardoc` utility is ran on a project.

## FEATURES:
## Features

Parses the following statements:

Expand All @@ -29,35 +29,15 @@ Parses the following statements:

belongs_to :stuff

## REQUIREMENTS:
## Requirements

* [yard](http://yardoc.org/) >= 0.4.0

## INSTALL:
## Install

$ sudo gem install yard-dm

## LICENSE:
## License

(The MIT License)
See {file:LICENSE.txt} for license information.

Copyright (c) 2010 Hal Brodigan

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.
56 changes: 33 additions & 23 deletions Rakefile
@@ -1,29 +1,39 @@
# -*- ruby -*-

require 'rubygems'
require 'hoe'
require 'hoe/signing'
require './tasks/yard.rb'

Hoe.spec('yard-dm') do
self.version = '0.1.1'
self.developer('Postmodern', 'postmodern.mod3@gmail.com')

self.readme_file = 'README.md'
self.history_file = 'History.md'
self.remote_rdoc_dir = '/'
require 'rake'

begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = 'yard-dm'
gem.summary = %Q{A YARD plugin for parsing DataMapper model syntax.}
gem.description = %Q{Once yard-dm is installed, YARD will automatically load the plugin when ever the `yardoc` utility is ran on a project.}
gem.email = 'postmodern.mod3@gmail.com'
gem.homepage = 'http://github.com/postmodern/yard-dm'
gem.authors = ['Postmodern']
gem.add_development_dependency 'rspec', '>= 1.3.0'
gem.add_development_dependency 'yard', '>= 0.4.0'
gem.has_rdoc = 'yard'
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

self.rspec_options += ['--colour', '--format', 'specdoc']
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs += ['lib', 'spec']
spec.spec_files = FileList['spec/**/*_spec.rb']
spec.spec_opts = ['--options', '.specopts']
end

self.extra_deps += [
['yard', '>=0.4.0']
]
task :spec => :check_dependencies
task :default => :spec

self.extra_dev_deps += [
['rspec', '>=1.2.9']
]
begin
require 'yard'

self.spec_extras.merge!(:has_rdoc => 'yard')
YARD::Rake::YardocTask.new
rescue LoadError
task :yard do
abort "YARD is not available. In order to run yard, you must: gem install yard"
end
end

# vim: syntax=ruby
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
0.1.0
81 changes: 81 additions & 0 deletions yard-dm.gemspec
@@ -0,0 +1,81 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{yard-dm}
s.version = "0.1.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Postmodern"]
s.date = %q{2010-02-11}
s.description = %q{Once yard-dm is installed, YARD will automatically load the plugin when ever the `yardoc` utility is ran on a project.}
s.email = %q{postmodern.mod3@gmail.com}
s.extra_rdoc_files = [
"ChangeLog.md",
"LICENSE.txt",
"README.md"
]
s.files = [
".gitignore",
".specopts",
".yardopts",
"ChangeLog.md",
"LICENSE.txt",
"README.md",
"Rakefile",
"VERSION",
"lib/yard-dm.rb",
"lib/yard-dm/belongs_to_handler.rb",
"lib/yard-dm/extensions.rb",
"lib/yard-dm/has_handler.rb",
"lib/yard-dm/legacy/belongs_to_handler.rb",
"lib/yard-dm/legacy/has_handler.rb",
"lib/yard-dm/legacy/property_handler.rb",
"lib/yard-dm/property_handler.rb",
"spec/belongs_to_handler_spec.rb",
"spec/has_handler_spec.rb",
"spec/helpers/examples.rb",
"spec/helpers/examples/has_n.rb.txt",
"spec/helpers/examples/has_one.rb.txt",
"spec/helpers/examples/has_one_to_n.rb.txt",
"spec/helpers/examples/has_zero.rb.txt",
"spec/helpers/examples/has_zero_to_n.rb.txt",
"spec/helpers/examples/simple_belongs_to.rb.txt",
"spec/helpers/examples/simple_properties.rb.txt",
"spec/property_handler_spec.rb",
"spec/spec_helper.rb",
"tasks/yard.rb"
]
s.has_rdoc = %q{yard}
s.homepage = %q{http://github.com/postmodern/yard-dm}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
s.summary = %q{A YARD plugin for parsing DataMapper model syntax.}
s.test_files = [
"spec/helpers/examples.rb",
"spec/spec_helper.rb",
"spec/belongs_to_handler_spec.rb",
"spec/property_handler_spec.rb",
"spec/has_handler_spec.rb"
]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
s.add_development_dependency(%q<yard>, [">= 0.4.0"])
else
s.add_dependency(%q<rspec>, [">= 1.3.0"])
s.add_dependency(%q<yard>, [">= 0.4.0"])
end
else
s.add_dependency(%q<rspec>, [">= 1.3.0"])
s.add_dependency(%q<yard>, [">= 0.4.0"])
end
end

0 comments on commit 7cfd702

Please sign in to comment.