Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@stevequinlan
Copy link
Contributor

No description provided.

require 'yaml'
require 'json'
require 'base64'
require 'stringio'
Copy link
Contributor Author

@stevequinlan stevequinlan Feb 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To recreate, install ruby 3.4 and make a call to the gitlab create_merge_request command. It results in:

/Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/lib/gitlab/cli_helpers.rb:143:in 'block (3 levels) in Gitlab::CLI::Helpers#record_table': uninitialized constant Gitlab::CLI::Helpers::StringIO (NameError)

            when StringIO
                 ^^^^^^^^
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/lib/gitlab/cli_helpers.rb:139:in 'Array#each'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/lib/gitlab/cli_helpers.rb:139:in 'block (2 levels) in Gitlab::CLI::Helpers#record_table'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/lib/gitlab/cli_helpers.rb:136:in 'Array#each'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/lib/gitlab/cli_helpers.rb:136:in 'Enumerable#each_with_index'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/lib/gitlab/cli_helpers.rb:136:in 'block in Gitlab::CLI::Helpers#record_table'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/terminal-table-4.0.0/lib/terminal-table/table.rb:355:in 'Terminal::Table#yield_or_eval'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/terminal-table-4.0.0/lib/terminal-table/table.rb:21:in 'Terminal::Table#initialize'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/terminal-table-4.0.0/lib/terminal-table/table_helper.rb:5:in 'Class#new'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/terminal-table-4.0.0/lib/terminal-table/table_helper.rb:5:in 'Terminal::Table::TableHelper#table'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/lib/gitlab/cli_helpers.rb:132:in 'Gitlab::CLI::Helpers#record_table'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/lib/gitlab/cli_helpers.rb:100:in 'Gitlab::CLI::Helpers#output_table'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/lib/gitlab/cli.rb:86:in 'Gitlab::CLI.render_output'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/lib/gitlab/cli.rb:76:in 'Gitlab::CLI.run'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/lib/gitlab/cli.rb:24:in 'Gitlab::CLI.start'
	from /Users/user/.rvm/gems/ruby-3.4.0/gems/gitlab-5.1.0/exe/gitlab:11:in '<top (required)>'
	from /Users/user/.rvm/gems/ruby-3.4.0/bin/gitlab:25:in 'Kernel#load'
	from /Users/user/.rvm/gems/ruby-3.4.0/bin/gitlab:25:in '<main>'
	from /Users/user/.rvm/gems/ruby-3.4.0/bin/ruby_executable_hooks:22:in 'Kernel#eval'
	from /Users/user/.rvm/gems/ruby-3.4.0/bin/ruby_executable_hooks:22:in '<main>'

No issue under ruby 3.3

@stevequinlan stevequinlan changed the title Adding Ruby 3.4 to CI ruby 3.4 - require 'stringio' for Gitlab::CLI::Helpers Feb 22, 2025
@citrusmoose
Copy link

We need this for ruby 3.4, please merge!

@NARKOZ NARKOZ merged commit 67b5c5c into NARKOZ:master Jun 12, 2025
5 checks passed
@NARKOZ
Copy link
Owner

NARKOZ commented Jun 12, 2025

Thank you ❤️

@NARKOZ
Copy link
Owner

NARKOZ commented Jun 28, 2025

Released in version 6.0.0 https://github.com/NARKOZ/gitlab/releases/tag/v6.0.0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants