File: remove_rubygems_from_examples.patch

package info (click to toggle)
ruby-mysql2 0.4.5-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 748 kB
  • ctags: 511
  • sloc: ansic: 2,985; ruby: 2,699; sh: 61; makefile: 3
file content (27 lines) | stat: -rw-r--r-- 741 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Remove rubygems from examples
 This patch modifies the examples so that they
 do not use rubygems, and don't modify the LOAD_PATH. The
 library will be installed in a place where ruby can find it,
 and the relative path ../lib is not valid anymore.
Author: Michael Franzl <office@michaelfranzl.com>

--- ruby-mysql2-0.3.11.orig/examples/eventmachine.rb
+++ ruby-mysql2-0.3.11/examples/eventmachine.rb
@@ -1,8 +1,6 @@
 # encoding: utf-8
 
-$LOAD_PATH.unshift 'lib'
 
-require 'rubygems'
 require 'eventmachine'
 require 'mysql2/em'
 
--- ruby-mysql2-0.3.11.orig/examples/threaded.rb
+++ ruby-mysql2-0.3.11/examples/threaded.rb
@@ -1,6 +1,5 @@
 # encoding: utf-8
 
-$LOAD_PATH.unshift 'lib'
 require 'mysql2'
 require 'timeout'