File: 01_remove_rubygems_require.diff

package info (click to toggle)
ruby-openid 2.1.8debian-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,676 kB
  • sloc: ruby: 16,506; xml: 219; sh: 24; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 944 bytes parent folder | download
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
28
29
30
31
32
33
34
35
36
37
38
39
Description: Remove rubygems require statements
Author: Paul van Tilburg <paulvt@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Updated: 2012-05-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/

--- a/admin/runtests.rb
+++ b/admin/runtests.rb
@@ -8,7 +8,6 @@
 require 'test/unit/ui/console/testrunner'
 
 begin
-  require 'rubygems'
   require 'memcache'
 rescue LoadError
 else
--- a/examples/active_record_openid_store/init.rb
+++ b/examples/active_record_openid_store/init.rb
@@ -1,8 +1,2 @@
-# might using the ruby-openid gem
-begin
-  require 'rubygems'
-rescue LoadError
-  nil
-end
 require 'openid'
 require 'openid_ar_store'
--- a/examples/rails_openid/config/boot.rb
+++ b/examples/rails_openid/config/boot.rb
@@ -12,7 +12,6 @@
 if File.directory?("#{RAILS_ROOT}/vendor/rails")
   require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
 else
-  require 'rubygems'
   require 'initializer'
 end