Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

Commit

Permalink
[dm-more] Converted to use Jeweler
Browse files Browse the repository at this point in the history
* Removed old/unecessary files
  • Loading branch information
dkubb committed Nov 24, 2009
1 parent efa9d03 commit 0cac61f
Show file tree
Hide file tree
Showing 17 changed files with 204 additions and 148 deletions.
23 changes: 0 additions & 23 deletions History.rdoc

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright (c) 2007 Paul Sadauskas Copyright (c) 2009 Paul Sadauskas


Permission is hereby granted, free of charge, to any person obtaining Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the a copy of this software and associated documentation files (the
Expand Down
41 changes: 0 additions & 41 deletions Manifest.txt

This file was deleted.

43 changes: 25 additions & 18 deletions Rakefile
@@ -1,24 +1,31 @@
require 'pathname' require 'rubygems'
require 'rake'


ROOT = Pathname(__FILE__).dirname.expand_path FileList['tasks/**/*.rake'].each { |task| load task }
JRUBY = RUBY_PLATFORM =~ /java/
WINDOWS = Gem.win_platform? || (JRUBY && ENV_JAVA['os.name'] =~ /windows/i)
SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])


require ROOT + 'lib/dm-migrations/version' begin
require 'jeweler'


AUTHOR = 'Paul Sadauskas' Jeweler::Tasks.new do |gem|
EMAIL = 'psadauskas [a] gmail [d] com' gem.name = 'dm-migrations'
GEM_NAME = 'dm-migrations' gem.summary = 'DataMapper plugin for writing and speccing migrations'
GEM_VERSION = DataMapper::Migration::VERSION gem.description = gem.summary
GEM_DEPENDENCIES = [['dm-core', GEM_VERSION]] gem.email = 'psadauskas [a] gmail [d] com'
GEM_CLEAN = %w[ log pkg coverage ] gem.homepage = 'http://github.com/datamapper/dm-more/tree/master/%s' % gem.name
GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.rdoc LICENSE TODO History.rdoc ] } gem.authors = [ 'Paul Sadauskas' ]


PROJECT_NAME = 'datamapper' gem.rubyforge_project = 'datamapper'
PROJECT_URL = "http://github.com/datamapper/dm-more/tree/master/#{GEM_NAME}"
PROJECT_DESCRIPTION = PROJECT_SUMMARY = 'DataMapper plugin for writing and speccing migrations'


[ ROOT, ROOT.parent ].each do |dir| gem.add_dependency 'dm-core', '~>0.10.2'
Pathname.glob(dir.join('tasks/**/*.rb').to_s).each { |f| require f }
gem.add_development_dependency 'rspec', '>= 1.2.9'
gem.add_development_dependency 'yard', '>= 0.4.0'
end

