Code Monkey home page Code Monkey logo

Comments (5)

bodrovis avatar bodrovis commented on June 2, 2024 1

Yeah, unfortunately it seems to be the case. I'm sorry for this! Here's a quick solution:

class Array
  def filter(&block)
    self.select(&block)
  end
end

This will serve as polyfill for the filter method (select should be available in 2.5).

from lokalise_rails.

bodrovis avatar bodrovis commented on June 2, 2024 1

I've published lokalise_manager v2.2.1 which is used by lokalise_rails v4 and fixed that issue bodrovis/lokalise_manager@9fc47fb Just to be on a safe side, you can manually include it into your Gemfile:

lokalise_rails, '~> 4'
lokalise_manager, '2.2.1'

from lokalise_rails.

bodrovis avatar bodrovis commented on June 2, 2024 1

Weeeell, yeah. Formally, this gem had Ruby 2.5 specified as a supported platform but actually I'm pretty sure it was a mistake from my side as it was never tested with that version, at least starting from v3. Ruby 2.5 was abandoned quite some time ago and I really don't have any plans to backport this gem for Ruby 2.5, to be honest. I'll see what can be done but can't make any promises :(

from lokalise_rails.

bodrovis avatar bodrovis commented on June 2, 2024 1

Perhaps, the simplest solution is to stay on v3 which is very similar to v4 (the main difference is that it doesn't use multithreading). In this case you should be good as it relies on Faraday 1.

from lokalise_rails.

SidorenkoD avatar SidorenkoD commented on June 2, 2024

Now there's a problem with faraday:

  1. lokalise_manager v2.2.1 requires ruby-lokalise-api v5.0
  2. ruby-lokalise-api v5.0 requires faraday v2.0
  3. faraday v2.0 requires Ruby 2.6

Please check all your dependecies chain on Ruby 2.5, so I'm not ought to report it again =)

from lokalise_rails.

Related Issues (7)

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.