head_music 8.0.1 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e3d6ab19fbe0d2fb36ef83bd77eb6e029af7e1ce7e0c78b40bdf0945c114a64
4
- data.tar.gz: 7392a202e8e2beeb1582116592d99ec2b61ca108227812c335b145ee1664d4d3
3
+ metadata.gz: 59fd761fa9c441ada6674ebabb1e83c81991f21b20d2b29812160cf7d1bfd1f6
4
+ data.tar.gz: 6d7edeb8c3c8fbcd2abf3069860c7a31bc2c40cc95e38ef718d94ce2821a655d
5
5
  SHA512:
6
- metadata.gz: c53c0f8a7bb12f7891aa331ce14a8746d89732b6f04dc92aa3793ec22f1d0ac4bcba0662d423f5bc82a553f5c97548b4d951e0a369e8bf809f8b162919211359
7
- data.tar.gz: 3a92eb3616549a5efbbea45f239241262cb82f704dc78bfe64e9a4943e488389f6f9c95d5b169d813615ad8678e5bf11c44c1bf62b95d67d996a80801ef4a4fe
6
+ metadata.gz: 605e82fb95ba7e5c91ca2f861bafbf9dd54e94ab02404382a2ae3293a943a85455dd26c40a46d6725fd26c0caeb89c898220d9b572c5a0b22c0bac0a172e31ce
7
+ data.tar.gz: 9a920c87fad466335f8b02cff76cd1a202c3a20d9d6e0bc53e91a93648406587e652f0dc47296063d40a26c2fa385a7250f3b6e955c9e99820c513ce97788540
data/.gitignore CHANGED
@@ -9,3 +9,5 @@
9
9
  /tmp/
10
10
  /spec/examples.txt
11
11
  *.gem
12
+
13
+ **/.claude/settings.local.json
data/.rubocop.yml CHANGED
@@ -1,5 +1,7 @@
1
1
  require:
2
2
  - standard
3
+
4
+ plugins:
3
5
  - rubocop-rspec
4
6
  - rubocop-rake
5
7
 
@@ -6,9 +6,15 @@ class HeadMusic::Style::Guidelines::StartOnPerfectConsonance < HeadMusic::Style:
6
6
  MESSAGE = "Start on the tonic or a perfect consonance above the tonic (unless bass voice)."
7
7
 
8
8
  def marks
9
- return unless first_note && ((bass_voice? && !starts_on_tonic?) || !starts_on_perfect_consonance?)
9
+ return unless first_note
10
10
 
11
- HeadMusic::Style::Mark.for(first_note)
11
+ needs_marking = if bass_voice?
12
+ !starts_on_tonic?
13
+ else
14
+ !starts_on_perfect_consonance?
15
+ end
16
+
17
+ HeadMusic::Style::Mark.for(first_note) if needs_marking
12
18
  end
13
19
 
14
20
  private
@@ -1,3 +1,3 @@
1
1
  module HeadMusic
2
- VERSION = "8.0.1"
2
+ VERSION = "8.0.2"
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: 8.0.1
4
+ version: 8.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Head