Permalink
Browse files

v1.1.14 is ready

  • Loading branch information...
xianhuazhou committed Dec 20, 2012
1 parent 5d516b1 commit 74a47a2adbd9162c89229a442060788b226102d6
Showing with 14 additions and 14 deletions.
  1. +4 −0 Changelog
  2. +5 −3 README.rdoc
  3. +2 −2 http_request.gemspec
  4. +3 −9 lib/http_request.rb
View
@@ -1,3 +1,7 @@
+v1.1.14
+ * fixed openssl warning when work with https
+ * passing array of params in :parameters parameter
+
v1.1.13
* fixed cookies parser
* join utf-8 and ascii-8 bit form data
View
@@ -24,10 +24,11 @@ The HttpRequest class is based on the 'net/http' and 'net/ftp' libraries, so the
include http_request.rb first
require '/path/to/http_request.rb'
- or install it "gem install http_request.rb", then require 'http_request'
+ or install it `gem install http_request.rb`, then `require 'http_request'`
get
- puts HttpRequest.get('http://www.github.com').body
+ puts HttpRequest.get('http://github.com').body
+ puts HttpRequest.get('https://github.com').body
get with query string, 4 are same
puts HttpRequest.get('http://www.google.com/search?hl=en&q=ruby&start=0&sa=N').body
@@ -219,6 +220,7 @@ download multiple files from a directory
HttpRequest.head('http://www.ruby-lang.org/').code_200? # true
supported methods: code_1xx? code_2xx? code_3xx? code_4xx? code_5xx? code_101? code_200? ...
+ or status_1xx? statux_2xx? ...
== check whether or not the remote site is available (since v1.0.3)
@@ -241,4 +243,4 @@ download multiple files from a directory
bug fixing, testing and testing...
== LATEST VERSION
- 1.1.13
+ 1.1.14
View
@@ -1,9 +1,9 @@
-require 'rubygems'
+require 'rubygems'
SPEC=Gem::Specification.new do |s|
s.homepage = 'http://github.com/xianhuazhou'
s.rubyforge_project = "http_request.rb"
s.name = 'http_request.rb'
- s.version = '1.1.13'
+ s.version = '1.1.14'
s.author = 'xianhua.zhou'
s.email = 'xianhua.zhou@gmail.com'
s.platform = Gem::Platform::RUBY
View
@@ -11,14 +11,8 @@
#
# == Version
#
-# v1.1.13
-#
-# Last Change: 29 July, 2012
-#
-# == Author
-#
-# xianhua.zhou<xianhua.zhou@gmail.com>
-#
+# v1.1.14
+# Last Change: 20 December 2012
#
require 'cgi'
require 'net/http'
@@ -32,7 +26,7 @@ class HttpRequest
include Singleton
class << self
# version
- VERSION = '1.1.13'.freeze
+ VERSION = '1.1.14'.freeze
def version;VERSION;end
# available http methods

0 comments on commit 74a47a2

Please sign in to comment.