chord_diagrams 0.0.17 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/chord_diagrams/fingerings.csv +1 -1
- data/lib/chord_diagrams/fingerings.rb +4 -5
- data/lib/chord_diagrams/version.rb +1 -1
- data/lib/chord_diagrams.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5918ea4d07d803b703bfda8222061c3064e081c0cae07e0dc1f2dd3e4217f0c
|
4
|
+
data.tar.gz: 1a4532677d5e21ec17377c032853617f2fe29d29a1965783dc942b651f37926b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2917a26ce5ca0b0135070b68acc553dc6d04481064adb57d6f4eec2175de32edb9fabbe1c9fac3b019f0d96171b69b1d0800368844e11b5c5f9f79f32db3d0f
|
7
|
+
data.tar.gz: b71e5998bf024a844e6da3aac1a63efcec294330f1f5ddb76cba4d3a484f4d377ef9445808efd464eefdbf8bce412655a2d8af3f5fc153848427b575b1ed262b
|
@@ -1,14 +1,13 @@
|
|
1
|
-
require "csv"
|
2
|
-
|
3
1
|
module ChordDiagrams
|
4
2
|
guitar_fingerings = {}
|
5
3
|
ukulele_fingerings = {}
|
6
4
|
|
7
5
|
fingerings_file = File.join(__dir__, "fingerings.csv")
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
File.readlines(fingerings_file).each do |line|
|
8
|
+
chord, guitar, ukulele = line.chomp.split(",")
|
9
|
+
guitar_fingerings[chord] = guitar unless guitar.nil?
|
10
|
+
ukulele_fingerings[chord] = ukulele unless ukulele.nil?
|
12
11
|
end
|
13
12
|
|
14
13
|
GUITAR_FINGERINGS = guitar_fingerings.freeze
|
data/lib/chord_diagrams.rb
CHANGED
@@ -85,7 +85,7 @@ module ChordDiagrams
|
|
85
85
|
end
|
86
86
|
|
87
87
|
def draw_guitar_missing_chord_diagram(name, svg)
|
88
|
-
puts "
|
88
|
+
puts "Couldn't find fingerings for the Guitar chord '#{name}'"
|
89
89
|
|
90
90
|
svg.text "?", x: 102, y: 155, text_anchor: :middle, style: {
|
91
91
|
font_size: 96,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chord_diagrams
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Kelly
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: victor
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.5.
|
142
|
+
rubygems_version: 3.5.11
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Generate Chord Diagrams for Guitar and Ukulele
|