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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6e4ad1c14bf7aaceb3d8382717f1a18793da0d2c09c0cb865f5db687573068b
4
- data.tar.gz: 9307c5353f27942ed9047a8132b2b68d392d8a0ce8e9073668d83151b3990516
3
+ metadata.gz: e5918ea4d07d803b703bfda8222061c3064e081c0cae07e0dc1f2dd3e4217f0c
4
+ data.tar.gz: 1a4532677d5e21ec17377c032853617f2fe29d29a1965783dc942b651f37926b
5
5
  SHA512:
6
- metadata.gz: 67bc204d84bd2d47ff33c4c93b33c55ab43b630bfd1afe24480f044b09a37bcef7bedd0011be3546647d1b6d236d6c60386da15882f3eadd9b3e90dcf30b164f
7
- data.tar.gz: b77c93bf43100735063b8c75fa07a5d27271e90279564cb34080e763bfddd3808a70ca5e8306c7fbc45e7b35a457f9ff5d7232c797b4adf7d9c56a2e665b6990
6
+ metadata.gz: e2917a26ce5ca0b0135070b68acc553dc6d04481064adb57d6f4eec2175de32edb9fabbe1c9fac3b019f0d96171b69b1d0800368844e11b5c5f9f79f32db3d0f
7
+ data.tar.gz: b71e5998bf024a844e6da3aac1a63efcec294330f1f5ddb76cba4d3a484f4d377ef9445808efd464eefdbf8bce412655a2d8af3f5fc153848427b575b1ed262b
@@ -1,4 +1,3 @@
1
- chord,guitar,ukulele
2
1
  A#,x13331,3211
3
2
  A#/A,x00331,3210
4
3
  A#7,x13131,1211
@@ -43,6 +42,7 @@ C#m7,x46454,1102
43
42
  C,x32010,0003
44
43
  C/B,x22010,0002
45
44
  C/E,032010,0003
45
+ C/G,332010,0003
46
46
  C5,x355xx,0033
47
47
  C6,x32210,0000
48
48
  C7,x32310,0001
@@ -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
- CSV.foreach(fingerings_file, headers: true) do |row|
10
- guitar_fingerings[row[0]] = row[1] unless row[1].nil?
11
- ukulele_fingerings[row[0]] = row[2] unless row[2].nil?
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
@@ -1,3 +1,3 @@
1
1
  module ChordDiagrams
2
- VERSION = "0.0.17".freeze
2
+ VERSION = "0.0.19".freeze
3
3
  end
@@ -85,7 +85,7 @@ module ChordDiagrams
85
85
  end
86
86
 
87
87
  def draw_guitar_missing_chord_diagram(name, svg)
88
- puts "Could't find fingerings for the Guitar chord '#{name}'"
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.17
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-04-26 00:00:00.000000000 Z
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.6
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