mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Ruby => 3.4.0, and remove old kernel workarounds. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to ruby * Add built packages for linux/amd64 to ruby * Add built packages for linux/arm/v7 to ruby * dep adjustment for Ruby 3.4 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add gem adjustment for ruby 3.4. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update ruby gems deps. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust ruby_resolv_replace requirements. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update rubygems package name. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add repl_type_completor package. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update ruby => 3.4.1 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust build to prevent breakage. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust build workflow script. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add workaround for broken rubocop from ruby upgrade. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Handle case of gem compiler not being installed. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to ruby * Add built packages for linux/amd64 to ruby * Add built packages for linux/arm/v7 to ruby * Update lib/downloader.rb Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update packages/ruby_repl_type_completor.rb Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update tools/build_updated_packages.rb Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update packages/ruby_repl_type_completor.rb Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update tools/build_updated_packages.rb Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Add broken rake invocation workaround. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update Rubygems. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update gems and fix gem updater to account for rubygems.org/versions appending updates during the month to the bottom of the file. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Sync up logic in buildsystems/ruby.rb and tools/update_ruby_gem_packages.rb Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
33 lines
920 B
Ruby
33 lines
920 B
Ruby
require 'buildsystems/ruby'
|
|
|
|
class Ruby_pry < RUBY
|
|
description 'Pry is a runtime developer console and IRB alternative with powerful introspection capabilities.'
|
|
homepage 'https://github.com/pry/pry'
|
|
version "0.15.2-#{CREW_RUBY_VER}"
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url 'SKIP'
|
|
|
|
conflicts_ok
|
|
no_compile_needed
|
|
|
|
ruby_install_extras do
|
|
File.write File.join(HOME, '.pryrc'), <<~PRY_DEBUG_EOF
|
|
if defined?(PryByebug)
|
|
Pry.commands.alias_command 'c', 'continue'
|
|
Pry.commands.alias_command 's', 'step'
|
|
Pry.commands.alias_command 'n', 'next'
|
|
Pry.commands.alias_command 'f', 'finish'
|
|
end
|
|
# Hit Enter to repeat last command
|
|
Pry::Commands.command /^$/, "repeat last command" do
|
|
pry_instance.run_command Pry.history.to_a.last
|
|
end
|
|
PRY_DEBUG_EOF
|
|
end
|
|
|
|
def self.postremove
|
|
Package.agree_to_remove("#{HOME}/.pryrc")
|
|
end
|
|
end
|