elasticsearch-ruby

https://github.com/elastic/elasticsearch-ruby

Ruby

Ruby integrations for Elasticsearch

OpenURI::Meta#charset

returns a charset parameter in Content-Type field.
It is downcased for canonicalization.

If charset parameter is not given but a block is given,
the block is called and its result is returned.
It can be used to guess charset.

If charset parameter and block is not given,
nil is returned except text type in HTTP.
In that case, "iso-8859-1" is returned as defined by RFC2616 3.7.1.

Source | Google | Stack overflow

Edit

git clone [email protected]:elastic/elasticsearch-ruby.git

cd elasticsearch-ruby

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-OpenURI--Meta-charset-for-pr


# Commit to git

git add git commit -m "better docs for OpenURI::Meta#charset"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-OpenURI--Meta-charset-for-pr

hub pull-request


# Celebrate!