Sha256: 647152c48b554c17176856c62b303717383cfb2d309d350699e68f6acac309d2

Contents?: true

Size: 1.19 KB

Versions: 2

Compression:

Stored size: 1.19 KB

Contents

lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)

require 'rake/clean'
require 'rake/testtask'
require 'date'
require 'sync_attr/version'

desc "Build gem"
task :gem  do |t|
  gemspec = Gem::Specification.new do |s|
    s.name        = 'sync_attr'
    s.version     = SyncAttr::VERSION
    s.platform    = Gem::Platform::RUBY
    s.authors     = ['Reid Morrison']
    s.email       = ['reidmo@gmail.com']
    s.homepage    = 'https://github.com/ClarityServices/sync_attr'
    s.date        = Date.today.to_s
    s.summary     = "Thread safe accessors for Ruby class and instance attributes. Supports thread safe lazy loading of attributes"
    s.description = "SyncAttr is a mixin to read, write and lazy initialize both class and instance variables in a multi-threaded environment when the attribute could be modified by two threads at the same time, written in Ruby."
    s.files       = FileList['**/*'].exclude('*.gem', /nbproject/)
    s.has_rdoc    = true
  end
  Gem::Builder.new(gemspec).build
end

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sync_attr-0.1.1 Rakefile
sync_attr-0.1.0 Rakefile