Package Details: ruby-rest-client 2.1.0-3

Git Clone URL: https://aur.archlinux.org/ruby-rest-client.git (read-only, click to copy)
Package Base: ruby-rest-client
Description: A simple HTTP and REST client for Ruby
Upstream URL: https://github.com/rest-client/rest-client
Licenses: MIT
Submitter: syntaxerrormmm
Maintainer: supermario
Last Packager: supermario
Votes: 23
Popularity: 0.000000
First Submitted: 2010-10-13 23:58 (UTC)
Last Updated: 2021-08-13 11:57 (UTC)

Latest Comments

micwoj92 commented on 2022-11-15 23:11 (UTC)

Check fails

/usr/bin/ruby -I/usr/lib/ruby/gems/3.0.0/gems/rspec-core-3.12.0/lib:/usr/lib/ruby/gems/3.0.0/gems/rspec-support-3.12.0/lib /usr/lib/ruby/gems/3.0.0/gems/rspec-core-3.12.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb

Randomized with seed 1663
...............FFFFFFF.................................F...............................................................................................F....F.................................................................................................................................................

Failures:

  1) RestClient::Resource Resource delegation DELETE
     Failure/Error:
       Request.execute(options.merge(
               :method => :delete,
               :url => url,
               :headers => headers,
               :log => log), &(block || @block))

       #<RestClient::Request (class)> received :execute with unexpected arguments
         expected: ({:headers=>{"X-Something"=>"1"}, :log=>nil, :method=>:delete, :password=>"mypass", :url=>"http://some/resource", :user=>"jane"}) (keyword arguments)
              got: ({:headers=>{"X-Something"=>"1"}, :log=>nil, :method=>:delete, :password=>"mypass", :url=>"http://some/resource", :user=>"jane"}) (options hash)
     # ./lib/restclient/resource.rb:99:in `delete'
     # ./spec/unit/resource_spec.rb:36:in `block (3 levels) in <top (required)>'

  2) RestClient::Resource Resource delegation HEAD
     Failure/Error:
       Request.execute(options.merge(
               :method => :head,
               :url => url,
               :headers => headers,
               :log => log), &(block || @block))

       #<RestClient::Request (class)> received :execute with unexpected arguments
         expected: ({:headers=>{"X-Something"=>"1"}, :log=>nil, :method=>:head, :password=>"mypass", :url=>"http://some/resource", :user=>"jane"}) (keyword arguments)
              got: ({:headers=>{"X-Something"=>"1"}, :log=>nil, :method=>:head, :password=>"mypass", :url=>"http://some/resource", :user=>"jane"}) (options hash)
     # ./lib/restclient/resource.rb:60:in `head'
     # ./spec/unit/resource_spec.rb:16:in `block (3 levels) in <top (required)>'

  3) RestClient::Resource Resource delegation PUT
     Failure/Error:
       Request.execute(options.merge(
               :method => :put,
               :url => url,
               :payload => payload,
               :headers => headers,
               :log => log), &(block || @block))

       #<RestClient::Request (class)> received :execute with unexpected arguments
         expected: ({:headers=>{"X-Something"=>"1", :content_type=>"image/jpg"}, :log=>nil, :method=>:put, :password=>"mypass", :payload=>"abc", :url=>"http://some/resource", :user=>"jane"}) (keyword arguments)
              got: ({:headers=>{"X-Something"=>"1", :content_type=>"image/jpg"}, :log=>nil, :method=>:put, :password=>"mypass", :payload=>"abc", :url=>"http://some/resource", :user=>"jane"}) (options hash)
     # ./lib/restclient/resource.rb:79:in `put'
     # ./spec/unit/resource_spec.rb:26:in `block (3 levels) in <top (required)>'

  4) RestClient::Resource Resource delegation GET
     Failure/Error:
       Request.execute(options.merge(
               :method => :get,
               :url => url,
               :headers => headers,
               :log => log), &(block || @block))

       #<RestClient::Request (class)> received :execute with unexpected arguments
         expected: ({:headers=>{"X-Something"=>"1"}, :log=>nil, :method=>:get, :password=>"mypass", :url=>"http://some/resource", :user=>"jane"}) (keyword arguments)
              got: ({:headers=>{"X-Something"=>"1"}, :log=>nil, :method=>:get, :password=>"mypass", :url=>"http://some/resource", :user=>"jane"}) (options hash)
     # ./lib/restclient/resource.rb:51:in `get'
     # ./spec/unit/resource_spec.rb:11:in `block (3 levels) in <top (required)>'

  5) RestClient::Resource Resource delegation PATCH
     Failure/Error:
       Request.execute(options.merge(
               :method => :patch,
               :url => url,
               :payload => payload,
               :headers => headers,
               :log => log), &(block || @block))

       #<RestClient::Request (class)> received :execute with unexpected arguments
         expected: ({:headers=>{"X-Something"=>"1", :content_type=>"image/jpg"}, :log=>nil, :method=>:patch, :password=>"mypass", :payload=>"abc", :url=>"http://some/resource", :user=>"jane"}) (keyword arguments)
              got: ({:headers=>{"X-Something"=>"1", :content_type=>"image/jpg"}, :log=>nil, :method=>:patch, :password=>"mypass", :payload=>"abc", :url=>"http://some/resource", :user=>"jane"}) (options hash)
     # ./lib/restclient/resource.rb:89:in `patch'
     # ./spec/unit/resource_spec.rb:31:in `block (3 levels) in <top (required)>'

  6) RestClient::Resource Resource delegation POST
     Failure/Error:
       Request.execute(options.merge(
               :method => :post,
               :url => url,
               :payload => payload,
               :headers => headers,
               :log => log), &(block || @block))

       #<RestClient::Request (class)> received :execute with unexpected arguments
         expected: ({:headers=>{"X-Something"=>"1", :content_type=>"image/jpg"}, :log=>nil, :method=>:post, :password=>"mypass", :payload=>"abc", :url=>"http://some/resource", :user=>"jane"}) (keyword arguments)
              got: ({:headers=>{"X-Something"=>"1", :content_type=>"image/jpg"}, :log=>nil, :method=>:post, :password=>"mypass", :payload=>"abc", :url=>"http://some/resource", :user=>"jane"}) (options hash)
     # ./lib/restclient/resource.rb:69:in `post'
     # ./spec/unit/resource_spec.rb:21:in `block (3 levels) in <top (required)>'

  7) RestClient::Resource Resource delegation overrides resource headers
     Failure/Error:
       Request.execute(options.merge(
               :method => :get,
               :url => url,
               :headers => headers,
               :log => log), &(block || @block))

       #<RestClient::Request (class)> received :execute with unexpected arguments
         expected: ({:headers=>{"X-Something"=>"2"}, :log=>nil, :method=>:get, :password=>"mypass", :url=>"http://some/resource", :user=>"jane"}) (keyword arguments)
              got: ({:headers=>{"X-Something"=>"2"}, :log=>nil, :method=>:get, :password=>"mypass", :url=>"http://some/resource", :user=>"jane"}) (options hash)
     # ./lib/restclient/resource.rb:51:in `get'
     # ./spec/unit/resource_spec.rb:41:in `block (3 levels) in <top (required)>'

  8) RestClient::Request class method execute wraps constructor
     Failure/Error: new(args).execute(& block)

       #<RestClient::Request (class)> received :new with unexpected arguments
         expected: ({1=>2}) (keyword arguments)
              got: ({1=>2}) (options hash)
     # ./lib/restclient/request.rb:63:in `execute'
     # ./spec/unit/request_spec.rb:510:in `block (2 levels) in <top (required)>'

  9) RestClient::Request ssl verification is successful with the correct ca_path
     Failure/Error: expect { request.execute }.to_not raise_error

       expected no Exception, got #<RestClient::SSLCertificateNotVerified: SSL_connect returned=1 errno=0 peeraddr=65.9.81.58:443 state=error: certificate verify failed (unable to get local issuer certificate)> with backtrace:
         # ./lib/restclient/request.rb:776:in `rescue in transmit'
         # ./lib/restclient/request.rb:651:in `transmit'
         # ./lib/restclient/request.rb:163:in `execute'
         # ./spec/integration/request_spec.rb:28:in `block (4 levels) in <top (required)>'
         # ./spec/integration/request_spec.rb:28:in `block (3 levels) in <top (required)>'
     # ./spec/integration/request_spec.rb:28:in `block (3 levels) in <top (required)>'

  10) RestClient::Request ssl verification is successful with the correct ca_file
      Failure/Error: expect { request.execute }.to_not raise_error

        expected no Exception, got #<RestClient::SSLCertificateNotVerified: SSL_connect returned=1 errno=0 peeraddr=18.65.35.185:443 state=error: certificate verify failed (unable to get local issuer certificate)> with backtrace:
          # ./lib/restclient/request.rb:776:in `rescue in transmit'
          # ./lib/restclient/request.rb:651:in `transmit'
          # ./lib/restclient/request.rb:163:in `execute'
          # ./spec/integration/request_spec.rb:19:in `block (4 levels) in <top (required)>'
          # ./spec/integration/request_spec.rb:19:in `block (3 levels) in <top (required)>'
      # ./spec/integration/request_spec.rb:19:in `block (3 levels) in <top (required)>'

