<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>53415</bug_id>
          
          <creation_ts>2025-03-12 14:39:00 +0300</creation_ts>
          <short_desc>Ошибка при импорте гема weighted_average</short_desc>
          <delta_ts>2025-03-13 03:42:48 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gem-weighted-average</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Богдан Богуславский">boguslavskijbj</reporter>
          <assigned_to name="majioa@altlinux.org">majioa</assigned_to>
          <cc>majioa</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>260902</commentid>
    <comment_count>0</comment_count>
    <who name="Богдан Богуславский">boguslavskijbj</who>
    <bug_when>2025-03-12 14:39:00 +0300</bug_when>
    <thetext>Стенды:
ALT Workstation K 11.0 (Обновленный до Sisyphus)
ALT Workstation 11.0 (Обновленный до Sisyphus)
ALT Server 11.0 (Обновленный до Sisyphus)

Версия пакета:
gem-weighted-average-2.0.2.3-alt1.noarch

Шаги воспроизведения:
1. Создать файл test.rb:
$ cat &gt; test.rb &lt;&lt; EOF
require &apos;weighted_average&apos;
EOF
2. Запустить файл:
$ ruby test.rb

Ожидаемый результат: успешный импорт, вывод в терминале отсутствует

Реальный результат: ошибка в терминале после запуска:
/usr/lib/ruby/gemie/gems/activesupport-7.1.5.1/lib/active_support/core_ext/array/conversions.rb:108:in `&lt;class:Array&gt;&apos;: undefined method `deprecator&apos; for module ActiveSupport (NoMethodError)

  deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator
                                                          ^^^^^^^^^^^
Did you mean?  deprecate_constant
        from /usr/lib/ruby/gemie/gems/activesupport-7.1.5.1/lib/active_support/core_ext/array/conversions.rb:8:in `&lt;top (required)&gt;&apos;
        ...
        from &lt;internal:/usr/lib/ruby/rubygems/core_ext/kernel_require.rb&gt;:135:in `require&apos;
        from test.rb:1:in `&lt;main&gt;&apos;
&lt;internal:/usr/lib/ruby/rubygems/core_ext/kernel_require.rb&gt;:136:in `require&apos;: cannot load such file -- weighted_average (LoadError)
        from &lt;internal:/usr/lib/ruby/rubygems/core_ext/kernel_require.rb&gt;:136:in `require&apos;
        from test.rb:1:in `&lt;main&gt;&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260952</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-03-13 03:42:48 +0300</bug_when>
    <thetext>gem-weighted-average-2.0.2.4-alt1 -&gt; sisyphus:

 Wed Mar 12 2025 Pavel Skrylev &lt;majioa@altlinux&gt; 2.0.2.4-alt1
 - + explicit require for active_support for suppress undefined methods
   (ALT #53415)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>