You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Charles OuGuo
f869cfa479
In Ruby repeated fields, each_index actually iterates over the index ( #11767 )
...
Currently we're aliasing `each_index` to `each_with_index`, incorrectly passing both the index and the value of a repeated field to the block.
What we want is to just pass the index. Luckily this is a method on Ruby arrays, so we just wrap the native Ruby array method.
Fixes https://github.com/protocolbuffers/protobuf/issues/7806
Closes #11767
COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/11767 from shaldengeki:shaldengeki-repeated-field-each-index-returns-actual-index 874916c21d
PiperOrigin-RevId: 593835025
11 months ago
..
BUILD.bazel
Ruby FFI implementation ( #13343 )
1 year ago
basic.rb
Fix TypeError when passing an instance of a subclass of String to a string field ( #13818 )
12 months ago
basic_proto2.rb
Add support for extensions in CRuby, JRuby, and FFI Ruby ( #14703 )
1 year ago
basic_test.proto
Add support for extensions in CRuby, JRuby, and FFI Ruby ( #14703 )
1 year ago
basic_test_proto2.proto
Add support for extensions in CRuby, JRuby, and FFI Ruby ( #14703 )
1 year ago
common_tests.rb
Updated Ruby min version to 2.7, and removed some compat code
1 year ago
encode_decode_test.rb
Bulk update to use `assert_*` methods wherever possible. ( #13156 )
1 year ago
gc_test.rb
Add ruby_upb_alloc using xrealloc/xfree so Ruby GC is aware of allocated memory for Arenas. ( #9586 )
3 years ago
generated_code.proto
Auto capitalize enums name in Ruby ( #10454 )
2 years ago
generated_code_proto2.proto
Auto capitalize enums name in Ruby ( #10454 )
2 years ago
generated_code_proto2_test.rb
Auxillary -> Auxiliary
5 years ago
generated_code_test.rb
Auxillary -> Auxiliary
5 years ago
implementation.rb
Ruby FFI implementation ( #13343 )
1 year ago
multi_level_nesting_test.proto
Make the new multi-level ruby tests fit the existing structure better and add them to the makefile
4 years ago
multi_level_nesting_test.rb
Fix jruby support to handle messages nested more than 1 level deep
4 years ago
object_cache_test.rb
Ruby FFI implementation ( #13343 )
1 year ago
repeated_field_test.rb
In Ruby repeated fields, each_index actually iterates over the index ( #11767 )
11 months ago
ruby_version.rb
Remove all autotools usage ( #10132 )
2 years ago
stress.rb
Bulk update to use `assert_*` methods wherever possible. ( #13156 )
1 year ago
test_import.proto
Auxillary -> Auxiliary
5 years ago
test_import_proto2.proto
Auxillary -> Auxiliary
5 years ago
test_ruby_package.proto
Auxillary -> Auxiliary
5 years ago
test_ruby_package_proto2.proto
Auxillary -> Auxiliary
5 years ago
type_errors.rb
Updated Ruby min version to 2.7, and removed some compat code
1 year ago
well_known_types_test.rb
Bulk update to use `assert_*` methods wherever possible. ( #13156 )
1 year ago