apple_music_library 0.13.0 → 0.13.1

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: 8a7c56a173f838819c8b5e9fe672030b2d592571367e4d98ea5898deff6b26c1
4
- data.tar.gz: 0c7941388118cb202ff0e1d0483f0bc5d0241380ed5ba816db6f838aa01d8a33
3
+ metadata.gz: 8b462ccaf045f625899fb62099d659bbe3f7a3b8ea46cc59e376623656ed2646
4
+ data.tar.gz: f96477c3e0fc3243e44753970cd15c9ead277e3f8fed96d822dbdbeeabd3b328
5
5
  SHA512:
6
- metadata.gz: 1780aa02d02a2511d3c5147e25366a0b2075fd65d0bbb7a8afd516adc29321aa9ea13ded93528f6e63d9e90b10bf060ecc87a644eee408bc69de2cab579c26f4
7
- data.tar.gz: eedebe0a903e4c46554589b2e6ab8a418032186ee83f87346b31797883624e81279460dfc703eb81320eba4bc1ef5c256f28382f68d95312aa08cd32d438285b
6
+ metadata.gz: 559439425509081f89e3386783a4825529c85bcca29b48b0db7a962fdf8ea3221db926876db353d9663283c1c8b6f25dcd77444926a6778567be9868d6c1239a
7
+ data.tar.gz: f6d84390ebd8fcb18a9fea28ced25edb255cac78038fef702e7744195b240c666d6fea4201e8de00cebc2ffec487746b456fb6d55162203bd9b97da822c6d357
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  ## [Unreleased]
4
4
  - Ability to print out playlist folder hierarchy
5
5
 
6
+ ## 0.13.1 - 2022-03-16
7
+ ### Fixed
8
+ - Now strips leading/trailing whitespace from artist and track names
9
+
6
10
  ## 0.13.0 - 2022-03-26
7
11
  ### Added
8
12
  - Added handling for system verses user-created playlists
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- apple_music_library (0.13.0)
4
+ apple_music_library (0.13.1)
5
5
  facets (~> 3.1)
6
6
  plist (~> 3.6)
7
7
 
@@ -6,7 +6,7 @@ module AppleMusicLibrary
6
6
  @@artists = {}
7
7
 
8
8
  def initialize(name)
9
- @name = name
9
+ @name = name.strip
10
10
  @albums = []
11
11
  @tracks = []
12
12
  end
@@ -2,7 +2,7 @@ require 'facets'
2
2
 
3
3
  module AppleMusicLibrary
4
4
  class Track
5
- attr_reader :artist, :album, :genre
5
+ attr_reader :artist, :album, :genre, :info
6
6
 
7
7
  # 'Artist', The #artist, #album, and #genre methods return objects rather than strings and have methods like #artist_name to retrieve the strings.
8
8
  # 'Album',
@@ -105,7 +105,7 @@ module AppleMusicLibrary
105
105
 
106
106
  ATTRIBUTES.each do |track_attribute|
107
107
  define_method(track_attribute.to_s.snakecase) do
108
- @info[track_attribute]
108
+ @info[track_attribute].class.name == 'String' ? @info[track_attribute].strip : @info[track_attribute]
109
109
  end
110
110
  end
111
111
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppleMusicLibrary
4
- VERSION = "0.13.0"
4
+ VERSION = "0.13.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple_music_library
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Gehman