Skip to content
Browse files

Re-generated the project using Ore 0.9.3.

  • Loading branch information...
1 parent 51f5b96 commit 90257554a2303b2633976394f25d01291d74e49f @postmodern committed May 28, 2012
Showing with 133 additions and 181 deletions.
  1. +3 −0 .document
  2. +4 −8 .gitignore
  3. +1 −0 .rspec
  4. +1 −1 .yardopts
  5. +9 −15 Gemfile
  6. +0 −22 Gemfile.lock
  7. +1 −2 LICENSE.txt
  8. +5 −6 README.md
  9. +21 −24 Rakefile
  10. +0 −1 VERSION
  11. +17 −0 gemspec.yml
  12. +1 −0 lib/yard/dm.rb
  13. +6 −0 lib/yard/dm/version.rb
  14. +8 −0 spec/dm_spec.rb
  15. +3 −14 spec/spec_helper.rb
  16. +53 −88 yard-dm.gemspec
View
3 .document
@@ -0,0 +1,3 @@
+-
+ChangeLog.md
+LICENSE.txt
View
12 .gitignore
@@ -1,8 +1,4 @@
-pkg
-doc
-tmp
-.DS_Store
-.bundle
-.yardoc
-*.swp
-*~
+Gemfile.lock
+doc/
+pkg/
+vendor/cache/*.gem
View
1 .rspec
@@ -0,0 +1 @@
+--colour --format documentation
View
2 .yardopts
@@ -1 +1 @@
---markup markdown --title 'yard-dm Documentation' --protected --files ChangeLog.md,LICENSE.txt
+--markup markdown --title "yard-dm Documentation" --protected
View
24 Gemfile
@@ -1,19 +1,13 @@
-source 'https://rubygems.org'
+source :rubygems
-gem 'yard', '~> 0.6', :group => [:development, :runtime]
+gemspec
-group(:development) do
- gem 'rake', '~> 0.8.7'
- gem 'jeweler', '~> 1.5.0.pre'
-end
+group :development do
+ gem 'rake', '~> 0.8'
+ gem 'rubygems-tasks', '~> 0.2'
-group(:doc) do
- case RUBY_PLATFORM
- when 'java'
- gem 'maruku', '~> 0.6.0'
- else
- gem 'rdiscount', '~> 1.6.3'
- end
-end
+ gem 'rspec', '~> 2.4'
-gem 'rspec', '~> 1.3.0', :group => [:development, :test]
+ gem 'kramdown', '~> 0.12'
+ gem 'yard'
+end
View
22 Gemfile.lock
@@ -1,22 +0,0 @@
-GEM
- remote: https://rubygems.org/
- specs:
- git (1.2.5)
- jeweler (1.5.0.pre2)
- bundler (>= 1.0.0.rc.5)
- git (>= 1.2.5)
- rake
- rake (0.8.7)
- rdiscount (1.6.5)
- rspec (1.3.0)
- yard (0.6.1)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- jeweler (~> 1.5.0.pre)
- rake (~> 0.8.7)
- rdiscount (~> 1.6.3)
- rspec (~> 1.3.0)
- yard (~> 0.6.0)
View
3 LICENSE.txt
@@ -1,5 +1,5 @@
-Copyright (c) 2010 Hal Brodigan
+Copyright (c) 2010-2012 Hal Brodigan
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
@@ -19,4 +19,3 @@ 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.
-
View
11 README.md
@@ -1,8 +1,8 @@
# yard-dm
-* [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)
+* [Source](https://github.com/postmodern/yard-dm)
+* [Issues](https://github.com/postmodern/yard-dm/issues)
+* [Email](mailto:postmodern.mod3 at gmail.com)
## Description
@@ -31,13 +31,12 @@ Parses the following statements:
## Requirements
-* [yard](http://yardoc.org/) >= 0.4.0
+* [yard](http://yardoc.org/) ~> 0.4
## Install
- $ sudo gem install yard-dm
+ $ gem install yard-dm
## License
See {file:LICENSE.txt} for license information.
-
View
45 Rakefile
@@ -1,37 +1,34 @@
+# encoding: utf-8
+
require 'rubygems'
-require 'bundler'
begin
- Bundler.setup(:development, :doc)
+ require 'bundler'
+rescue LoadError => e
+ warn e.message
+ warn "Run `gem install bundler` to install Bundler."
+ exit e.status_code
+end
+
+begin
+ Bundler.setup(:development)
rescue Bundler::BundlerError => e
- STDERR.puts e.message
- STDERR.puts "Run `bundle install` to install missing gems"
+ warn e.message
+ warn "Run `bundle install` to install missing gems."
exit e.status_code
end
require 'rake'
-require 'jeweler'
-
-Jeweler::Tasks.new do |gem|
- gem.name = 'yard-dm'
- gem.license = 'MIT'
- 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.has_rdoc = 'yard'
-end
-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
+require 'rubygems/tasks'
+Gem::Tasks.new
+
+require 'rspec/core/rake_task'
+RSpec::Core::RakeTask.new
-task :test => :spec
+task :test => :spec
task :default => :spec
require 'yard'
-YARD::Rake::YardocTask.new
+YARD::Rake::YardocTask.new
+task :doc => :yard
View
1 VERSION
@@ -1 +0,0 @@
-0.1.1
View
17 gemspec.yml
@@ -0,0 +1,17 @@
+name: yard-dm
+version: 0.1.1
+summary: A YARD plugin for parsing DataMapper model syntax.
+description:
+ Once yard-dm is installed, YARD will automatically load the plugin when
+ ever the `yardoc` utility is ran on a project.
+
+license: MIT
+authors: Postmodern
+email: postmodern.mod3@gmail.com
+homepage: https://github.com/postmodern/yard-dm#readme
+
+dependencies:
+ yard: ~> 0.4
+
+development_dependencies:
+ bundler: ~> 1.0
View
1 lib/yard/dm.rb
@@ -0,0 +1 @@
+require 'yard/dm/version'
View
6 lib/yard/dm/version.rb
@@ -0,0 +1,6 @@
+module YARD
+ module DataMapper
+ # yard-dm version
+ VERSION = "0.1.0"
+ end
+end
View
8 spec/dm_spec.rb
@@ -0,0 +1,8 @@
+require 'spec_helper'
+require 'yard/dm'
+
+describe YARD::DataMapper do
+ it "should have a VERSION constant" do
+ subject.const_get('VERSION').should_not be_empty
+ end
+end
View
17 spec/spec_helper.rb
@@ -1,15 +1,4 @@
-require 'rubygems'
-require 'bundler'
+require 'rspec'
+require 'yard/dm/version'
-begin
- Bundler.setup(:runtime, :test)
-rescue Bundler::BundlerError => e
- STDERR.puts e.message
- STDERR.puts "Run `bundle install` to install missing gems"
- exit e.status_code
-end
-
-require 'spec'
-require 'yard'
-
-include YARD
+include YARD::DataMapper
View
141 yard-dm.gemspec
@@ -1,95 +1,60 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
-# -*- encoding: utf-8 -*-
+# encoding: utf-8
-Gem::Specification.new do |s|
- s.name = %q{yard-dm}
- s.version = "0.1.1"
+require 'yaml'
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Postmodern"]
- s.date = %q{2010-06-15}
- 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",
- "Gemfile",
- "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/invalid_belongs_to.rb.txt",
- "spec/helpers/examples/invalid_has.rb.txt",
- "spec/helpers/examples/invalid_properties.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",
- "yard-dm.gemspec"
- ]
- s.has_rdoc = %q{yard}
- s.homepage = %q{http://github.com/postmodern/yard-dm}
- s.licenses = ["MIT"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{A YARD plugin for parsing DataMapper model syntax.}
- s.test_files = [
- "spec/belongs_to_handler_spec.rb",
- "spec/has_handler_spec.rb",
- "spec/helpers/examples.rb",
- "spec/property_handler_spec.rb",
- "spec/spec_helper.rb"
- ]
+Gem::Specification.new do |gem|
+ gemspec = YAML.load_file('gemspec.yml')
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
+ gem.name = gemspec.fetch('name')
+ gem.version = gemspec.fetch('version') do
+ lib_dir = File.join(File.dirname(__FILE__),'lib')
+ $LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<yard>, ["~> 0.5.3"])
- s.add_development_dependency(%q<yard>, ["~> 0.5.3"])
- s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.4.0"])
- s.add_development_dependency(%q<rspec>, ["~> 1.3.0"])
- else
- s.add_dependency(%q<yard>, ["~> 0.5.3"])
- s.add_dependency(%q<yard>, ["~> 0.5.3"])
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
- s.add_dependency(%q<jeweler>, ["~> 1.4.0"])
- s.add_dependency(%q<rspec>, ["~> 1.3.0"])
+ require 'yard/dm/version'
+ YARD::DataMapper::VERSION
+ end
+
+ gem.summary = gemspec['summary']
+ gem.description = gemspec['description']
+ gem.licenses = Array(gemspec['license'])
+ gem.authors = Array(gemspec['authors'])
+ gem.email = gemspec['email']
+ gem.homepage = gemspec['homepage']
+
+ glob = lambda { |patterns| gem.files & Dir[*patterns] }
+
+ gem.files = `git ls-files`.split($/)
+ gem.files = glob[gemspec['files']] if gemspec['files']
+
+ gem.executables = gemspec.fetch('executables') do
+ glob['bin/*'].map { |path| File.basename(path) }
+ end
+ gem.default_executable = gem.executables.first if Gem::VERSION < '1.7.'
+
+ gem.extensions = glob[gemspec['extensions'] || 'ext/**/extconf.rb']
+ gem.test_files = glob[gemspec['test_files'] || '{test/{**/}*_test.rb']
+ gem.extra_rdoc_files = glob[gemspec['extra_doc_files'] || '*.{txt,md}']
+
+ gem.require_paths = Array(gemspec.fetch('require_paths') {
+ %w[ext lib].select { |dir| File.directory?(dir) }
+ })
+
+ gem.requirements = gemspec['requirements']
+ gem.required_ruby_version = gemspec['required_ruby_version']
+ gem.required_rubygems_version = gemspec['required_rubygems_version']
+ gem.post_install_message = gemspec['post_install_message']
+
+ split = lambda { |string| string.split(/,\s*/) }
+
+ if gemspec['dependencies']
+ gemspec['dependencies'].each do |name,versions|
+ gem.add_dependency(name,split[versions])
end
- else
- s.add_dependency(%q<yard>, ["~> 0.5.3"])
- s.add_dependency(%q<yard>, ["~> 0.5.3"])
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
- s.add_dependency(%q<jeweler>, ["~> 1.4.0"])
- s.add_dependency(%q<rspec>, ["~> 1.3.0"])
end
-end
+ if gemspec['development_dependencies']
+ gemspec['development_dependencies'].each do |name,versions|
+ gem.add_development_dependency(name,split[versions])
+ end
+ end
+end

0 comments on commit 9025755

Please sign in to comment.
Something went wrong with that request. Please try again.