Sha256: 69623f4d6c0bec227b3d2df0d14f6fffdc2b173dc0331dcdfd894477b480485d
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 KB
Contents
lib = File.expand_path('../lib/', __FILE__) $:.unshift lib unless $:.include?(lib) require 'rubygems' require 'rubygems/package' 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$/, /\.log$/,/nbproject/).map{|f| f.sub(/^\.\//, '')} s.license = "Apache License V2.0" s.has_rdoc = true end Gem::Package.build gemspec 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sync_attr-1.0.0 | Rakefile |