Sha256: 1a3f8bd2e7b5c808c611d9c398d5b41008283649e93e24c1603e2d3632d7fa13

Contents?: true

Size: 687 Bytes

Versions: 4

Compression:

Stored size: 687 Bytes

Contents

require 'rake/clean'
require 'rake/testtask'

$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require 'net/tcp_client/version'

task :gem do
  system 'gem build net_tcp_client.gemspec'
end

task :publish => :gem do
  system "git tag -a v#{Net::TCPClient::VERSION} -m 'Tagging #{Net::TCPClient::VERSION}'"
  system 'git push --tags'
  system "gem push net_tcp_client-#{Net::TCPClient::VERSION}.gem"
  system "rm net_tcp_client-#{Net::TCPClient::VERSION}.gem"
end

desc 'Run Test Suite'
task :test do
  Rake::TestTask.new(:functional) do |t|
    t.test_files = FileList['test/*_test.rb']
    t.verbose    = true
  end

  Rake::Task['functional'].invoke
end

task :default => :test

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
net_tcp_client-2.0.1 Rakefile
net_tcp_client-2.0.0 Rakefile
net_tcp_client-1.0.2 Rakefile
net_tcp_client-1.0.1 Rakefile