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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c170d6e42778ba1d5fed1352602d2b0d4306551f
4
- data.tar.gz: 79db32b224e31c1ea69768e4daa7bf0a8881b664
3
+ metadata.gz: 36c74d29c5f6cef773b06a8136e5706884174d84
4
+ data.tar.gz: bc31e988cc0880e1c3318efcd2f472d947f35c77
5
5
  SHA512:
6
- metadata.gz: 606e63dcb742a33eec7d49fd36fbc9e3b2d03eb3ff052aa56219d694b61f47d034ed74950c0210a28c18721eff3b24f6cdd2fda229143512765c2900dfb6dc23
7
- data.tar.gz: 570d61ec85e7480d2f940fae62f3d211ed6103d4b33606d5a492294c903767a61267b8fd94025d0c614b6e3fbf2938a2a4ce631646d309373969963ceee2bd7a
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::PREFERRED_SPELLINGS[pitch_class].first
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
 
@@ -1,7 +1,6 @@
1
1
  class HeadMusic::PitchClass
2
2
  attr_reader :number
3
3
 
4
- PREFERRED_SPELLINGS = %w[C C# D Eb E F F# G Ab A Bb B]
5
4
  SHARP_SPELLINGS = %w[C C# D D# E F F# G G# A A# B]
6
5
  FLAT_SPELLINGS = %w[C Db D Eb E F Gb G Ab A Bb B]
7
6
 
@@ -1,3 +1,3 @@
1
1
  module HeadMusic
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.3"
3
3
  end
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.1
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: '0'
153
+ version: '2.3'
154
154
  required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ">="