libusb 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +14 -12
- data/History.md +4 -0
- data/README.md +2 -2
- data/appveyor.yml +17 -3
- data/ext/extconf.rb +1 -1
- data/lib/libusb/call.rb +1 -1
- data/lib/libusb/version_gem.rb +1 -1
- data/libusb.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ebc972537614783fdc012824abb12ca1f3f6be8
|
4
|
+
data.tar.gz: 70c26bd9f94e05484c4371045c87c910b24df7dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a18f891801d3358b04da7624b234221433839d7390e30eeaebe4089906e39edf52f7820184f6f3d74c69e4a258b2acb8ee68ef45fb5e315449480c9b0bed021c
|
7
|
+
data.tar.gz: '007083ca903a19d73823487b946a1124e4f3336b64e95250072b0d745f305ea7cd175c993933254b7ae4e05d4c721ccfb85c094b05a48a41151f1afd88bb298f'
|
data/.travis.yml
CHANGED
@@ -1,17 +1,19 @@
|
|
1
1
|
language: ruby
|
2
2
|
sudo: false
|
3
|
-
|
4
|
-
- "1.9.3"
|
5
|
-
- "2.0.0"
|
6
|
-
- "2.1"
|
7
|
-
- "2.2"
|
8
|
-
- "2.3.1"
|
9
|
-
- "2.3.1-clang"
|
10
|
-
- jruby-1.7.26
|
11
|
-
- jruby-9.1.5.0
|
12
|
-
- rbx
|
3
|
+
dist: trusty
|
13
4
|
matrix:
|
5
|
+
include:
|
6
|
+
- rvm: 2.4.1
|
7
|
+
env:
|
8
|
+
- RUBYOPT="--enable-frozen-string-literal --debug=frozen-string-literal"
|
9
|
+
- rvm: 1.9.3
|
10
|
+
- rvm: 2.0
|
11
|
+
- rvm: 2.1
|
12
|
+
- rvm: 2.2.5
|
13
|
+
- rvm: 2.3.1
|
14
|
+
- rvm: jruby-1.7
|
15
|
+
- rvm: jruby-9.1.5.0
|
16
|
+
- rvm: rbx-3
|
14
17
|
allow_failures:
|
15
|
-
- rvm: rbx
|
16
|
-
- rvm: "2.3.1-clang"
|
18
|
+
- rvm: rbx-3
|
17
19
|
script: bundle exec rake travis
|
data/History.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<!-- -*- coding: utf-8 -*- -->
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/larskanis/libusb.svg)](https://travis-ci.org/larskanis/libusb)
|
4
|
-
[![Build
|
3
|
+
[![Build Status](https://travis-ci.org/larskanis/libusb.svg?branch=master)](https://travis-ci.org/larskanis/libusb)
|
4
|
+
[![Build status](https://ci.appveyor.com/api/projects/status/mdfnfdwu4mil42o3/branch/master?svg=true)](https://ci.appveyor.com/project/larskanis/libusb/branch/master)
|
5
5
|
|
6
6
|
Access USB devices from Ruby
|
7
7
|
============================
|
data/appveyor.yml
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
init:
|
2
|
-
- SET PATH=C
|
3
|
-
- SET PATH=C:\MinGW\msys\1.0\bin;%PATH%
|
2
|
+
- SET PATH=C:/Ruby%ruby_version%/bin;%PATH%
|
4
3
|
- SET RAKEOPT=-rdevkit
|
5
4
|
install:
|
6
5
|
- ruby --version
|
7
6
|
- gem --version
|
7
|
+
- ps: |
|
8
|
+
if ($env:BROKEN_SSL -eq "true") {
|
9
|
+
$(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt', "$env:TMP/ca-bundle.crt")
|
10
|
+
$env:SSL_CERT_FILE = "$env:TMP/ca-bundle.crt"
|
11
|
+
Write-Host "Using SSL CA list $env:SSL_CERT_FILE" -foreground Green
|
12
|
+
}
|
8
13
|
- bundle install
|
9
14
|
build_script:
|
10
15
|
- bundle exec rake compile
|
@@ -12,12 +17,21 @@ test_script:
|
|
12
17
|
- bundle exec rake travis
|
13
18
|
environment:
|
14
19
|
matrix:
|
15
|
-
- ruby_version: "
|
20
|
+
- ruby_version: "24-x64"
|
16
21
|
- ruby_version: "200"
|
22
|
+
BROKEN_SSL: true
|
17
23
|
- ruby_version: "200-x64"
|
24
|
+
BROKEN_SSL: true
|
18
25
|
- ruby_version: "21"
|
26
|
+
BROKEN_SSL: true
|
19
27
|
- ruby_version: "21-x64"
|
28
|
+
BROKEN_SSL: true
|
20
29
|
- ruby_version: "22"
|
30
|
+
BROKEN_SSL: true
|
21
31
|
- ruby_version: "22-x64"
|
32
|
+
BROKEN_SSL: true
|
22
33
|
- ruby_version: "23"
|
34
|
+
BROKEN_SSL: true
|
23
35
|
- ruby_version: "23-x64"
|
36
|
+
BROKEN_SSL: true
|
37
|
+
- ruby_version: "24"
|
data/ext/extconf.rb
CHANGED
@@ -53,7 +53,7 @@ def libusb_usable?
|
|
53
53
|
prefix = FFI::Platform::LIBPREFIX.empty? ? 'lib' : FFI::Platform::LIBPREFIX
|
54
54
|
bundled_dll = File.join(root_path, "lib/#{prefix}usb-1.0.#{ext}")
|
55
55
|
bundled_dll_cygwin = File.join(root_path, "bin/#{prefix}usb-1.0.#{ext}")
|
56
|
-
ffi_lib([bundled_dll, bundled_dll_cygwin, "#{prefix}usb-1.0"])
|
56
|
+
ffi_lib([bundled_dll, bundled_dll_cygwin, "#{prefix}usb-1.0", "#{prefix}usb"])
|
57
57
|
end
|
58
58
|
true
|
59
59
|
rescue LoadError
|
data/lib/libusb/call.rb
CHANGED
@@ -28,7 +28,7 @@ module LIBUSB
|
|
28
28
|
prefix = FFI::Platform::LIBPREFIX.empty? ? 'lib' : FFI::Platform::LIBPREFIX
|
29
29
|
bundled_dll = File.join(root_path, "lib/#{prefix}usb-1.0.#{ext}")
|
30
30
|
bundled_dll_cygwin = File.join(root_path, "bin/#{prefix}usb-1.0.#{ext}")
|
31
|
-
ffi_lib([bundled_dll, bundled_dll_cygwin, "#{prefix}usb-1.0"])
|
31
|
+
ffi_lib([bundled_dll, bundled_dll_cygwin, "#{prefix}usb-1.0", "#{prefix}usb"])
|
32
32
|
|
33
33
|
ClassCodes = enum :libusb_class_code, [
|
34
34
|
:CLASS_PER_INTERFACE, 0,
|
data/lib/libusb/version_gem.rb
CHANGED
data/libusb.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.required_ruby_version = Gem::Requirement.new(">= 1.9.3")
|
25
25
|
s.add_runtime_dependency 'ffi', '~> 1.0'
|
26
26
|
s.add_runtime_dependency 'mini_portile2', LIBUSB::MINI_PORTILE_VERSION
|
27
|
-
s.add_development_dependency 'rake-compiler', '~> 0
|
27
|
+
s.add_development_dependency 'rake-compiler', '~> 1.0'
|
28
28
|
s.add_development_dependency 'rake-compiler-dock', '~> 0.2'
|
29
29
|
s.add_development_dependency 'bundler', '~> 1.0'
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libusb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lars Kanis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0
|
47
|
+
version: '1.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake-compiler-dock
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.6.
|
164
|
+
rubygems_version: 2.6.12
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: Access USB devices from Ruby via libusb-1.0
|