Finished in 7.65 seconds (files took 0.49481 seconds to load)
302 examples, 10 failures

Failed examples:

rspec ./spec/unit/resource_spec.rb:34 # RestClient::Resource Resource delegation DELETE
rspec ./spec/unit/resource_spec.rb:14 # RestClient::Resource Resource delegation HEAD
rspec ./spec/unit/resource_spec.rb:24 # RestClient::Resource Resource delegation PUT
rspec ./spec/unit/resource_spec.rb:9 # RestClient::Resource Resource delegation GET
rspec ./spec/unit/resource_spec.rb:29 # RestClient::Resource Resource delegation PATCH
rspec ./spec/unit/resource_spec.rb:19 # RestClient::Resource Resource delegation POST
rspec ./spec/unit/resource_spec.rb:39 # RestClient::Resource Resource delegation overrides resource headers
rspec ./spec/unit/request_spec.rb:506 # RestClient::Request class method execute wraps constructor
rspec ./spec/integration/request_spec.rb:22 # RestClient::Request ssl verification is successful with the correct ca_path
rspec ./spec/integration/request_spec.rb:13 # RestClient::Request ssl verification is successful with the correct ca_file

Randomized with seed 1663

/usr/bin/ruby -I/usr/lib/ruby/gems/3.0.0/gems/rspec-core-3.12.0/lib:/usr/lib/ruby/gems/3.0.0/gems/rspec-support-3.12.0/lib /usr/lib/ruby/gems/3.0.0/gems/rspec-core-3.12.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb failed
==> ERROR: A failure occurred in check().
    Aborting...

phillid commented on 2020-06-28 08:31 (UTC)

Orphaning, I don't use this package anymore

aspirogrammer commented on 2014-12-19 16:12 (UTC)

can someone (with some Ruby background?) adopt this package?