Link IRB back to StdLib.
This avoids issues running `$ bin/rails console --sandbox`, which otherwise breaks with error such as: ~~~ $ bin/rails console --sandbox Traceback (most recent call last): 12: from bin/rails:4:in `<main>' 11: from bin/rails:4:in `require' 10: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/commands.rb:18:in `<top (required)>' 9: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command.rb:44:in `invoke' 8: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command.rb:70:in `find_by_namespace' 7: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:79:in `lookup' 6: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:79:in `each' 5: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:80:in `block in lookup' 4: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:80:in `each' 3: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:84:in `block (2 levels) in lookup' 2: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/command/behavior.rb:84:in `require' 1: from /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/commands/console/console_command.rb:3:in `<top (required)>' /builddir/.gem/ruby/gems/railties-5.2.2.1/lib/rails/commands/console/console_command.rb:3:in `require': cannot load such file -- irb (LoadError) ~~~
This commit is contained in:
parent
f4c0ae4dea
commit
5aa32e278d
@ -21,7 +21,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%global release 116
|
%global release 117
|
||||||
%{!?release_string:%global release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}}
|
%{!?release_string:%global release_string %{?development_release:0.}%{release}%{?development_release:.%{development_release}}%{?dist}}
|
||||||
|
|
||||||
# The RubyGems library has to stay out of Ruby directory tree, since the
|
# The RubyGems library has to stay out of Ruby directory tree, since the
|
||||||
@ -649,6 +649,8 @@ mkdir -p %{buildroot}%{_exec_prefix}/lib{,64}/gems/%{name}
|
|||||||
mkdir -p %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib
|
mkdir -p %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib
|
||||||
mv %{buildroot}%{ruby_libdir}/irb* %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib
|
mv %{buildroot}%{ruby_libdir}/irb* %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib
|
||||||
mv %{buildroot}%{gem_dir}/specifications/default/irb-%{irb_version}.gemspec %{buildroot}%{gem_dir}/specifications
|
mv %{buildroot}%{gem_dir}/specifications/default/irb-%{irb_version}.gemspec %{buildroot}%{gem_dir}/specifications
|
||||||
|
ln -s %{gem_dir}/gems/irb-%{irb_version}/lib/irb.rb %{buildroot}%{ruby_libdir}/irb.rb
|
||||||
|
ln -s %{gem_dir}/gems/irb-%{irb_version}/lib/irb %{buildroot}%{ruby_libdir}/irb
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{gem_dir}/gems/rdoc-%{rdoc_version}/lib
|
mkdir -p %{buildroot}%{gem_dir}/gems/rdoc-%{rdoc_version}/lib
|
||||||
mv %{buildroot}%{ruby_libdir}/rdoc* %{buildroot}%{gem_dir}/gems/rdoc-%{rdoc_version}/lib
|
mv %{buildroot}%{ruby_libdir}/rdoc* %{buildroot}%{gem_dir}/gems/rdoc-%{rdoc_version}/lib
|
||||||
@ -1066,6 +1068,7 @@ make check TESTS="-v $DISABLE_TESTS" MSPECOPT="-fs $MSPECOPTS"
|
|||||||
|
|
||||||
%files -n rubygem-irb
|
%files -n rubygem-irb
|
||||||
%{_bindir}/irb
|
%{_bindir}/irb
|
||||||
|
%{ruby_libdir}/irb*
|
||||||
%{gem_dir}/gems/irb-%{irb_version}
|
%{gem_dir}/gems/irb-%{irb_version}
|
||||||
%{gem_dir}/specifications/irb-%{irb_version}.gemspec
|
%{gem_dir}/specifications/irb-%{irb_version}.gemspec
|
||||||
%{_mandir}/man1/irb.1*
|
%{_mandir}/man1/irb.1*
|
||||||
@ -1165,6 +1168,9 @@ make check TESTS="-v $DISABLE_TESTS" MSPECOPT="-fs $MSPECOPTS"
|
|||||||
%{_mandir}/man5/gemfile.5*
|
%{_mandir}/man5/gemfile.5*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 19 2019 Vít Ondruch <vondruch@redhat.com> - 2.6.2-117
|
||||||
|
- Link IRB back to StdLib.
|
||||||
|
|
||||||
* Thu Mar 14 2019 Vít Ondruch <vondruch@redhat.com> - 2.6.2-116
|
* Thu Mar 14 2019 Vít Ondruch <vondruch@redhat.com> - 2.6.2-116
|
||||||
- Upgrade to Ruby 2.6.2.
|
- Upgrade to Ruby 2.6.2.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user