taglib-ruby 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.12
3
+ * Version 3.0.7
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -145,6 +145,19 @@ template <typename T> T SwigValueInit() {
145
145
  # define _SCL_SECURE_NO_DEPRECATE
146
146
  #endif
147
147
 
148
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
149
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
150
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
151
+ #endif
152
+
153
+ /* Intel's compiler complains if a variable which was never initialised is
154
+ * cast to void, which is a common idiom which we use to indicate that we
155
+ * are aware a variable isn't used. So we just silence that warning.
156
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
157
+ */
158
+ #ifdef __INTEL_COMPILER
159
+ # pragma warning disable 592
160
+ #endif
148
161
 
149
162
  /* -----------------------------------------------------------------------------
150
163
  * This section contains generic SWIG labels for method/variable
@@ -254,6 +267,19 @@ template <typename T> T SwigValueInit() {
254
267
  # define _SCL_SECURE_NO_DEPRECATE
255
268
  #endif
256
269
 
270
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
271
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
272
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
273
+ #endif
274
+
275
+ /* Intel's compiler complains if a variable which was never initialised is
276
+ * cast to void, which is a common idiom which we use to indicate that we
277
+ * are aware a variable isn't used. So we just silence that warning.
278
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
279
+ */
280
+ #ifdef __INTEL_COMPILER
281
+ # pragma warning disable 592
282
+ #endif
257
283
 
258
284
  /* -----------------------------------------------------------------------------
259
285
  * swigrun.swg
@@ -661,14 +687,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
661
687
  swig_module_info *iter = start;
662
688
  do {
663
689
  if (iter->size) {
664
- register size_t l = 0;
665
- register size_t r = iter->size - 1;
690
+ size_t l = 0;
691
+ size_t r = iter->size - 1;
666
692
  do {
667
693
  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
668
- register size_t i = (l + r) >> 1;
694
+ size_t i = (l + r) >> 1;
669
695
  const char *iname = iter->types[i]->name;
670
696
  if (iname) {
671
- register int compare = strcmp(name, iname);
697
+ int compare = strcmp(name, iname);
672
698
  if (compare == 0) {
673
699
  return iter->types[i];
674
700
  } else if (compare < 0) {
@@ -712,7 +738,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
712
738
  of the str field (the human readable name) */
713
739
  swig_module_info *iter = start;
714
740
  do {
715
- register size_t i = 0;
741
+ size_t i = 0;
716
742
  for (; i < iter->size; ++i) {
717
743
  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
718
744
  return iter->types[i];
@@ -731,10 +757,10 @@ SWIG_TypeQueryModule(swig_module_info *start,
731
757
  SWIGRUNTIME char *
732
758
  SWIG_PackData(char *c, void *ptr, size_t sz) {
733
759
  static const char hex[17] = "0123456789abcdef";
734
- register const unsigned char *u = (unsigned char *) ptr;
735
- register const unsigned char *eu = u + sz;
760
+ const unsigned char *u = (unsigned char *) ptr;
761
+ const unsigned char *eu = u + sz;
736
762
  for (; u != eu; ++u) {
737
- register unsigned char uu = *u;
763
+ unsigned char uu = *u;
738
764
  *(c++) = hex[(uu & 0xf0) >> 4];
739
765
  *(c++) = hex[uu & 0xf];
740
766
  }
@@ -746,11 +772,11 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
746
772
  */
747
773
  SWIGRUNTIME const char *
748
774
  SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
749
- register unsigned char *u = (unsigned char *) ptr;
750
- register const unsigned char *eu = u + sz;
775
+ unsigned char *u = (unsigned char *) ptr;
776
+ const unsigned char *eu = u + sz;
751
777
  for (; u != eu; ++u) {
752
- register char d = *(c++);
753
- register unsigned char uu;
778
+ char d = *(c++);
779
+ unsigned char uu;
754
780
  if ((d >= '0') && (d <= '9'))
755
781
  uu = ((d - '0') << 4);
756
782
  else if ((d >= 'a') && (d <= 'f'))
@@ -1506,14 +1532,13 @@ SWIG_Ruby_InitRuntime(void)
1506
1532
  SWIGRUNTIME void
1507
1533
  SWIG_Ruby_define_class(swig_type_info *type)
1508
1534
  {
1509
- VALUE klass;
1510
1535
  char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1511
1536
  sprintf(klass_name, "TYPE%s", type->name);
1512
1537
  if (NIL_P(_cSWIG_Pointer)) {
1513
1538
  _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1514
1539
  rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1515
1540
  }
1516
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1541
+ rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1517
1542
  free((void *) klass_name);
1518
1543
  }
1519
1544
 
@@ -1833,7 +1858,7 @@ static VALUE mVorbis;
1833
1858
  #define SWIG_RUBY_THREAD_END_BLOCK
1834
1859
 
1835
1860
 
1836
- #define SWIGVERSION 0x020012
1861
+ #define SWIGVERSION 0x030007
1837
1862
  #define SWIG_VERSION SWIGVERSION
1838
1863
 
1839
1864
 
@@ -1913,7 +1938,7 @@ TagLib::StringList ruby_array_to_taglib_string_list(VALUE ary) {
1913
1938
  return result;
1914
1939
  }
1915
1940
  for (long i = 0; i < RARRAY_LEN(ary); i++) {
1916
- VALUE e = RARRAY_PTR(ary)[i];
1941
+ VALUE e = rb_ary_entry(ary, i);
1917
1942
  TagLib::String s = ruby_string_to_taglib_string(e);
1918
1943
  result.append(s);
1919
1944
  }
@@ -1978,7 +2003,7 @@ SWIG_ruby_failed(void)
1978
2003
  }
1979
2004
 
1980
2005
 
1981
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2006
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1982
2007
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
1983
2008
  {
1984
2009
  VALUE obj = args[0];
@@ -2806,7 +2831,7 @@ static swig_cast_info *swig_cast_initial[] = {
2806
2831
  * array with the correct data and linking the correct swig_cast_info
2807
2832
  * structures together.
2808
2833
  *
2809
- * The generated swig_type_info structures are assigned staticly to an initial
2834
+ * The generated swig_type_info structures are assigned statically to an initial
2810
2835
  * array. We just loop through that array, and handle each type individually.
2811
2836
  * First we lookup if this type has been already loaded, and if so, use the
2812
2837
  * loaded structure instead of the generated one. Then we have to fill in the
@@ -2850,7 +2875,7 @@ SWIGRUNTIME void
2850
2875
  SWIG_InitializeModule(void *clientdata) {
2851
2876
  size_t i;
2852
2877
  swig_module_info *module_head, *iter;
2853
- int found, init;
2878
+ int init;
2854
2879
 
2855
2880
  /* check to see if the circular list has been setup, if not, set it up */
2856
2881
  if (swig_module.next==0) {
@@ -2869,22 +2894,18 @@ SWIG_InitializeModule(void *clientdata) {
2869
2894
  /* This is the first module loaded for this interpreter */
2870
2895
  /* so set the swig module into the interpreter */
2871
2896
  SWIG_SetModule(clientdata, &swig_module);
2872
- module_head = &swig_module;
2873
2897
  } else {
2874
2898
  /* the interpreter has loaded a SWIG module, but has it loaded this one? */
2875
- found=0;
2876
2899
  iter=module_head;
2877
2900
  do {
2878
2901
  if (iter==&swig_module) {
2879
- found=1;
2880
- break;
2902
+ /* Our module is already in the list, so there's nothing more to do. */
2903
+ return;
2881
2904
  }
2882
2905
  iter=iter->next;
2883
2906
  } while (iter!= module_head);
2884
2907
 
2885
- /* if the is found in the list, then all is done and we may leave */
2886
- if (found) return;
2887
- /* otherwise we must add out module into the list */
2908
+ /* otherwise we must add our module into the list */
2888
2909
  swig_module.next = module_head->next;
2889
2910
  module_head->next = &swig_module;
2890
2911
  }
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.12
3
+ * Version 3.0.7
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -145,6 +145,19 @@ template <typename T> T SwigValueInit() {
145
145
  # define _SCL_SECURE_NO_DEPRECATE
146
146
  #endif
147
147
 
148
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
149
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
150
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
151
+ #endif
152
+
153
+ /* Intel's compiler complains if a variable which was never initialised is
154
+ * cast to void, which is a common idiom which we use to indicate that we
155
+ * are aware a variable isn't used. So we just silence that warning.
156
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
157
+ */
158
+ #ifdef __INTEL_COMPILER
159
+ # pragma warning disable 592
160
+ #endif
148
161
 
149
162
  /* -----------------------------------------------------------------------------
150
163
  * This section contains generic SWIG labels for method/variable
@@ -254,6 +267,19 @@ template <typename T> T SwigValueInit() {
254
267
  # define _SCL_SECURE_NO_DEPRECATE
255
268
  #endif
256
269
 
270
+ /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
271
+ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
272
+ # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
273
+ #endif
274
+
275
+ /* Intel's compiler complains if a variable which was never initialised is
276
+ * cast to void, which is a common idiom which we use to indicate that we
277
+ * are aware a variable isn't used. So we just silence that warning.
278
+ * See: https://github.com/swig/swig/issues/192 for more discussion.
279
+ */
280
+ #ifdef __INTEL_COMPILER
281
+ # pragma warning disable 592
282
+ #endif
257
283
 
258
284
  /* -----------------------------------------------------------------------------
259
285
  * swigrun.swg
@@ -661,14 +687,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
661
687
  swig_module_info *iter = start;
662
688
  do {
663
689
  if (iter->size) {
664
- register size_t l = 0;
665
- register size_t r = iter->size - 1;
690
+ size_t l = 0;
691
+ size_t r = iter->size - 1;
666
692
  do {
667
693
  /* since l+r >= 0, we can (>> 1) instead (/ 2) */
668
- register size_t i = (l + r) >> 1;
694
+ size_t i = (l + r) >> 1;
669
695
  const char *iname = iter->types[i]->name;
670
696
  if (iname) {
671
- register int compare = strcmp(name, iname);
697
+ int compare = strcmp(name, iname);
672
698
  if (compare == 0) {
673
699
  return iter->types[i];
674
700
  } else if (compare < 0) {
@@ -712,7 +738,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
712
738
  of the str field (the human readable name) */
713
739
  swig_module_info *iter = start;
714
740
  do {
715
- register size_t i = 0;
741
+ size_t i = 0;
716
742
  for (; i < iter->size; ++i) {
717
743
  if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
718
744
  return iter->types[i];
@@ -731,10 +757,10 @@ SWIG_TypeQueryModule(swig_module_info *start,
731
757
  SWIGRUNTIME char *
732
758
  SWIG_PackData(char *c, void *ptr, size_t sz) {
733
759
  static const char hex[17] = "0123456789abcdef";
734
- register const unsigned char *u = (unsigned char *) ptr;
735
- register const unsigned char *eu = u + sz;
760
+ const unsigned char *u = (unsigned char *) ptr;
761
+ const unsigned char *eu = u + sz;
736
762
  for (; u != eu; ++u) {
737
- register unsigned char uu = *u;
763
+ unsigned char uu = *u;
738
764
  *(c++) = hex[(uu & 0xf0) >> 4];
739
765
  *(c++) = hex[uu & 0xf];
740
766
  }
@@ -746,11 +772,11 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
746
772
  */
747
773
  SWIGRUNTIME const char *
748
774
  SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
749
- register unsigned char *u = (unsigned char *) ptr;
750
- register const unsigned char *eu = u + sz;
775
+ unsigned char *u = (unsigned char *) ptr;
776
+ const unsigned char *eu = u + sz;
751
777
  for (; u != eu; ++u) {
752
- register char d = *(c++);
753
- register unsigned char uu;
778
+ char d = *(c++);
779
+ unsigned char uu;
754
780
  if ((d >= '0') && (d <= '9'))
755
781
  uu = ((d - '0') << 4);
756
782
  else if ((d >= 'a') && (d <= 'f'))
@@ -1506,14 +1532,13 @@ SWIG_Ruby_InitRuntime(void)
1506
1532
  SWIGRUNTIME void
1507
1533
  SWIG_Ruby_define_class(swig_type_info *type)
1508
1534
  {
1509
- VALUE klass;
1510
1535
  char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1511
1536
  sprintf(klass_name, "TYPE%s", type->name);
1512
1537
  if (NIL_P(_cSWIG_Pointer)) {
1513
1538
  _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1514
1539
  rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1515
1540
  }
1516
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1541
+ rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1517
1542
  free((void *) klass_name);
1518
1543
  }
1519
1544
 
@@ -1830,7 +1855,7 @@ static VALUE mWAV;
1830
1855
  #define SWIG_RUBY_THREAD_END_BLOCK
1831
1856
 
1832
1857
 
1833
- #define SWIGVERSION 0x020012
1858
+ #define SWIGVERSION 0x030007
1834
1859
  #define SWIG_VERSION SWIGVERSION
1835
1860
 
1836
1861
 
@@ -1911,7 +1936,7 @@ TagLib::StringList ruby_array_to_taglib_string_list(VALUE ary) {
1911
1936
  return result;
1912
1937
  }
1913
1938
  for (long i = 0; i < RARRAY_LEN(ary); i++) {
1914
- VALUE e = RARRAY_PTR(ary)[i];
1939
+ VALUE e = rb_ary_entry(ary, i);
1915
1940
  TagLib::String s = ruby_string_to_taglib_string(e);
1916
1941
  result.append(s);
1917
1942
  }
@@ -1976,7 +2001,7 @@ SWIG_ruby_failed(void)
1976
2001
  }
1977
2002
 
1978
2003
 
1979
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2004
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1980
2005
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
1981
2006
  {
1982
2007
  VALUE obj = args[0];
@@ -2071,7 +2096,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
2071
2096
 
2072
2097
 
2073
2098
 
2074
- /*@SWIG:/usr/local/share/swig/2.0.12/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2099
+ /*@SWIG:/usr/local/share/swig/3.0.7/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
2075
2100
  SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
2076
2101
  {
2077
2102
  VALUE obj = args[0];
@@ -2785,7 +2810,7 @@ static swig_cast_info *swig_cast_initial[] = {
2785
2810
  * array with the correct data and linking the correct swig_cast_info
2786
2811
  * structures together.
2787
2812
  *
2788
- * The generated swig_type_info structures are assigned staticly to an initial
2813
+ * The generated swig_type_info structures are assigned statically to an initial
2789
2814
  * array. We just loop through that array, and handle each type individually.
2790
2815
  * First we lookup if this type has been already loaded, and if so, use the
2791
2816
  * loaded structure instead of the generated one. Then we have to fill in the
@@ -2829,7 +2854,7 @@ SWIGRUNTIME void
2829
2854
  SWIG_InitializeModule(void *clientdata) {
2830
2855
  size_t i;
2831
2856
  swig_module_info *module_head, *iter;
2832
- int found, init;
2857
+ int init;
2833
2858
 
2834
2859
  /* check to see if the circular list has been setup, if not, set it up */
2835
2860
  if (swig_module.next==0) {
@@ -2848,22 +2873,18 @@ SWIG_InitializeModule(void *clientdata) {
2848
2873
  /* This is the first module loaded for this interpreter */
2849
2874
  /* so set the swig module into the interpreter */
2850
2875
  SWIG_SetModule(clientdata, &swig_module);
2851
- module_head = &swig_module;
2852
2876
  } else {
2853
2877
  /* the interpreter has loaded a SWIG module, but has it loaded this one? */
2854
- found=0;
2855
2878
  iter=module_head;
2856
2879
  do {
2857
2880
  if (iter==&swig_module) {
2858
- found=1;
2859
- break;
2881
+ /* Our module is already in the list, so there's nothing more to do. */
2882
+ return;
2860
2883
  }
2861
2884
  iter=iter->next;
2862
2885
  } while (iter!= module_head);
2863
2886
 
2864
- /* if the is found in the list, then all is done and we may leave */
2865
- if (found) return;
2866
- /* otherwise we must add out module into the list */
2887
+ /* otherwise we must add our module into the list */
2867
2888
  swig_module.next = module_head->next;
2868
2889
  module_head->next = &swig_module;
2869
2890
  }
@@ -2,7 +2,7 @@ module TagLib
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 7
5
- PATCH = 0
5
+ PATCH = 1
6
6
  BUILD = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
@@ -28,6 +28,7 @@ DESC
28
28
  s.add_development_dependency 'shoulda-context', '~> 1.0'
29
29
  s.add_development_dependency 'yard', '~> 0.7'
30
30
  s.add_development_dependency 'kramdown', '~> 1.0'
31
+ s.add_development_dependency 'test-unit', '~> 3.1'
31
32
 
32
33
  s.extensions = [
33
34
  "ext/taglib_base/extconf.rb",
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: 0.7.0
4
+ version: 0.7.1
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: 2014-08-21 00:00:00.000000000 Z
13
+ date: 2015-12-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -82,6 +82,20 @@ dependencies:
82
82
  - - "~>"
83
83
  - !ruby/object:Gem::Version
84
84
  version: '1.0'
85
+ - !ruby/object:Gem::Dependency
86
+ name: test-unit
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '3.1'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - "~>"
97
+ - !ruby/object:Gem::Version
98
+ version: '3.1'
85
99
  description: |
86
100
  Ruby interface for the taglib C++ library, for reading and writing
87
101
  meta-data (tags) of many audio formats.
@@ -251,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
265
  requirements:
252
266
  - taglib (libtag1-dev in Debian/Ubuntu, taglib-devel in Fedora/RHEL)
253
267
  rubyforge_project:
254
- rubygems_version: 2.2.2
268
+ rubygems_version: 2.5.1
255
269
  signing_key:
256
270
  specification_version: 4
257
271
  summary: Ruby interface for the taglib C++ library