./www/ruby-faraday, HTTP/REST API client library

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.0.1, Package name: ruby26-faraday-1.0.1, Maintainer: pkgsrc-users

Faraday is an HTTP client lib that provides a common interface over many
adapters (such as Net::HTTP) and embraces the concept of Rack middleware when
processing the request/response cycle.


Required to run:
[www/ruby-multipart-post] [lang/ruby26-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 3bce6dd422ddd66eef20402cae1aa183b5554e8f
RMD160: 367591b68bc8d84ef3d87c141af380e77af2902d
Filesize: 75.5 KB

Version history: (Expand)


CVS history: (Expand)


   2020-06-14 18:20:03 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
www/ruby-faraday: update to 1.0.1

Update ruby-faraday to 1.0.1.

## v1.0

Features:

* Add #trace support to Faraday::Connection #861 (@technoweenie)
* Add the log formatter that is easy to override and safe to inherit #889 (@prikha)
* Support standalone adapters #941 (@iMacTia)
* Introduce Faraday::ConflictError for 409 response code #979 (@lucasmoreno)
* Add support for setting `read_timeout` option separately #1003 (@springerigor)
* Refactor and cleanup timeout settings across adapters #1022 (@technoweenie)
* Create ParamPart class to allow multipart posts with JSON content and file \ 
upload at the same time #1017 (@jeremy-israel)
* Copy UploadIO const -> FilePart for consistency with ParamPart #1018, #1021 \ 
(@technoweenie)
* Implement streaming responses in the Excon adapter #1026 (@technoweenie)
* Add default implementation of `Middleware#close`. #1069 (@ioquatix)
* Add `Adapter#close` so that derived classes can call super. #1091 (@ioquatix)
* Add log_level option to logger default formatter #1079 (@amrrbakry)
* Fix empty array for FlatParamsEncoder `{key: []} -> "key="` #1084 \ 
(@mrexox)

Bugs:

* Explicitly require date for DateTime library in Retry middleware #844 (@nickpresta)
* Refactor Adapter as final endpoints #846 (@iMacTia)
* Separate Request and Response bodies in Faraday::Env #847 (@iMacTia)
* Implement Faraday::Connection#options to make HTTP requests with the OPTIONS \ 
verb. #857 (@technoweenie)
* Multipart: Drop Ruby 1.8 String behavior compat #892 (@olleolleolle)
* Fix Ruby warnings in Faraday::Options.memoized #962 (@technoweenie)
* Allow setting min/max SSL version for a Net::HTTP::Persistent connection #972, \ 
#973 (@bdewater, @olleolleolle)
* Fix instances of frozen empty string literals #1040 (@BobbyMcWho)
* remove temp_proxy and improve proxy tests #1063 (@technoweenie)
* improve error initializer consistency #1095 (@technoweenie)

Misc:

* Convert minitest suite to RSpec #832 (@iMacTia, with help from @gaynetdinov, \ 
@Insti, @technoweenie)
* Major effort to update code to RuboCop standards. #854 (@olleolleolle, \ 
@iMacTia, @technoweenie, @htwroclau, @jherdman, @Drenmi, @Insti)
* Rubocop #1044, #1047 (@BobbyMcWho, @olleolleolle)
* Documentation tweaks (@adsteel, @Hubro, @iMacTia, @olleolleolle, @technoweenie)
* Update license year #981 (@Kevin-Kawai)
* Configure Jekyll plugin jekyll-remote-theme to support Docker usage #999 \ 
(@Lewiscowles1986)
* Fix Ruby 2.7 warnings #1009 (@tenderlove)
* Cleanup adapter connections #1023 (@technoweenie)
* Describe clearing cached stubs #1045 (@viraptor)
* Add project metadata to the gemspec #1046 (@orien)
   2020-03-21 18:07:23 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
www/ruby-faraday: update to 0.17.3

Update ruby-faraday to 0.17.3.  This is not latest version of faraday but
www/ruby-faraday_middleware require prior to 1.0.

## v0.17.3

Fixes:

* Reverts changes in error classes hierarchy. #1092 (@iMacTia)
* Fix Ruby 1.9 syntax errors and improve Error class testing #1094 (@BanzaiMan,
  @mrexox, @technoweenie)

Misc:

* Stops using `&Proc.new` for block forwarding. #1083 (@olleolleolle)
* Update CI to test against ruby 2.0-2.7 #1087, #1099 (@iMacTia, @olleolleolle,
  @technoweenie)
* require FARADAY_DEPRECATE=warn to show Faraday v1.0 deprecation warnings
  #1098 (@technoweenie)

## v0.17.1

Final release before Faraday v1.0, with important fixes for Ruby 2.7.

Fixes:

