lib/sms_notify.rb in cdyne-sms-notify-0.9.6 vs lib/sms_notify.rb in cdyne-sms-notify-0.10.0
- old
+ new
@@ -1,12 +1,14 @@
require 'rubygems'
# Creates a wrapper namespace for the
# rest of the API classes.
module SmsNotify
- Dir.glob(File.join(File.dirname(__FILE__), '/sms_notify/*')).each do |lib|
- require lib
- end
+ ['sms_notify', 'ext'].each { |dir|
+ Dir.glob(File.join(File.dirname(__FILE__), "/#{dir}/*")).each do |lib|
+ require lib
+ end
+ }
class ConnectionError < StandardError;end
class ApiError < StandardError;end
-end
\ No newline at end of file
+end