diff --git a/.yardopts b/.yardopts new file mode 100644 index 0000000..ed37ede --- /dev/null +++ b/.yardopts @@ -0,0 +1,6 @@ +--no-private +lib/**/.rb +- +History.txt +LICENSE +README.md diff --git a/History.txt b/History.txt index 64b1e38..85ef2a3 100644 --- a/History.txt +++ b/History.txt @@ -1,3 +1,8 @@ + + === 2.0.0 / 2013-12-21 - Drop Ruby 1.8 compatibility @@ -57,4 +62,3 @@ * 1 major enhancement * Birthday! - diff --git a/README.md b/README.md index 60b24b4..ad92419 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,15 @@ methods besides `POST`. ## Features/Problems * Appears to actually work. A good feature to have. -* Encapsulates posting of file/binary parts and name/value parameter parts, similar to +* Encapsulates posting of file/binary parts and name/value parameter parts, similar to most browsers' file upload forms. * Provides an `UploadIO` helper class to prepare IO objects for inclusion in the params hash of the multipart post object. ## Installation - gem install multipart-post - + gem install multipart-post + or in your Gemfile gem 'multipart-post' @@ -51,7 +51,7 @@ res = Net::HTTP.start(url.host, url.port) do |http| end ``` -To post files with other normal, non-file params such as input values, you need to pass hashes to the `Multipart.new` method. +To post files with other normal, non-file params such as input values, you need to pass hashes to the `Multipart.new` method. In Rails 4 for example: