This repository has been archived by the owner on Apr 17, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed old/unecessary files
- Loading branch information
Showing
17 changed files
with
204 additions
and
148 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
0.10.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 | |||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
--exclude "spec" | |||
--sort coverage | |||
--callsites | |||
--xrefs | |||
--profile | |||
--text-summary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
task :ci => [ :verify_measurements, 'metrics:all' ] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 |