File: require-system-roxml.patch

package info (click to toggle)
ruby-roxml 3.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 772 kB
  • ctags: 532
  • sloc: ruby: 4,066; xml: 1,013; makefile: 6
file content (50 lines) | stat: -rw-r--r-- 1,313 bytes parent folder | download | duplicates (2)
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
40
41
42
43
44
45
46
47
48
49
50
Description: use system path for roxml library
 The version that should be used is the one in the debian/ directory,
 not the one in the lib/ dir of the source package
Author: Praveen Arimbrathodiyil <praveen@debian.org>
Forwarded: no
Last-Update: 2013-04-18

--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -2,9 +2,9 @@
 require 'rubygems'
 require 'pathname'
 require 'ostruct'
+require 'roxml'
 
 require_relative './../test/support/fixtures'
-require_relative './../lib/roxml'
 require_relative './shared_specs'
 
 def xml_for(name)
--- a/test/mocks/dictionaries.rb
+++ b/test/mocks/dictionaries.rb
@@ -1,4 +1,4 @@
-require_relative "./../../lib/roxml"
+require "roxml"
 
 class DictionaryOfAttrs
   include ROXML
@@ -54,4 +54,4 @@
   xml_name :dictionary
   xml_reader :definitions, :as => {:key => '@name',
                             :value => 'content'}, :from => :definition
-end
\ No newline at end of file
+end
--- a/test/mocks/mocks.rb
+++ b/test/mocks/mocks.rb
@@ -1,4 +1,4 @@
-require_relative "./../../lib/roxml"
+require "roxml"
 
 class Muffins
   include ROXML
@@ -276,4 +276,4 @@
   xml_reader :age, :from => :attr, :else => 21
   xml_reader :name, :else => 'Anonymous'
   xml_reader :mother,:as => PersonWithMotherOrMissing, :else => Person.blank
-end
\ No newline at end of file
+end