Sha256: 06c4ba67255e21a9599032ea03cf93a6378ce00c7e5b02d436c0a43a72636d24

Contents?: true

Size: 1.4 KB

Versions: 9

Compression:

Stored size: 1.4 KB

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'

RSpec::Core::RakeTask.new(:spec)

task default: :spec

task :dev do
end

RuboCop::RakeTask.new(:rubocop) do |t|
  t.options = ['--display-cop-names']
end

RuboCop::RakeTask.new(:rubocop_fix) do |t|
  # t.options = ['--display-cop-names -a']
  t.options = ['--display-cop-names']
end

namespace :db do
  require 'sequel'
  require 'legion/logging'
  Sequel.extension :migration

  # desc 'Prints current schema version'
  # task :version do
  #   version = DB[:schema_info].first[:version] # if DB.tables.include?(:schema_info) || true
  #
  #   puts "Schema Version: #{version}"
  # end
  #
  # desc 'Perform migration up to latest migration available'
  # task :migrate do
  #   Sequel::Migrator.run(DB, 'lib/legion/data/migrations')
  #   Rake::Task['db:version'].execute
  # end
  #
  # desc 'Perform rollback to specified target or full rollback as default'
  # task :rollback, :target do |_t, args|
  #   args.with_defaults(target: 0)
  #
  #   Sequel::Migrator.run(DB, 'lib/legion/data/migrations', target: args[:target].to_i)
  #   Rake::Task['db:version'].execute
  # end
  #
  # desc 'Perform migration reset (full rollback and migration)'
  # task :reset do
  #   Sequel::Migrator.run(DB, 'migrations', target: 0)
  #   Sequel::Migrator.run(DB, 'migrations')
  #   Rake::Task['db:version'].execute
  # end
end

# RuboCop::RakeTask.new

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
legion-data-1.1.5 Rakefile
legion-data-1.1.4 Rakefile
legion-data-java-1.1.3 Rakefile
legion-data-1.1.3 Rakefile
legion-data-java-1.1.2 Rakefile
legion-data-1.1.2 Rakefile
legion-data-0.2.0 Rakefile
legion-data-0.1.1 Rakefile
legion-data-0.1.0 Rakefile