Coder Social home page Coder Social logo

Comments (11)

metaskills avatar metaskills commented on August 20, 2024

Hmmm, the minutest_tu_shim does not have that shim :/ Lemme look into this.

from minitest-spec-rails.

metaskills avatar metaskills commented on August 20, 2024

I will be releasing 4.7.1 soon. Since it looks like you are on Ruby 1.8, you will need to heed this new section in the README. Basically add this to your Gemfile till you get off 1.8.

gem 'minitest-spec-rails-tu-shim'

from minitest-spec-rails.

tarcieri avatar tarcieri commented on August 20, 2024

Hmm, I still can't find a solution for using 'minitest-spec-rails-tu-shim' that works across Ruby versions correctly:

https://travis-ci.org/resque/resque-web/builds/5637234

The problem is I can't have Bundler selectively include gems on JRuby in 1.8 mode only.

Could you make the minitest-spec-rails-tu-shim gem installable on Ruby 1.9, but in "noop" mode?

from minitest-spec-rails.

metaskills avatar metaskills commented on August 20, 2024

I suppose. Are you working in a cross ruby version env that needs to transition? If so, that makes sense.

from minitest-spec-rails.

metaskills avatar metaskills commented on August 20, 2024

But... not really. The problem is, if that gem is installed and part of your bundle, you can not get to the proper standard lib/test. So no, this can not be done.

from minitest-spec-rails.

tarcieri avatar tarcieri commented on August 20, 2024

Well, more or less... this is for resque which is used by many people in a variety of different Ruby environments.

from minitest-spec-rails.

metaskills avatar metaskills commented on August 20, 2024

But this should be "dev" dependencies right?

from minitest-spec-rails.

tarcieri avatar tarcieri commented on August 20, 2024

Doesn't matter... they're managed by Bundler, and I cannot get Bundler to pick the correct dependencies. If I tell it :platform => :ruby_18 then it doesn't get loaded on JRuby, since there are not separate :jruby_18 and :jruby_19 platforms in Bundler

from minitest-spec-rails.

metaskills avatar metaskills commented on August 20, 2024

@tarcieri BTW, did you see how I made my soft dev dependency in the Gemfile?

https://github.com/metaskills/minitest-spec-rails/blob/master/Gemfile

This way when I build using appraisal and travis, it all just works.

from minitest-spec-rails.

tarcieri avatar tarcieri commented on August 20, 2024

This will produce varying versions of Gemfile.lock depending on what version of Ruby you bundle under, which is kind of a nonstarter for me.

The real solution would be for Bundler to separate the :jruby_18 and :jruby_19 platforms.

from minitest-spec-rails.

metaskills avatar metaskills commented on August 20, 2024

I empathize, this is a tricky spot. But that gem can not be part of a 1.9 bundle, once it is, the damage is done.

from minitest-spec-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.