Sha256: 853fe3181d199e88976bb0da9f15d093a908c2e68bcd76de0ef7723efc3f1133

Contents?: true

Size: 912 Bytes

Versions: 12

Compression:

Stored size: 912 Bytes

Contents

require 'bundler/gem_tasks'
require 'rake/testtask'
require 'yard'
require 'cosgrove'

Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8

Rake::TestTask.new(:test) do |t|
  t.libs << 'test'
  t.libs << 'lib'
  t.test_files = FileList['test/**/*_test.rb']
  t.ruby_opts << if ENV['HELL_ENABLED']
    '-W2'
  else
    '-W1'
  end
end

YARD::Rake::YardocTask.new do |t|
  t.files = ['lib/**/*.rb']
end

task default: :test

task :console do
  exec "irb -r cosgrove -I ./lib"
end

task :build do
  exec 'gem build cosgrove.gemspec'
end

task :push do
  exec "gem push cosgrove-#{Cosgrove::VERSION}.gem"
end

# We're not going to yank on a regular basis, but this is how it's done if you
# really want a task for that for some reason.

# task :yank do
#   exec "gem yank cosgrove -v #{Cosgrove::VERSION}"
# end

task :rebuild_accounts do
  Cosgrove::Bot.new.rebuild_accounts
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cosgrove-0.0.1rc15 Rakefile
cosgrove-0.0.1rc14 Rakefile
cosgrove-0.0.1rc13 Rakefile
cosgrove-0.0.1rc12 Rakefile
cosgrove-0.0.1rc11 Rakefile
cosgrove-0.0.1rc10 Rakefile
cosgrove-0.0.1rc9 Rakefile
cosgrove-0.0.1rc8 Rakefile
cosgrove-0.0.1rc7 Rakefile
cosgrove-0.0.1rc6 Rakefile
cosgrove-0.0.1rc5 Rakefile
cosgrove-0.0.1rc4 Rakefile