Skip to content

Commit

Permalink
bumped version for new build
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldix committed Nov 10, 2009
1 parent ef289a1 commit a1c075b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions lib/typhoeus.rb
Expand Up @@ -14,36 +14,36 @@
require 'typhoeus/hydra'

module Typhoeus
VERSION = "0.1.9"
VERSION = "0.1.10"

def self.easy_object_pool
@easy_objects ||= []
end

def self.init_easy_object_pool
20.times do
easy_object_pool << Typhoeus::Easy.new
end
end

def self.release_easy_object(easy)
easy.reset
easy_object_pool << easy
end

def self.get_easy_object
if easy_object_pool.empty?
Typhoeus::Easy.new
else
easy_object_pool.pop
end
end

def self.add_easy_request(easy_object)
Thread.current[:curl_multi] ||= Typhoeus::Multi.new
Thread.current[:curl_multi].add(easy_object)
end

def self.perform_easy_requests
multi = Thread.current[:curl_multi]
start_time = Time.now
Expand Down
10 changes: 5 additions & 5 deletions typhoeus.gemspec
@@ -1,9 +1,9 @@
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = %q{typhoeus}
s.version = "0.1.9"
s.version = "0.1.10"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Paul Dix"]
s.date = %q{2009-07-03}
Expand Down Expand Up @@ -43,11 +43,11 @@ Gem::Specification.new do |s|
s.rubygems_version = %q{1.3.4}
s.summary = %q{A library for interacting with web services (and building SOAs) at blinding speed.}
s.extensions << 'ext/typhoeus/extconf.rb'

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 2

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<rack>, ["> 0.9.0"])
else
Expand Down

0 comments on commit a1c075b

Please sign in to comment.