Sha256: 7b8d9ec361ffaa19cbf842676b13195f7aa5d7847c1f21f70b03622dc2ceb5da

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

lib = File.expand_path('./framingham')
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
$LOAD_PATH << lib

require 'date'
require 'fileutils'

version = "0.1." + DateTime.now.new_offset(0).strftime("%Y%m%d%H%M%S")
File.open('framingham/version.rb','w'){ |_|
  _.puts "module Framingham"
  _.puts "  VERSION = \"" + version + "\""
  _.puts "end"
}
FileUtils.ln_sf "pkg/framingham-" + version + ".gem", "framingham.gem"

require 'version'

Gem::Specification.new{ |_|
  _.name          = "framingham"
  _.version       = Framingham::VERSION
  _.author        = "3PoundHealth"
  _.homepage      = "https://github.com/3poundhealth/framingham#framingham"
  _.summary       = "Gem to implement Framingham Heart Study calculators"
  _.license       = "MIT"
  _.files         = `git ls-files`.split($/).push("framingham/version.rb")
  _.executables   = _.files.grep(%r{^/}) { |f| File.basename(f) }
  _.test_files    = _.files.grep(%r{^(test|spec|features)/})
  _.require_path  = "."
  _.add_development_dependency "bundler", "~> 1.3"
  _.add_development_dependency "rake"
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
framingham-0.1.20130719170918 framingham.gemspec