Permalink
Browse files

Prepend `$:` with lib path

- Fixed Garb::VERSION -> Garb::Version typo in single user authorization
- Fixes #126
  • Loading branch information...
1 parent f76bae6 commit b181e32710c2b7697b2e12c9b40d0a6ea7e1bc85 @Sija committed Aug 23, 2012
Showing with 5 additions and 3 deletions.
  1. +4 −1 lib/garb.rb
  2. +0 −1 lib/garb/filter_parameters.rb
  3. +1 −1 lib/garb/request/authentication.rb
View
@@ -10,6 +10,9 @@
require 'json'
end
+# FIXME: CODE SMELL
+$: << File.dirname(__FILE__)
+
module Garb
autoload :Attributes, 'garb/attributes'
autoload :PathAttribute, 'garb/path_attribute'
@@ -34,7 +37,7 @@ module Management
end
module Request
- autoload :Authentication, "garb/request/authentication"
+ autoload :Authentication, 'garb/request/authentication'
autoload :Data, 'garb/request/data'
end
end
@@ -22,7 +22,6 @@ def initialize(parameters)
[{}, [{}, {}]]
def to_params
value = array_to_params(self.parameters)
-
value.empty? ? {} : {'filters' => value}
end
@@ -17,7 +17,7 @@ def parameters
'Passwd' => @password,
'accountType' => @account_type,
'service' => 'analytics',
- 'source' => "sija-garb-v#{Garb::VERSION}"
+ 'source' => "sija-garb-v#{Garb::Version}"
}
end

0 comments on commit b181e32

Please sign in to comment.