Sha256: 2cd6b986bb838bf95127cf34106837ff5c26030e2d1c163c8e28b0a49ff30321

Contents?: true

Size: 653 Bytes

Versions: 10

Compression:

Stored size: 653 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "chord_diagrams"
require "standard/rake"

RSpec::Core::RakeTask.new(:spec)

task default: [:spec, :standard]

desc "Generate all diagrams"
task sheets: %i[guitar ukulele]

desc "Generate guitar diagrams"
task :guitar do
  html = ""

  ChordDiagrams::GUITAR_FINGERINGS.keys.each do |name|
    html << ChordDiagrams.guitar_svg(name)
  end

  File.write("guitar.html", html)
end

desc "Generate ukulele diagrams"
task :ukulele do
  html = ""

  ChordDiagrams::UKULELE_FINGERINGS.keys.each do |name|
    html << ChordDiagrams.ukulele_svg(name)
  end

  File.write("ukulele.html", html)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
chord_diagrams-0.0.22 Rakefile
chord_diagrams-0.0.21 Rakefile
chord_diagrams-0.0.20 Rakefile
chord_diagrams-0.0.19 Rakefile
chord_diagrams-0.0.18 Rakefile
chord_diagrams-0.0.17 Rakefile
chord_diagrams-0.0.16 Rakefile
chord_diagrams-0.0.15 Rakefile
chord_diagrams-0.0.14 Rakefile
chord_diagrams-0.0.13 Rakefile