chords 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
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'
@@ -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 + @positions.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
@@ -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
@@ -11,6 +11,8 @@ module Chords
11
11
  def fetch(key); yield end
12
12
  end
13
13
 
14
+ attr_accessor :cache
15
+
14
16
  def initialize(fretboard, cache=NonCache.new)
15
17
  @fretboard = fretboard
16
18
  @cache = cache
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: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
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-22 00:00:00 +03:00
18
+ date: 2010-07-23 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies: []
21
21