You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to add the project it throws an error
NoMethodError: undefined method `delete_prefix' for "/projects/{{Project ID}}/":String
Full Trace
irb(main):016:0> @lokalise_client.project {{Project ID}}
NoMethodError: undefined method `delete_prefix' for "/projects/{{Project ID}}/":String
from /Users/macbook/.rbenv/versions/2.4.9/lib/ruby/gems/2.4.0/gems/ruby-lokalise-api-3.1.0/lib/ruby-lokalise-api/request.rb:55:in `prepare'
from /Users/macbook/.rbenv/versions/2.4.9/lib/ruby/gems/2.4.0/gems/ruby-lokalise-api-3.1.0/lib/ruby-lokalise-api/request.rb:13:in `get'
from /Users/macbook/.rbenv/versions/2.4.9/lib/ruby/gems/2.4.0/gems/ruby-lokalise-api-3.1.0/lib/ruby-lokalise-api/resources/base.rb:67:in `find'
from /Users/macbook/.rbenv/versions/2.4.9/lib/ruby/gems/2.4.0/gems/ruby-lokalise-api-3.1.0/lib/ruby-lokalise-api/client.rb:47:in `construct_request'
from /Users/macbook/.rbenv/versions/2.4.9/lib/ruby/gems/2.4.0/gems/ruby-lokalise-api-3.1.0/lib/ruby-lokalise-api/rest/projects.rb:20:in `project'
from (irb):16
from /Users/macbook/.rbenv/versions/2.4.9/lib/ruby/gems/2.4.0/gems/railties-4.2.11.3/lib/rails/commands/console.rb:110:in `start'
from /Users/macbook/.rbenv/versions/2.4.9/lib/ruby/gems/2.4.0/gems/railties-4.2.11.3/lib/rails/commands/console.rb:9:in `start'
from /Users/macbook/.rbenv/versions/2.4.9/lib/ruby/gems/2.4.0/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:68:in `console'
from /Users/macbook/.rbenv/versions/2.4.9/lib/ruby/gems/2.4.0/gems/railties-4.2.11.3/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/macbook/.rbenv/versions/2.4.9/lib/ruby/gems/2.4.0/gems/railties-4.2.11.3/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
FYI: {{Project ID}} is my Lokalize project ID
Your environment:
OS (MacOS BigSur 11.3)
Ruby version (2.4.9)
The text was updated successfully, but these errors were encountered:
Good day! This is because delete_prefix is not available in Ruby 2.4, and the latest version of this gem is not intended to work with Ruby < 2.5 as mentioned in the changelog (actually, even 2.5 has reached end of life and is no longer supported by the core team). The last version to support Ruby 2.4 should be ruby-lokalise-api v3.0.0.
Describe the bug
When trying to add the project it throws an error
NoMethodError: undefined method `delete_prefix' for "/projects/{{Project ID}}/":String
Full Trace
FYI: {{Project ID}} is my Lokalize project ID
Your environment:
The text was updated successfully, but these errors were encountered: