libusb 0.4.0-x86-mingw32 → 0.4.1-x86-mingw32

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.
@@ -3,8 +3,8 @@ rvm:
3
3
  - "1.8.7"
4
4
  - "1.9.3"
5
5
  - "2.0.0"
6
+ - "2.1"
6
7
  - jruby-18mode # JRuby in 1.8 mode
7
8
  - jruby-19mode # JRuby in 1.9 mode
8
- - rbx-18mode
9
- - rbx-19mode
9
+ - rbx-2.2.6
10
10
  script: bundle exec rake travis
data/Gemfile CHANGED
@@ -7,11 +7,3 @@ group :test do
7
7
  gem 'eventmachine'
8
8
  gem 'minitest'
9
9
  end
10
-
11
- platforms :rbx do
12
- # travis currently runs a slightly older version of rbx,
13
- # that needs this special ffi version.
14
- if ENV['TRAVIS']
15
- gem 'ffi', :git => "git://github.com/ffi/ffi.git", :ref => '5f31908'
16
- end
17
- end
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.4.1 / 2014-05-17
2
+ ------------------
3
+ * Update bundled libusb version to 1.0.18.
4
+ * Change libusbx references back to libusb, since they have merged again.
5
+
1
6
  0.4.0 / 2013-11-20
2
7
  ------------------
3
8
  * Add support for device hotplug notifications.
data/README.md CHANGED
@@ -7,8 +7,8 @@ Access USB devices from Ruby
7
7
 
8
8
  LIBUSB is a Ruby binding that gives Ruby programmers access to arbitrary USB devices.
9
9
 
10
- * [libusb](http://libusbx.org) is a library that gives full access to devices connected via the USB bus. No special kernel driver is thus necessary for accessing USB devices.
11
- * This Ruby binding supports the API version 1.0 of [libusb](http://libusbx.org). Note that the old "legacy" version 0.1.x of libusb uses a completely different API that is covered by the ruby extension [ruby-usb](http://www.a-k-r.org/ruby-usb/) .
10
+ * [libusb](http://libusb.info) is a library that gives full access to devices connected via the USB bus. No special kernel driver is thus necessary for accessing USB devices.
11
+ * This Ruby binding supports the API version 1.0 of [libusb](http://libusb.info). Note that the old "legacy" version 0.1.x of libusb uses a completely different API that is covered by the ruby extension [ruby-usb](http://www.a-k-r.org/ruby-usb/) .
12
12
 
13
13
 
14
14
  LIBUSB for Ruby is covered by the GNU Lesser General Public License version 3.
@@ -59,16 +59,16 @@ Prerequisites
59
59
  -------------
60
60
 
61
61
  * Linux, MacOSX or Windows system with Ruby MRI 1.8.7/1.9/2.0, JRuby or recent version of Rubinius
62
- * Optionally: [libusb](http://libusb.org) or [libusbx](http://libusbx.org) library version 1.0.8+ :
62
+ * Optionally: [libusb](http://libusb.info) or [libusbx](http://libusbx.org) library version 1.0.8+ :
63
63
  * Debian or Ubuntu:
64
64
 
65
65
  ```
66
66
  $ sudo apt-get install libusb-1.0-0-dev
67
67
  ```
68
- * OS-X: install with homebrew (note the `x`):
68
+ * OS-X: install with homebrew:
69
69
 
70
70
  ```
71
- $ brew install libusbx
71
+ $ brew install libusb
72
72
  ```
73
73
  or macports:
74
74
 
@@ -83,7 +83,7 @@ Install
83
83
  $ gem install libusb
84
84
 
85
85
  While ```gem install``` the system is checked for a usable libusb(x) library installation.
86
- If none could be found, a bundled libusbx version is built and used, instead.
86
+ If none could be found, a bundled libusb version is built and used, instead.
87
87
 
88
88
  Latest code can be used in this way:
89
89
 
data/Rakefile CHANGED
@@ -25,9 +25,9 @@ COMPILE_HOME = Pathname( "./tmp" ).expand_path
25
25
  STATIC_SOURCESDIR = COMPILE_HOME + 'sources'
26
26
 
27
27
  # Fetch tarball from sourceforge
28
- # LIBUSB_VERSION = ENV['LIBUSB_VERSION'] || '1.0.9'
29
- # LIBUSB_SOURCE_URI = URI( "http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-#{LIBUSB_VERSION}/libusb-#{LIBUSB_VERSION}.tar.bz2" )
30
- # LIBUSB_TARBALL = STATIC_SOURCESDIR + File.basename( LIBUSB_SOURCE_URI.path )
28
+ LIBUSB_VERSION = ENV['LIBUSB_VERSION'] || '1.0.18'
29
+ LIBUSB_SOURCE_URI = URI( "http://downloads.sourceforge.net/project/libusb/libusb-1.0/libusb-#{LIBUSB_VERSION}/libusb-#{LIBUSB_VERSION}.tar.bz2" )
30
+ LIBUSB_TARBALL = STATIC_SOURCESDIR + File.basename( LIBUSB_SOURCE_URI.path )
31
31
 
32
32
  # Fetch tarball from git repo
33
33
  # LIBUSB_VERSION = ENV['LIBUSB_VERSION'] || '295c9d1'
@@ -35,9 +35,9 @@ STATIC_SOURCESDIR = COMPILE_HOME + 'sources'
35
35
  # LIBUSB_TARBALL = STATIC_SOURCESDIR + "libusb-#{LIBUSB_VERSION}.tar.bz2"
36
36
 
37
37
  # Fetch tarball from libusbx
38
- LIBUSB_VERSION = ENV['LIBUSB_VERSION'] || '1.0.17'
39
- LIBUSB_SOURCE_URI = URI( "http://downloads.sourceforge.net/project/libusbx/releases/#{LIBUSB_VERSION[/^\d+\.\d+\.\d+/]}/source/libusbx-#{LIBUSB_VERSION}.tar.bz2" )
40
- LIBUSB_TARBALL = STATIC_SOURCESDIR + File.basename( LIBUSB_SOURCE_URI.path )
38
+ # LIBUSB_VERSION = ENV['LIBUSB_VERSION'] || '1.0.17'
39
+ # LIBUSB_SOURCE_URI = URI( "http://downloads.sourceforge.net/project/libusbx/releases/#{LIBUSB_VERSION[/^\d+\.\d+\.\d+/]}/source/libusbx-#{LIBUSB_VERSION}.tar.bz2" )
40
+ # LIBUSB_TARBALL = STATIC_SOURCESDIR + File.basename( LIBUSB_SOURCE_URI.path )
41
41
 
42
42
  # Fetch tarball from Pete Batard's git repo
43
43
  # LIBUSB_VERSION = ENV['LIBUSB_VERSION'] || '4cc72d0'
@@ -172,10 +172,10 @@ CrossLibraries = [
172
172
  CrossLibrary.new ruby_platform, host_platform
173
173
  end
174
174
 
175
- desc "Download and update bundled libusb(x)"
175
+ desc "Download and update bundled libusb"
176
176
  task :update_libusb => LIBUSB_TARBALL do
177
- sh 'rm', '-r', (EXT_BUILDDIR + "libusbx-*").to_s do end
178
- sh 'git', 'rm', '-rfq', (EXT_BUILDDIR + "libusbx-*").to_s do end
177
+ sh 'rm', '-r', (EXT_BUILDDIR + "libusb-*").to_s do end
178
+ sh 'git', 'rm', '-rfq', (EXT_BUILDDIR + "libusb-*").to_s do end
179
179
  sh 'tar', '-xjf', LIBUSB_TARBALL.to_s, '-C', EXT_LIBUSB_BUILDDIR.parent.to_s
180
180
  drops = %w[msvc].map{|f| (EXT_LIBUSB_BUILDDIR+f).to_s }
181
181
  sh 'rm', '-r', '-f', *drops
@@ -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: x86-mingw32
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
@@ -121,7 +107,6 @@ files:
121
107
  - lib/libusb-1.0.dll
122
108
  homepage: http://github.com/larskanis/libusb
123
109
  licenses: []
124
- metadata: {}
125
110
  post_install_message:
126
111
  rdoc_options:
127
112
  - --main
@@ -130,19 +115,21 @@ rdoc_options:
130
115
  require_paths:
131
116
  - lib
132
117
  required_ruby_version: !ruby/object:Gem::Requirement
118
+ none: false
133
119
  requirements:
134
- - - '>='
120
+ - - ! '>='
135
121
  - !ruby/object:Gem::Version
136
122
  version: '0'
137
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
+ none: false
138
125
  requirements:
139
- - - '>='
126
+ - - ! '>='
140
127
  - !ruby/object:Gem::Version
141
128
  version: '0'
142
129
  requirements: []
143
130
  rubyforge_project: libusb
144
- rubygems_version: 2.0.3
131
+ rubygems_version: 1.8.24
145
132
  signing_key:
146
- specification_version: 4
133
+ specification_version: 3
147
134
  summary: Access USB devices from Ruby via libusb-1.0
148
135
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: e6ff0b9c57f1c86dac3f6cd56e804112c96bf4b5
4
- data.tar.gz: 27a4286d64b7a0be89793787e8e447b0a9fe96df
5
- SHA512:
6
- metadata.gz: 1d2a8e51e6c846d4d9405687fc6fd8db2fe775517cdd71b4288345bdde938ab0ad3bbed1f3817aaa6156175de523b22f6cbbd1fa2e4b37c5ad5495d3e5e9b3e7
7
- data.tar.gz: 05d689eca61ab92c98ea799a42146877573103e7811e1dae5832940726be47f783405fa44700a4724e6d2091bd6df46198248d3a9977b42fd885455527270785
Binary file
data.tar.gz.sig DELETED
Binary file
metadata.gz.sig DELETED
Binary file