Package: ruby-validatable / 1.6.7-9

move_some_rb_files_to_lib_validatable.patch Patch series | 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
40
41
42
43
44
45
46
47
48
49
Description: secondary Ruby files moved to validatable/ subdir
 in order to avoid name clash, e.g. with ruby-dust
 Require statement are updated accordingly with this patch
Bug-Debian: http://bugs.debian.org/673738
Forwarded: not-needed
Author: C├ędric Boutillier <cedric.boutillier@gmail.com>
Last-Update: 2012-06-13

--- a/lib/validatable.rb
+++ b/lib/validatable.rb
@@ -1,19 +1,19 @@
 require 'forwardable'
-require File.expand_path(File.dirname(__FILE__) + '/object_extension')
-require File.expand_path(File.dirname(__FILE__) + '/errors')
-require File.expand_path(File.dirname(__FILE__) + '/validatable_class_methods')
-require File.expand_path(File.dirname(__FILE__) + '/macros')
-require File.expand_path(File.dirname(__FILE__) + '/validatable_instance_methods')
-require File.expand_path(File.dirname(__FILE__) + '/included_validation')
-require File.expand_path(File.dirname(__FILE__) + '/child_validation')
-require File.expand_path(File.dirname(__FILE__) + '/understandable')
-require File.expand_path(File.dirname(__FILE__) + '/requireable')
-require File.expand_path(File.dirname(__FILE__) + '/validations/validation_base')
-require File.expand_path(File.dirname(__FILE__) + '/validations/validates_format_of')
-require File.expand_path(File.dirname(__FILE__) + '/validations/validates_presence_of')
-require File.expand_path(File.dirname(__FILE__) + '/validations/validates_acceptance_of')
-require File.expand_path(File.dirname(__FILE__) + '/validations/validates_confirmation_of')
-require File.expand_path(File.dirname(__FILE__) + '/validations/validates_length_of')
-require File.expand_path(File.dirname(__FILE__) + '/validations/validates_true_for')
-require File.expand_path(File.dirname(__FILE__) + '/validations/validates_numericality_of')
-require File.expand_path(File.dirname(__FILE__) + '/validations/validates_each')
\ No newline at end of file
+require File.expand_path(File.dirname(__FILE__) + '/validatable/object_extension')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/errors')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/validatable_class_methods')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/macros')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/validatable_instance_methods')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/included_validation')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/child_validation')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/understandable')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/requireable')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validation_base')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_format_of')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_presence_of')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_acceptance_of')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_confirmation_of')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_length_of')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_true_for')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_numericality_of')
+require File.expand_path(File.dirname(__FILE__) + '/validatable/validations/validates_each')