* RaiseError response middleware raises exception if HTTP client returns a nil
  status. (#1042)

Misc:

* Fix Ruby 2.7 warnings (#1009)
* Add `Faraday::Deprecate` to warn about upcoming v1.0 changes. (#1054, #1059,
    #1076, #1077)
* Add release notes up to current in CHANGELOG.md (#1066)
* Port minimal rspec suite from main branch to run backported tests. (#1058)

## v0.17.0

This release is the same as v0.15.4. It was pushed to cover up releases
v0.16.0-v0.16.2.

## v0.15.4

* Expose `pool_size` as a option for the NetHttpPersistent adapter (#834)
   2018-09-23 18:51:55 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
www/ruby-faraday: update to 0.15.3

0.15.3 (2018/09/19)

* Make Faraday::Request serialisable with Marshal. (#803)
* Add DEFAULT_EXCEPTIONS constant to Request::Retry (#814)
* Add support for Ruby 2.6 Net::HTTP write_timeout (#824)

0.15.2 (2018/05/23)

* Prevents Net::HTTP adapters to retry request internally by setting
  max_retries to 0 if available (Ruby 2.5+). (#799)
* Fixes NestedParamsEncoder handling of empty array values (#801)

0.15.1 (2018/05/10)

* NetHttpPersistent adapter better reuse of SSL connections (#793)
* Refactor: inline cached_connection (#797)
* Logger middleware: use $stdout instead of STDOUT (#794)
* Fix: do not memoize/reuse Patron session (#796)

Also in this release:

* Allow setting min/max ssl version for Net::HTTP (#792)
* Allow setting min/max ssl version for Excon (#795)

0.15.0 (2018/04/19)

Features:

* Added retry block option to retry middleware. (#770)
* Retry middleware improvements (honour Retry-After header, retry statuses)
  (#773)
* Improve response logger middleware output (#784)

Fixes:

* Remove unused class error (#767)
* Fix minor typo in README (#760)
* Reuse persistent connections when using net-http-persistent (#778)
* Fix Retry middleware documentation (#781)
* Returns the http response when giving up on retrying by status (#783)
   2018-03-17 17:15:07 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
www/ruby-faraday: update to 0.14.0

Faraday 0.14.0					2018/01/20

* If proxy is manually provided, this takes priority over find_proxy (#724)
* Allow overriding env proxy (#754)
* Fixes the behaviour for Excon's open_timeout (not setting write_timeout
  anymore) (#731)
* Remove Typhoeus adapter (#715)
* External Typhoeus Adapter Compatibility (#748)
* Warn about missing adapter when making a request (#743)
* Faraday::Adapter::Test stubs now support entire urls (with host) (#741)
* Handle all connection timeout messages in Patron (#687)
   2017-09-11 16:52:27 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-faraday to 0.13.1.

0.13.1 (2017/8/18)

* Fixes an incompatibility with Addressable::URI being used as uri_parser

0.13.0 (2017/8/15)

* Dynamically reloads the proxy when performing a request on an absolute
  domain (#701)
* Prefer #hostname over #host. (#714)
* Adapter support for Net::HTTP::Persistent v3.0.0 (#619)
* Fixes an edge-case issue with response headers parsing (missing HTTP header)
  (#719)

0.12.2 (2017/07/21)

* Parse headers from aggregated proxy requests/responses (#681)
* Guard against invalid middleware configuration with warning (#685)
* Do not use :insecure option by default in Patron (#691)
* Fixes an issue with HTTPClient not raising a Faraday::ConnectionFailed
  (#702)
* Fixes YAML serialization/deserialization for Faraday::Utils::Headers (#690)
* Fixes an issue with Options having a nil value (#694)
* Fixes an issue with Faraday.default_connection not using
  Faraday.default_connection_options (#698)
* Fixes an issue with Options.merge! and Faraday instrumentation middleware
  (#710)
   2017-04-22 19:02:48 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-faraday to 0.12.1.

Faraday 0.12.1							2017/04/21

* Fix an issue with Patron tests failing on jruby
* Fix an issue with new rewind_files feature that was causing an exception
  when the body was not an Hash
* Expose wrapped_exception in all client errors
* Add Authentication Section to the ReadMe

Faraday 0.12.0.1						2017/04/02

 *Hotfix release to address an issue with TravisCI deploy on Rubygems

Faraday 0.12.0							2017/03/21

* Proxy feature now relies on Ruby URI::Generic#find_proxy and can use
  no_proxy ENV variable (not compatible with ruby < 2.0)
* Fix an issue with options that was causing new options to override defaults
  ones unexpectedly
* Rewind UploadIOs on retry to fix a compatibility issue
* Make multipart boundary unique
* Adds support for context request option to pass arbitrary information to
  middlewares
* Improvements in README.md
   2017-02-05 02:04:40 by Izumi Tsutsui | Files touched by this commit (2) | Package updated
Log message:
Update ruby-faraday to 0.11.0.

No upstream changelog.
   2015-12-13 16:34:14 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
Update ruby-faraday to 0.9.2.

Faraday 0.9.2

Adapters:

* Enable gzip compression for httpclient
* Fixes default certificate store for httpclient not having default paths.
* Make excon adapter compatible with 0.44 excon version
* Add compatibility with Patron 0.4.20
* Determine default port numbers in Net::HTTP adapters (Addressable
  compatibility)
* em-http: wrap "connection closed by server" as ConnectionFailed type
* Wrap Errno::ETIMEDOUT in Faraday::Error::TimeoutError

Utils:

* Add Rack-compatible support for parsing a[][b]=c nested queries
* Encode nil values in queries different than empty strings. Before: a=; now:
  a.
* Have Faraday::Utils::Headers#replace clear internal key cache
* Dup the internal key cache when a Headers hash is copied

Env and middleware:

* Ensure env stored on middleware response has reference to the response
* Ensure that Response properties are initialized during on_complete (VCR
  compatibility)
* Copy request options in Faraday::Connection#dup
* Env custom members should be copied by Env.from(env)
* Honour per-request request.options.params_encoder
* Fix interval_randomness data type for Retry middleware
* Add maximum interval option for Retry middleware