Jeweler::GemcutterTasks.new
Jeweler::RubyforgeTasks.new do |rubyforge|
rubyforge.doc_task = 'yardoc'
end
rescue LoadError
puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler'
end end
Empty file removed TODO
Empty file.
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
0.10.2
81 changes: 81 additions & 0 deletions dm-migrations.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{dm-migrations}
s.version = "0.10.2"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Paul Sadauskas"]
s.date = %q{2009-11-23}
s.description = %q{DataMapper plugin for writing and speccing migrations}
s.email = %q{psadauskas [a] gmail [d] com}
s.extra_rdoc_files = [
"LICENSE",
"README.rdoc"
]
s.files = [
"LICENSE",
"README.rdoc",
"Rakefile",
"db/migrations/1_create_people_table.rb",
"db/migrations/2_add_dob_to_people.rb",
"db/migrations/config.rb",
"examples/sample_migration.rb",
"examples/sample_migration_spec.rb",
"lib/dm-migrations.rb",
"lib/dm-migrations/migration.rb",
"lib/dm-migrations/migration_runner.rb",
"lib/dm-migrations/sql.rb",
"lib/dm-migrations/sql/column.rb",
"lib/dm-migrations/sql/mysql.rb",
"lib/dm-migrations/sql/postgresql.rb",
"lib/dm-migrations/sql/sqlite3.rb",
"lib/dm-migrations/sql/table.rb",
"lib/dm-migrations/sql/table_creator.rb",
"lib/dm-migrations/sql/table_modifier.rb",
"lib/spec/example/migration_example_group.rb",
"lib/spec/matchers/migration_matchers.rb",
"spec/integration/migration_runner_spec.rb",
"spec/integration/migration_spec.rb",
"spec/integration/sql_spec.rb",
"spec/spec.opts",
"spec/spec_helper.rb",
"spec/unit/migration_spec.rb",
"spec/unit/sql/column_spec.rb",
"spec/unit/sql/postgresql_spec.rb",
"spec/unit/sql/sqlite3_extensions_spec.rb",
"spec/unit/sql/table_creator_spec.rb",
"spec/unit/sql/table_modifier_spec.rb",
"spec/unit/sql/table_spec.rb",
"spec/unit/sql_spec.rb"
]
s.homepage = %q{http://github.com/datamapper/dm-more/tree/master/dm-migrations}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{datamapper}
s.rubygems_version = %q{1.3.5}
s.summary = %q{DataMapper plugin for writing and speccing migrations}

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_runtime_dependency(%q<dm-core>, ["~> 0.10.2"])
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
s.add_development_dependency(%q<yard>, [">= 0.4.0"])
else
s.add_dependency(%q<dm-core>, ["~> 0.10.2"])
s.add_dependency(%q<rspec>, [">= 1.2.9"])
s.add_dependency(%q<yard>, [">= 0.4.0"])
end
else
s.add_dependency(%q<dm-core>, ["~> 0.10.2"])
s.add_dependency(%q<rspec>, [">= 1.2.9"])
s.add_dependency(%q<yard>, [">= 0.4.0"])
end
end

5 changes: 0 additions & 5 deletions lib/dm-migrations/version.rb

This file was deleted.

6 changes: 6 additions & 0 deletions spec/rcov.opts
@@ -0,0 +1,6 @@
--exclude "spec"
--sort coverage
--callsites
--xrefs
--profile
--text-summary
1 change: 1 addition & 0 deletions tasks/ci.rake
@@ -0,0 +1 @@
task :ci => [ :verify_measurements, 'metrics:all' ]
22 changes: 0 additions & 22 deletions tasks/db.rb

This file was deleted.

13 changes: 0 additions & 13 deletions tasks/install.rb

This file was deleted.

36 changes: 36 additions & 0 deletions tasks/metrics.rake
@@ -0,0 +1,36 @@
begin
require 'metric_fu'
rescue LoadError
namespace :metrics do
task :all do
abort 'metric_fu is not available. In order to run metrics:all, you must: gem install metric_fu'
end
end
end

begin
require 'reek/adapters/rake_task'

Reek::RakeTask.new do |t|
t.fail_on_error = true
t.verbose = false
t.source_files = 'lib/**/*.rb'
end
rescue LoadError
task :reek do
abort 'Reek is not available. In order to run reek, you must: gem install reek'
end
end

begin
require 'roodi'
require 'roodi_task'

RoodiTask.new do |t|
t.verbose = false
end
rescue LoadError
task :roodi do
abort 'Roodi is not available. In order to run roodi, you must: gem install roodi'
end
end
25 changes: 25 additions & 0 deletions tasks/spec.rake
@@ -0,0 +1,25 @@
require 'spec/rake/spectask'
require 'spec/rake/verify_rcov'

spec_defaults = lambda do |spec|
spec.pattern = 'spec/**/*_spec.rb'
spec.libs << 'lib' << 'spec'
spec.spec_opts << '--options' << 'spec/spec.opts'
end

Spec::Rake::SpecTask.new(:spec, &spec_defaults)

Spec::Rake::SpecTask.new(:rcov) do |rcov|
spec_defaults.call(rcov)
rcov.rcov = true
rcov.rcov_opts = File.read('spec/rcov.opts').split(/\s+/)
end

RCov::VerifyTask.new(:verify_rcov => :rcov) do |rcov|
rcov.threshold = 100
end

task :spec => :check_dependencies
task :rcov => :check_dependencies

task :default => :spec
25 changes: 0 additions & 25 deletions tasks/spec.rb

This file was deleted.

9 changes: 9 additions & 0 deletions tasks/yard.rake
@@ -0,0 +1,9 @@
begin
require '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
19 changes: 19 additions & 0 deletions tasks/yardstick.rake
@@ -0,0 +1,19 @@
begin
require 'pathname'
require 'yardstick/rake/measurement'
require 'yardstick/rake/verify'

# yardstick_measure task
Yardstick::Rake::Measurement.new

# verify_measurements task
Yardstick::Rake::Verify.new do |verify|
verify.threshold = 100
end
rescue LoadError
%w[ yardstick_measure verify_measurements ].each do |name|
task name.to_s do
abort "Yardstick is not available. In order to run #{name}, you must: gem install yardstick"
end
end
end

0 comments on commit 0cac61f

Please sign in to comment.