Sha256: f1f127c964a55fc4a11a935f19ba5e4eece891c8792279d2cf5032c0e37b2f0e
Contents?: true
Size: 648 Bytes
Versions: 25
Compression:
Stored size: 648 Bytes
Contents
def version git_describe_tags = `git describe --tags` tag = git_describe_tags.split('-').first || git_describe_tags tag.strip! commit = `git rev-list --full-history #{tag}.. -- src/ | wc -l`.strip tag.slice! 0 "#{tag}.#{commit}" end task :upload do require 'net/github-upload' gh = Net::GitHub::Upload.new( :login => `git config github.user`.chomp, :token => `git config github.token`.chomp ) puts gh.upload( :repos => 'CSSOM', :file => 'build/CSSOM.js', :name => "CSSOM.v#{version}.js", :content_type => 'text/javascript', :description => "CSS Object Model implemented in pure JavaScript" ) end
Version data entries
25 entries across 25 versions & 1 rubygems