head_music 0.24.1 → 0.24.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -3
- data/head_music.gemspec +1 -1
- data/lib/head_music/content/placement.rb +1 -0
- data/lib/head_music/content/position.rb +1 -0
- data/lib/head_music/content/voice.rb +1 -0
- data/lib/head_music/octave.rb +1 -0
- data/lib/head_music/quality.rb +1 -0
- data/lib/head_music/scale_degree.rb +1 -0
- data/lib/head_music/spelling.rb +1 -1
- data/lib/head_music/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 204a1613a88b8c14b7f9441a2a593637dc3a496076abda2621d71f85ffbdf604
|
4
|
+
data.tar.gz: c9819f9c1983934caad0d58d625fbda15a787148d6e15f7cc92473de8200c2f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7e0fa5267eaa482b16abf497fb7122d6f3ade4c55f9a6ac40c43043dbfbe68a03dc9ae3a8c83262ade571965c0bf997121a9a774aee950e5598097a3fba33dd
|
7
|
+
data.tar.gz: 6617eabf6992c8bf5ab1a7533d605ca2a54f58873c13fa91e79cc65acbfe925906bd727a100d969fd057a560a1bb64d470eaa18f37a751e5b41f584909b3b007
|
data/.rubocop.yml
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
AllCops:
|
2
|
+
NewCops: enable
|
3
|
+
TargetRubyVersion: 2.5
|
4
|
+
|
1
5
|
Layout/DotPosition:
|
2
6
|
EnforcedStyle: trailing
|
3
7
|
|
@@ -34,8 +38,5 @@ Style/TrailingCommaInArrayLiteral:
|
|
34
38
|
Style/TrailingCommaInHashLiteral:
|
35
39
|
EnforcedStyleForMultiline: consistent_comma
|
36
40
|
|
37
|
-
AllCops:
|
38
|
-
TargetRubyVersion: 2.4
|
39
|
-
|
40
41
|
Layout/EmptyLineAfterGuardClause:
|
41
42
|
Enabled: false
|
data/head_music.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.required_ruby_version = '>= 2.
|
25
|
+
spec.required_ruby_version = '>= 2.5'
|
26
26
|
|
27
27
|
spec.add_runtime_dependency 'activesupport', '> 5.0'
|
28
28
|
spec.add_runtime_dependency 'humanize', '~> 1.3'
|
data/lib/head_music/octave.rb
CHANGED
data/lib/head_music/quality.rb
CHANGED
@@ -8,6 +8,7 @@ class HeadMusic::ScaleDegree
|
|
8
8
|
NAME_FOR_DIATONIC_DEGREE = [nil, 'tonic', 'supertonic', 'mediant', 'subdominant', 'dominant', 'submediant'].freeze
|
9
9
|
|
10
10
|
attr_reader :key_signature, :spelling
|
11
|
+
|
11
12
|
delegate :scale, to: :key_signature
|
12
13
|
delegate :scale_type, to: :scale
|
13
14
|
|
data/lib/head_music/spelling.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# Composite of a LetterName and an optional Sign.
|
5
5
|
# Does not include the octave. See Pitch for that.
|
6
6
|
class HeadMusic::Spelling
|
7
|
-
MATCHER = /^\s*([A-G])(#{HeadMusic::Sign.matcher}?)(
|
7
|
+
MATCHER = /^\s*([A-G])(#{HeadMusic::Sign.matcher}?)(-?\d+)?\s*$/i.freeze
|
8
8
|
|
9
9
|
attr_reader :pitch_class
|
10
10
|
attr_reader :letter_name
|
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.24.
|
4
|
+
version: 0.24.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Head
|
@@ -240,7 +240,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
240
240
|
requirements:
|
241
241
|
- - ">="
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
version: 2.
|
243
|
+
version: '2.5'
|
244
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
245
245
|
requirements:
|
246
246
|
- - ">="
|