Sha256: 0706aa1aea5da39f951641bcff9e4e9249ff2388e03c3f5247a5ee12d7a93ba9
Contents?: true
Size: 894 Bytes
Versions: 1
Compression:
Stored size: 894 Bytes
Contents
require 'bundler/gem_tasks' require 'rake/testtask' require 'yard' require 'dotenv/load' # Test tasks Rake::TestTask.new(:test) do |t| t.libs << 'test' t.libs << 'lib' t.test_files = FileList['test/**/*_test.rb'] t.warning = false end YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*.rb'] # optional t.options = %w{--private} # optional t.stats_options = ['--list-undoc'] # optional end # Default task task :default => :test Rake::Task['build'].enhance do require 'digest/sha2' built_gem_path = 'pkg/newznab-api-'+Newznab::Api::VERSION+'.gem' checksum = Digest::SHA256.new.hexdigest(File.read(built_gem_path)) checksum_path = 'checksum/newznab-api-'+Newznab::Api::VERSION+'.gem.sha256' File.open(checksum_path, 'w') { |f| f.write(checksum) } end task :console do require 'irb' require 'irb/completion' require 'newznab/api' ARGV.clear IRB.start end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
newznab-api-0.1.0 | Rakefile |