rocket_launcher 0.0.1 → 0.0.2

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2f5329b904dac9417e7d967a6698d4c27f89c71d
4
+ data.tar.gz: bac90e02abc8fb0d3ef4ce19839010816b214718
5
+ SHA512:
6
+ metadata.gz: a5435a3bba6ca65e8e801f81ac6ddd880fdc36cd7147b34bd71f77110aa3e77c820934607efd34ee8dd90dcd0c49eafe918a93aab758888b4d18a95d64bd8e38
7
+ data.tar.gz: 66b77c7e11db0d9441a0e8e45dddee90faa1bba6e117eecd0f7405e63b7d59d8623654bb53510f1933c3a512ba6a7e52abd875fb7bf0c4fd6e4438af9755004d
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Rocket Launcher
2
2
 
3
- A Ruby library to use your USB Rocket Launcher!
3
+ A Ruby library to control your USB Rocket Launcher device!
4
4
 
5
5
  ![image](http://i.imgur.com/JkxCg.jpg)
6
6
 
data/ext/usb.c CHANGED
@@ -12,7 +12,7 @@ typedef struct
12
12
  VALUE error;
13
13
 
14
14
  void
15
- usb_free (USB *usb)
15
+ rl_usb_free (USB *usb)
16
16
  {
17
17
  if (usb->handler)
18
18
  libusb_close (usb->handler);
@@ -22,7 +22,7 @@ usb_free (USB *usb)
22
22
  }
23
23
 
24
24
  VALUE
25
- usb_alloc (VALUE class)
25
+ rl_usb_alloc (VALUE class)
26
26
  {
27
27
  USB *usb = (USB *) malloc (sizeof (USB));
28
28
  usb->ctx = NULL;
@@ -30,11 +30,11 @@ usb_alloc (VALUE class)
30
30
  int r = libusb_init (&usb->ctx);
31
31
  if (r < 0)
32
32
  rb_raise (error, "Failed to init libusb");
33
- return Data_Wrap_Struct (class, 0, usb_free, usb);
33
+ return Data_Wrap_Struct (class, 0, rl_usb_free, usb);
34
34
  }
35
35
 
36
36
  VALUE
37
- open_device (VALUE self, VALUE vid, VALUE pid)
37
+ rl_open_device (VALUE self, VALUE vid, VALUE pid)
38
38
  {
39
39
  USB *usb;
40
40
  Data_Get_Struct (self, USB, usb);
@@ -45,7 +45,7 @@ open_device (VALUE self, VALUE vid, VALUE pid)
45
45
  }
46
46
 
47
47
  VALUE
48
- close_device (VALUE self)
48
+ rl_close_device (VALUE self)
49
49
  {
50
50
  USB *usb;
51
51
  Data_Get_Struct (self, USB, usb);
@@ -56,7 +56,7 @@ close_device (VALUE self)
56
56
  }
57
57
 
58
58
  VALUE
59
- write (VALUE self, VALUE cmd)
59
+ rl_write (VALUE self, VALUE cmd)
60
60
  {
61
61
  USB *usb;
62
62
  Data_Get_Struct (self, USB, usb);
@@ -71,8 +71,8 @@ Init_usb ()
71
71
  {
72
72
  error = rb_define_class ("USBError", rb_eStandardError);
73
73
  VALUE usb = rb_define_class ("USB", rb_cObject);
74
- rb_define_alloc_func (usb, usb_alloc);
75
- rb_define_method (usb, "open", open_device, 2);
76
- rb_define_method (usb, "close", close_device, 0);
77
- rb_define_method (usb, "write", write, 1);
78
- }
74
+ rb_define_alloc_func (usb, rl_usb_alloc);
75
+ rb_define_method (usb, "open", rl_open_device, 2);
76
+ rb_define_method (usb, "close", rl_close_device, 0);
77
+ rb_define_method (usb, "write", rl_write, 1);
78
+ }
@@ -1,3 +1,3 @@
1
1
  class RocketLauncher
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.authors = ['Enrico Pilotto']
9
9
  s.email = ['enrico@megiston.it']
10
10
  s.homepage = ''
11
- s.summary = %q{Library to control a USB Thunder Rocket Launcher}
12
- s.description = %q{Library to control a USB Thunder Rocket Launcher.}
11
+ s.summary = %q{A Ruby library to control your USB Rocket Launcher device}
12
+ s.description = %q{A Ruby library to control your USB Rocket Launcher device.}
13
13
 
14
14
  s.rubyforge_project = 'rocket_launcher'
15
15
 
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rocket_launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Enrico Pilotto
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-06-19 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
13
12
  dependencies: []
14
- description: Library to control a USB Thunder Rocket Launcher.
13
+ description: A Ruby library to control your USB Rocket Launcher device.
15
14
  email:
16
15
  - enrico@megiston.it
17
16
  executables:
@@ -20,7 +19,7 @@ extensions:
20
19
  - ext/extconf.rb
21
20
  extra_rdoc_files: []
22
21
  files:
23
- - .gitignore
22
+ - ".gitignore"
24
23
  - Gemfile
25
24
  - LICENSE
26
25
  - README.md
@@ -34,28 +33,27 @@ files:
34
33
  - rocket_launcher.gemspec
35
34
  homepage: ''
36
35
  licenses: []
36
+ metadata: {}
37
37
  post_install_message:
38
38
  rdoc_options: []
39
39
  require_paths:
40
40
  - lib
41
41
  - ext
42
42
  required_ruby_version: !ruby/object:Gem::Requirement
43
- none: false
44
43
  requirements:
45
- - - ! '>='
44
+ - - ">="
46
45
  - !ruby/object:Gem::Version
47
46
  version: '0'
48
47
  required_rubygems_version: !ruby/object:Gem::Requirement
49
- none: false
50
48
  requirements:
51
- - - ! '>='
49
+ - - ">="
52
50
  - !ruby/object:Gem::Version
53
51
  version: '0'
54
52
  requirements:
55
- - ! 'libusb1.0 - Debian package name: libusb-1.0-0-dev - Mac port package name: libusb-devel'
53
+ - 'libusb1.0 - Debian package name: libusb-1.0-0-dev - Mac port package name: libusb-devel'
56
54
  rubyforge_project: rocket_launcher
57
- rubygems_version: 1.8.15
55
+ rubygems_version: 2.4.5
58
56
  signing_key:
59
- specification_version: 3
60
- summary: Library to control a USB Thunder Rocket Launcher
57
+ specification_version: 4
58
+ summary: A Ruby library to control your USB Rocket Launcher device
61
59
  test_files: []