Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mime-types dependancy clash #651

Closed
dotemacs opened this issue Dec 5, 2014 · 5 comments
Closed

mime-types dependancy clash #651

dotemacs opened this issue Dec 5, 2014 · 5 comments

Comments

@dotemacs
Copy link

dotemacs commented Dec 5, 2014

I'm using a gem that uses savon and savon uses wasabi 3.3.0 which uses old mime types. See

  In Gemfile:
    my-gem (>= 0) ruby depends on
     savon (= 2.8.0) ruby depends on
        wasabi (= 3.3.0) ruby depends on
          mime-types (< 2.0.0) ruby

    capybara (>= 0) ruby depends on
      mime-types (2.4.3)

The problem is that capybara requires a newer version of mime-types gem

@dotemacs
Copy link
Author

dotemacs commented Dec 6, 2014

Sorry, posted this late in the evening without giving more details.

If I try to upgrade wasabi to 3.3.1, like so (and that is the only change in the repo):

$ git diff
diff --git a/savon.gemspec b/savon.gemspec
index 15df787..40ed2ea 100644
--- a/savon.gemspec
+++ b/savon.gemspec
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|

   s.add_dependency "nori",     "~> 2.4"
   s.add_dependency "httpi",    "~> 2.3"
-  s.add_dependency "wasabi",   "3.3.0"
+  s.add_dependency "wasabi",   "3.3.1"
   s.add_dependency "akami",    "~> 1.2"
   s.add_dependency "gyoku",    "~> 1.2"
   s.add_dependency "uuid",     "~> 2.3.7"

Then I get the following failures:

Failures:

  1) rpc/encoded binding test should should work with WSDLs that have rpc/encoded SOAP binding
     Failure/Error: client.call(:get_quote)
     Savon::UnknownOperationError:
       Unable to find SOAP operation: :get_quote
       Operations provided by your service: []
     # ./lib/savon/operation.rb:22:in `ensure_exists!'
     # ./lib/savon/operation.rb:14:in `create'
     # ./lib/savon/client.rb:32:in `operation'
     # ./lib/savon/client.rb:36:in `call'
     # ./spec/integration/random_quote_spec.rb:14:in `block (2 levels) in <top (required)>'

  2) Savon knows the message tag for :vies
     Failure/Error: expect(message_tag).to eq(['urn:ec.europa.eu:taxud:vies:services:checkVat:types', 'checkVat'])

       expected: ["urn:ec.europa.eu:taxud:vies:services:checkVat:types", "checkVat"]
            got: ["urn:ec.europa.eu:taxud:vies:services:checkVat", "checkVatRequest"]

       (compared using ==)
     # ./spec/savon/features/message_tag_spec.rb:32:in `block (2 levels) in <top (required)>'

  3) Savon knows the message tag for :betfair
     Failure/Error: expect(message_tag).to eq(['http://www.betfair.com/publicapi/v5/BFExchangeService/', 'getBet'])

       expected: ["http://www.betfair.com/publicapi/v5/BFExchangeService/", "getBet"]
            got: ["http://www.betfair.com/publicapi/v5/BFExchangeService/", "getBetIn"]

       (compared using ==)
     # ./spec/savon/features/message_tag_spec.rb:27:in `block (2 levels) in <top (required)>'

  4) Options global: :no_message_tag includes the 'message tag' encapsulation step
     Failure/Error: expect(response.http.body.scan(/<tns:extLoginData>/).count).to eq(2)

       expected: 2
            got: 1

       (compared using ==)
     # ./spec/savon/options_spec.rb:73:in `block (3 levels) in <top (required)>'

@leyafo
Copy link

leyafo commented Jan 8, 2015

bundle update mime-types

@stan
Copy link

stan commented Jan 14, 2015

this doesn't fix anything, savon 2.8.0 requires wasabi 3.3.0 which forces mime-types to < 2.0.0

@anazar
Copy link

anazar commented Jan 20, 2015

+1 -- any update?

@ZenCocoon ZenCocoon mentioned this issue Jan 31, 2015
tjarratt added a commit that referenced this issue Mar 2, 2015
This should close #634, #656, #627, and #651
@tjarratt
Copy link
Contributor

Sorry everyone, this should have been fixed by the last release of wasabi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants