libusb 0.4.0 → 0.4.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.
Files changed (118) hide show
  1. data/.travis.yml +2 -2
  2. data/Gemfile +0 -8
  3. data/History.md +5 -0
  4. data/README.md +6 -6
  5. data/Rakefile +9 -9
  6. data/ext/extconf.rb +1 -1
  7. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/AUTHORS +10 -0
  8. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/COPYING +0 -0
  9. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/ChangeLog +17 -9
  10. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/INSTALL +0 -0
  11. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Makefile.am +0 -0
  12. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Makefile.in +153 -178
  13. data/ext/libusb-1.0.18/NEWS +2 -0
  14. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/PORTING +13 -13
  15. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/README +9 -11
  16. data/ext/libusb-1.0.18/TODO +2 -0
  17. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/common.xcconfig +3 -3
  18. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/config.h +0 -0
  19. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/debug.xcconfig +2 -2
  20. data/ext/{libusbx-1.0.17/Xcode/libusbx.xcconfig → libusb-1.0.18/Xcode/libusb.xcconfig} +2 -2
  21. data/ext/libusb-1.0.18/Xcode/libusb.xcodeproj/project.pbxproj +1 -0
  22. data/ext/{libusbx-1.0.17/Xcode/libusbx_debug.xcconfig → libusb-1.0.18/Xcode/libusb_debug.xcconfig} +3 -3
  23. data/ext/{libusbx-1.0.17/Xcode/libusbx_release.xcconfig → libusb-1.0.18/Xcode/libusb_release.xcconfig} +3 -3
  24. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/Xcode/release.xcconfig +2 -2
  25. data/ext/{libusbx-1.0.17/m4/libtool.m4 → libusb-1.0.18/aclocal.m4} +1731 -27
  26. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/README +0 -0
  27. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/config.h +1 -10
  28. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/Android.mk +0 -0
  29. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/Application.mk +6 -1
  30. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/examples.mk +0 -0
  31. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/libusb.mk +0 -0
  32. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/android/jni/tests.mk +0 -0
  33. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/compile +3 -7
  34. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/config.guess +19 -24
  35. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/config.h.in +0 -0
  36. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/config.sub +30 -47
  37. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/configure +118 -172
  38. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/configure.ac +24 -2
  39. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/depcomp +186 -268
  40. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/doc/Makefile.am +1 -1
  41. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/doc/Makefile.in +36 -73
  42. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/doc/doxygen.cfg.in +1 -1
  43. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/Makefile.am +0 -0
  44. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/Makefile.in +68 -132
  45. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/dpfp.c +1 -1
  46. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/dpfp_threaded.c +1 -1
  47. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/ezusb.c +57 -26
  48. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/ezusb.h +0 -0
  49. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/fxload.c +3 -3
  50. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/getopt/getopt.c +0 -0
  51. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/getopt/getopt.h +0 -0
  52. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/getopt/getopt1.c +0 -0
  53. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/hotplugtest.c +9 -2
  54. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/listdevs.c +1 -1
  55. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/sam3u_benchmark.c +0 -0
  56. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/examples/xusb.c +20 -4
  57. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/install-sh +7 -7
  58. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb-1.0.pc.in +1 -1
  59. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/Makefile.am +1 -1
  60. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/Makefile.in +94 -134
  61. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/core.c +95 -74
  62. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/descriptor.c +2 -2
  63. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/hotplug.c +3 -3
  64. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/hotplug.h +1 -1
  65. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/io.c +127 -116
  66. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusb-1.0.def +0 -0
  67. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusb-1.0.rc +1 -1
  68. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusb.h +42 -39
  69. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/libusbi.h +20 -11
  70. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/darwin_usb.c +20 -16
  71. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/darwin_usb.h +1 -1
  72. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_netlink.c +0 -0
  73. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_udev.c +0 -0
  74. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_usbfs.c +15 -12
  75. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/linux_usbfs.h +0 -0
  76. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/netbsd_usb.c +2 -4
  77. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/openbsd_usb.c +5 -2
  78. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_posix.c +0 -0
  79. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_posix.h +0 -0
  80. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_windows.c +2 -2
  81. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/poll_windows.h +0 -0
  82. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_posix.c +1 -1
  83. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_posix.h +1 -1
  84. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_windows.c +1 -1
  85. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/threads_windows.h +1 -1
  86. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/wince_usb.c +1 -2
  87. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/wince_usb.h +2 -2
  88. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/windows_common.h +1 -1
  89. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/windows_usb.c +53 -33
  90. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/os/windows_usb.h +6 -1
  91. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/strerror.c +2 -2
  92. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/sync.c +6 -6
  93. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/libusb/version.h +1 -1
  94. data/ext/libusb-1.0.18/libusb/version_nano.h +1 -0
  95. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/ltmain.sh +3 -3
  96. data/ext/libusb-1.0.18/missing +331 -0
  97. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/Makefile.am +1 -1
  98. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/Makefile.in +69 -127
  99. data/ext/{libusbx-1.0.17/tests/libusbx_testlib.h → libusb-1.0.18/tests/libusb_testlib.h} +15 -15
  100. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/stress.c +16 -16
  101. data/ext/{libusbx-1.0.17 → libusb-1.0.18}/tests/testlib.c +21 -20
  102. data/lib/libusb/version_gem.rb +1 -1
  103. data/libusb.gemspec +1 -6
  104. metadata +117 -135
  105. checksums.yaml +0 -7
  106. checksums.yaml.gz.sig +0 -0
  107. data.tar.gz.sig +0 -0
  108. data/ext/libusbx-1.0.17/NEWS +0 -2
  109. data/ext/libusbx-1.0.17/TODO +0 -2
  110. data/ext/libusbx-1.0.17/Xcode/libusbx.xcodeproj/project.pbxproj +0 -864
  111. data/ext/libusbx-1.0.17/aclocal.m4 +0 -1112
  112. data/ext/libusbx-1.0.17/libusb/version_nano.h +0 -1
  113. data/ext/libusbx-1.0.17/m4/ltoptions.m4 +0 -384
  114. data/ext/libusbx-1.0.17/m4/ltsugar.m4 +0 -123
  115. data/ext/libusbx-1.0.17/m4/ltversion.m4 +0 -23
  116. data/ext/libusbx-1.0.17/m4/lt~obsolete.m4 +0 -98
  117. data/ext/libusbx-1.0.17/missing +0 -215
  118. metadata.gz.sig +0 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * libusbx test library helper functions
