jamming 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 => nil` to the `to_png` method.
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.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jamming}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrés Mejía"]
@@ -10,7 +10,8 @@ module Jamming
10
10
  end
11
11
 
12
12
  def to_png(options = {})
13
- Jamming::PNGFormatter.new(frets).print({ :label => name }.merge(options))
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
- - 0
9
- version: 0.2.0
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: 2896660226921079104
128
+ hash: 1277684802512835591
129
129
  segments:
130
130
  - 0
131
131
  version: "0"