Skip to content

Commit

Permalink
Prepend $: with lib path
Browse files Browse the repository at this point in the history
- Fixed Garb::VERSION -> Garb::Version typo in single user authorization
- Fixes #126
  • Loading branch information
Sija committed Aug 23, 2012
1 parent f76bae6 commit b181e32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/garb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
require 'json'
end

# FIXME: CODE SMELL
$: << File.dirname(__FILE__)

module Garb
autoload :Attributes, 'garb/attributes'
autoload :PathAttribute, 'garb/path_attribute'
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion lib/garb/filter_parameters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def initialize(parameters)
[{}, [{}, {}]]
def to_params
value = array_to_params(self.parameters)

value.empty? ? {} : {'filters' => value}
end

Expand Down
2 changes: 1 addition & 1 deletion lib/garb/request/authentication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b181e32

Please sign in to comment.