mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
* Adjust const.rb and packages to use generated version constants. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update gem binaries Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update update scripts. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Libxml2 => 2.13.4 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust install.sh to handle new gem package versioning suffix. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update openimageio Signed-off-by: Satadru Pramanik <satadru@gmail.com> * update py3_ruff Signed-off-by: Satadru Pramanik <satadru@gmail.com> * add pip binaries Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Move activesupport gem behind requre_gem function. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust file path in ruby_pry. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * lint Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.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.14.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
|