Skip to content

Commit

Permalink
Incorporated changes by vgololobov
Browse files Browse the repository at this point in the history
Fixed undefined split for nil exception in ruby 1.9.3. removed circular dep.
  • Loading branch information
Chris Le committed Jan 31, 2012
1 parent 093380b commit 1121fd5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Gemfile
@@ -1,3 +1,6 @@
source "http://rubygems.org"
gemspec
gem 'test-unit'
gem 'hpricot' #, 0.8.6
gem 'test-unit' #, 2.4.5
gem 'bundler' #, 1.0.21
4 changes: 3 additions & 1 deletion Gemfile.lock
@@ -1,13 +1,15 @@
PATH
remote: .
specs:
gattica (0.5.1)
gattica (0.6.0)
gattica
hpricot
test-unit

GEM
remote: http://rubygems.org/
specs:
hpricot (0.8.6)
test-unit (2.4.5)

PLATFORMS
Expand Down
2 changes: 1 addition & 1 deletion VERSION.yml
@@ -1,5 +1,5 @@
---
:major: 0
:minor: 6
:patch: 0
:patch: 1
:build: !!null
3 changes: 0 additions & 3 deletions gattica.gemspec
Expand Up @@ -54,16 +54,13 @@ Gem::Specification.new do |s|
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<gattica>, [">= 0"])
s.add_runtime_dependency(%q<test-unit>, [">= 0"])
s.add_runtime_dependency(%q<hpricot>, [">= 0"])
else
s.add_dependency(%q<gattica>, [">= 0"])
s.add_dependency(%q<test-unit>, [">= 0"])
s.add_dependency(%q<hpricot>, [">= 0"])
end
else
s.add_dependency(%q<gattica>, [">= 0"])
s.add_dependency(%q<test-unit>, [">= 0"])
s.add_dependency(%q<hpricot>, [">= 0"])
end
Expand Down
2 changes: 1 addition & 1 deletion lib/gattica.rb
Expand Up @@ -25,7 +25,7 @@
# Please see the README for usage docs.
module Gattica

VERSION = '0.6.0'
VERSION = '0.6.1'

# Creates a new instance of Gattica::Engine
def self.new(*args)
Expand Down
3 changes: 2 additions & 1 deletion lib/gattica/auth.rb
Expand Up @@ -13,7 +13,8 @@ def initialize(http, user)
options = OPTIONS.merge(user.to_h)
options.extend HashExtensions

response, data = http.post(SCRIPT_NAME, options.to_query, HEADERS)
response = http.post(SCRIPT_NAME, options.to_query, HEADERS)
data = response.body ||= ''
if response.code != '200'
case response.code
when '403'
Expand Down

0 comments on commit 1121fd5

Please sign in to comment.