2
+ * libusb test library helper functions
3
3
  * Copyright © 2012 Toby Gray <toby.gray@realvnc.com>
4
4
  *
5
5
  * This library is free software; you can redistribute it and/or
@@ -17,8 +17,8 @@
17
17
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
  */
19
19
 
20
- #ifndef LIBUSBX_TESTLIB_H
21
- #define LIBUSBX_TESTLIB_H
20
+ #ifndef LIBUSB_TESTLIB_H
21
+ #define LIBUSB_TESTLIB_H
22
22
 
23
23
  #include <stdio.h>
24
24
 
@@ -43,7 +43,7 @@ typedef enum {
43
43
  /** Indicates that the test can't be run. For example this may be
44
44
  * due to no suitable device being connected to perform the tests.*/
45
45
  TEST_STATUS_SKIP
46
- } libusbx_testlib_result;
46
+ } libusb_testlib_result;
47
47
 
48
48
  /**
49
49
  * Context for test library functions
@@ -57,21 +57,21 @@ typedef struct {
57
57
  int old_stderr;
58
58
  FILE* output_file;
59
59
  int null_fd;
60
- } libusbx_testlib_ctx;
60
+ } libusb_testlib_ctx;
61
61
 
62
62
  /**
63
63
  * Logs some test information or state
64
64
  */
65
- void libusbx_testlib_logf(libusbx_testlib_ctx * ctx,
65
+ void libusb_testlib_logf(libusb_testlib_ctx * ctx,
66
66
  const char* fmt, ...);
67
67
 
68
68
  /**
69
- * Function pointer for a libusbx test function.
69
+ * Function pointer for a libusb test function.
70
70
  *
71
71
  * Should return TEST_STATUS_SUCCESS on success or another TEST_STATUS value.
72
72
  */
73
- typedef libusbx_testlib_result
74
- (*libusbx_testlib_test_function)(libusbx_testlib_ctx * ctx);
73
+ typedef libusb_testlib_result
74
+ (*libusb_testlib_test_function)(libusb_testlib_ctx * ctx);
75
75
 
76
76
  /**
77
77
  * Structure holding a test description.
@@ -80,14 +80,14 @@ typedef struct {
80
80
  /** Human readable name of the test. */
81
81
  const char * name;
82
82
  /** The test library will call this function to run the test. */
83
- libusbx_testlib_test_function function;
84
- } libusbx_testlib_test;
83
+ libusb_testlib_test_function function;
84
+ } libusb_testlib_test;
85
85
 
86
86
  /**
87
87
  * Value to use at the end of a test array to indicate the last
88
88
  * element.
89
89
  */
90
- #define LIBUSBX_NULL_TEST {NULL, NULL}
90
+ #define LIBUSB_NULL_TEST {NULL, NULL}
91
91
 
92
92
  /**
93
93
  * Runs the tests provided.
@@ -100,8 +100,8 @@ typedef struct {
100
100
  * \param tests A NULL_TEST terminated array of tests
101
101
  * \return 0 on success, non-zero on failure
102
102
  */
103
- int libusbx_testlib_run_tests(int argc,
103
+ int libusb_testlib_run_tests(int argc,
104
104
  char ** argv,
105
- const libusbx_testlib_test * tests);
105
+ const libusb_testlib_test * tests);
106
106
 
107
- #endif //LIBUSBX_TESTLIB_H
107
+ #endif //LIBUSB_TESTLIB_H
@@ -1,5 +1,5 @@
1
1
  /*
2
- * libusbx stress test program to perform simple stress tests
2
+ * libusb stress test program to perform simple stress tests
3
3
  * Copyright © 2012 Toby Gray <toby.gray@realvnc.com>
4
4
  *
5
5
  * This library is free software; you can redistribute it and/or
@@ -22,18 +22,18 @@
22
22
  #include <memory.h>
23
23
 
24
24
  #include "libusb.h"
25
- #include "libusbx_testlib.h"
25
+ #include "libusb_testlib.h"
26
26
 
27
27
  /** Test that creates and destroys a single concurrent context
28
28
  * 10000 times. */
