Skip to content

Commit

Permalink
YARD: Render History.txt as RDoc
Browse files Browse the repository at this point in the history
  - drop bad whitespace in README
  - add a yardopts file
  • Loading branch information
olleolleolle authored and ioquatix committed Mar 3, 2019
1 parent 64d2da7 commit d81d1ae
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
--no-private
lib/**/.rb
-
History.txt
LICENSE
README.md
6 changes: 5 additions & 1 deletion History.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
# @markup rdoc
# @title CHANGELOG
-->

=== 2.0.0 / 2013-12-21

- Drop Ruby 1.8 compatibility
Expand Down Expand Up @@ -57,4 +62,3 @@
* 1 major enhancement

* Birthday!

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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:

Expand Down

0 comments on commit d81d1ae

Please sign in to comment.