chords 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +7 -0
- data/lib/chords/fingering.rb +2 -1
- data/lib/chords/fretboard.rb +1 -1
- data/lib/chords/html_formatter.rb +2 -0
- metadata +4 -4
data/README
CHANGED
@@ -9,6 +9,13 @@ $ sudo gem install chords
|
|
9
9
|
$ chords -h
|
10
10
|
|
11
11
|
|
12
|
+
Using at Heroku
|
13
|
+
---------------
|
14
|
+
|
15
|
+
Chords is also hosted at Heroku (http://chords.heroku.com) where you
|
16
|
+
can use it through a web interface.
|
17
|
+
|
18
|
+
|
12
19
|
Running irb under chords/lib:
|
13
20
|
-----------------------------
|
14
21
|
>> require 'rubygems'
|
data/lib/chords/fingering.rb
CHANGED
@@ -89,7 +89,8 @@ module Chords
|
|
89
89
|
|
90
90
|
# fingering id, a unique identifier for fretboard/fingering combo
|
91
91
|
def fid
|
92
|
-
@fretboard.open_notes.to_s +
|
92
|
+
@fretboard.open_notes.map{|n| n.class.title}.to_s +
|
93
|
+
@positions.map{|pos| pos.nil? ? 'x' : pos}.to_s
|
93
94
|
end
|
94
95
|
|
95
96
|
# return an array of relative positions
|
data/lib/chords/fretboard.rb
CHANGED
@@ -45,7 +45,7 @@ module Chords
|
|
45
45
|
:banjo => [G.new, D.new, G.new(1), B.new(1), D.new(1)]
|
46
46
|
}
|
47
47
|
|
48
|
-
attr_reader :frets, :open_notes
|
48
|
+
attr_reader :frets, :open_notes, :formatter
|
49
49
|
|
50
50
|
def initialize(open_notes, frets, formatter_class=TextFormatter)
|
51
51
|
@open_notes, @frets = open_notes, frets
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chords
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 2
|
10
|
+
version: 0.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Antti Hakala
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-23 00:00:00 +03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|