Permalink
Browse files

Remove rubygems from code

Just use any method you like to run the examples that sets up the gem environment properly, either with ruby -rubygems or preferably with bundle exec. No need to require rubygems in code, let the user decide which gem manager to use.

[ci skip]
  • Loading branch information...
thomasjachmann committed Mar 2, 2013
1 parent 3005041 commit 4dccbe9a90df3096a6efea149ed14aacb3550f2a
View
@@ -45,7 +45,6 @@ There are two main entry points:
This is a simple example (only requiring the device for output) that switches on all LEDs (for testing), resets the launchpad again and then lights the grid button at position 4/4 (from top left).
- require 'rubygems'
require 'launchpad/device'
device = Launchpad::Device.new
@@ -57,7 +56,6 @@ This is a simple example (only requiring the device for output) that switches on
This is an interaction example lighting all grid buttons in red when pressed and keeping them lit.
- require 'rubygems'
require 'launchpad'
interaction = Launchpad::Interaction.new
View
@@ -1,4 +1,4 @@
-require File.expand_path('../setup', __FILE__)
+require 'launchpad'
device = Launchpad::Device.new
View
@@ -1,4 +1,4 @@
-require File.expand_path('../setup', __FILE__)
+require 'launchpad'
interaction = Launchpad::Interaction.new
View
@@ -1,4 +1,4 @@
-require File.expand_path('../setup', __FILE__)
+require 'launchpad'
device = Launchpad::Device.new(:input => false, :output => true)
View
@@ -1,4 +1,4 @@
-require File.expand_path('../setup', __FILE__)
+require 'launchpad'
interaction = Launchpad::Interaction.new
@@ -1,4 +1,4 @@
-require File.expand_path('../setup', __FILE__)
+require 'launchpad'
interaction = Launchpad::Interaction.new
@@ -1,4 +1,4 @@
-require File.expand_path('../setup', __FILE__)
+require 'launchpad'
interaction = Launchpad::Interaction.new
View
@@ -1,4 +1,4 @@
-require File.expand_path('../setup', __FILE__)
+require 'launchpad'
interaction = Launchpad::Interaction.new
View
@@ -1,4 +1,4 @@
-require File.expand_path('../setup', __FILE__)
+require 'launchpad'
Launchpad::Device.new.reset
View
@@ -1,5 +0,0 @@
-# normally, this is done by rubygems (or whatever you use for your library management)
-$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-
-require 'rubygems'
-require 'launchpad'
View
@@ -11,7 +11,6 @@ module Launchpad
#
# Example:
#
- # require 'rubygems'
# require 'launchpad/device'
#
# device = Launchpad::Device.new
@@ -6,7 +6,6 @@ module Launchpad
#
# Example:
#
- # require 'rubygems'
# require 'launchpad'
#
# interaction = Launchpad::Interaction.new

0 comments on commit 4dccbe9

Please sign in to comment.