Sha256: bd1df92e3518b1c422a8b1353524f05af4cc1b5ec98034701cffc205d18e0ced

Contents?: true

Size: 824 Bytes

Versions: 39

Compression:

Stored size: 824 Bytes

Contents

# -*- mode: ruby -*-


github  = 'https://github.com/xord'
renames = {reflexion: 'reflex'}
regexp  = /add\w+dependency.*['"](\w+)['"].*['"]\s*~>\s*([\d\.]+)\s*['"]/
repos   = File.readlines('rubysketch.gemspec', chomp: true)
  .map {|s| regexp.match(s)&.values_at 1, 2}
  .compact
  .to_h
  .transform_keys {|name| renames[name.to_sym].then {|s| s || name}}


task :clobber do
  sh %( rm -rf #{repos.keys.join ' '} )
end

task :setup

repos.each do |repo, ver|
  rakefile = "#{repo}/Rakefile"
  opts     = [
    '-c advice.detachedHead=false',
    '--no-single-branch',
    '--depth 1',
    "--branch #{ENV['RUBYSKETCH_BRANCH'] || ('v' + ver)}"
  ]

  task :setup => rakefile

  file rakefile do
    sh %( git clone #{opts.join ' '} #{github}/#{repo} )
    sh %( cd #{repo} && VENDOR_NOCOMPILE=1 rake vendor erb )
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
rubysketch-0.7.3 pod.rake
rubysketch-0.7.2 pod.rake
rubysketch-0.7.1 pod.rake
rubysketch-0.7 pod.rake
rubysketch-0.6.3 pod.rake
rubysketch-0.6.2 pod.rake
rubysketch-0.5.38 pod.rake
rubysketch-0.5.37 pod.rake
rubysketch-0.5.36 pod.rake
rubysketch-0.5.35 pod.rake
rubysketch-0.5.34 pod.rake
rubysketch-0.5.33 pod.rake
rubysketch-0.5.32 pod.rake
rubysketch-0.5.31 pod.rake
rubysketch-0.5.30 pod.rake
rubysketch-0.5.28 pod.rake
rubysketch-0.5.27 pod.rake
rubysketch-0.5.26 pod.rake
rubysketch-0.5.25 pod.rake
rubysketch-0.5.24 pod.rake