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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0abe4bcc9d5eda30350352723a69a500c1a072d08e39de64d9266a25953771fa
4
- data.tar.gz: 25a2b86a64a5c4f31cb75c5de988c59cad7e0a271a78adcde5e3cc2f040b88ef
3
+ metadata.gz: 204a1613a88b8c14b7f9441a2a593637dc3a496076abda2621d71f85ffbdf604
4
+ data.tar.gz: c9819f9c1983934caad0d58d625fbda15a787148d6e15f7cc92473de8200c2f7
5
5
  SHA512:
6
- metadata.gz: 670ca78b363ae669a73e4159b46e5465439824f1e051f15f8846acce3a6790352ac64b33cd41e82d6a602e3ef3582a6e224b9fd4da0fb5fbc85263c82d3e26c7
7
- data.tar.gz: 1407f5414eb3842a61745c9943f50f14d866c1318d1a93d9c21ed296d57d5a61ba850f3c6b562c94ca20a9b23ada2098dc445af44184baed3969bfe3c29ab2bb
6
+ metadata.gz: e7e0fa5267eaa482b16abf497fb7122d6f3ade4c55f9a6ac40c43043dbfbe68a03dc9ae3a8c83262ade571965c0bf997121a9a774aee950e5598097a3fba33dd
7
+ data.tar.gz: 6617eabf6992c8bf5ab1a7533d605ca2a54f58873c13fa91e79cc65acbfe925906bd727a100d969fd057a560a1bb64d470eaa18f37a751e5b41f584909b3b007
@@ -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
@@ -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.4.0'
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'
@@ -5,6 +5,7 @@ class HeadMusic::Placement
5
5
  include Comparable
6
6
 
7
7
  attr_reader :voice, :position, :rhythmic_value, :pitch
8
+
8
9
  delegate :composition, to: :voice
9
10
  delegate :spelling, to: :pitch, allow_nil: true
10
11
 
@@ -5,6 +5,7 @@ class HeadMusic::Position
5
5
  include Comparable
6
6
 
7
7
  attr_reader :composition, :bar_number, :count, :tick
8
+
8
9
  delegate :to_s, to: :code
9
10
 
10
11
  def initialize(composition, code_or_bar, count = nil, tick = nil)
@@ -6,6 +6,7 @@ class HeadMusic::Voice
6
6
  include Comparable
7
7
 
8
8
  attr_reader :composition, :placements, :role
9
+
9
10
  delegate :key_signature, to: :composition
10
11
 
11
12
  def initialize(composition: nil, role: nil)
@@ -31,6 +31,7 @@ class HeadMusic::Octave
31
31
  end
32
32
 
33
33
  attr_reader :number
34
+
34
35
  delegate :to_i, :to_s, to: :number
35
36
 
36
37
  def initialize(number)
@@ -44,6 +44,7 @@ class HeadMusic::Quality
44
44
  end
45
45
 
46
46
  attr_reader :name
47
+
47
48
  delegate :to_s, to: :name
48
49
 
49
50
  def initialize(name)
@@ -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
 
@@ -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}?)(\-?\d+)?\s*$/i.freeze
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HeadMusic
4
- VERSION = '0.24.1'
4
+ VERSION = '0.24.2'
5
5
  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.24.1
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.4.0
243
+ version: '2.5'
244
244
  required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  requirements:
246
246
  - - ">="