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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0fe3e0e898620bbada8bd47b47fc173af085aacb
4
- data.tar.gz: b9773635adbb81e07948a7209580c221665c9e57
3
+ metadata.gz: 6ebc972537614783fdc012824abb12ca1f3f6be8
4
+ data.tar.gz: 70c26bd9f94e05484c4371045c87c910b24df7dd
5
5
  SHA512:
6
- metadata.gz: 2ec482fc3b215c1d811e024c58e0f58110ceac086da2063749c529a70fce8cb5f5c45e38b7a4e4c7a6d41acc9c66cbd6e10d6b279f27e4639e3f22c996981fca
7
- data.tar.gz: db0a939807f3dd223a51046da1574dd6413ade8a110a94b2ac38e8ae322512c2a30cf29dc603c3638d36f7ce60df3a3613c2e8aaa2b4961d833a49fd6cdae8e6
6
+ metadata.gz: a18f891801d3358b04da7624b234221433839d7390e30eeaebe4089906e39edf52f7820184f6f3d74c69e4a258b2acb8ee68ef45fb5e315449480c9b0bed021c
7
+ data.tar.gz: '007083ca903a19d73823487b946a1124e4f3336b64e95250072b0d745f305ea7cd175c993933254b7ae4e05d4c721ccfb85c094b05a48a41151f1afd88bb298f'
@@ -1,17 +1,19 @@
1
1
  language: ruby
2
2
  sudo: false
3
- rvm:
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
@@ -1,3 +1,7 @@
1
+ 0.6.3 / 2017-08-20
2
+ ------------------
3
+ * Fix compat with FreeBSD. #24
4
+
1
5
  0.6.2 / 2017-01-13
2
6
  ------------------
3
7
  * Fix windows DLL loading bugs #22 and #23.
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 Status](https://ci.appveyor.com/api/projects/status/mdfnfdwu4mil42o3?svg=true)](https://ci.appveyor.com/project/larskanis/libusb)
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
  ============================
@@ -1,10 +1,15 @@
1
1
  init:
2
- - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
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: "193"
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"
@@ -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
@@ -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,
@@ -15,5 +15,5 @@
15
15
 
16
16
  module LIBUSB
17
17
  # Library version of libusb for Ruby
18
- VERSION = "0.6.2"
18
+ VERSION = "0.6.3"
19
19
  end
@@ -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.9'
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.2
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-01-13 00:00:00.000000000 Z
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.9'
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.9'
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.8
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