Permalink
Browse files

bumped version for new build

  • Loading branch information...
1 parent ef289a1 commit a1c075b3ddb0f7c867a0af089e384ee3eeca830b @pauldix pauldix committed Nov 10, 2009
Showing with 12 additions and 12 deletions.
  1. +7 −7 lib/typhoeus.rb
  2. +5 −5 typhoeus.gemspec
View
@@ -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
View
@@ -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}
@@ -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

0 comments on commit a1c075b

Please sign in to comment.