commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2020-05-11 13:40:48 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new.2738 (New) Package is "rubygem-faraday" Mon May 11 13:40:48 2020 rev:24 rq:802332 version:1.0.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2020-03-07 21:38:01.112263236 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new.2738/rubygem-faraday.changes 2020-05-11 13:40:48.577050192 +0200 @@ -1,0 +2,6 @@ +Thu May 7 20:41:45 UTC 2020 - Stephan Kulow + +- updated to version 1.0.1 + see installed CHANGELOG.md + +--- Old: faraday-1.0.0.gem New: faraday-1.0.1.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.jR4YrP/_old 2020-05-11 13:40:49.441052025 +0200 +++ /var/tmp/diff_new_pack.jR4YrP/_new 2020-05-11 13:40:49.445052033 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-faraday -Version:1.0.0 +Version:1.0.1 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} ++ faraday-1.0.0.gem -> faraday-1.0.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2020-01-01 01:05:57.0 +0100 +++ new/README.md 2020-03-29 15:54:36.0 +0200 @@ -1,4 +1,4 @@ -# ![Faraday](./docs/assets/img/repo-card-slim.png) +# [![Faraday](./docs/assets/img/repo-card-slim.png)][website] [![Gem Version](https://badge.fury.io/rb/faraday.svg)](https://rubygems.org/gems/faraday) ![GitHub Actions CI](https://github.com/lostisland/faraday/workflows/CI/badge.svg) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/UPGRADING.md new/UPGRADING.md --- old/UPGRADING.md2020-01-01 01:05:57.0 +0100 +++ new/UPGRADING.md1970-01-01 01:00:00.0 +0100 @@ -1,55 +0,0 @@ -## Faraday 1.0 - -### Errors -* Removes sub-class constants definition from `Faraday::Error`. A sub-class (e.g. `ClientError`) was previously accessible -either through the `Faraday` module (e.g. `Faraday::ClientError`) or through the `Faraday::Error` class (e.g. `Faraday::Error::ClientError`). -The latter is no longer available and the former should be used instead, so check your `rescue`s. -* Introduces a new `Faraday::ServerError` (5xx status codes) alongside the existing `Faraday::ClientError` (4xx status codes). -Please note `Faraday::ClientError` was previously used for both. -* Introduces new Errors that describe the most common REST status codes: - * Faraday::BadRequestError (400) - * Faraday::UnauthorizedError (401) - * Faraday::ForbiddenError (403) - * Faraday::ProxyAuthError (407). Please note this raised a `Faraday::ConnectionFailed` before. - * Faraday::ConflictError (409) - * Faraday::UnprocessableEntityError (422) -* The following error classes have changed the hierarchy to better mirror their real-world usage and semantic meaning: - * TimeoutError < ServerError (was < ClientError) - * ConnectionFailed < Error (was < ClientError) - * SSLError < Error (was < ClientError) - * ParsingError < Error (was < ClientError) - * RetriableResponse < Error (was < ClientError) - -### Custom adapters -If you have written a custom adapter, please be aware that `env.body` is now an alias to the two new properties `request_body` and `response_body`. -This should work without you noticing if your adapter inherits from `Faraday::Adapter` and calls `save_response`, but if it doesn't, then please ensure you set the `status` BEFORE the `body` while processing the response. - -### Others -* Dropped support for jruby and Rubinius. -* Officially supports Ruby 2.4+ -* In order to specify the adapter you now MUST use the `#adapter` method on the connection builder. If you don't do so and your adapter inherits from `Faraday::Adapter` then Faraday will raise an exception. Otherwise, Faraday will automatically push the default adapter at the end of the stack causing your request to be executed twice. -```ruby -class OfficialAdapter < Faraday::Adapter - ... -end - -class MyAdapter - ... -end - -# This will raise an exception -conn = Faraday.new(...) do |f| - f.use OfficialAdapter -end - -# This will cause Faraday inserting the default adapter at the end of the stack -conn = Faraday.new(...) do |f| - f.use MyAdapter -end - -# You MUST use `adapter` method -conn = Faraday.new(...) do |f| - f.adapter AnyAdapter -end -``` - Binary files old/checksums.yaml.gz and new/checksums.yaml.gz
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2020-03-07 21:37:59 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new.26092 (New) Package is "rubygem-faraday" Sat Mar 7 21:37:59 2020 rev:23 rq:773756 version:1.0.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2019-01-21 10:25:53.221715448 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new.26092/rubygem-faraday.changes 2020-03-07 21:38:01.112263236 +0100 @@ -1,0 +2,6 @@ +Mon Feb 10 14:32:36 UTC 2020 - Stephan Kulow + +- updated to version 1.0.0 + no changelog found + +--- Old: faraday-0.15.4.gem New: faraday-1.0.0.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.DNftaq/_old 2020-03-07 21:38:01.800263701 +0100 +++ /var/tmp/diff_new_pack.DNftaq/_new 2020-03-07 21:38:01.812263709 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-faraday # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,15 +24,15 @@ # Name: rubygem-faraday -Version:0.15.4 +Version:1.0.0 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{ruby >= 1.9} +BuildRequires: %{ruby >= 2.3} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url:https://github.com/lostisland/faraday +URL:https://lostisland.github.io/faraday Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:HTTP/REST API client library @@ -48,7 +48,7 @@ %install %gem_install \ - --doc-files="LICENSE.md README.md" \ + --doc-files="CHANGELOG.md LICENSE.md README.md" \ -f %gem_packages ++ faraday-0.15.4.gem -> faraday-1.0.0.gem ++ 12988 lines of diff (skipped)
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2019-01-21 10:25:50 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new.28833 (New) Package is "rubygem-faraday" Mon Jan 21 10:25:50 2019 rev:22 rq:656379 version:0.15.4 Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2018-07-18 22:49:44.679795543 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new.28833/rubygem-faraday.changes 2019-01-21 10:25:53.221715448 +0100 @@ -1,0 +2,6 @@ +Sat Dec 8 16:20:56 UTC 2018 - Stephan Kulow + +- updated to version 0.15.4 + no changelog found + +--- Old: faraday-0.15.2.gem New: faraday-0.15.4.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.lJgFY1/_old 2019-01-21 10:25:53.725714895 +0100 +++ /var/tmp/diff_new_pack.lJgFY1/_new 2019-01-21 10:25:53.725714895 +0100 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,7 +24,7 @@ # Name: rubygem-faraday -Version:0.15.2 +Version:0.15.4 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} ++ faraday-0.15.2.gem -> faraday-0.15.4.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2018-05-23 17:42:34.0 +0200 +++ new/README.md 2018-11-27 12:32:09.0 +0100 @@ -274,7 +274,7 @@ ### NetHttpPersistent ```ruby conn = Faraday.new(...) do |f| - f.adapter :net_http_persistent do |http| # yields Net::HTTP::Persistent + f.adapter :net_http_persistent, pool_size: 5 do |http| # yields Net::HTTP::Persistent http.idle_timeout = 100 http.retry_change_requests = true end @@ -360,7 +360,7 @@ ## Contribute Do you want to contribute to Faraday? -Open the issues page and check for the `any volunteer?` label! +Open the issues page and check for the `help wanted` label! But before you start coding, please read our [Contributing Guide](https://github.com/lostisland/faraday/blob/master/.github/CONTRIBUTING.md) ## Copyright Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/adapter/net_http.rb new/lib/faraday/adapter/net_http.rb --- old/lib/faraday/adapter/net_http.rb 2018-05-23 17:42:34.0 +0200 +++ new/lib/faraday/adapter/net_http.rb 2018-11-27 12:32:09.0 +0100 @@ -116,10 +116,15 @@ end def configure_request(http, req) -http.read_timeout = http.open_timeout = req[:timeout] if req[:timeout] -http.open_timeout = req[:open_timeout]if req[:open_timeout] -# Only set if Net::Http supports it, since Ruby 2.5. -http.max_retries = 0 if http.respond_to?(:max_retries=) +if req[:timeout] + http.read_timeout = req[:timeout] + http.open_timeout = req[:timeout] + http.write_timeout = req[:timeout] if http.respond_to?(:write_timeout=) +end +http.open_timeout = req[:open_timeout] if req[:open_timeout] +http.write_timeout = req[:write_timeout] if req[:write_timeout] && http.respond_to?(:write_timeout=) + # Only set if Net::Http supports it, since Ruby 2.5. +http.max_retries = 0if http.respond_to?(:max_retries=) @config_block.call(http) if @config_block end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/adapter/net_http_persistent.rb new/lib/faraday/adapter/net_http_persistent.rb --- old/lib/faraday/adapter/net_http_persistent.rb 2018-05-23 17:42:34.0 +0200 +++ new/lib/faraday/adapter/net_http_persistent.rb 2018-11-27 12:32:09.0 +0100 @@ -8,7 +8,9 @@ def net_http_connection(env) @cached_connection ||= if Net::HTTP::Persistent.instance_method(:initialize).parameters.first == [:key, :name] -Net::HTTP::Persistent.new(name: 'Faraday') +options = {name: 'Faraday'} +options[:pool_size] = @connection_options[:pool_size] if @connection_options.key?(:pool_size) +Net::HTTP::Persistent.new(options) else
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2018-07-18 22:49:39 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is "rubygem-faraday" Wed Jul 18 22:49:39 2018 rev:21 rq:621001 version:0.15.2 Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2018-02-10 18:00:00.652127729 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2018-07-18 22:49:44.679795543 +0200 @@ -1,0 +2,18 @@ +Wed May 23 16:04:31 UTC 2018 - factory-a...@kulow.org + +- updated to version 0.15.2 + no changelog found + +--- +Wed May 16 07:59:41 UTC 2018 - factory-a...@kulow.org + +- updated to version 0.15.1 + no changelog found + +--- +Fri Apr 20 08:05:59 UTC 2018 - factory-a...@kulow.org + +- updated to version 0.15.0 + no changelog found + +--- Old: faraday-0.14.0.gem New: faraday-0.15.2.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.9oAgiT/_old 2018-07-18 22:49:45.083794203 +0200 +++ /var/tmp/diff_new_pack.9oAgiT/_new 2018-07-18 22:49:45.087794190 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-faraday -Version:0.14.0 +Version:0.15.2 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} ++ faraday-0.14.0.gem -> faraday-0.15.2.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2018-01-19 20:19:34.0 +0100 +++ new/README.md 2018-05-23 17:42:34.0 +0200 @@ -54,7 +54,7 @@ ```ruby conn = Faraday.new(:url => 'http://sushi.com') do |faraday| faraday.request :url_encoded # form-encode POST params - faraday.response :logger # log requests to STDOUT + faraday.response :logger # log requests to $stdout faraday.adapter Faraday.default_adapter # make requests with Net::HTTP end @@ -69,7 +69,7 @@ end ``` -Once you have the connection object, use it to make HTTP requests. You can pass paramters to it in a few different ways: +Once you have the connection object, use it to make HTTP requests. You can pass parameters to it in a few different ways: ```ruby ## GET ## @@ -79,7 +79,7 @@ conn.get '/nigiri', { :name => 'Maguro' } # GET http://sushi.com/nigiri?name=Maguro -conn.get do |req| # GET http://sushi.com/search?page=2=100 +conn.get do |req| # GET http://sushi.com/search?page=2=100 req.url '/search', :page => 2 req.params['limit'] = 100 end @@ -118,7 +118,7 @@ req.options.context = { foo: 'foo', bar: 'bar' - } + } end ``` Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/adapter/excon.rb new/lib/faraday/adapter/excon.rb --- old/lib/faraday/adapter/excon.rb2018-01-19 20:19:34.0 +0100 +++ new/lib/faraday/adapter/excon.rb2018-05-23 17:42:34.0 +0200 @@ -15,6 +15,9 @@ opts[:client_key] = ssl[:client_key] if ssl[:client_key] opts[:certificate] = ssl[:certificate] if ssl[:certificate] opts[:private_key] = ssl[:private_key] if ssl[:private_key] + opts[:ssl_version] = ssl[:version] if ssl[:version] + opts[:ssl_min_version] = ssl[:min_version] if ssl[:min_version] + opts[:ssl_max_version] = ssl[:max_version] if ssl[:max_version] # https://github.com/geemus/excon/issues/106 # https://github.com/jruby/jruby-ossl/issues/19 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/adapter/net_http.rb new/lib/faraday/adapter/net_http.rb --- old/lib/faraday/adapter/net_http.rb 2018-01-19 20:19:34.0 +0100 +++ new/lib/faraday/adapter/net_http.rb 2018-05-23 17:42:34.0 +0200 @@ -28,6 +28,11 @@ NET_HTTP_EXCEPTIONS << OpenSSL::SSL::SSLError if defined?(OpenSSL) NET_HTTP_EXCEPTIONS << Net::OpenTimeout if defined?(Net::OpenTimeout) + def initialize(app = nil, opts = {}, ) +@cert_store = nil +super(app, opts, ) + end + def call(env) super with_net_http_connection(env) do |http| @@ -56,6 +61,8 @@ raise Faraday::Error::TimeoutError, err end +
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2018-02-10 17:59:59 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is "rubygem-faraday" Sat Feb 10 17:59:59 2018 rev:20 rq:574930 version:0.14.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2017-09-26 21:14:42.407997951 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2018-02-10 18:00:00.652127729 +0100 @@ -1,0 +2,6 @@ +Thu Feb 8 06:01:18 UTC 2018 - co...@suse.com + +- updated to version 0.14.0 + no changelog found + +--- Old: faraday-0.13.1.gem New: faraday-0.14.0.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.FRXdxF/_old 2018-02-10 18:00:02.364065756 +0100 +++ /var/tmp/diff_new_pack.FRXdxF/_new 2018-02-10 18:00:02.368065611 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-faraday # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-faraday -Version:0.13.1 +Version:0.14.0 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} @@ -33,7 +33,7 @@ BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 Url:https://github.com/lostisland/faraday -Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1:gem2rpm.yml Summary:HTTP/REST API client library License:MIT ++ faraday-0.13.1.gem -> faraday-0.14.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2017-08-18 19:10:29.0 +0200 +++ new/README.md 2018-01-19 20:19:34.0 +0100 @@ -11,7 +11,7 @@ adapters (such as Net::HTTP) and embraces the concept of Rack middleware when processing the request/response cycle. -Faraday supports these adapters: +Faraday supports these adapters out of the box: * [Net::HTTP][net_http] _(default)_ * [Net::HTTP::Persistent][persistent] @@ -20,6 +20,10 @@ * [EventMachine][] * [HTTPClient][] +Adapters are slowly being moved into their own gems, or bundled with HTTP clients: + +* [Typhoeus][] + It also includes a Rack adapter for hitting loaded Rack applications through Rack::Test, and a Test adapter for stubbing requests by hand. @@ -40,8 +44,8 @@ A more flexible way to use Faraday is to start with a Connection object. If you want to keep the same defaults, you can use this syntax: ```ruby -conn = Faraday.new(:url => 'http://www.example.com') -response = conn.get '/users' # GET http://www.example.com/users' +conn = Faraday.new(:url => 'http://www.example.com') +response = conn.get '/users' # GET http://www.example.com/users' ``` Connections can also take an options hash as a parameter or be configured by using a block. Checkout the section called [Advanced middleware usage](#advanced-middleware-usage) for more details about how to use this block for configurations. @@ -145,7 +149,7 @@ get serialized. The default encoder is Faraday::NestedParamsEncoder. ## Authentication - + Basic and Token authentication are handled by Faraday::Request::BasicAuthentication and Faraday::Request::TokenAuthentication respectively. These can be added as middleware manually or through the helper methods. ```ruby @@ -154,10 +158,26 @@ end Faraday.new(...) do |conn| - conn.token_auth('authentication-token') + conn.token_auth('authentication-token') end ``` +## Proxy + +Faraday will try to automatically infer the proxy settings from your system using `URI#find_proxy`. +This will retrieve them from environment variables such as http_proxy, ftp_proxy, no_proxy, etc. +If for any reason you want to disable this behaviour, you can do so by setting the global varibale `ignore_env_proxy`: + +```ruby +Faraday.ignore_env_proxy = true +``` + +You can also specify a custom proxy when initializing the connection + +```ruby +Faraday.new('http://www.example.com', :proxy => 'http://proxy.com') +``` + ## Advanced middleware usage The order in which middleware is stacked is important. Like with Rack, the @@ -235,7 +255,7 @@ ## Ad-hoc adapters customization -Faraday is
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2017-09-26 21:13:58 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is "rubygem-faraday" Tue Sep 26 21:13:58 2017 rev:19 rq:520441 version:0.13.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2017-06-08 15:00:36.835254667 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2017-09-26 21:14:42.407997951 +0200 @@ -1,0 +2,12 @@ +Sun Sep 3 09:01:16 UTC 2017 - co...@suse.com + +- updated to version 0.13.1 + no changelog found + +--- +Thu Aug 3 19:12:53 UTC 2017 - co...@suse.com + +- updated to version 0.12.2 + no changelog found + +--- Old: faraday-0.12.1.gem New: faraday-0.13.1.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.RakGsZ/_old 2017-09-26 21:14:43.283874813 +0200 +++ /var/tmp/diff_new_pack.RakGsZ/_new 2017-09-26 21:14:43.287874251 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-faraday -Version:0.12.1 +Version:0.13.1 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} ++ faraday-0.12.1.gem -> faraday-0.13.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2017-04-21 18:15:00.0 +0200 +++ new/README.md 2017-08-18 19:10:29.0 +0200 @@ -2,6 +2,8 @@ [![Gem Version](https://badge.fury.io/rb/faraday.svg)](https://rubygems.org/gems/faraday) [![Build Status](https://travis-ci.org/lostisland/faraday.svg)](https://travis-ci.org/lostisland/faraday) +[![Coverage Status](https://coveralls.io/repos/github/lostisland/faraday/badge.svg?branch=master)](https://coveralls.io/github/lostisland/faraday?branch=master) +[![Code Climate](https://codeclimate.com/github/lostisland/faraday/badges/gpa.svg)](https://codeclimate.com/github/lostisland/faraday) [![Gitter](https://badges.gitter.im/lostisland/faraday.svg)](https://gitter.im/lostisland/faraday?utm_source=badge_medium=badge_campaign=pr-badge) @@ -42,7 +44,8 @@ response = conn.get '/users' # GET http://www.example.com/users' ``` -Connections can also take an options hash as a parameter or be configured by using a block. Checkout the section called [Advanced middleware usage](#advanced-middleware-usage) for more details about how to use this block for configurations. +Connections can also take an options hash as a parameter or be configured by using a block. Checkout the section called [Advanced middleware usage](#advanced-middleware-usage) for more details about how to use this block for configurations. +Since the default middleware stack uses url\_encoded middleware and default adapter, use them on building your own middleware stack. ```ruby conn = Faraday.new(:url => 'http://sushi.com') do |faraday| @@ -54,6 +57,7 @@ # Filter sensitive information from logs with a regex matcher conn = Faraday.new(:url => 'http://sushi.com/api_key=s3cr3t') do |faraday| + faraday.request :url_encoded # form-encode POST params faraday.response :logger do | logger | logger.filter(/(api_key=)(\w+)/,'\1[REMOVED]') end @@ -166,6 +170,7 @@ conn.request :multipart conn.request :url_encoded + # Last middleware must be the adapter: conn.adapter :net_http end ``` @@ -310,11 +315,6 @@ stubs.verify_stubbed_calls ``` -## TODO - -* support streaming requests/responses -* better stubbing API - ## Supported Ruby versions This library aims to support and is [tested against][travis] the following Ruby @@ -337,6 +337,12 @@ fashion. If critical issues for a particular implementation exist at the time of a major release, support for that Ruby version may be dropped. +## Contribute + +Do you want to contribute to Faraday? +Open the issues page and check for the `any volunteer?` label! +But before you start coding, please read our [Contributing Guide](https://github.com/lostisland/faraday/blob/master/CONTRIBUTING.md) + ## Copyright Copyright (c) 2009-2017 [Rick Olson](mailto:technowee...@gmail.com), Zack Hobson. Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/adapter/httpclient.rb new/lib/faraday/adapter/httpclient.rb --- old/lib/faraday/adapter/httpclient.rb 2017-04-21 18:15:00.0
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2017-06-08 15:00:35 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is "rubygem-faraday" Thu Jun 8 15:00:35 2017 rev:18 rq:497684 version:0.12.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2017-04-20 20:58:40.634401241 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2017-06-08 15:00:36.835254667 +0200 @@ -1,0 +2,6 @@ +Tue May 23 09:52:09 UTC 2017 - co...@suse.com + +- updated to version 0.12.1 + no changelog found + +--- Old: faraday-0.12.0.1.gem New: faraday-0.12.1.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.qNZ0Om/_old 2017-06-08 15:00:37.691133875 +0200 +++ /var/tmp/diff_new_pack.qNZ0Om/_new 2017-06-08 15:00:37.691133875 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-faraday -Version:0.12.0.1 +Version:0.12.1 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} ++ faraday-0.12.0.1.gem -> faraday-0.12.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LICENSE.md new/LICENSE.md --- old/LICENSE.md 2017-04-02 11:42:39.0 +0200 +++ new/LICENSE.md 2017-04-21 18:15:00.0 +0200 @@ -1,4 +1,4 @@ -Copyright (c) 2009-2015 Rick Olson, Zack Hobson +Copyright (c) 2009-2017 Rick Olson, Zack Hobson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2017-04-02 11:42:39.0 +0200 +++ new/README.md 2017-04-21 18:15:00.0 +0200 @@ -140,6 +140,20 @@ The encoder will affect both how query strings are processed and how POST bodies get serialized. The default encoder is Faraday::NestedParamsEncoder. +## Authentication + +Basic and Token authentication are handled by Faraday::Request::BasicAuthentication and Faraday::Request::TokenAuthentication respectively. These can be added as middleware manually or through the helper methods. + +```ruby +Faraday.new(...) do |conn| + conn.basic_auth('username', 'password') +end + +Faraday.new(...) do |conn| + conn.token_auth('authentication-token') +end +``` + ## Advanced middleware usage The order in which middleware is stacked is important. Like with Rack, the @@ -325,7 +339,7 @@ ## Copyright -Copyright (c) 2009-2013 [Rick Olson](mailto:technowee...@gmail.com), Zack Hobson. +Copyright (c) 2009-2017 [Rick Olson](mailto:technowee...@gmail.com), Zack Hobson. See [LICENSE][] for details. [net_http]: http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/Net/HTTP.html Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/error.rb new/lib/faraday/error.rb --- old/lib/faraday/error.rb2017-04-02 11:42:39.0 +0200 +++ new/lib/faraday/error.rb2017-04-21 18:15:00.0 +0200 @@ -3,7 +3,7 @@ class MissingDependency < Error; end class ClientError < Error -attr_reader :response +attr_reader :response, :wrapped_exception def initialize(ex, response = nil) @wrapped_exception = nil diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/request/retry.rb new/lib/faraday/request/retry.rb --- old/lib/faraday/request/retry.rb2017-04-02 11:42:39.0 +0200 +++ new/lib/faraday/request/retry.rb2017-04-21 18:15:00.0 +0200 @@ -151,8 +151,9 @@ @options.methods.include?(env[:method]) || @options.retry_if.call(env, exception) end -def rewind_files(env) - env && env.each do |_, value| +def rewind_files(body) + return unless body.is_a?(Hash) + body.each do |_, value| if value.is_a? UploadIO value.rewind end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday.rb new/lib/faraday.rb --- old/lib/faraday.rb 2017-04-02 11:42:39.0 +0200 +++ new/lib/faraday.rb 2017-04-21 18:15:00.0 +0200 @@ -14,7 +14,7 @@ # conn.get '/' # module Faraday - VERSION = "0.12.0.1" + VERSION = "0.12.1" class << self # Public: Gets or sets the root path that Faraday is being loaded from. diff -urN '--exclude=CVS'
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2017-04-20 20:58:39 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is "rubygem-faraday" Thu Apr 20 20:58:39 2017 rev:17 rq:489046 version:0.12.0.1 Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2017-04-17 10:27:03.479869144 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2017-04-20 20:58:40.634401241 +0200 @@ -1,0 +2,6 @@ +Thu Apr 13 04:30:06 UTC 2017 - co...@suse.com + +- updated to version 0.12.0.1 + no changelog found + +--- Old: faraday-0.12.0.gem New: faraday-0.12.0.1.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.DJsBSL/_old 2017-04-20 20:58:41.158327147 +0200 +++ /var/tmp/diff_new_pack.DJsBSL/_new 2017-04-20 20:58:41.162326581 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-faraday -Version:0.12.0 +Version:0.12.0.1 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} ++ faraday-0.12.0.gem -> faraday-0.12.0.1.gem ++ Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday.rb new/lib/faraday.rb --- old/lib/faraday.rb 2017-04-01 14:09:37.0 +0200 +++ new/lib/faraday.rb 2017-04-02 11:42:39.0 +0200 @@ -14,7 +14,7 @@ # conn.get '/' # module Faraday - VERSION = "0.12.0" + VERSION = "0.12.0.1" class << self # Public: Gets or sets the root path that Faraday is being loaded from. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata2017-04-01 14:09:37.0 +0200 +++ new/metadata2017-04-02 11:42:39.0 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: faraday version: !ruby/object:Gem::Version - version: 0.12.0 + version: 0.12.0.1 platform: ruby authors: - Rick Olson autorequire: bindir: bin cert_chain: [] -date: 2017-04-01 00:00:00.0 Z +date: 2017-04-02 00:00:00.0 Z dependencies: - !ruby/object:Gem::Dependency name: multipart-post
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2017-04-17 10:27:02 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is "rubygem-faraday" Mon Apr 17 10:27:02 2017 rev:16 rq:487592 version:0.12.0 Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2017-01-25 23:28:12.222738969 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2017-04-17 10:27:03.479869144 +0200 @@ -1,0 +2,6 @@ +Sun Apr 2 04:31:49 UTC 2017 - co...@suse.com + +- updated to version 0.12.0 + no changelog found + +--- Old: faraday-0.11.0.gem New: faraday-0.12.0.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.AD3ACs/_old 2017-04-17 10:27:04.547717918 +0200 +++ /var/tmp/diff_new_pack.AD3ACs/_new 2017-04-17 10:27:04.547717918 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-faraday -Version:0.11.0 +Version:0.12.0 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} ++ faraday-0.11.0.gem -> faraday-0.12.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2017-01-13 16:18:44.0 +0100 +++ new/README.md 2017-04-01 14:09:37.0 +0200 @@ -1,5 +1,10 @@ # Faraday +[![Gem Version](https://badge.fury.io/rb/faraday.svg)](https://rubygems.org/gems/faraday) +[![Build Status](https://travis-ci.org/lostisland/faraday.svg)](https://travis-ci.org/lostisland/faraday) +[![Gitter](https://badges.gitter.im/lostisland/faraday.svg)](https://gitter.im/lostisland/faraday?utm_source=badge_medium=badge_campaign=pr-badge) + + 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. @@ -9,7 +14,6 @@ * [Net::HTTP][net_http] _(default)_ * [Net::HTTP::Persistent][persistent] * [Excon][] -* [Typhoeus][] * [Patron][] * [EventMachine][] * [HTTPClient][] @@ -23,6 +27,23 @@ ## Usage +### Basic Use + +```ruby +response = Faraday.get 'http://sushi.com/nigiri/sake.json' +``` +A simple `get` request can be performed by using the syntax described above. This works if you don't need to set up anything; you can roll with just the default middleware +stack and default adapter (see [Faraday::RackBuilder#initialize](https://github.com/lostisland/faraday/blob/master/lib/faraday/rack_builder.rb)). + +A more flexible way to use Faraday is to start with a Connection object. If you want to keep the same defaults, you can use this syntax: + +```ruby +conn = Faraday.new(:url => 'http://www.example.com') +response = conn.get '/users' # GET http://www.example.com/users' +``` + +Connections can also take an options hash as a parameter or be configured by using a block. Checkout the section called [Advanced middleware usage](#advanced-middleware-usage) for more details about how to use this block for configurations. + ```ruby conn = Faraday.new(:url => 'http://sushi.com') do |faraday| faraday.request :url_encoded # form-encode POST params @@ -36,8 +57,13 @@ faraday.response :logger do | logger | logger.filter(/(api_key=)(\w+)/,'\1[REMOVED]') end + faraday.adapter Faraday.default_adapter # make requests with Net::HTTP end +``` + +Once you have the connection object, use it to make HTTP requests. You can pass paramters to it in a few different ways: +```ruby ## GET ## response = conn.get '/nigiri/sake.json' # GET http://sushi.com/nigiri/sake.json @@ -45,7 +71,7 @@ conn.get '/nigiri', { :name => 'Maguro' } # GET http://sushi.com/nigiri?name=Maguro -conn.get do |req| # GET http://sushi.com/search?page=2=100 +conn.get do |req| # GET http://sushi.com/search?page=2=100 req.url '/search', :page => 2 req.params['limit'] = 100 end @@ -53,7 +79,11 @@ ## POST ## conn.post '/nigiri', { :name => 'Maguro' } # POST "name=maguro" to http://sushi.com/nigiri +``` + +Some configuration options can be adjusted per request: +```ruby # post payload as JSON instead of "www-form-urlencoded" encoding: conn.post do |req| req.url '/nigiri' @@ -70,11 +100,18 @@ end ``` -If you don't need to set up anything, you can roll with just the default middleware -stack and default adapter (see
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2017-01-25 23:28:11 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is "rubygem-faraday" Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2017-01-15 11:19:31.334131086 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2017-01-25 23:28:12.222738969 +0100 @@ -1,0 +2,6 @@ +Sat Jan 14 05:31:15 UTC 2017 - co...@suse.com + +- updated to version 0.11.0 + no changelog found + +--- Old: faraday-0.10.1.gem New: faraday-0.11.0.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.p6Gnk9/_old 2017-01-25 23:28:12.578685314 +0100 +++ /var/tmp/diff_new_pack.p6Gnk9/_new 2017-01-25 23:28:12.586684108 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-faraday # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-faraday -Version:0.10.1 +Version:0.11.0 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} ++ faraday-0.10.1.gem -> faraday-0.11.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2016-12-30 20:37:33.0 +0100 +++ new/README.md 2017-01-13 16:18:44.0 +0100 @@ -30,6 +30,14 @@ faraday.adapter Faraday.default_adapter # make requests with Net::HTTP end +# Filter sensitive information from logs with a regex matcher + +conn = Faraday.new(:url => 'http://sushi.com/api_key=s3cr3t') do |faraday| + faraday.response :logger do | logger | +logger.filter(/(api_key=)(\w+)/,'\1[REMOVED]') + end +end + ## GET ## response = conn.get '/nigiri/sake.json' # GET http://sushi.com/nigiri/sake.json Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/adapter/em_http.rb new/lib/faraday/adapter/em_http.rb --- old/lib/faraday/adapter/em_http.rb 2016-12-30 20:37:33.0 +0100 +++ new/lib/faraday/adapter/em_http.rb 2017-01-13 16:18:44.0 +0100 @@ -138,7 +138,7 @@ # TODO: reuse the connection to support pipelining def perform_single_request(env) -req = EventMachine::HttpRequest.new(env[:url], connection_config(env)) +req = create_request(env) req.setup_request(env[:method], request_config(env)).callback { |client| status = client.response_header.status reason = client.response_header.http_reason @@ -150,6 +150,10 @@ } end + def create_request(env) +EventMachine::HttpRequest.new(env[:url], connection_config(env).merge(@connection_options)) + end + def error_message(client) client.error or "request failed" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/adapter/em_synchrony.rb new/lib/faraday/adapter/em_synchrony.rb --- old/lib/faraday/adapter/em_synchrony.rb 2016-12-30 20:37:33.0 +0100 +++ new/lib/faraday/adapter/em_synchrony.rb 2017-01-13 16:18:44.0 +0100 @@ -19,7 +19,7 @@ def call(env) super -request = EventMachine::HttpRequest.new(Utils::URI(env[:url].to_s), connection_config(env)) +request = create_request(env) http_method = env[:method].to_s.downcase.to_sym @@ -87,6 +87,10 @@ raise end end + + def create_request(env) +EventMachine::HttpRequest.new(Utils::URI(env[:url].to_s), connection_config(env).merge(@connection_options)) + end end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/adapter/excon.rb new/lib/faraday/adapter/excon.rb --- old/lib/faraday/adapter/excon.rb2016-12-30 20:37:33.0 +0100 +++ new/lib/faraday/adapter/excon.rb2017-01-13 16:18:44.0 +0100 @@ -3,11 +3,6 @@ class Excon < Faraday::Adapter dependency 'excon' - def initialize(app, connection_options = {}) -@connection_options = connection_options -super(app) - end - def call(env) super @@ -50,7
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2016-11-17 12:43:17 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is "rubygem-faraday" Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2015-10-12 10:02:03.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2016-11-17 12:43:18.0 +0100 @@ -1,0 +2,6 @@ +Sat Nov 12 05:33:33 UTC 2016 - co...@suse.com + +- updated to version 0.10.0 + no changelog found + +--- Old: faraday-0.9.2.gem New: faraday-0.10.0.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.6uC6Yv/_old 2016-11-17 12:43:19.0 +0100 +++ /var/tmp/diff_new_pack.6uC6Yv/_new 2016-11-17 12:43:19.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-faraday # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,13 +24,13 @@ # Name: rubygem-faraday -Version:0.9.2 +Version:0.10.0 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{ruby >= 1.9} BuildRequires: %{rubygem gem2rpm} -BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 Url:https://github.com/lostisland/faraday Source: http://rubygems.org/gems/%{mod_full_name}.gem ++ faraday-0.9.2.gem -> faraday-0.10.0.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 1970-01-01 01:00:00.0 +0100 +++ new/README.md 2016-11-11 12:31:50.0 +0100 @@ -17,6 +17,10 @@ It also includes a Rack adapter for hitting loaded Rack applications through Rack::Test, and a Test adapter for stubbing requests by hand. +## API documentation + +Available at [rubydoc.info](http://www.rubydoc.info/gems/faraday). + ## Usage ```ruby @@ -73,7 +77,7 @@ ```ruby # per-connection setting -conn = Faraday.new :params_encoder => Faraday::FlatParamsEncoder +conn = Faraday.new :request => { :params_encoder => Faraday::FlatParamsEncoder } conn.get do |req| # per-request setting: @@ -210,7 +214,7 @@ This library aims to support and is [tested against][travis] the following Ruby implementations: -* Ruby 1.8.7+ +* Ruby 1.9.3+ * [JRuby][] 1.7+ * [Rubinius][] 2+ @@ -234,10 +238,10 @@ [net_http]: http://ruby-doc.org/stdlib/libdoc/net/http/rdoc/Net/HTTP.html [persistent]: https://github.com/drbrain/net-http-persistent -[travis]: http://travis-ci.org/lostisland/faraday -[excon]:https://github.com/geemus/excon#readme +[travis]: https://travis-ci.org/lostisland/faraday +[excon]:https://github.com/excon/excon#readme [typhoeus]: https://github.com/typhoeus/typhoeus#readme -[patron]: http://toland.github.com/patron/ +[patron]: http://toland.github.io/patron/ [eventmachine]: https://github.com/igrigorik/em-http-request#readme [httpclient]: https://github.com/nahi/httpclient [jruby]:http://jruby.org/ Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/adapter/em_http.rb new/lib/faraday/adapter/em_http.rb --- old/lib/faraday/adapter/em_http.rb 1970-01-01 01:00:00.0 +0100 +++ new/lib/faraday/adapter/em_http.rb 2016-11-11 12:31:50.0 +0100 @@ -140,7 +140,9 @@ def perform_single_request(env) req = EventMachine::HttpRequest.new(env[:url], connection_config(env)) req.setup_request(env[:method], request_config(env)).callback { |client| - save_response(env, client.response_header.status, client.response) do |resp_headers| + status = client.response_header.status + reason = client.response_header.http_reason + save_response(env, status, client.response, nil, reason) do |resp_headers| client.response_header.each do |name, value| resp_headers[name.to_sym] = value end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/faraday/adapter/em_http_ssl_patch.rb new/lib/faraday/adapter/em_http_ssl_patch.rb ---
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2015-10-12 10:02:03 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is "rubygem-faraday" Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2015-02-11 16:46:41.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2015-10-12 10:02:03.0 +0200 @@ -1,0 +2,6 @@ +Wed Oct 7 04:29:45 UTC 2015 - co...@suse.com + +- updated to version 0.9.2 + CHANGELOG.md removed upstream + +--- Old: faraday-0.9.1.gem New: faraday-0.9.2.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.kIE5yv/_old 2015-10-12 10:02:04.0 +0200 +++ /var/tmp/diff_new_pack.kIE5yv/_new 2015-10-12 10:02:04.0 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-faraday -Version:0.9.1 +Version:0.9.2 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} @@ -48,7 +48,7 @@ %install %gem_install \ - --doc-files="CHANGELOG.md LICENSE.md README.md" \ + --doc-files="LICENSE.md README.md" \ -f %gem_packages ++ faraday-0.9.1.gem -> faraday-0.9.2.gem ++ 4327 lines of diff (skipped)
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2015-02-11 16:46:37 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is rubygem-faraday Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2014-10-24 10:48:34.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2015-02-11 16:46:41.0 +0100 @@ -1,0 +2,7 @@ +Mon Feb 9 12:30:34 UTC 2015 - co...@suse.com + +- updated to version 0.9.1 + * Refactor Net:HTTP adapter so that with_net_http_connection can be overridden to allow pooled connections. (@Ben-M) + * Add configurable methods that bypass `retry_if` in the Retry request middleware. (@mike-bourgeous) + +--- Old: faraday-0.9.0.gem New: faraday-0.9.1.gem gem2rpm.yml Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.yTlvhO/_old 2015-02-11 16:46:42.0 +0100 +++ /var/tmp/diff_new_pack.yTlvhO/_new 2015-02-11 16:46:42.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-faraday # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,15 @@ # +# +# This file was generated with a gem2rpm.yml and not just plain gem2rpm. +# All sections marked as MANUAL, license headers, summaries and descriptions +# can be maintained in that file. Please consult this file before editing any +# of those fields +# + Name: rubygem-faraday -Version:0.9.0 +Version:0.9.1 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} @@ -27,6 +34,7 @@ BuildRequires: ruby-macros = 5 Url:https://github.com/lostisland/faraday Source: http://rubygems.org/gems/%{mod_full_name}.gem +Source1:gem2rpm.yml Summary:HTTP/REST API client library License:MIT Group: Development/Languages/Ruby ++ faraday-0.9.0.gem - faraday-0.9.1.gem ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md2014-01-16 06:07:48.0 +0100 +++ new/CHANGELOG.md2015-01-07 18:04:33.0 +0100 @@ -1,5 +1,10 @@ # Faraday Changelog +## v0.9.1 + +* Refactor Net:HTTP adapter so that with_net_http_connection can be overridden to allow pooled connections. (@Ben-M) +* Add configurable methods that bypass `retry_if` in the Retry request middleware. (@mike-bourgeous) + ## v0.9.0 * Add HTTPClient adapter (@hakanensari) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CONTRIBUTING.md new/CONTRIBUTING.md --- old/CONTRIBUTING.md 2014-01-16 06:07:48.0 +0100 +++ new/CONTRIBUTING.md 2015-01-07 18:04:33.0 +0100 @@ -28,9 +28,9 @@ 2. if they have features not present in included adapters. We are pushing towards a 1.0 release, when we will have to follow [Semantic -Versioning][semver]. If your patch includes changes to break compatiblitity, +Versioning][semver]. If your patch includes changes to break compatibility, note that so we can add it to the [Changelog][]. [semver]:http://semver.org/ -[changelog]: https://github.com/technoweenie/faraday/wiki/Changelog -[faraday_middleware]: https://github.com/pengwynn/faraday_middleware/wiki +[changelog]: https://github.com/lostisland/faraday/wiki/Changelog +[faraday_middleware]: https://github.com/lostisland/faraday_middleware/wiki diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2014-01-16 06:07:48.0 +0100 +++ new/Gemfile 2015-01-07 18:04:33.0 +0100 @@ -13,17 +13,13 @@ gem 'leftright', '= 0.9', :require = false gem 'mime-types', '~ 1.25', :platforms = [:jruby, :ruby_18] gem 'minitest', '= 5.0.5' - gem 'net-http-persistent', '= 2.5', :require = false + gem 'net-http-persistent', '= 2.9.4' gem 'patron', '= 0.4.2', :platforms = :ruby gem 'rack-test', '= 0.6', :require = 'rack/test' + gem 'rest-client', '~ 1.6.0', :platforms = [:jruby, :ruby_18] gem 'simplecov' gem 'sinatra', '~ 1.3' gem 'typhoeus', '~ 0.3.3', :platforms = :ruby end -platforms :rbx do - gem 'rubinius-coverage' - gem 'rubysl' -end - gemspec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2014-10-24 10:48:22 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is rubygem-faraday Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2014-10-14 07:11:46.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2014-10-24 10:48:34.0 +0200 @@ -1,0 +2,5 @@ +Thu Oct 23 09:40:00 UTC 2014 - tboer...@suse.com + +- Updated last pieces for new macros + +--- Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.zlckd2/_old 2014-10-24 10:48:35.0 +0200 +++ /var/tmp/diff_new_pack.zlckd2/_new 2014-10-24 10:48:35.0 +0200 @@ -21,8 +21,9 @@ Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} - BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{ruby} BuildRequires: ruby-macros = 5 Url:https://github.com/lostisland/faraday Source: http://rubygems.org/gems/%{mod_full_name}.gem @@ -33,14 +34,12 @@ %description HTTP/REST API client library. - %prep %build %install %gem_install \ - --symlink-binaries \ --doc-files=CHANGELOG.md LICENSE.md README.md \ -f -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2014-10-14 07:11:08 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is rubygem-faraday Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2014-01-23 15:55:55.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2014-10-14 07:11:46.0 +0200 @@ -1,0 +2,5 @@ +Sun Oct 12 10:56:10 UTC 2014 - adr...@suse.de + +- adapt to new rubygem packaging style + +--- Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.9fOkMF/_old 2014-10-14 07:11:47.0 +0200 +++ /var/tmp/diff_new_pack.9fOkMF/_new 2014-10-14 07:11:47.0 +0200 @@ -23,7 +23,7 @@ %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros = 1 +BuildRequires: ruby-macros = 5 Url:https://github.com/lostisland/faraday Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:HTTP/REST API client library @@ -33,51 +33,17 @@ %description HTTP/REST API client library. -%package doc -Summary:RDoc documentation for %{mod_name} -Group: Development/Languages/Ruby -Requires: %{name} = %{version} - -%description doc -Documentation generated at gem installation time. -Usually in RDoc and RI formats. - -%package testsuite -Summary:Test suite for %{mod_name} -Group: Development/Languages/Ruby -Requires: %{name} = %{version} - -%description testsuite -Test::Unit or RSpec files, useful for developers. %prep -#gem_unpack -#if you need patches, apply them here and replace the # with a % sign in the surrounding lines -#gem_build %build %install -%gem_install -f -mkdir -p %{buildroot}%{_docdir}/%{name} -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/CHANGELOG.md %buildroot/%{_docdir}/%{name}/CHANGELOG.md -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE.md %buildroot/%{_docdir}/%{name}/LICENSE.md -ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md - -%files -%defattr(-,root,root,-) -%{_docdir}/%{name} -%{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ -%exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test -%{_libdir}/ruby/gems/%{rb_ver}/specifications/%{mod_full_name}.gemspec - -%files doc -%defattr(-,root,root,-) -%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_full_name}/ - -%files testsuite -%defattr(-,root,root,-) -%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test +%gem_install \ + --symlink-binaries \ + --doc-files=CHANGELOG.md LICENSE.md README.md \ + -f + +%gem_packages %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2014-01-23 14:05:44 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is rubygem-faraday Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2013-10-06 14:58:31.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2014-01-23 15:55:55.0 +0100 @@ -1,0 +2,16 @@ +Mon Jan 20 09:29:44 UTC 2014 - co...@suse.com + +- updated to version 0.9.0 + * Add HTTPClient adapter (@hakanensari) + * Improve Retry handler (@mislav) + * Remove autoloading by default (@technoweenie) + * Improve internal docs (@technoweenie, @mislav) + * Respect user/password in http proxy string (@mislav) + * Adapter options are structs. Reinforces consistent options across adapters + (@technoweenie) + * Stop stripping trailing / off base URLs in a Faraday::Connection. (@technoweenie) + * Add a configurable URI parser. (@technoweenie) + * Remove need to manually autoload when using the authorization header helpers on `Faraday::Connection`. (@technoweenie) + * `Faraday::Adapter::Test` respects the `Faraday::RequestOptions#params_encoder` option. (@technoweenie) + +--- Old: faraday-0.8.8.gem New: faraday-0.9.0.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.aQ6oec/_old 2014-01-23 15:55:56.0 +0100 +++ /var/tmp/diff_new_pack.aQ6oec/_new 2014-01-23 15:55:56.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-faraday # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: rubygem-faraday -Version:0.8.8 +Version:0.9.0 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} @@ -60,6 +60,7 @@ %install %gem_install -f mkdir -p %{buildroot}%{_docdir}/%{name} +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/CHANGELOG.md %buildroot/%{_docdir}/%{name}/CHANGELOG.md ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE.md %buildroot/%{_docdir}/%{name}/LICENSE.md ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2013-10-06 14:58:30 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is rubygem-faraday Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2013-04-02 20:43:17.0 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2013-10-06 14:58:31.0 +0200 @@ -1,0 +2,5 @@ +Sun Jul 28 15:14:55 UTC 2013 - co...@suse.com + +- updated to version 0.8.8, no changelog + +--- Old: faraday-0.8.7.gem New: faraday-0.8.8.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.zcBo59/_old 2013-10-06 14:58:32.0 +0200 +++ /var/tmp/diff_new_pack.zcBo59/_new 2013-10-06 14:58:32.0 +0200 @@ -17,7 +17,7 @@ Name: rubygem-faraday -Version:0.8.7 +Version:0.8.8 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} @@ -59,9 +59,13 @@ %install %gem_install -f +mkdir -p %{buildroot}%{_docdir}/%{name} +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/LICENSE.md %buildroot/%{_docdir}/%{name}/LICENSE.md +ln -s %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/README.md %buildroot/%{_docdir}/%{name}/README.md %files %defattr(-,root,root,-) +%{_docdir}/%{name} %{_libdir}/ruby/gems/%{rb_ver}/cache/%{mod_full_name}.gem %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/ %exclude %{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_full_name}/test -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2013-04-02 20:43:16 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is rubygem-faraday, Maintainer is jmassaguer...@suse.com Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2013-03-12 15:02:46.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2013-04-02 20:43:17.0 +0200 @@ -1,0 +2,5 @@ +Mon Mar 25 09:18:54 UTC 2013 - co...@suse.com + +- updated to version 0.8.7 + +--- Old: faraday-0.8.6.gem New: faraday-0.8.7.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.NpmgDH/_old 2013-04-02 20:43:18.0 +0200 +++ /var/tmp/diff_new_pack.NpmgDH/_new 2013-04-02 20:43:18.0 +0200 @@ -17,7 +17,7 @@ Name: rubygem-faraday -Version:0.8.6 +Version:0.8.7 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} @@ -25,7 +25,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros = 1 Url:https://github.com/lostisland/faraday -Source: %{mod_full_name}.gem +Source: http://rubygems.org/gems/%{mod_full_name}.gem Summary:HTTP/REST API client library License:MIT Group: Development/Languages/Ruby -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit rubygem-faraday for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-faraday for openSUSE:Factory checked in at 2013-03-12 15:02:44 Comparing /work/SRC/openSUSE:Factory/rubygem-faraday (Old) and /work/SRC/openSUSE:Factory/.rubygem-faraday.new (New) Package is rubygem-faraday, Maintainer is jmassaguer...@suse.com Changes: --- /work/SRC/openSUSE:Factory/rubygem-faraday/rubygem-faraday.changes 2012-11-08 07:59:49.0 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-faraday.new/rubygem-faraday.changes 2013-03-12 15:02:46.0 +0100 @@ -1,0 +2,10 @@ +Sun Mar 3 19:31:49 UTC 2013 - co...@suse.com + +- updated to version 0.8.6 + +--- +Tue Feb 5 15:53:24 UTC 2013 - co...@suse.com + +- updated to version 0.8.5 + +--- Old: faraday-0.8.4.gem New: faraday-0.8.6.gem Other differences: -- ++ rubygem-faraday.spec ++ --- /var/tmp/diff_new_pack.pHRH42/_old 2013-03-12 15:02:51.0 +0100 +++ /var/tmp/diff_new_pack.pHRH42/_new 2013-03-12 15:02:51.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-faraday # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,14 +17,14 @@ Name: rubygem-faraday -Version:0.8.4 +Version:0.8.6 Release:0 %define mod_name faraday %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ruby-macros = 1 -Url:https://github.com/technoweenie/faraday +Url:https://github.com/lostisland/faraday Source: %{mod_full_name}.gem Summary:HTTP/REST API client library License:MIT -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org