>>> ruby-enum: Building community/ruby-enum 1.0.0-r0 (using abuild 3.13.0-r3) started Sun, 28 Apr 2024 05:39:43 +0000 >>> ruby-enum: Checking sanity of /home/buildozer/aports/community/ruby-enum/APKBUILD... >>> ruby-enum: Analyzing dependencies... >>> ruby-enum: Installing for build: build-base ruby ruby-i18n ruby-rspec (1/14) Installing libffi (3.4.6-r0) (2/14) Installing yaml (0.2.5-r2) (3/14) Installing ruby-libs (3.3.0-r0) (4/14) Installing libucontext (1.2-r3) (5/14) Installing ruby (3.3.0-r0) (6/14) Installing ruby-concurrent-ruby (1.2.3-r0) (7/14) Installing ruby-i18n (1.14.4-r0) (8/14) Installing ruby-rspec-support (3.13.1-r0) (9/14) Installing ruby-rspec-core (3.13.0-r0) (10/14) Installing ruby-diff-lcs (1.5.1-r0) (11/14) Installing ruby-rspec-expectations (3.13.0-r0) (12/14) Installing ruby-rspec-mocks (3.13.0-r0) (13/14) Installing ruby-rspec (3.13.0-r0) (14/14) Installing .makedepends-ruby-enum (20240428.053948) Executing busybox-1.36.1-r26.trigger OK: 397 MiB in 116 packages >>> ruby-enum: Cleaning up srcdir >>> ruby-enum: Cleaning up pkgdir >>> ruby-enum: Cleaning up tmpdir >>> ruby-enum: Fetching https://distfiles.alpinelinux.org/distfiles/v3.20/ruby-enum-1.0.0.tar.gz Connecting to distfiles.alpinelinux.org (172.105.82.32:443) wget: server returned error: HTTP/1.1 404 Not Found >>> ruby-enum: Fetching ruby-enum-1.0.0.tar.gz::https://github.com/dblock/ruby-enum/archive/v1.0.0.tar.gz Connecting to github.com (20.26.156.215:443) Connecting to codeload.github.com (20.26.156.216:443) saving to '/var/cache/distfiles/v3.20/ruby-enum-1.0.0.tar.gz.part' ruby-enum-1.0.0.tar. 100% |********************************| 15581 0:00:00 ETA '/var/cache/distfiles/v3.20/ruby-enum-1.0.0.tar.gz.part' saved >>> ruby-enum: Fetching https://distfiles.alpinelinux.org/distfiles/v3.20/ruby-enum-1.0.0.tar.gz >>> ruby-enum: Checking sha512sums... ruby-enum-1.0.0.tar.gz: OK skip-coverage.patch: OK >>> ruby-enum: Unpacking /var/cache/distfiles/v3.20/ruby-enum-1.0.0.tar.gz... >>> ruby-enum: skip-coverage.patch patching file spec/spec_helper.rb Successfully built RubyGem Name: ruby-enum Version: 1.0.0 File: ruby-enum-1.0.0.gem Ruby::Enum::Case .case when all cases are defined is expected to eq "red or green" when the value is nil is expected to be nil when the value is empty is expected to be nil when the value is the value of the enum is expected to eq "red or green" when the value is used inside the lambda is expected to eq "is red" when there are mutliple matches is expected to eq ["red or green", "red"] when not all cases are defined raises an error when not all cases are defined but :else is specified (default case) does not raise an error when a superfluous case is defined raises an error Ruby::Enum returns an enum value when the i18n gem is loaded raises UninitializedConstantError on an invalid constant when the i18n gem is not loaded raises UninitializedConstantError on an invalid constant #each iterates over constants #map maps constants #parse parses exact value is case-insensitive returns nil for a null value returns nil for an invalid value #key? returns true for valid keys accessed directly returns true for valid keys accessed via each_keys returns false for invalid keys #value returns string values for keys returns nil for an invalid key #value? returns true for valid values accessed directly returns true for valid values accessed via each_value returns false for invalid values #key returns enum instances for values returns nil for an invalid value #keys returns keys #values returns values #to_h returns a hash of key:values when a duplicate key is used when the i18n gem is loaded raises DuplicateKeyError when the i18n gem is not loaded raises DuplicateKeyError when a duplicate value is used when the i18n gem is loaded raises a DuplicateValueError when the i18n gem is not loaded raises a DuplicateValueError Given a class that has not defined any enums is expected to raise Ruby::Enum::Errors::UninitializedConstantError when a constant is redefined in a global namespace is expected to eq "red" Subclass behavior contains the enums defined in the parent class contains its own enums parent class should not have enums defined in child classes when defining a 2 level depth subclass contains its own enums and all the enums defined in the parent classes #values contains the values from all of the parent classes #values contains the values from the parent class default value equals the key non constant definitions behaves like an enum Ruby::Enum has a version Finished in 0.18067 seconds (files took 0.548 seconds to load) 46 examples, 0 failures >>> ruby-enum: Entering fakeroot... /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/CHANGELOG.md /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/CONTRIBUTING.md /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/Dangerfile /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/Gemfile /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/LICENSE.md /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/README.md /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/RELEASING.md /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/Rakefile /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/UPGRADING.md /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/benchmarks/case.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/lib/config/locales/en.yml /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/lib/ruby-enum.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/lib/ruby-enum/enum.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/lib/ruby-enum/enum/case.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/lib/ruby-enum/enum/i18n_mock.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/lib/ruby-enum/errors/base.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/lib/ruby-enum/errors/duplicate_key_error.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/lib/ruby-enum/errors/duplicate_value_error.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/lib/ruby-enum/errors/uninitialized_constant_error.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/lib/ruby-enum/version.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/lib/ruby_enum.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/ruby-enum.gemspec /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/spec/ruby-enum/enum/case_spec.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/spec/ruby-enum/enum_spec.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/spec/ruby-enum/version_spec.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/spec/spec_helper.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/spec_i18n/Gemfile /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/spec_i18n/Rakefile /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/spec_i18n/spec/i18n_spec.rb /home/buildozer/aports/community/ruby-enum/pkg/ruby-enum/usr/lib/ruby/gems/3.3.0/gems/ruby-enum-1.0.0/spec_i18n/spec/spec_helper.rb Successfully installed ruby-enum-1.0.0 1 gem installed >>> ruby-enum*: Running postcheck for ruby-enum >>> ruby-enum*: Preparing package ruby-enum... >>> ruby-enum*: Tracing dependencies... >>> ruby-enum*: Package size: 164.0 KB >>> ruby-enum*: Compressing data... >>> ruby-enum*: Create checksum... >>> ruby-enum*: Create ruby-enum-1.0.0-r0.apk >>> ruby-enum: Build complete at Sun, 28 Apr 2024 05:39:54 +0000 elapsed time 0h 0m 11s >>> ruby-enum: Cleaning up srcdir >>> ruby-enum: Cleaning up pkgdir >>> ruby-enum: Uninstalling dependencies... (1/14) Purging .makedepends-ruby-enum (20240428.053948) (2/14) Purging ruby-i18n (1.14.4-r0) (3/14) Purging ruby-concurrent-ruby (1.2.3-r0) (4/14) Purging ruby-rspec (3.13.0-r0) (5/14) Purging ruby-rspec-core (3.13.0-r0) (6/14) Purging ruby-rspec-expectations (3.13.0-r0) (7/14) Purging ruby-rspec-mocks (3.13.0-r0) (8/14) Purging ruby-diff-lcs (1.5.1-r0) (9/14) Purging ruby-rspec-support (3.13.1-r0) (10/14) Purging ruby (3.3.0-r0) (11/14) Purging libucontext (1.2-r3) (12/14) Purging ruby-libs (3.3.0-r0) (13/14) Purging yaml (0.2.5-r2) (14/14) Purging libffi (3.4.6-r0) Executing busybox-1.36.1-r26.trigger OK: 376 MiB in 102 packages >>> ruby-enum: Updating the community/x86 repository index... >>> ruby-enum: Signing the index...