music_metadata_score 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTljMzY2OTI4MzUzNWZiZDJkNjI1YjY0ZGJmMGYzOTBiNzBhN2FkZQ==
4
+ NjI2NzFlNjA2ZGFlZDc2OWQ0ZDdjOTJmOTE2ZTYzY2Q0MjVkMDdkYw==
5
5
  data.tar.gz: !binary |-
6
- OTgxOGU4MmZmNzE4MTA3MGE0MGJmNGVjMjJiMWY3OGM3MjhhYzMyNw==
6
+ MjU1ZDQ5ZjFjNjA4YzViYWNjNGU5OGI0N2QwYTM1NGM5YmU2OTlkNg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- OGEyZjU4NzMyZjY1NDIwMmJhNWY0MDRkODY4YTBjZGM2ZjQ3NDUwMDZlZjQ5
10
- YjM4MmJhMDk0ZjBmZjVmZWJhYTQ3ZjhmNGFiZDZiZTdmZGM0Zjc1NmE3YmE2
11
- Yjk2OTEzNzkxODNhOTJjZWZjMjMwOWVmOGI2NDk1ODI4NzJmZTI=
9
+ MjNiMjdiYWRmZjM5ZjkyOGI2NGM5ZjRiMjM0MzZmNzc5NzZiMjRhYjMyNjIz
10
+ MmNiODRiN2U0ZmQ3M2FiYjMxMWU4MmUwYTI5MDBkNjZjZDc3MzNiNTQyMzAz
11
+ NzIyNDdmMWQ2MjM1MmEwNDUwNDQ2YWNkOTgzYTYzZDJmNDU3N2U=
12
12
  data.tar.gz: !binary |-
13
- YWJiODc3MTI1MTMwZjUwM2Y1Y2UxNTVjNmM4MmIyYzYyNDNiNTY2YTY0ZjM3
14
- NTdhMWI1OGIyZmUzNDBmMjVjNTBmOWUzMzQ0OTU1Mjk3ZjAwMzE0Y2IwZGI3
15
- ZWY5MzRkZmYwNjMzZGNjNTcxNTkwYjlmODQwMzRlYmZkZjVmMjM=
13
+ NjZjMGZlYjJjMjkwMjczNzViYjU3OGU1OWEwYWUyYzhhNTkxNmU0YmExNmY1
14
+ MjhlNTU1MmVjMDliOTg4OTQ5MjZlOGQwNDQ2MTZhMzg2ZjM0NzZiOWE1MmYw
15
+ NGRmMjJlMWFlZDQxOTk1NDI5NmE5ZmY4YzI5MTI5N2ZjYzlhYmM=
@@ -216,7 +216,11 @@ module MusicMetadataScore
216
216
  elsif MusicMetadataScore::Score.field_is_blank?(corrected) && field == 'Version' || field == 'Featuring Artists'
217
217
  nil
218
218
  elsif !MusicMetadataScore::Score.field_is_blank?(corrected) && field == 'Version' || field == 'Featuring Artists'
219
- "#{field} #{is_or_are} incorrect. It should be #{corrected}"
219
+ if original == corrected
220
+ nil
221
+ else
222
+ "#{field} #{is_or_are} incorrect. It should be #{corrected}"
223
+ end
220
224
  else
221
225
  "#{field} #{is_or_are} missing"
222
226
  end
@@ -277,7 +277,7 @@ module MusicMetadataScore
277
277
  end
278
278
  return {
279
279
  :title => title.strip,
280
- :version => version
280
+ :version => MusicMetadataScore::TitleCase.title_case(version)
281
281
  }
282
282
  end
283
283
 
@@ -1,3 +1,3 @@
1
1
  module MusicMetadataScore
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -17,7 +17,7 @@ module MusicMetadataScore
17
17
 
18
18
  def self.is_title_case?(string)
19
19
  proper = MusicMetadataScore::TitleCase.title_case(string)
20
- if proper == string
20
+ if proper == string || string == nil
21
21
  true
22
22
  else
23
23
  false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: music_metadata_score
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - tomallen400