Skip to content

Commit d3179aa

Browse files
committed
Add changelog entry for taglib-ruby 2.0.0
1 parent dbe0581 commit d3179aa

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,22 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
77
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
88

9+
## 2.0.0
10+
### Changed
11+
- Regenerate SWIG wrapper code against TagLib 2.0.1. This breaks
12+
compatibility with TagLib 1.x. You will get a compiler error if you
13+
try to install taglib-ruby 2.x on a system that has TagLib 1.x.
14+
Please use taglib-ruby 1.x if your system has TagLib 1.x, and
15+
taglib-ruby 2.x if your system has TagLib 2.x.
16+
- The optional `strip_others` argument to `TagLib::MPEG::File#save` no
17+
longer takes a boolean value. It now uses the constants
18+
`TagLib::File::StripOthers` and `TagLib::File::StripNone`.
19+
20+
### Removed
21+
- `TagLib::MPEG::File#tag` has been removed because it no longer
22+
exists in TagLib 2.x. Please use `TagLib::MPEG::File#id3v2_tag` or
23+
`TagLib::MPEG::File#id3v1_tag`.
24+
925
## 1.1.3 - 2022-12-29
1026
### Changed
1127
- Fix warning `warning: undefining the allocator of T_DATA class

docs/taglib/mpeg.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ def self.open(filename, read_properties=true)
3232
def initialize(filename, read_properties=true)
3333
end
3434

35-
# Returns a tag that contains attributes from both the ID3v2 and
36-
# ID3v1 tag, with ID3v2 attributes having precendence.
37-
#
38-
# @return [TagLib::Tag]
39-
# @return [nil] if not present
40-
def tag
41-
end
42-
4335
# Returns the ID3v1 tag.
4436
#
4537
# @param create if a new tag should be created when none exists
@@ -88,7 +80,7 @@ def audio_properties
8880
# ArgumentError.
8981
#
9082
# @return [Boolean] whether saving was successful
91-
def save(tags=TagLib::MPEG::File::AllTags, strip_others=true)
83+
def save(tags=TagLib::MPEG::File::AllTags, strip_others=TagLib::File::StripOthers)
9284
end
9385

9486
# Strip the specified tags from the file. Note that this directly

0 commit comments

Comments
 (0)