ofa 1.2 → 1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/ext/extconf.rb +2 -0
  2. data/ext/ofa.cpp +8 -14
  3. metadata +20 -40
@@ -1,4 +1,6 @@
1
1
  require 'mkmf'
2
+ dir_config('ofa')
3
+ have_library('ofa') or raise 'You need to have libofa installed.'
2
4
  find_library('ofa', nil)
3
5
  create_makefile('ofa')
4
6
 
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 2.0.0
3
+ * Version 2.0.9
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
@@ -305,7 +305,7 @@ template <typename T> T SwigValueInit() {
305
305
  /*
306
306
  Flags/methods for returning states.
307
307
 
308
- The SWIG conversion methods, as ConvertPtr, return and integer
308
+ The SWIG conversion methods, as ConvertPtr, return an integer
309
309
  that tells if the conversion was successful or not. And if not,
310
310
  an error code can be returned (see swigerrors.swg for the codes).
311
311
 
@@ -1022,7 +1022,7 @@ static VALUE _mSWIG = Qnil;
1022
1022
 
1023
1023
  /* Define custom exceptions for errors that do not map to existing Ruby
1024
1024
  exceptions. Note this only works for C++ since a global cannot be
1025
- initialized by a funtion in C. For C, fallback to rb_eRuntimeError.*/
1025
+ initialized by a function in C. For C, fallback to rb_eRuntimeError.*/
1026
1026
 
1027
1027
  SWIGINTERN VALUE
1028
1028
  getNullReferenceError(void) {
@@ -1398,7 +1398,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1398
1398
 
1399
1399
  /* Runtime API */
1400
1400
 
1401
- #define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
1401
+ #define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule(clientdata)
1402
1402
  #define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
1403
1403
 
1404
1404
 
@@ -1552,7 +1552,7 @@ SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1552
1552
  downcast methods. */
1553
1553
  if (obj != Qnil) {
1554
1554
  VALUE value = rb_iv_get(obj, "@__swigtype__");
1555
- char* type_name = RSTRING_PTR(value);
1555
+ const char* type_name = RSTRING_PTR(value);
1556
1556
 
1557
1557
  if (strcmp(type->name, type_name) == 0) {
1558
1558
  return obj;
@@ -1734,7 +1734,7 @@ SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
1734
1734
  }
1735
1735
 
1736
1736
  SWIGRUNTIME swig_module_info *
1737
- SWIG_Ruby_GetModule(void)
1737
+ SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata))
1738
1738
  {
1739
1739
  VALUE pointer;
1740
1740
  swig_module_info *ret = 0;
@@ -1831,7 +1831,7 @@ static VALUE mOfa;
1831
1831
  #define SWIG_RUBY_THREAD_END_BLOCK
1832
1832
 
1833
1833
 
1834
- #define SWIGVERSION 0x020000
1834
+ #define SWIGVERSION 0x020009
1835
1835
  #define SWIG_VERSION SWIGVERSION
1836
1836
 
1837
1837
 
@@ -1920,11 +1920,7 @@ SWIGINTERN int
1920
1920
  SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
1921
1921
  {
1922
1922
  if (TYPE(obj) == T_STRING) {
1923
- #if defined(StringValuePtr)
1924
1923
  char *cstr = StringValuePtr(obj);
1925
- #else
1926
- char *cstr = STR2CSTR(obj);
1927
- #endif
1928
1924
  size_t size = RSTRING_LEN(obj) + 1;
1929
1925
  if (cptr) {
1930
1926
  if (alloc) {
@@ -1964,7 +1960,7 @@ SWIG_ruby_failed(void)
1964
1960
  }
1965
1961
 
1966
1962
 
1967
- /*@SWIG:/Users/adriano/Applications/homebrew/Cellar/swig/2.0.0//share/swig/2.0.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1963
+ /*@SWIG:/Users/adriano/Applications/homebrew/Cellar/swig/2.0.9/share/swig/2.0.9/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
1968
1964
  SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
1969
1965
  {
1970
1966
  VALUE obj = args[0];
@@ -2229,8 +2225,6 @@ SWIG_InitializeModule(void *clientdata) {
2229
2225
  swig_module_info *module_head, *iter;
2230
2226
  int found, init;
2231
2227
 
2232
- clientdata = clientdata;
2233
-
2234
2228
  /* check to see if the circular list has been setup, if not, set it up */
2235
2229
  if (swig_module.next==0) {
2236
2230
  /* Initialize the swig_module */
metadata CHANGED
@@ -1,67 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ofa
3
- version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 2
9
- version: "1.2"
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.3'
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Adriano Bonat
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-06-26 00:00:00 -03:00
18
- default_executable:
12
+ date: 2013-03-03 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
14
  description: Open-source audio fingerprint by MusicIP
22
15
  email: adrianob@gmail.com
23
16
  executables: []
24
-
25
- extensions:
17
+ extensions:
26
18
  - ext/extconf.rb
27
19
  extra_rdoc_files: []
28
-
29
- files:
20
+ files:
30
21
  - ext/extconf.rb
31
22
  - ext/ofa.cpp
32
- has_rdoc: true
33
23
  homepage: http://github.com/tanob/ofa-ruby
34
24
  licenses: []
35
-
36
25
  post_install_message:
37
26
  rdoc_options: []
38
-
39
- require_paths:
27
+ require_paths:
40
28
  - lib
41
- required_ruby_version: !ruby/object:Gem::Requirement
29
+ required_ruby_version: !ruby/object:Gem::Requirement
42
30
  none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- hash: 3
47
- segments:
48
- - 0
49
- version: "0"
50
- required_rubygems_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
36
  none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- hash: 3
56
- segments:
57
- - 0
58
- version: "0"
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
59
41
  requirements: []
60
-
61
42
  rubyforge_project:
62
- rubygems_version: 1.3.7
43
+ rubygems_version: 1.8.24
63
44
  signing_key:
64
45
  specification_version: 3
65
46
  summary: Ruby binding to libofa
66
47
  test_files: []
67
-