29
- static libusbx_testlib_result test_init_and_exit(libusbx_testlib_ctx * tctx)
29
+ static libusb_testlib_result test_init_and_exit(libusb_testlib_ctx * tctx)
30
30
  {
31
31
  libusb_context * ctx = NULL;
32
32
  int i;
33
33
  for (i = 0; i < 10000; ++i) {
34
34
  int r = libusb_init(&ctx);
35
35
  if (r != LIBUSB_SUCCESS) {
36
- libusbx_testlib_logf(tctx,
36
+ libusb_testlib_logf(tctx,
37
37
  "Failed to init libusb on iteration %d: %d",
38
38
  i, r);
39
39
  return TEST_STATUS_FAILURE;
@@ -46,20 +46,20 @@ static libusbx_testlib_result test_init_and_exit(libusbx_testlib_ctx * tctx)
46
46
  }
47
47
 
48
48
  /** Tests that devices can be listed 1000 times. */
49
- static libusbx_testlib_result test_get_device_list(libusbx_testlib_ctx * tctx)
49
+ static libusb_testlib_result test_get_device_list(libusb_testlib_ctx * tctx)
50
50
  {
51
51
  libusb_context * ctx = NULL;
52
52
  int r, i;
53
53
  r = libusb_init(&ctx);
54
54
  if (r != LIBUSB_SUCCESS) {
55
- libusbx_testlib_logf(tctx, "Failed to init libusb: %d", r);
55
+ libusb_testlib_logf(tctx, "Failed to init libusb: %d", r);
56
56
  return TEST_STATUS_FAILURE;
57
57
  }
58
58
  for (i = 0; i < 1000; ++i) {
59
59
  libusb_device ** device_list;
60
60
  ssize_t list_size = libusb_get_device_list(ctx, &device_list);
61
61
  if (list_size < 0 || device_list == NULL) {
62
- libusbx_testlib_logf(tctx,
62
+ libusb_testlib_logf(tctx,
63
63
  "Failed to get device list on iteration %d: %d (%p)",
64
64
  i, -list_size, device_list);
65
65
  return TEST_STATUS_FAILURE;
@@ -71,7 +71,7 @@ static libusbx_testlib_result test_get_device_list(libusbx_testlib_ctx * tctx)
71
71
  }
72
72
 
73
73
  /** Tests that 100 concurrent device lists can be open at a time. */
74
- static libusbx_testlib_result test_many_device_lists(libusbx_testlib_ctx * tctx)
74
+ static libusb_testlib_result test_many_device_lists(libusb_testlib_ctx * tctx)
75
75
  {
76
76
  #define LIST_COUNT 100
77
77
  libusb_context * ctx = NULL;
@@ -81,7 +81,7 @@ static libusbx_testlib_result test_many_device_lists(libusbx_testlib_ctx * tctx)
81
81
 
82
82
  r = libusb_init(&ctx);
83
83
  if (r != LIBUSB_SUCCESS) {
84
- libusbx_testlib_logf(tctx, "Failed to init libusb: %d", r);
84
+ libusb_testlib_logf(tctx, "Failed to init libusb: %d", r);
85
85
  return TEST_STATUS_FAILURE;
86
86
  }
87
87
 
@@ -89,7 +89,7 @@ static libusbx_testlib_result test_many_device_lists(libusbx_testlib_ctx * tctx)
89
89
  for (i = 0; i < LIST_COUNT; ++i) {
90
90
  ssize_t list_size = libusb_get_device_list(ctx, &(device_lists[i]));
91
91
  if (list_size < 0 || device_lists[i] == NULL) {
92
- libusbx_testlib_logf(tctx,
92
+ libusb_testlib_logf(tctx,
93
93
  "Failed to get device list on iteration %d: %d (%p)",
94
94
  i, -list_size, device_lists[i]);
95
95
  return TEST_STATUS_FAILURE;
@@ -112,7 +112,7 @@ static libusbx_testlib_result test_many_device_lists(libusbx_testlib_ctx * tctx)
112
112
  /** Tests that the default context (used for various things including
113
113
  * logging) works correctly when the first context created in a
114
114
  * process is destroyed. */
115
- static libusbx_testlib_result test_default_context_change(libusbx_testlib_ctx * tctx)
115
+ static libusb_testlib_result test_default_context_change(libusb_testlib_ctx * tctx)
116
116
  {
117
117
  libusb_context * ctx = NULL;
118
118
  int r, i;
@@ -121,7 +121,7 @@ static libusbx_testlib_result test_default_context_change(libusbx_testlib_ctx *
121
121
  /* First create a new context */
122
122
  r = libusb_init(&ctx);
123
123
  if (r != LIBUSB_SUCCESS) {
124
- libusbx_testlib_logf(tctx, "Failed to init libusb: %d", r);
124
+ libusb_testlib_logf(tctx, "Failed to init libusb: %d", r);
125
125
  return TEST_STATUS_FAILURE;
126
126
  }
127
127
 
@@ -132,7 +132,7 @@ static libusbx_testlib_result test_default_context_change(libusbx_testlib_ctx *
132
132
  /* Now create a reference to the default context */
133
133
  r = libusb_init(NULL);
134
134
  if (r != LIBUSB_SUCCESS) {
135
- libusbx_testlib_logf(tctx, "Failed to init libusb: %d", r);
135
+ libusb_testlib_logf(tctx, "Failed to init libusb: %d", r);
136
136
  return TEST_STATUS_FAILURE;
137
137
  }
138
138
 
@@ -146,15 +146,15 @@ static libusbx_testlib_result test_default_context_change(libusbx_testlib_ctx *
146
146
  }
147
147
 
148
148
  /* Fill in the list of tests. */
149
- static const libusbx_testlib_test tests[] = {
149
+ static const libusb_testlib_test tests[] = {
150
150
  {"init_and_exit", &test_init_and_exit},
151
151
  {"get_device_list", &test_get_device_list},
152
152
  {"many_device_lists", &test_many_device_lists},
153
153
  {"default_context_change", &test_default_context_change},
154
- LIBUSBX_NULL_TEST
154
+ LIBUSB_NULL_TEST
155
155
  };
156
156
 
157
157
  int main (int argc, char ** argv)
158
158
  {
159
- return libusbx_testlib_run_tests(argc, argv, tests);
159
+ return libusb_testlib_run_tests(argc, argv, tests);
160
160
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * libusbx test library helper functions
2
+ * libusb test library helper functions
3
3
  * Copyright © 2012 Toby Gray <toby.gray@realvnc.com>
4
4
  *
5
5
  * This library is free software; you can redistribute it and/or
@@ -17,7 +17,7 @@
17
17
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
18
  */
19
19
 
20
- #include "libusbx_testlib.h"
20
+ #include "libusb_testlib.h"
21
21
 
22
22
  #include <stdio.h>
23
23
  #include <stdarg.h>
@@ -53,7 +53,7 @@
53
53
  /**
54
54
  * Converts a test result code into a human readable string.
55
55
  */
56
- static const char* test_result_to_str(libusbx_testlib_result result)
56
+ static const char* test_result_to_str(libusb_testlib_result result)
57
57
  {
58
58
  switch (result) {
59
59
  case TEST_STATUS_SUCCESS:
@@ -77,7 +77,7 @@ static void print_usage(int argc, char ** argv)
77
77
  printf(" -v Don't redirect STDERR/STDOUT during tests\n");
78
78
  }
79
79
 
80
- static void cleanup_test_output(libusbx_testlib_ctx * ctx)
80
+ static void cleanup_test_output(libusb_testlib_ctx * ctx)
81
81
  {
82
82
  #ifndef DISABLE_STDOUT_REDIRECTION
83
83
  if (!ctx->verbose) {
@@ -105,7 +105,7 @@ static void cleanup_test_output(libusbx_testlib_ctx * ctx)
105
105
  * Setup test output handles
106
106
  * \return zero on success, non-zero on failure
107
107
  */
108
- static int setup_test_output(libusbx_testlib_ctx * ctx)
108
+ static int setup_test_output(libusb_testlib_ctx * ctx)
109
109
  {
110
110
  #ifndef DISABLE_STDOUT_REDIRECTION
111
111
  /* Stop output to stdout and stderr from being displayed if using non-verbose output */
@@ -139,6 +139,7 @@ static int setup_test_output(libusbx_testlib_ctx * ctx)
139
139
  }
140
140
  ctx->output_file = fdopen(ctx->old_stdout, "w");
141
141
  if (!ctx->output_file) {
142
+ ctx->output_file = stdout;
142
143
  cleanup_test_output(ctx);
143
144
  printf("Failed to open FILE for output handle: %d\n", errno);
144
145
  return 1;
@@ -148,7 +149,7 @@ static int setup_test_output(libusbx_testlib_ctx * ctx)
148
149
  return 0;
149
150
  }
150
151
 
151
- void libusbx_testlib_logf(libusbx_testlib_ctx * ctx,
152
+ void libusb_testlib_logf(libusb_testlib_ctx * ctx,
152
153
  const char* fmt, ...)
153
154
  {
154
155
  va_list va;
@@ -159,9 +160,9 @@ void libusbx_testlib_logf(libusbx_testlib_ctx * ctx,
159
160
  fflush(ctx->output_file);
160
161
  }
161
162
 
162
- int libusbx_testlib_run_tests(int argc,
163
+ int libusb_testlib_run_tests(int argc,
163
164
  char ** argv,
164
- const libusbx_testlib_test * tests)
165
+ const libusb_testlib_test * tests)
165
166
  {
166
167
  int run_count = 0;
167
168
  int idx = 0;
@@ -171,8 +172,8 @@ int libusbx_testlib_run_tests(int argc,
171
172
  int skip_count = 0;
172
173
  int r, j;
173
174
  size_t arglen;
174
- libusbx_testlib_result test_result;
175
- libusbx_testlib_ctx ctx;
175
+ libusb_testlib_result test_result;
176
+ libusb_testlib_ctx ctx;
176
177
 
177
178
  /* Setup default mode of operation */
178
179
  ctx.test_names = NULL;
@@ -226,7 +227,7 @@ int libusbx_testlib_run_tests(int argc,
226
227
  /* Act on any options not related to running tests */
227
228
  if (ctx.list_tests) {
228
229
  while (tests[idx].function != NULL) {
229
- libusbx_testlib_logf(&ctx, tests[idx].name);
230
+ libusb_testlib_logf(&ctx, tests[idx].name);
230
231
  ++idx;
231
232
  }
232
233
  cleanup_test_output(&ctx);
@@ -235,7 +236,7 @@ int libusbx_testlib_run_tests(int argc,
235
236
 
236
237
  /* Run any requested tests */
237
238
  while (tests[idx].function != NULL) {
238
- const libusbx_testlib_test * test = &tests[idx];
239
+ const libusb_testlib_test * test = &tests[idx];
239
240
  ++idx;
240
241
  if (ctx.test_count > 0) {
241
242
  /* Filtering tests to run, check if this is one of them */
@@ -250,10 +251,10 @@ int libusbx_testlib_run_tests(int argc,
250
251
  continue;
251
252
  }
252
253
  }
253
- libusbx_testlib_logf(&ctx,
254
+ libusb_testlib_logf(&ctx,
254
255
  "Starting test run: %s...", test->name);
255
256
  test_result = test->function(&ctx);
256
- libusbx_testlib_logf(&ctx,
257
+ libusb_testlib_logf(&ctx,
257
258
  "%s (%d)",
258
259
  test_result_to_str(test_result), test_result);
259
260
  switch (test_result) {
@@ -264,12 +265,12 @@ int libusbx_testlib_run_tests(int argc,
264
265
  }
265
266
  ++run_count;
266
267
  }
267
- libusbx_testlib_logf(&ctx, "---");
268
- libusbx_testlib_logf(&ctx, "Ran %d tests", run_count);
269
- libusbx_testlib_logf(&ctx, "Passed %d tests", pass_count);
270
- libusbx_testlib_logf(&ctx, "Failed %d tests", fail_count);
271
- libusbx_testlib_logf(&ctx, "Error in %d tests", error_count);
272
- libusbx_testlib_logf(&ctx, "Skipped %d tests", skip_count);
268
+ libusb_testlib_logf(&ctx, "---");
269
+ libusb_testlib_logf(&ctx, "Ran %d tests", run_count);
270
+ libusb_testlib_logf(&ctx, "Passed %d tests", pass_count);
271
+ libusb_testlib_logf(&ctx, "Failed %d tests", fail_count);
272
+ libusb_testlib_logf(&ctx, "Error in %d tests", error_count);
273
+ libusb_testlib_logf(&ctx, "Skipped %d tests", skip_count);
273
274
 
274
275
  cleanup_test_output(&ctx);
275
276
  return pass_count != run_count;
@@ -15,5 +15,5 @@
15
15
 
16
16
  module LIBUSB
17
17
  # Library version of libusb for Ruby
18
- VERSION = "0.4.0"
18
+ VERSION = "0.4.1"
19
19
  end
@@ -20,12 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
  s.extensions = ['ext/extconf.rb']
22
22
 
23
- # travis currently runs a slightly older version of rbx,
24
- # that needs a special ffi version.
25
- unless ENV['TRAVIS'] && defined?(RUBY_ENGINE) && RUBY_ENGINE=='rbx'
26
- s.add_runtime_dependency 'ffi', '>= 1.0'
27
- end
28
-
23
+ s.add_runtime_dependency 'ffi', '>= 1.0'
29
24
  s.add_development_dependency 'rake-compiler', '>= 0.6'
30
25
  s.add_development_dependency 'bundler'
31
26
  end
metadata CHANGED
@@ -1,76 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libusb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Lars Kanis
8
9
  autorequire:
9
10
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
- MIIDPDCCAiSgAwIBAgIBADANBgkqhkiG9w0BAQUFADBEMQ0wCwYDVQQDDARsYXJz
14
- MR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZImiZPyLGQB
15
- GRYCZGUwHhcNMTMwMzExMjAyMjIyWhcNMTQwMzExMjAyMjIyWjBEMQ0wCwYDVQQD
16
- DARsYXJzMR8wHQYKCZImiZPyLGQBGRYPZ3JlaXotcmVpbnNkb3JmMRIwEAYKCZIm
17
- iZPyLGQBGRYCZGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDZb4Uv
18
- RFJfRu/VEWiy3psh2jinETjiuBrL0NeRFGf8H7iU9+gx/DI/FFhfHGLrDeIskrJx
19
- YIWDMmEjVO10UUdj7wu4ZhmU++0Cd7Kq9/TyP/shIP3IjqHjVLCnJ3P6f1cl5rxZ
20
- gqo+d3BAoDrmPk0rtaf6QopwUw9RBiF8V4HqvpiY+ruJotP5UQDP4/lVOKvA8PI9
21
- P0GmVbFBrbc7Zt5h78N3UyOK0u+nvOC23BvyHXzCtcFsXCoEkt+Wwh0RFqVZdnjM
22
- LMO2vULHKKHDdX54K/sbVCj9pN9h1aotNzrEyo55zxn0G9PHg/G3P8nMvAXPkUTe
23
- brhXrfCwWRvOXA4TAgMBAAGjOTA3MAsGA1UdDwQEAwIEsDAJBgNVHRMEAjAAMB0G
24
- A1UdDgQWBBRAHK81igrXodaDj8a8/BIKsaZrETANBgkqhkiG9w0BAQUFAAOCAQEA
25
- Iswhcol3ytXthaUH3k5LopZ09viZrZHzAw0QleI3Opl/9QEGJ2BPV9+93iC0OrNL
26
- hmnxig6vKK1EeJ5PHXJ8hOI3nTZBrOmQcEXNBqyToP1FHMWZqwZ8wiBPXtiCqDBR
27
- ePQ25J9xFNzQ1ItgzNSpx5cs67QNKrx5woocoBHD6kStFbshZPJx4axl3GbUFQd5
28
- H//3YdPQOH3jaVeUXhS+pz/gfbx8fhFAtsQ+855A3HO7g2ZRIg/atAp/0MFyn5s5
29
- 0rq+VHOIPyvxF5khT0mYAcNmZTC8z1yPsqdgwfYNDjsSWwiIRSPUSmJRvfjM8hsW
30
- mMFp4kPUHbWOqCp2mz9gCA==
31
- -----END CERTIFICATE-----
32
- date: 2013-11-20 00:00:00.000000000 Z
11
+ cert_chain: []
12
+ date: 2014-05-17 00:00:00.000000000 Z
33
13
  dependencies:
34
14
  - !ruby/object:Gem::Dependency
35
15
  name: ffi
36
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
37
18
  requirements:
38
- - - '>='
19
+ - - ! '>='
39
20
  - !ruby/object:Gem::Version
40
21
  version: '1.0'
41
22
  type: :runtime
42
23
  prerelease: false
43
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
44
26
  requirements:
45
- - - '>='
27
+ - - ! '>='
46
28
  - !ruby/object:Gem::Version
47
29
  version: '1.0'
48
30
  - !ruby/object:Gem::Dependency
49
31
  name: rake-compiler
50
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
51
34
  requirements:
52
- - - '>='
35
+ - - ! '>='
53
36
  - !ruby/object:Gem::Version
54
37
  version: '0.6'
55
38
  type: :development
56
39
  prerelease: false
57
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
58
42
  requirements:
59
- - - '>='
43
+ - - ! '>='
60
44
  - !ruby/object:Gem::Version
61
45
  version: '0.6'
62
46
  - !ruby/object:Gem::Dependency
63
47
  name: bundler
64
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
65
50
  requirements:
66
- - - '>='
51
+ - - ! '>='
67
52
  - !ruby/object:Gem::Version
68
53
  version: '0'
69
54
  type: :development
70
55
  prerelease: false
71
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
72
58
  requirements:
73
- - - '>='
59
+ - - ! '>='
74
60
  - !ruby/object:Gem::Version
75
61
  version: '0'
76
62
  description: LIBUSB is a Ruby binding that gives Ruby programmers access to arbitrary
@@ -91,106 +77,101 @@ files:
91
77
  - README.md
92
78
  - Rakefile
93
79
  - ext/extconf.rb
94
- - ext/libusbx-1.0.17/AUTHORS
95
- - ext/libusbx-1.0.17/COPYING
96
- - ext/libusbx-1.0.17/ChangeLog
97
- - ext/libusbx-1.0.17/INSTALL
98
- - ext/libusbx-1.0.17/Makefile.am
99
- - ext/libusbx-1.0.17/Makefile.in
100
- - ext/libusbx-1.0.17/NEWS
101
- - ext/libusbx-1.0.17/PORTING
102
- - ext/libusbx-1.0.17/README
103
- - ext/libusbx-1.0.17/TODO
104
- - ext/libusbx-1.0.17/Xcode/common.xcconfig
105
- - ext/libusbx-1.0.17/Xcode/config.h
106
- - ext/libusbx-1.0.17/Xcode/debug.xcconfig
107
- - ext/libusbx-1.0.17/Xcode/libusbx.xcconfig
108
- - ext/libusbx-1.0.17/Xcode/libusbx.xcodeproj/project.pbxproj
109
- - ext/libusbx-1.0.17/Xcode/libusbx_debug.xcconfig
110
- - ext/libusbx-1.0.17/Xcode/libusbx_release.xcconfig
111
- - ext/libusbx-1.0.17/Xcode/release.xcconfig
112
- - ext/libusbx-1.0.17/aclocal.m4
113
- - ext/libusbx-1.0.17/android/README
114
- - ext/libusbx-1.0.17/android/config.h
115
- - ext/libusbx-1.0.17/android/jni/Android.mk
116
- - ext/libusbx-1.0.17/android/jni/Application.mk
117
- - ext/libusbx-1.0.17/android/jni/examples.mk
118
- - ext/libusbx-1.0.17/android/jni/libusb.mk
119
- - ext/libusbx-1.0.17/android/jni/tests.mk
120
- - ext/libusbx-1.0.17/compile
121
- - ext/libusbx-1.0.17/config.guess
122
- - ext/libusbx-1.0.17/config.h.in
123
- - ext/libusbx-1.0.17/config.sub
124
- - ext/libusbx-1.0.17/configure
125
- - ext/libusbx-1.0.17/configure.ac
126
- - ext/libusbx-1.0.17/depcomp
127
- - ext/libusbx-1.0.17/doc/Makefile.am
128
- - ext/libusbx-1.0.17/doc/Makefile.in
129
- - ext/libusbx-1.0.17/doc/doxygen.cfg.in
130
- - ext/libusbx-1.0.17/examples/Makefile.am
131
- - ext/libusbx-1.0.17/examples/Makefile.in
132
- - ext/libusbx-1.0.17/examples/dpfp.c
133
- - ext/libusbx-1.0.17/examples/dpfp_threaded.c
134
- - ext/libusbx-1.0.17/examples/ezusb.c
135
- - ext/libusbx-1.0.17/examples/ezusb.h
136
- - ext/libusbx-1.0.17/examples/fxload.c
137
- - ext/libusbx-1.0.17/examples/getopt/getopt.c
138
- - ext/libusbx-1.0.17/examples/getopt/getopt.h
139
- - ext/libusbx-1.0.17/examples/getopt/getopt1.c
140
- - ext/libusbx-1.0.17/examples/hotplugtest.c
141
- - ext/libusbx-1.0.17/examples/listdevs.c
142
- - ext/libusbx-1.0.17/examples/sam3u_benchmark.c
143
- - ext/libusbx-1.0.17/examples/xusb.c
144
- - ext/libusbx-1.0.17/install-sh
145
- - ext/libusbx-1.0.17/libusb-1.0.pc.in
146
- - ext/libusbx-1.0.17/libusb/Makefile.am
147
- - ext/libusbx-1.0.17/libusb/Makefile.in
148
- - ext/libusbx-1.0.17/libusb/core.c
149
- - ext/libusbx-1.0.17/libusb/descriptor.c
150
- - ext/libusbx-1.0.17/libusb/hotplug.c
151
- - ext/libusbx-1.0.17/libusb/hotplug.h
152
- - ext/libusbx-1.0.17/libusb/io.c
153
- - ext/libusbx-1.0.17/libusb/libusb-1.0.def
154
- - ext/libusbx-1.0.17/libusb/libusb-1.0.rc
155
- - ext/libusbx-1.0.17/libusb/libusb.h
156
- - ext/libusbx-1.0.17/libusb/libusbi.h
157
- - ext/libusbx-1.0.17/libusb/os/darwin_usb.c
158
- - ext/libusbx-1.0.17/libusb/os/darwin_usb.h
159
- - ext/libusbx-1.0.17/libusb/os/linux_netlink.c
160
- - ext/libusbx-1.0.17/libusb/os/linux_udev.c
161
- - ext/libusbx-1.0.17/libusb/os/linux_usbfs.c
162
- - ext/libusbx-1.0.17/libusb/os/linux_usbfs.h
163
- - ext/libusbx-1.0.17/libusb/os/netbsd_usb.c
164
- - ext/libusbx-1.0.17/libusb/os/openbsd_usb.c
165
- - ext/libusbx-1.0.17/libusb/os/poll_posix.c
166
- - ext/libusbx-1.0.17/libusb/os/poll_posix.h
167
- - ext/libusbx-1.0.17/libusb/os/poll_windows.c
168
- - ext/libusbx-1.0.17/libusb/os/poll_windows.h
169
- - ext/libusbx-1.0.17/libusb/os/threads_posix.c
170
- - ext/libusbx-1.0.17/libusb/os/threads_posix.h
171
- - ext/libusbx-1.0.17/libusb/os/threads_windows.c
172
- - ext/libusbx-1.0.17/libusb/os/threads_windows.h
173
- - ext/libusbx-1.0.17/libusb/os/wince_usb.c
174
- - ext/libusbx-1.0.17/libusb/os/wince_usb.h
175
- - ext/libusbx-1.0.17/libusb/os/windows_common.h
176
- - ext/libusbx-1.0.17/libusb/os/windows_usb.c
177
- - ext/libusbx-1.0.17/libusb/os/windows_usb.h
178
- - ext/libusbx-1.0.17/libusb/strerror.c
179
- - ext/libusbx-1.0.17/libusb/sync.c
180
- - ext/libusbx-1.0.17/libusb/version.h
181
- - ext/libusbx-1.0.17/libusb/version_nano.h
182
- - ext/libusbx-1.0.17/ltmain.sh
183
- - ext/libusbx-1.0.17/m4/libtool.m4
184
- - ext/libusbx-1.0.17/m4/ltoptions.m4
185
- - ext/libusbx-1.0.17/m4/ltsugar.m4
186
- - ext/libusbx-1.0.17/m4/ltversion.m4
187
- - ext/libusbx-1.0.17/m4/lt~obsolete.m4
188
- - ext/libusbx-1.0.17/missing
189
- - ext/libusbx-1.0.17/tests/Makefile.am
190
- - ext/libusbx-1.0.17/tests/Makefile.in
191
- - ext/libusbx-1.0.17/tests/libusbx_testlib.h
192
- - ext/libusbx-1.0.17/tests/stress.c
193
- - ext/libusbx-1.0.17/tests/testlib.c
80
+ - ext/libusb-1.0.18/AUTHORS
81
+ - ext/libusb-1.0.18/COPYING
82
+ - ext/libusb-1.0.18/ChangeLog
83
+ - ext/libusb-1.0.18/INSTALL
84
+ - ext/libusb-1.0.18/Makefile.am
85
+ - ext/libusb-1.0.18/Makefile.in
86
+ - ext/libusb-1.0.18/NEWS
87
+ - ext/libusb-1.0.18/PORTING
88
+ - ext/libusb-1.0.18/README
89
+ - ext/libusb-1.0.18/TODO
90
+ - ext/libusb-1.0.18/Xcode/common.xcconfig
91
+ - ext/libusb-1.0.18/Xcode/config.h
92
+ - ext/libusb-1.0.18/Xcode/debug.xcconfig
93
+ - ext/libusb-1.0.18/Xcode/libusb.xcconfig
94
+ - ext/libusb-1.0.18/Xcode/libusb.xcodeproj/project.pbxproj
95
+ - ext/libusb-1.0.18/Xcode/libusb_debug.xcconfig
96
+ - ext/libusb-1.0.18/Xcode/libusb_release.xcconfig
97
+ - ext/libusb-1.0.18/Xcode/release.xcconfig
98
+ - ext/libusb-1.0.18/aclocal.m4
99
+ - ext/libusb-1.0.18/android/README
100
+ - ext/libusb-1.0.18/android/config.h
101
+ - ext/libusb-1.0.18/android/jni/Android.mk
102
+ - ext/libusb-1.0.18/android/jni/Application.mk
103
+ - ext/libusb-1.0.18/android/jni/examples.mk
104
+ - ext/libusb-1.0.18/android/jni/libusb.mk
105
+ - ext/libusb-1.0.18/android/jni/tests.mk
106
+ - ext/libusb-1.0.18/compile
107
+ - ext/libusb-1.0.18/config.guess
108
+ - ext/libusb-1.0.18/config.h.in
109
+ - ext/libusb-1.0.18/config.sub
110
+ - ext/libusb-1.0.18/configure
111
+ - ext/libusb-1.0.18/configure.ac
112
+ - ext/libusb-1.0.18/depcomp
113
+ - ext/libusb-1.0.18/doc/Makefile.am
114
+ - ext/libusb-1.0.18/doc/Makefile.in
115
+ - ext/libusb-1.0.18/doc/doxygen.cfg.in
116
+ - ext/libusb-1.0.18/examples/Makefile.am
117
+ - ext/libusb-1.0.18/examples/Makefile.in
118
+ - ext/libusb-1.0.18/examples/dpfp.c
119
+ - ext/libusb-1.0.18/examples/dpfp_threaded.c
120
+ - ext/libusb-1.0.18/examples/ezusb.c
121
+ - ext/libusb-1.0.18/examples/ezusb.h
122
+ - ext/libusb-1.0.18/examples/fxload.c
123
+ - ext/libusb-1.0.18/examples/getopt/getopt.c
124
+ - ext/libusb-1.0.18/examples/getopt/getopt.h
125
+ - ext/libusb-1.0.18/examples/getopt/getopt1.c
126
+ - ext/libusb-1.0.18/examples/hotplugtest.c
127
+ - ext/libusb-1.0.18/examples/listdevs.c
128
+ - ext/libusb-1.0.18/examples/sam3u_benchmark.c
129
+ - ext/libusb-1.0.18/examples/xusb.c
130
+ - ext/libusb-1.0.18/install-sh
131
+ - ext/libusb-1.0.18/libusb-1.0.pc.in
132
+ - ext/libusb-1.0.18/libusb/Makefile.am
133
+ - ext/libusb-1.0.18/libusb/Makefile.in
134
+ - ext/libusb-1.0.18/libusb/core.c
135
+ - ext/libusb-1.0.18/libusb/descriptor.c
136
+ - ext/libusb-1.0.18/libusb/hotplug.c
137
+ - ext/libusb-1.0.18/libusb/hotplug.h
138
+ - ext/libusb-1.0.18/libusb/io.c
139
+ - ext/libusb-1.0.18/libusb/libusb-1.0.def
140
+ - ext/libusb-1.0.18/libusb/libusb-1.0.rc
141
+ - ext/libusb-1.0.18/libusb/libusb.h
142
+ - ext/libusb-1.0.18/libusb/libusbi.h
143
+ - ext/libusb-1.0.18/libusb/os/darwin_usb.c
144
+ - ext/libusb-1.0.18/libusb/os/darwin_usb.h
145
+ - ext/libusb-1.0.18/libusb/os/linux_netlink.c
146
+ - ext/libusb-1.0.18/libusb/os/linux_udev.c
147
+ - ext/libusb-1.0.18/libusb/os/linux_usbfs.c
148
+ - ext/libusb-1.0.18/libusb/os/linux_usbfs.h
149
+ - ext/libusb-1.0.18/libusb/os/netbsd_usb.c
150
+ - ext/libusb-1.0.18/libusb/os/openbsd_usb.c
151
+ - ext/libusb-1.0.18/libusb/os/poll_posix.c
152
+ - ext/libusb-1.0.18/libusb/os/poll_posix.h
153
+ - ext/libusb-1.0.18/libusb/os/poll_windows.c
154
+ - ext/libusb-1.0.18/libusb/os/poll_windows.h
155
+ - ext/libusb-1.0.18/libusb/os/threads_posix.c
156
+ - ext/libusb-1.0.18/libusb/os/threads_posix.h
157
+ - ext/libusb-1.0.18/libusb/os/threads_windows.c
158
+ - ext/libusb-1.0.18/libusb/os/threads_windows.h
159
+ - ext/libusb-1.0.18/libusb/os/wince_usb.c
160
+ - ext/libusb-1.0.18/libusb/os/wince_usb.h
161
+ - ext/libusb-1.0.18/libusb/os/windows_common.h
162
+ - ext/libusb-1.0.18/libusb/os/windows_usb.c
163
+ - ext/libusb-1.0.18/libusb/os/windows_usb.h
164
+ - ext/libusb-1.0.18/libusb/strerror.c
165
+ - ext/libusb-1.0.18/libusb/sync.c
166
+ - ext/libusb-1.0.18/libusb/version.h
167
+ - ext/libusb-1.0.18/libusb/version_nano.h
168
+ - ext/libusb-1.0.18/ltmain.sh
169
+ - ext/libusb-1.0.18/missing
170
+ - ext/libusb-1.0.18/tests/Makefile.am
171
+ - ext/libusb-1.0.18/tests/Makefile.in
172
+ - ext/libusb-1.0.18/tests/libusb_testlib.h
173
+ - ext/libusb-1.0.18/tests/stress.c
174
+ - ext/libusb-1.0.18/tests/testlib.c
194
175
  - lib/libusb.rb
195
176
  - lib/libusb/call.rb
196
177
  - lib/libusb/compat.rb
@@ -222,7 +203,6 @@ files:
222
203
  - test/test_libusb_version.rb
223
204
  homepage: http://github.com/larskanis/libusb
224
205
  licenses: []
225
- metadata: {}
226
206
  post_install_message:
227
207
  rdoc_options:
228
208
  - --main
@@ -231,20 +211,22 @@ rdoc_options:
231
211
  require_paths:
232
212
  - lib
233
213
  required_ruby_version: !ruby/object:Gem::Requirement
214
+ none: false
234
215
  requirements:
235
- - - '>='
216
+ - - ! '>='
236
217
  - !ruby/object:Gem::Version
237
218
  version: '0'
238
219
  required_rubygems_version: !ruby/object:Gem::Requirement
220
+ none: false
239
221
  requirements:
240
- - - '>='
222
+ - - ! '>='
241
223
  - !ruby/object:Gem::Version
242
224
  version: '0'
243
225
  requirements: []
244
226
  rubyforge_project: libusb
245
- rubygems_version: 2.0.3
227
+ rubygems_version: 1.8.24
246
228
  signing_key:
247
- specification_version: 4
229
+ specification_version: 3
248
230
  summary: Access USB devices from Ruby via libusb-1.0
249
231
  test_files: []
250
232
  has_rdoc: