head_music 0.6.1 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/head_music.gemspec +2 -0
- data/lib/head_music/letter_name.rb +1 -1
- data/lib/head_music/pitch_class.rb +0 -1
- data/lib/head_music/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36c74d29c5f6cef773b06a8136e5706884174d84
|
4
|
+
data.tar.gz: bc31e988cc0880e1c3318efcd2f472d947f35c77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 289dfea79a0db06c1b6daf617bd9d71ccf8113a94c7f8891d2544528674230a4634018f5208b8d5f3f5ed04d77db545b692457d9e791f0ed19b5aa954d724225
|
7
|
+
data.tar.gz: ea8c85fa06ca3b846355af411dabef71ed6c2f07c27677b805c249fcb26d09d494a2485208f95792f9b3b7e6f6cde878cf1a0bfdcf021dfc1f77479c09b52ae4
|
data/head_music.gemspec
CHANGED
@@ -21,6 +21,8 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
+
spec.required_ruby_version = '~> 2.3'
|
25
|
+
|
24
26
|
spec.add_runtime_dependency "activesupport", "~> 5.0"
|
25
27
|
spec.add_runtime_dependency "humanize", "~> 1.3"
|
26
28
|
|
@@ -31,7 +31,7 @@ class HeadMusic::LetterName
|
|
31
31
|
return nil if pitch_class.to_s == pitch_class
|
32
32
|
pitch_class = pitch_class.to_i % 12
|
33
33
|
name = NAMES.detect { |name| pitch_class == NATURAL_PITCH_CLASS_NUMBERS[name] }
|
34
|
-
name ||= HeadMusic::PitchClass::
|
34
|
+
name ||= HeadMusic::PitchClass::SHARP_SPELLINGS[pitch_class].first
|
35
35
|
@letter_names[name] ||= new(name) if NAMES.include?(name)
|
36
36
|
end
|
37
37
|
|
data/lib/head_music/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: head_music
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Head
|
@@ -148,9 +148,9 @@ require_paths:
|
|
148
148
|
- lib
|
149
149
|
required_ruby_version: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- - "
|
151
|
+
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
|
-
version: '
|
153
|
+
version: '2.3'
|
154
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - ">="
|