betabrite 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ === 1.0.2
2
+
3
+ * 1 Bugfix:
4
+
5
+ * Added a special case for libusb on Windows. (Thanks Aslak Hellesøy)
6
+
1
7
  === 1.0.1
2
8
 
3
9
  * 2 Minor Enhancements:
@@ -1,5 +1,5 @@
1
1
  module BetaBrite
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
 
4
4
  class Base
5
5
  include BetaBrite::Files
@@ -44,6 +44,10 @@ module BetaBrite
44
44
 
45
45
  retries = 0
46
46
  begin
47
+ if PLATFORM =~ /mswin/
48
+ # http://osdir.com/ml/lib.libusb.devel.windows/2004-06/msg00001.html
49
+ handle.set_configuration(0x01)
50
+ end
47
51
  error_code = handle.usb_claim_interface(INTERFACE)
48
52
  raise unless error_code.nil?
49
53
  rescue
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: betabrite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-15 00:00:00 -08:00
12
+ date: 2008-03-28 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.5.0
22
+ version: 1.5.1
23
23
  version:
24
24
  description: Provides a Ruby interface to BetaBrite LED signs.
25
25
  email: aaronp@rubyforge.org