taglib-ruby 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/ext/taglib_base/taglib_base.i +3 -0
- data/ext/taglib_id3v2/taglib_id3v2_wrap.cxx +14 -19
- data/ext/taglib_mp4/taglib_mp4_wrap.cxx +17 -22
- data/lib/taglib/version.rb +1 -1
- data/test/id3v2_frames_test.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1289419ad11f81f79052e260fbb9e1debbf2cd956389797bb6b664356e287ec0
|
4
|
+
data.tar.gz: '0582a88e09b6e96108a2e4a51a34e5c486f0552918780f38b1c4f05a448745d3'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 966e6e0fed73bb68ed20a6f4e9cab07b98f476220e5a294d77f679ea748ddb245e5221241845c7ad515337d1d3f673ebce6cb293cc97ca5e773a385e7e7110e3
|
7
|
+
data.tar.gz: 35ac3a6342f59be0c6641b861a0c9c9f2b00a2914d12fa8bc4bc05b5ba3af5c2f0199d8b3eb67155146b142274597ab8456ed1df48a72b30bbf90a1ebe86caf5
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,11 @@ All notable changes to this project will be documented in this file.
|
|
6
6
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
7
7
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
8
8
|
|
9
|
+
## 1.1.2 - 2022-04-13
|
10
|
+
### Fixed
|
11
|
+
- Fix UserTextIdentificationFrame's constructor so that overloaded
|
12
|
+
variants with StringList arguments can be called (#107)
|
13
|
+
|
9
14
|
## 1.1.1 - 2022-04-12
|
10
15
|
### Changed
|
11
16
|
- Fixed build time warnings with Ruby >= 2.7.0 (#85)
|
@@ -96,6 +96,9 @@ namespace TagLib {
|
|
96
96
|
tmp = ruby_array_to_taglib_string_list($input);
|
97
97
|
$1 = &tmp;
|
98
98
|
}
|
99
|
+
%typemap(typecheck, precedence=SWIG_TYPECHECK_LIST) TagLib::StringList {
|
100
|
+
$1 = TYPE($input) == T_ARRAY ? 1 : 0;
|
101
|
+
}
|
99
102
|
%apply TagLib::StringList { TagLib::StringList &, const TagLib::StringList & };
|
100
103
|
|
101
104
|
%typemap(out) TagLib::FileName {
|
@@ -1872,15 +1872,14 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1872
1872
|
#define SWIGTYPE_p_TagLib__ID3v2__UserTextIdentificationFrame swig_types[25]
|
1873
1873
|
#define SWIGTYPE_p_TagLib__ID3v2__UserUrlLinkFrame swig_types[26]
|
1874
1874
|
#define SWIGTYPE_p_TagLib__ListT_TagLib__ID3v2__Frame_p_t swig_types[27]
|
1875
|
-
#define
|
1876
|
-
#define
|
1877
|
-
#define
|
1878
|
-
#define
|
1879
|
-
#define
|
1880
|
-
#define
|
1881
|
-
|
1882
|
-
static
|
1883
|
-
static swig_module_info swig_module = {swig_types, 35, 0, 0, 0, 0};
|
1875
|
+
#define SWIGTYPE_p_TagLib__Tag swig_types[28]
|
1876
|
+
#define SWIGTYPE_p_char swig_types[29]
|
1877
|
+
#define SWIGTYPE_p_unsigned_char swig_types[30]
|
1878
|
+
#define SWIGTYPE_p_unsigned_int swig_types[31]
|
1879
|
+
#define SWIGTYPE_p_unsigned_long swig_types[32]
|
1880
|
+
#define SWIGTYPE_p_wchar_t swig_types[33]
|
1881
|
+
static swig_type_info *swig_types[35];
|
1882
|
+
static swig_module_info swig_module = {swig_types, 34, 0, 0, 0, 0};
|
1884
1883
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1885
1884
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1886
1885
|
|
@@ -9250,9 +9249,9 @@ SWIGINTERN VALUE _wrap_new_UserTextIdentificationFrame(int nargs, VALUE *args, V
|
|
9250
9249
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
9251
9250
|
_v = SWIG_CheckState(res);
|
9252
9251
|
if (_v) {
|
9253
|
-
|
9254
|
-
|
9255
|
-
|
9252
|
+
{
|
9253
|
+
_v = TYPE(argv[1]) == T_ARRAY ? 1 : 0;
|
9254
|
+
}
|
9256
9255
|
if (_v) {
|
9257
9256
|
return _wrap_new_UserTextIdentificationFrame__SWIG_4(nargs, args, self);
|
9258
9257
|
}
|
@@ -9263,9 +9262,9 @@ SWIGINTERN VALUE _wrap_new_UserTextIdentificationFrame(int nargs, VALUE *args, V
|
|
9263
9262
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
9264
9263
|
_v = SWIG_CheckState(res);
|
9265
9264
|
if (_v) {
|
9266
|
-
|
9267
|
-
|
9268
|
-
|
9265
|
+
{
|
9266
|
+
_v = TYPE(argv[1]) == T_ARRAY ? 1 : 0;
|
9267
|
+
}
|
9269
9268
|
if (_v) {
|
9270
9269
|
{
|
9271
9270
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
@@ -10707,7 +10706,6 @@ static swig_type_info _swigt__p_TagLib__ID3v2__UrlLinkFrame = {"_p_TagLib__ID3v2
|
|
10707
10706
|
static swig_type_info _swigt__p_TagLib__ID3v2__UserTextIdentificationFrame = {"_p_TagLib__ID3v2__UserTextIdentificationFrame", "TagLib::ID3v2::UserTextIdentificationFrame *", 0, 0, (void*)0, 0};
|
10708
10707
|
static swig_type_info _swigt__p_TagLib__ID3v2__UserUrlLinkFrame = {"_p_TagLib__ID3v2__UserUrlLinkFrame", "TagLib::ID3v2::UserUrlLinkFrame *", 0, 0, (void*)0, 0};
|
10709
10708
|
static swig_type_info _swigt__p_TagLib__ListT_TagLib__ID3v2__Frame_p_t = {"_p_TagLib__ListT_TagLib__ID3v2__Frame_p_t", "TagLib::ID3v2::FrameList *|TagLib::List< TagLib::ID3v2::Frame * > *", 0, 0, (void*)0, 0};
|
10710
|
-
static swig_type_info _swigt__p_TagLib__StringList = {"_p_TagLib__StringList", "TagLib::StringList *", 0, 0, (void*)0, 0};
|
10711
10709
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
10712
10710
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
10713
10711
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
@@ -10744,7 +10742,6 @@ static swig_type_info *swig_type_initial[] = {
|
|
10744
10742
|
&_swigt__p_TagLib__ID3v2__UserTextIdentificationFrame,
|
10745
10743
|
&_swigt__p_TagLib__ID3v2__UserUrlLinkFrame,
|
10746
10744
|
&_swigt__p_TagLib__ListT_TagLib__ID3v2__Frame_p_t,
|
10747
|
-
&_swigt__p_TagLib__StringList,
|
10748
10745
|
&_swigt__p_TagLib__Tag,
|
10749
10746
|
&_swigt__p_char,
|
10750
10747
|
&_swigt__p_unsigned_char,
|
@@ -10781,7 +10778,6 @@ static swig_cast_info _swigc__p_TagLib__ID3v2__UrlLinkFrame[] = { {&_swigt__p_T
|
|
10781
10778
|
static swig_cast_info _swigc__p_TagLib__ID3v2__UserTextIdentificationFrame[] = { {&_swigt__p_TagLib__ID3v2__UserTextIdentificationFrame, 0, 0, 0},{0, 0, 0, 0}};
|
10782
10779
|
static swig_cast_info _swigc__p_TagLib__ID3v2__UserUrlLinkFrame[] = { {&_swigt__p_TagLib__ID3v2__UserUrlLinkFrame, 0, 0, 0},{0, 0, 0, 0}};
|
10783
10780
|
static swig_cast_info _swigc__p_TagLib__ListT_TagLib__ID3v2__Frame_p_t[] = { {&_swigt__p_TagLib__ListT_TagLib__ID3v2__Frame_p_t, 0, 0, 0},{0, 0, 0, 0}};
|
10784
|
-
static swig_cast_info _swigc__p_TagLib__StringList[] = { {&_swigt__p_TagLib__StringList, 0, 0, 0},{0, 0, 0, 0}};
|
10785
10781
|
static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__ID3v2__Tag, _p_TagLib__ID3v2__TagTo_p_TagLib__Tag, 0, 0}, {&_swigt__p_TagLib__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
10786
10782
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
10787
10783
|
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -10818,7 +10814,6 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
10818
10814
|
_swigc__p_TagLib__ID3v2__UserTextIdentificationFrame,
|
10819
10815
|
_swigc__p_TagLib__ID3v2__UserUrlLinkFrame,
|
10820
10816
|
_swigc__p_TagLib__ListT_TagLib__ID3v2__Frame_p_t,
|
10821
|
-
_swigc__p_TagLib__StringList,
|
10822
10817
|
_swigc__p_TagLib__Tag,
|
10823
10818
|
_swigc__p_char,
|
10824
10819
|
_swigc__p_unsigned_char,
|
@@ -1858,15 +1858,14 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
1858
1858
|
#define SWIGTYPE_p_TagLib__MP4__Properties swig_types[8]
|
1859
1859
|
#define SWIGTYPE_p_TagLib__MP4__Tag swig_types[9]
|
1860
1860
|
#define SWIGTYPE_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t swig_types[10]
|
1861
|
-
#define
|
1862
|
-
#define
|
1863
|
-
#define
|
1864
|
-
#define
|
1865
|
-
#define
|
1866
|
-
#define
|
1867
|
-
|
1868
|
-
static
|
1869
|
-
static swig_module_info swig_module = {swig_types, 18, 0, 0, 0, 0};
|
1861
|
+
#define SWIGTYPE_p_TagLib__Tag swig_types[11]
|
1862
|
+
#define SWIGTYPE_p_char swig_types[12]
|
1863
|
+
#define SWIGTYPE_p_unsigned_char swig_types[13]
|
1864
|
+
#define SWIGTYPE_p_unsigned_int swig_types[14]
|
1865
|
+
#define SWIGTYPE_p_unsigned_long swig_types[15]
|
1866
|
+
#define SWIGTYPE_p_wchar_t swig_types[16]
|
1867
|
+
static swig_type_info *swig_types[18];
|
1868
|
+
static swig_module_info swig_module = {swig_types, 17, 0, 0, 0, 0};
|
1870
1869
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
1871
1870
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
1872
1871
|
|
@@ -3998,15 +3997,6 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
3998
3997
|
return _wrap_new_Item__SWIG_1(nargs, args, self);
|
3999
3998
|
}
|
4000
3999
|
}
|
4001
|
-
if (argc == 1) {
|
4002
|
-
int _v;
|
4003
|
-
void *vptr = 0;
|
4004
|
-
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_TagLib__StringList, SWIG_POINTER_NO_NULL);
|
4005
|
-
_v = SWIG_CheckState(res);
|
4006
|
-
if (_v) {
|
4007
|
-
return _wrap_new_Item__SWIG_8(nargs, args, self);
|
4008
|
-
}
|
4009
|
-
}
|
4010
4000
|
if (argc == 1) {
|
4011
4001
|
int _v;
|
4012
4002
|
void *vptr = 0;
|
@@ -4065,6 +4055,15 @@ SWIGINTERN VALUE _wrap_new_Item(int nargs, VALUE *args, VALUE self) {
|
|
4065
4055
|
return _wrap_new_Item__SWIG_5(nargs, args, self);
|
4066
4056
|
}
|
4067
4057
|
}
|
4058
|
+
if (argc == 1) {
|
4059
|
+
int _v;
|
4060
|
+
{
|
4061
|
+
_v = TYPE(argv[0]) == T_ARRAY ? 1 : 0;
|
4062
|
+
}
|
4063
|
+
if (_v) {
|
4064
|
+
return _wrap_new_Item__SWIG_8(nargs, args, self);
|
4065
|
+
}
|
4066
|
+
}
|
4068
4067
|
if (argc == 1) {
|
4069
4068
|
int _v;
|
4070
4069
|
{
|
@@ -5223,7 +5222,6 @@ static swig_type_info _swigt__p_TagLib__MP4__Item = {"_p_TagLib__MP4__Item", "Ta
|
|
5223
5222
|
static swig_type_info _swigt__p_TagLib__MP4__Properties = {"_p_TagLib__MP4__Properties", "TagLib::MP4::Properties *", 0, 0, (void*)0, 0};
|
5224
5223
|
static swig_type_info _swigt__p_TagLib__MP4__Tag = {"_p_TagLib__MP4__Tag", "TagLib::MP4::Tag *", 0, 0, (void*)0, 0};
|
5225
5224
|
static swig_type_info _swigt__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t = {"_p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t", "TagLib::Map< TagLib::String,TagLib::MP4::Item > *|TagLib::MP4::ItemListMap *|TagLib::MP4::ItemMap *", 0, 0, (void*)0, 0};
|
5226
|
-
static swig_type_info _swigt__p_TagLib__StringList = {"_p_TagLib__StringList", "TagLib::StringList *", 0, 0, (void*)0, 0};
|
5227
5225
|
static swig_type_info _swigt__p_TagLib__Tag = {"_p_TagLib__Tag", "TagLib::Tag *", 0, 0, (void*)0, 0};
|
5228
5226
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
5229
5227
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "TagLib::uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
@@ -5243,7 +5241,6 @@ static swig_type_info *swig_type_initial[] = {
|
|
5243
5241
|
&_swigt__p_TagLib__MP4__Properties,
|
5244
5242
|
&_swigt__p_TagLib__MP4__Tag,
|
5245
5243
|
&_swigt__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t,
|
5246
|
-
&_swigt__p_TagLib__StringList,
|
5247
5244
|
&_swigt__p_TagLib__Tag,
|
5248
5245
|
&_swigt__p_char,
|
5249
5246
|
&_swigt__p_unsigned_char,
|
@@ -5263,7 +5260,6 @@ static swig_cast_info _swigc__p_TagLib__MP4__Item[] = { {&_swigt__p_TagLib__MP4
|
|
5263
5260
|
static swig_cast_info _swigc__p_TagLib__MP4__Properties[] = { {&_swigt__p_TagLib__MP4__Properties, 0, 0, 0},{0, 0, 0, 0}};
|
5264
5261
|
static swig_cast_info _swigc__p_TagLib__MP4__Tag[] = { {&_swigt__p_TagLib__MP4__Tag, 0, 0, 0},{0, 0, 0, 0}};
|
5265
5262
|
static swig_cast_info _swigc__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t[] = { {&_swigt__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t, 0, 0, 0},{0, 0, 0, 0}};
|
5266
|
-
static swig_cast_info _swigc__p_TagLib__StringList[] = { {&_swigt__p_TagLib__StringList, 0, 0, 0},{0, 0, 0, 0}};
|
5267
5263
|
static swig_cast_info _swigc__p_TagLib__Tag[] = { {&_swigt__p_TagLib__Tag, 0, 0, 0}, {&_swigt__p_TagLib__MP4__Tag, _p_TagLib__MP4__TagTo_p_TagLib__Tag, 0, 0},{0, 0, 0, 0}};
|
5268
5264
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
5269
5265
|
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
@@ -5283,7 +5279,6 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
5283
5279
|
_swigc__p_TagLib__MP4__Properties,
|
5284
5280
|
_swigc__p_TagLib__MP4__Tag,
|
5285
5281
|
_swigc__p_TagLib__MapT_TagLib__String_TagLib__MP4__Item_t,
|
5286
|
-
_swigc__p_TagLib__StringList,
|
5287
5282
|
_swigc__p_TagLib__Tag,
|
5288
5283
|
_swigc__p_char,
|
5289
5284
|
_swigc__p_unsigned_char,
|
data/lib/taglib/version.rb
CHANGED
data/test/id3v2_frames_test.rb
CHANGED
@@ -173,6 +173,11 @@ class TestID3v2Frames < Test::Unit::TestCase
|
|
173
173
|
should 'have field_list' do
|
174
174
|
assert_equal ['MusicBrainz Album Id', '992dc19a-5631-40f5-b252-fbfedbc328a9'], @txxx_frame.field_list
|
175
175
|
end
|
176
|
+
|
177
|
+
should 'constructor with all arguments should work' do
|
178
|
+
frame = TagLib::ID3v2::UserTextIdentificationFrame.new("UserFrame", ["Some User Text"], TagLib::String::UTF8)
|
179
|
+
assert_equal ["UserFrame", "Some User Text"], frame.field_list
|
180
|
+
end
|
176
181
|
end
|
177
182
|
|
178
183
|
teardown do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taglib-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Stocker
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-04-
|
13
|
+
date: 2022-04-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|