>>> ruby-enum: Building community/ruby-enum 1.0.0-r0 (using abuild 3.14.1-r1) started Thu, 31 Oct 2024 06:48:35 +0000 >>> ruby-enum: Validating /home/buildozer/aports/community/ruby-enum/APKBUILD... >>> ruby-enum: Analyzing dependencies... >>> ruby-enum: Installing for build: build-base ruby ruby-i18n ruby-rspec (1/15) Installing ca-certificates (20240705-r0) (2/15) Installing libffi (3.4.6-r0) (3/15) Installing yaml (0.2.5-r2) (4/15) Installing ruby-libs (3.3.3-r2) (5/15) Installing libucontext (1.3.2-r0) (6/15) Installing ruby (3.3.3-r2) (7/15) Installing ruby-concurrent-ruby (1.2.3-r0) (8/15) Installing ruby-i18n (1.14.4-r0) (9/15) Installing ruby-rspec-support (3.13.1-r0) (10/15) Installing ruby-rspec-core (3.13.0-r0) (11/15) Installing ruby-diff-lcs (1.5.1-r0) (12/15) Installing ruby-rspec-expectations (3.13.0-r0) (13/15) Installing ruby-rspec-mocks (3.13.0-r0) (14/15) Installing ruby-rspec (3.13.0-r0) (15/15) Installing .makedepends-ruby-enum (20241031.064849) Executing busybox-1.37.0-r3.trigger Executing ca-certificates-20240705-r0.trigger OK: 286 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.21/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 (140.82.121.3:443) Connecting to codeload.github.com (140.82.121.10:443) saving to '/var/cache/distfiles/v3.21/ruby-enum-1.0.0.tar.gz.part' ruby-enum-1.0.0.tar. 100% |********************************| 15581 0:00:00 ETA '/var/cache/distfiles/v3.21/ruby-enum-1.0.0.tar.gz.part' saved >>> ruby-enum: Fetching https://distfiles.alpinelinux.org/distfiles/v3.21/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.21/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.05283 seconds (files took 0.13888 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 >>> ruby-enum*: Package size: 16.5 KB >>> ruby-enum*: Compressing data... >>> ruby-enum*: Create checksum... >>> ruby-enum*: Create ruby-enum-1.0.0-r0.apk >>> ruby-enum: Build complete at Thu, 31 Oct 2024 06:48:51 +0000 elapsed time 0h 0m 16s >>> ruby-enum: Cleaning up srcdir >>> ruby-enum: Cleaning up pkgdir >>> ruby-enum: Uninstalling dependencies... (1/15) Purging .makedepends-ruby-enum (20241031.064849) (2/15) Purging ruby-i18n (1.14.4-r0) (3/15) Purging ruby-concurrent-ruby (1.2.3-r0) (4/15) Purging ruby-rspec (3.13.0-r0) (5/15) Purging ruby-rspec-core (3.13.0-r0) (6/15) Purging ruby-rspec-expectations (3.13.0-r0) (7/15) Purging ruby-rspec-mocks (3.13.0-r0) (8/15) Purging ruby-diff-lcs (1.5.1-r0) (9/15) Purging ruby-rspec-support (3.13.1-r0) (10/15) Purging ruby (3.3.3-r2) (11/15) Purging ca-certificates (20240705-r0) Executing ca-certificates-20240705-r0.post-deinstall (12/15) Purging libucontext (1.3.2-r0) (13/15) Purging ruby-libs (3.3.3-r2) (14/15) Purging yaml (0.2.5-r2) (15/15) Purging libffi (3.4.6-r0) Executing busybox-1.37.0-r3.trigger OK: 271 MiB in 101 packages >>> ruby-enum: Updating the community/armv7 repository index... >>> ruby-enum: Signing the index...