Skip to content

Commit

Permalink
try to be more compatible :(
Browse files Browse the repository at this point in the history
  • Loading branch information
godfat committed Dec 11, 2015
1 parent 8b85837 commit 4ed0636
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# CHANGES

## rest-core 3.5.91 -- 2015-12-11

### Bugs fixed

* Instead of forcing to load `http/cookie_jar/hash_store.rb`, which is only
available when _http-cookie_ is available, we just initialize httpclient
and throw it away. Hopefully this would be more compatible between versions.

## rest-core 3.5.9 -- 2015-12-11

### Bugs fixed
Expand Down
5 changes: 3 additions & 2 deletions lib/rest-core/engine/http-client.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

require 'httpclient'
# httpclient could require this in a thread causing deadlock, load it first!
require 'http/cookie_jar/hash_store'
# httpclient would require something (cookie manager) while initialized,
# so we should try to force requiring them to avoid require deadlock!
HTTPClient.new

require 'rest-core/engine'

Expand Down
2 changes: 1 addition & 1 deletion lib/rest-core/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

module RestCore
VERSION = '3.5.9'
VERSION = '3.5.91'
end
4 changes: 2 additions & 2 deletions rest-core.gemspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- encoding: utf-8 -*-
# stub: rest-core 3.5.9 ruby lib
# stub: rest-core 3.5.91 ruby lib

Gem::Specification.new do |s|
s.name = "rest-core"
s.version = "3.5.9"
s.version = "3.5.91"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.require_paths = ["lib"]
Expand Down

0 comments on commit 4ed0636

Please # to comment.