jamming 0.2.0 → 0.2.1
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.markdown +1 -1
- data/VERSION +1 -1
- data/jamming.gemspec +1 -1
- data/lib/jamming/chord.rb +2 -1
- metadata +3 -3
data/README.markdown
CHANGED
@@ -39,7 +39,7 @@ will generate an image like this:
|
|
39
39
|
|
40
40
|
(Notice the _A_ label even if you never explicitly declared it.)
|
41
41
|
|
42
|
-
If you'd like to override this behavior, pass `:label =>
|
42
|
+
If you'd like to override this behavior, pass `:label => false` to the `to_png` method (Use exactly `:label => false`, as `:label => nil` still triggers the auto-labeling behavior).
|
43
43
|
|
44
44
|
If you find a chord that is not auto-labeled but you'd like it to be, please add it [to this file](https://github.com/andmej/jamming/blob/master/lib/jamming/dictionary.rb) and send a pull request.
|
45
45
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/jamming.gemspec
CHANGED
data/lib/jamming/chord.rb
CHANGED
@@ -10,7 +10,8 @@ module Jamming
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def to_png(options = {})
|
13
|
-
|
13
|
+
label = options[:label] == false ? nil : options[:label] || name
|
14
|
+
Jamming::PNGFormatter.new(frets).print(options.merge(:label => label))
|
14
15
|
end
|
15
16
|
|
16
17
|
def name
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "Andr\xC3\xA9s Mej\xC3\xADa"
|
@@ -125,7 +125,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
125
125
|
requirements:
|
126
126
|
- - ">="
|
127
127
|
- !ruby/object:Gem::Version
|
128
|
-
hash:
|
128
|
+
hash: 1277684802512835591
|
129
129
|
segments:
|
130
130
|
- 0
|
131
131
|
version: "0"
|