[DRE-commits] [ruby-usb] 01/02: not install included sample, did not work, providing example from http://rubydoc.info/gems/ruby-usb/0.2.1/USB

Jonas Genannt jonas at brachium-system.net
Fri Jan 3 20:26:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

hggh-guest pushed a commit to branch master
in repository ruby-usb.

commit 16e719f113b74df79c2b440a36c117a7a02dfab2
Author: Jonas Genannt <jonas at brachium-system.net>
Date:   Fri Jan 3 21:25:23 2014 +0100

    not install included sample, did not work, providing example from
    http://rubydoc.info/gems/ruby-usb/0.2.1/USB
---
 debian/ruby-usb.examples | 2 +-
 debian/sample.rb         | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/debian/ruby-usb.examples b/debian/ruby-usb.examples
index 640e65f..1b43ec1 100644
--- a/debian/ruby-usb.examples
+++ b/debian/ruby-usb.examples
@@ -1 +1 @@
-sample/*
+debian/sample.rb
diff --git a/debian/sample.rb b/debian/sample.rb
new file mode 100644
index 0000000..195a3af
--- /dev/null
+++ b/debian/sample.rb
@@ -0,0 +1,9 @@
+#!/usr/bin/env ruby
+# example: http://rubydoc.info/gems/ruby-usb/0.2.1/USB
+
+require 'usb'
+require 'pp'
+
+pp USB.devices
+
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-usb.git



More information about the Pkg-ruby-extras-commits mailing list