File: use-correct-path-for-autoload

package info (click to toggle)
ruby-aws-sdk 1.67.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,840 kB
  • sloc: ruby: 28,436; makefile: 7
file content (19 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Use the correct path to autoload libs

Author: David Suárez <david.sephirot@gmail.com>
Last-Update: 2014-06-15

--- a/lib/aws/core.rb
+++ b/lib/aws/core.rb
@@ -147,9 +147,9 @@ module AWS
   ].inject({}) { |h,svc| h[svc.class_name] = svc; h }
 
   # @api private
-  ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
+  ROOT = File.expand_path(File.join(File.dirname(__FILE__))) #, '..', '..'))
 
-  SRC = ROOT + '/lib/aws'
+  SRC = ROOT #+ '/vendor_ruby/aws'
 
   autoload :Errors, "#{SRC}/errors"
   autoload :Record, "#{SRC}/record"