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

Version Path
stylus-source-0.23.0 vendor/node_modules/cssom/Rakefile
stylus-source-0.22.6 vendor/node_modules/cssom/Rakefile
stylus-source-0.22.5 vendor/node_modules/cssom/Rakefile
stylus-source-0.22.4 vendor/node_modules/cssom/Rakefile
stylus-source-0.22.3 vendor/node_modules/cssom/Rakefile
stylus-source-0.22.2 vendor/node_modules/cssom/Rakefile
stylus-source-0.22.1 vendor/node_modules/cssom/Rakefile
stylus-source-0.22.0 vendor/node_modules/cssom/Rakefile
stylus-source-0.21.2 vendor/node_modules/cssom/Rakefile
stylus-source-0.21.1 vendor/node_modules/cssom/Rakefile
stylus-source-0.21.0 vendor/node_modules/cssom/Rakefile
stylus-source-0.20.1 vendor/node_modules/cssom/Rakefile
stylus-source-0.20.0 vendor/node_modules/cssom/Rakefile
stylus-source-0.19.8 vendor/node_modules/cssom/Rakefile
stylus-source-0.19.7 vendor/node_modules/cssom/Rakefile
stylus-source-0.19.6 vendor/node_modules/cssom/Rakefile
stylus-source-0.19.5 vendor/node_modules/cssom/Rakefile
stylus-source-0.19.4 vendor/node_modules/cssom/Rakefile
stylus-source-0.19.3 vendor/node_modules/cssom/Rakefile
stylus-source-0.19.2 vendor/node_modules/cssom/Rakefile