code_ownership 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Cargo.lock +8 -14
- data/ext/cargo-vendor/magnus-0.8.2/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/magnus-0.8.2/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/CHANGELOG.md +66 -1
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/Cargo.lock +243 -9
- data/ext/cargo-vendor/magnus-0.8.2/Cargo.toml +277 -0
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/Cargo.toml.orig +11 -6
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/README.md +75 -23
- data/ext/cargo-vendor/magnus-0.8.2/build.rs +15 -0
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/complete_object/test/temperature_test.rb +4 -4
- data/ext/cargo-vendor/magnus-0.8.2/examples/inheritance.rs +66 -0
- data/ext/cargo-vendor/magnus-0.8.2/examples/mut_point.rs +116 -0
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/api.rs +4 -3
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/class.rs +9 -7
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/encoding.rs +5 -5
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/error.rs +12 -3
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/fiber.rs +5 -5
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/gc.rs +3 -3
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/integer.rs +134 -0
- data/ext/cargo-vendor/magnus-0.8.2/src/io.rs +230 -0
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/lib.rs +53 -54
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/macros.rs +2 -2
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/method.rs +14 -100
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/module.rs +1 -1
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/mutex.rs +1 -1
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_array.rs +2 -2
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_bignum.rs +100 -3
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_hash.rs +63 -1
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_string.rs +31 -231
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_typed_data.rs +6 -9
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/rb_sys.rs +4 -4
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/scan_args.rs +3 -3
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/thread.rs +16 -10
- data/ext/cargo-vendor/magnus-0.8.2/src/time.rs +462 -0
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/try_convert.rs +64 -2
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/typed_data.rs +113 -11
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/value/flonum.rs +1 -1
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/value.rs +83 -6
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/test +1 -1
- data/ext/cargo-vendor/magnus-0.8.2/tests/hash.rs +44 -0
- data/ext/cargo-vendor/magnus-0.8.2/tests/io.rs +62 -0
- data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/return_iter.rs +1 -1
- data/ext/cargo-vendor/magnus-0.8.2/tests/string.rs +23 -0
- data/ext/cargo-vendor/magnus-0.8.2/tests/time.rs +71 -0
- data/ext/cargo-vendor/magnus-macros-0.8.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/magnus-macros-0.8.0/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/magnus-macros-0.8.0/Cargo.lock +47 -0
- data/ext/cargo-vendor/{magnus-macros-0.6.0 → magnus-macros-0.8.0}/Cargo.toml +10 -1
- data/ext/cargo-vendor/{magnus-macros-0.6.0 → magnus-macros-0.8.0}/Cargo.toml.orig +1 -1
- data/ext/cargo-vendor/magnus-macros-0.8.0/src/lib.rs +545 -0
- data/ext/cargo-vendor/{magnus-macros-0.6.0 → magnus-macros-0.8.0}/src/typed_data.rs +3 -3
- data/ext/cargo-vendor/{magnus-macros-0.6.0 → magnus-macros-0.8.0}/src/util.rs +1 -1
- data/ext/cargo-vendor/serde_magnus-0.10.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/serde_magnus-0.10.0/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/Cargo.lock +77 -75
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/Cargo.toml +3 -3
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/Cargo.toml.orig +7 -4
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/README.md +8 -5
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/de/array_deserializer.rs +12 -8
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/de/array_enumerator.rs +12 -7
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/de/deserializer.rs +21 -18
- data/ext/cargo-vendor/serde_magnus-0.10.0/src/de/enum_deserializer.rs +35 -0
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/de/hash_deserializer.rs +18 -11
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/de/mod.rs +76 -76
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/de/variant_deserializer.rs +10 -9
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/error.rs +10 -4
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/lib.rs +6 -5
- data/ext/cargo-vendor/serde_magnus-0.10.0/src/ser/enums.rs +11 -0
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/ser/map_serializer.rs +11 -12
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/ser/mod.rs +53 -50
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/ser/seq_serializer.rs +11 -10
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/src/ser/serializer.rs +50 -34
- data/ext/cargo-vendor/serde_magnus-0.10.0/src/ser/struct_serializer.rs +40 -0
- data/ext/cargo-vendor/serde_magnus-0.10.0/src/ser/struct_variant_serializer.rs +45 -0
- data/ext/cargo-vendor/serde_magnus-0.10.0/src/ser/tuple_variant_serializer.rs +38 -0
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/deserializing_arrays.rs +3 -3
- data/ext/cargo-vendor/serde_magnus-0.10.0/tests/deserializing_booleans.rs +15 -0
- data/ext/cargo-vendor/serde_magnus-0.10.0/tests/deserializing_enums.rs +39 -0
- data/ext/cargo-vendor/serde_magnus-0.10.0/tests/deserializing_floats.rs +12 -0
- data/ext/cargo-vendor/serde_magnus-0.10.0/tests/deserializing_integers.rs +18 -0
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/deserializing_maps.rs +3 -2
- data/ext/cargo-vendor/serde_magnus-0.10.0/tests/deserializing_options.rs +15 -0
- data/ext/cargo-vendor/serde_magnus-0.10.0/tests/deserializing_results.rs +17 -0
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/deserializing_strings.rs +7 -7
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/deserializing_structs.rs +9 -9
- data/ext/cargo-vendor/serde_magnus-0.10.0/tests/deserializing_tuples.rs +27 -0
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/deserializing_vecs.rs +3 -3
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/serializing_arrays.rs +3 -3
- data/ext/cargo-vendor/serde_magnus-0.10.0/tests/serializing_booleans.rs +15 -0
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/serializing_enums.rs +9 -7
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/serializing_floats.rs +2 -2
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/serializing_integers.rs +4 -4
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/serializing_maps.rs +3 -2
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/serializing_options.rs +3 -3
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/serializing_results.rs +5 -4
- data/ext/cargo-vendor/serde_magnus-0.10.0/tests/serializing_strings.rs +30 -0
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/serializing_structs.rs +15 -7
- data/ext/cargo-vendor/serde_magnus-0.10.0/tests/serializing_tuples.rs +35 -0
- data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/tests/serializing_vecs.rs +3 -3
- data/ext/code_ownership/Cargo.toml +2 -2
- data/ext/code_ownership/extconf.rb +2 -1
- data/ext/code_ownership/src/lib.rs +16 -16
- data/lib/code_ownership/cli.rb +1 -0
- data/lib/code_ownership/private/file_path_finder.rb +3 -7
- data/lib/code_ownership/private/file_path_team_cache.rb +5 -9
- data/lib/code_ownership/private/for_file_output_builder.rb +0 -1
- data/lib/code_ownership/private/team_finder.rb +8 -14
- data/lib/code_ownership/version.rb +2 -2
- data/lib/code_ownership.rb +12 -17
- metadata +182 -186
- data/ext/cargo-vendor/magnus-0.7.1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/magnus-0.7.1/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/magnus-0.7.1/Cargo.toml +0 -95
- data/ext/cargo-vendor/magnus-0.7.1/build.rs +0 -5
- data/ext/cargo-vendor/magnus-0.7.1/examples/mut_point.rs +0 -60
- data/ext/cargo-vendor/magnus-0.7.1/src/time.rs +0 -190
- data/ext/cargo-vendor/magnus-0.7.1/tests/hash.rs +0 -25
- data/ext/cargo-vendor/magnus-0.7.1/tests/string.rs +0 -13
- data/ext/cargo-vendor/magnus-macros-0.6.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/magnus-macros-0.6.0/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/magnus-macros-0.6.0/src/lib.rs +0 -401
- data/ext/cargo-vendor/rb-sys-env-0.1.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/rb-sys-env-0.1.2/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/rb-sys-env-0.1.2/Cargo.toml +0 -25
- data/ext/cargo-vendor/rb-sys-env-0.1.2/Cargo.toml.orig +0 -14
- data/ext/cargo-vendor/rb-sys-env-0.1.2/LICENSE-APACHE +0 -190
- data/ext/cargo-vendor/rb-sys-env-0.1.2/LICENSE-MIT +0 -21
- data/ext/cargo-vendor/rb-sys-env-0.1.2/readme.md +0 -119
- data/ext/cargo-vendor/rb-sys-env-0.1.2/src/defines.rs +0 -37
- data/ext/cargo-vendor/rb-sys-env-0.1.2/src/lib.rs +0 -180
- data/ext/cargo-vendor/rb-sys-env-0.1.2/src/rb_env.rs +0 -110
- data/ext/cargo-vendor/rb-sys-env-0.1.2/src/ruby_version.rs +0 -163
- data/ext/cargo-vendor/rb-sys-env-0.1.2/src/utils.rs +0 -6
- data/ext/cargo-vendor/serde_magnus-0.9.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/serde_magnus-0.9.0/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/serde_magnus-0.9.0/src/de/enum_deserializer.rs +0 -30
- data/ext/cargo-vendor/serde_magnus-0.9.0/src/ser/enums.rs +0 -11
- data/ext/cargo-vendor/serde_magnus-0.9.0/src/ser/struct_serializer.rs +0 -36
- data/ext/cargo-vendor/serde_magnus-0.9.0/src/ser/struct_variant_serializer.rs +0 -37
- data/ext/cargo-vendor/serde_magnus-0.9.0/src/ser/tuple_variant_serializer.rs +0 -33
- data/ext/cargo-vendor/serde_magnus-0.9.0/tests/deserializing_booleans.rs +0 -18
- data/ext/cargo-vendor/serde_magnus-0.9.0/tests/deserializing_enums.rs +0 -39
- data/ext/cargo-vendor/serde_magnus-0.9.0/tests/deserializing_floats.rs +0 -12
- data/ext/cargo-vendor/serde_magnus-0.9.0/tests/deserializing_integers.rs +0 -18
- data/ext/cargo-vendor/serde_magnus-0.9.0/tests/deserializing_options.rs +0 -15
- data/ext/cargo-vendor/serde_magnus-0.9.0/tests/deserializing_results.rs +0 -17
- data/ext/cargo-vendor/serde_magnus-0.9.0/tests/deserializing_tuples.rs +0 -31
- data/ext/cargo-vendor/serde_magnus-0.9.0/tests/serializing_booleans.rs +0 -15
- data/ext/cargo-vendor/serde_magnus-0.9.0/tests/serializing_strings.rs +0 -30
- data/ext/cargo-vendor/serde_magnus-0.9.0/tests/serializing_tuples.rs +0 -27
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/.cargo/config.toml +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/Gemfile +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/LICENSE +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/complete_object/Rakefile +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/complete_object/lib/temperature.rb +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/custom_exception_ruby/Rakefile +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/custom_exception_ruby/lib/ahriman/error.rb +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/custom_exception_ruby/lib/ahriman.rb +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/custom_exception_ruby/test/error_test.rb +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/custom_exception_rust/Rakefile +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/custom_exception_rust/lib/ahriman.rb +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/custom_exception_rust/test/error_test.rb +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/fibonacci.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/hello_world.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/point.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/rust_blank/Rakefile +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/rust_blank/lib/rust_blank.rb +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/rust_blank/test/bench.rb +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/rust_blank/test/blank_test.rb +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/block.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/embed.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/enumerator.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/exception.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/float.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/into_value.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/numeric.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/object.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/process.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_complex.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_file.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_float.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_match.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_object.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_rational.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_regexp.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/r_struct.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/range.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/src/symbol.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/allocate_before_init.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/array_slice.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/block_call.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/bytes.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/call_proc.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/classname.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/clone.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/codepoints.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/debug_exception.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/encoding_capable.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/enumerator.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/enumeratorize.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/float_convert_from_value.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/float_convert_to_value.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/fmt.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/freeze.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/integer_convert_to_value.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/integer_traits.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/ivar.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/lazy_id.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/make_proc.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/proc_new.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/range.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/return_custom_error.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/scan_args.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/str.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/struct.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/symbol.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/try_convert_array.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/tuple_to_array.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/typed_data.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/typed_data_obj.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/typed_data_subclass.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/typed_data_subclass_from_ruby.rs +0 -0
- /data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/tests/yield.rs +0 -0
- /data/ext/cargo-vendor/{magnus-macros-0.6.0 → magnus-macros-0.8.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{magnus-macros-0.6.0 → magnus-macros-0.8.0}/src/init.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.9.0 → serde_magnus-0.10.0}/LICENSE +0 -0
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
use super::Serializer;
|
|
2
|
-
use crate::error::Error;
|
|
3
|
-
use magnus::{IntoValue, RHash, Symbol, Value};
|
|
4
|
-
use serde::{ser::SerializeStruct, Serialize};
|
|
5
|
-
|
|
6
|
-
pub struct StructSerializer {
|
|
7
|
-
hash: RHash,
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
impl StructSerializer {
|
|
11
|
-
pub fn new(hash: RHash) -> StructSerializer {
|
|
12
|
-
StructSerializer { hash }
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
impl SerializeStruct for StructSerializer {
|
|
17
|
-
type Ok = Value;
|
|
18
|
-
type Error = Error;
|
|
19
|
-
|
|
20
|
-
fn serialize_field<Value>(
|
|
21
|
-
&mut self,
|
|
22
|
-
name: &'static str,
|
|
23
|
-
value: &Value,
|
|
24
|
-
) -> Result<(), Self::Error>
|
|
25
|
-
where
|
|
26
|
-
Value: Serialize + ?Sized,
|
|
27
|
-
{
|
|
28
|
-
self.hash
|
|
29
|
-
.aset(Symbol::new(name), value.serialize(Serializer)?)
|
|
30
|
-
.map_err(Into::into)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
fn end(self) -> Result<Self::Ok, Self::Error> {
|
|
34
|
-
Ok(self.hash.into_value())
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
use super::{enums::nest, Serializer};
|
|
2
|
-
use crate::error::Error;
|
|
3
|
-
use magnus::{RHash, Symbol, Value};
|
|
4
|
-
use serde::{ser::SerializeStructVariant, Serialize};
|
|
5
|
-
|
|
6
|
-
pub struct StructVariantSerializer {
|
|
7
|
-
variant: &'static str,
|
|
8
|
-
hash: RHash,
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
impl StructVariantSerializer {
|
|
12
|
-
pub fn new(variant: &'static str, hash: RHash) -> StructVariantSerializer {
|
|
13
|
-
StructVariantSerializer { variant, hash }
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
impl SerializeStructVariant for StructVariantSerializer {
|
|
18
|
-
type Ok = Value;
|
|
19
|
-
type Error = Error;
|
|
20
|
-
|
|
21
|
-
fn serialize_field<Value>(
|
|
22
|
-
&mut self,
|
|
23
|
-
name: &'static str,
|
|
24
|
-
value: &Value,
|
|
25
|
-
) -> Result<(), Self::Error>
|
|
26
|
-
where
|
|
27
|
-
Value: Serialize + ?Sized,
|
|
28
|
-
{
|
|
29
|
-
self.hash
|
|
30
|
-
.aset(Symbol::new(name), value.serialize(Serializer)?)
|
|
31
|
-
.map_err(Into::into)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
fn end(self) -> Result<Self::Ok, Self::Error> {
|
|
35
|
-
nest(self.variant, self.hash)
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
use super::{enums::nest, Serializer};
|
|
2
|
-
use crate::error::Error;
|
|
3
|
-
use magnus::{RArray, Value};
|
|
4
|
-
use serde::{ser::SerializeTupleVariant, Serialize};
|
|
5
|
-
|
|
6
|
-
pub struct TupleVariantSerializer {
|
|
7
|
-
variant: &'static str,
|
|
8
|
-
array: RArray,
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
impl TupleVariantSerializer {
|
|
12
|
-
pub fn new(variant: &'static str, array: RArray) -> TupleVariantSerializer {
|
|
13
|
-
TupleVariantSerializer { variant, array }
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
impl SerializeTupleVariant for TupleVariantSerializer {
|
|
18
|
-
type Ok = Value;
|
|
19
|
-
type Error = Error;
|
|
20
|
-
|
|
21
|
-
fn serialize_field<Field>(&mut self, field: &Field) -> Result<(), Self::Error>
|
|
22
|
-
where
|
|
23
|
-
Field: Serialize + ?Sized,
|
|
24
|
-
{
|
|
25
|
-
self.array
|
|
26
|
-
.push(field.serialize(Serializer)?)
|
|
27
|
-
.map_err(Into::into)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
fn end(self) -> Result<Self::Ok, self::Error> {
|
|
31
|
-
nest(self.variant, self.array)
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
use magnus::{
|
|
2
|
-
value::{qfalse, qtrue, ReprValue},
|
|
3
|
-
Error,
|
|
4
|
-
};
|
|
5
|
-
use serde_magnus::deserialize;
|
|
6
|
-
|
|
7
|
-
#[test]
|
|
8
|
-
fn test_deserializing_booleans() -> Result<(), Error> {
|
|
9
|
-
let _cleanup = unsafe { magnus::embed::init() };
|
|
10
|
-
|
|
11
|
-
let output: bool = deserialize(qtrue().as_value())?;
|
|
12
|
-
assert_eq!(true, output);
|
|
13
|
-
|
|
14
|
-
let output: bool = deserialize(qfalse().as_value())?;
|
|
15
|
-
assert_eq!(false, output);
|
|
16
|
-
|
|
17
|
-
Ok(())
|
|
18
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
use magnus::{eval, Error, RHash, RString};
|
|
2
|
-
use serde::Deserialize;
|
|
3
|
-
use serde_magnus::deserialize;
|
|
4
|
-
|
|
5
|
-
#[derive(Deserialize, PartialEq, Debug)]
|
|
6
|
-
enum A {
|
|
7
|
-
A,
|
|
8
|
-
B(u64),
|
|
9
|
-
C(u64, bool, String),
|
|
10
|
-
D { message: String },
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
#[test]
|
|
14
|
-
fn test_deserializing_enums() -> Result<(), Error> {
|
|
15
|
-
let _cleanup = unsafe { magnus::embed::init() };
|
|
16
|
-
|
|
17
|
-
let input = RString::new("A");
|
|
18
|
-
let output: A = deserialize(input)?;
|
|
19
|
-
assert_eq!(A::A, output);
|
|
20
|
-
|
|
21
|
-
let input: RHash = eval!("{ 'B' => 123 }")?;
|
|
22
|
-
let output: A = deserialize(input)?;
|
|
23
|
-
assert_eq!(A::B(123), output);
|
|
24
|
-
|
|
25
|
-
let input: RHash = eval!("{ 'C' => [1234, true, 'Hello, world!'] }")?;
|
|
26
|
-
let output: A = deserialize(input).unwrap();
|
|
27
|
-
assert_eq!(A::C(1234, true, "Hello, world!".into()), output);
|
|
28
|
-
|
|
29
|
-
let input: RHash = eval!("{ 'D' => { message: 'Hello, world!' } }")?;
|
|
30
|
-
let output: A = deserialize(input)?;
|
|
31
|
-
assert_eq!(
|
|
32
|
-
A::D {
|
|
33
|
-
message: "Hello, world!".into()
|
|
34
|
-
},
|
|
35
|
-
output
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
Ok(())
|
|
39
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
use magnus::{Error, Float};
|
|
2
|
-
use serde_magnus::deserialize;
|
|
3
|
-
|
|
4
|
-
#[test]
|
|
5
|
-
fn test_deserializing_floats() -> Result<(), Error> {
|
|
6
|
-
let _cleanup = unsafe { magnus::embed::init() };
|
|
7
|
-
|
|
8
|
-
let output: f64 = deserialize(Float::from_f64(1.23))?;
|
|
9
|
-
assert_eq!(1.23, output);
|
|
10
|
-
|
|
11
|
-
Ok(())
|
|
12
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
use magnus::{Error, Integer};
|
|
2
|
-
use serde_magnus::deserialize;
|
|
3
|
-
|
|
4
|
-
#[test]
|
|
5
|
-
fn test_deserializing_integers() -> Result<(), Error> {
|
|
6
|
-
let _cleanup = unsafe { magnus::embed::init() };
|
|
7
|
-
|
|
8
|
-
let output: i64 = deserialize(Integer::from_i64(123))?;
|
|
9
|
-
assert_eq!(123, output);
|
|
10
|
-
|
|
11
|
-
let output: i64 = deserialize(Integer::from_i64(-123))?;
|
|
12
|
-
assert_eq!(-123, output);
|
|
13
|
-
|
|
14
|
-
let output: u64 = deserialize(Integer::from_u64(123))?;
|
|
15
|
-
assert_eq!(123, output);
|
|
16
|
-
|
|
17
|
-
Ok(())
|
|
18
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
use magnus::{value::qnil, Error, Integer, IntoValue};
|
|
2
|
-
use serde_magnus::deserialize;
|
|
3
|
-
|
|
4
|
-
#[test]
|
|
5
|
-
fn test_deserializing_options() -> Result<(), Error> {
|
|
6
|
-
let _cleanup = unsafe { magnus::embed::init() };
|
|
7
|
-
|
|
8
|
-
let output: Option<u64> = deserialize(qnil().into_value())?;
|
|
9
|
-
assert_eq!(None, output);
|
|
10
|
-
|
|
11
|
-
let output: Option<u64> = deserialize(Integer::from_u64(123))?;
|
|
12
|
-
assert_eq!(Some(123), output);
|
|
13
|
-
|
|
14
|
-
Ok(())
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
use magnus::{eval, Error, RHash};
|
|
2
|
-
use serde_magnus::deserialize;
|
|
3
|
-
|
|
4
|
-
#[test]
|
|
5
|
-
fn test_deserializing_results() -> Result<(), Error> {
|
|
6
|
-
let _cleanup = unsafe { magnus::embed::init() };
|
|
7
|
-
|
|
8
|
-
let input: RHash = eval!("{ 'Ok' => 1234 }")?;
|
|
9
|
-
let output: Result<u64, String> = deserialize(input)?;
|
|
10
|
-
assert_eq!(Ok(1234), output);
|
|
11
|
-
|
|
12
|
-
let input: RHash = eval!("{ 'Err' => 'something went wrong' }")?;
|
|
13
|
-
let output: Result<u64, String> = deserialize(input)?;
|
|
14
|
-
assert_eq!(Err("something went wrong".into()), output);
|
|
15
|
-
|
|
16
|
-
Ok(())
|
|
17
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
use magnus::{
|
|
2
|
-
eval,
|
|
3
|
-
value::{qnil, ReprValue},
|
|
4
|
-
Error, RArray,
|
|
5
|
-
};
|
|
6
|
-
use serde_magnus::deserialize;
|
|
7
|
-
|
|
8
|
-
#[test]
|
|
9
|
-
fn test_deserializing_tuples() -> Result<(), Error> {
|
|
10
|
-
let _cleanup = unsafe { magnus::embed::init() };
|
|
11
|
-
|
|
12
|
-
// From nil
|
|
13
|
-
assert_eq!((), deserialize(qnil().as_value())?);
|
|
14
|
-
|
|
15
|
-
// From a homogeneous array
|
|
16
|
-
let input: RArray = eval!("[ 123, 456, 789 ]")?;
|
|
17
|
-
let output: (i64, i64, i64) = deserialize(input)?;
|
|
18
|
-
assert_eq!((123, 456, 789), output);
|
|
19
|
-
|
|
20
|
-
// From a heterogeneous array
|
|
21
|
-
let input: RArray = eval!("[ 123, true, 'Hello, world!' ]")?;
|
|
22
|
-
let output: (i64, bool, String) = deserialize(input)?;
|
|
23
|
-
assert_eq!((123, true, "Hello, world!".into()), output);
|
|
24
|
-
|
|
25
|
-
// From an array containing nil
|
|
26
|
-
let input: RArray = eval!("[ 123, nil, 'Hello, world!' ]")?;
|
|
27
|
-
let output: (i64, (), String) = deserialize(input)?;
|
|
28
|
-
assert_eq!((123, (), "Hello, world!".into()), output);
|
|
29
|
-
|
|
30
|
-
Ok(())
|
|
31
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
use magnus::{eval, Error, Value};
|
|
2
|
-
use serde_magnus::serialize;
|
|
3
|
-
|
|
4
|
-
#[test]
|
|
5
|
-
fn test_serializing_booleans() -> Result<(), Error> {
|
|
6
|
-
let _cleanup = unsafe { magnus::embed::init() };
|
|
7
|
-
|
|
8
|
-
let output: Value = serialize(&true)?;
|
|
9
|
-
assert!(eval!("output == true", output)?);
|
|
10
|
-
|
|
11
|
-
let output: Value = serialize(&false)?;
|
|
12
|
-
assert!(eval!("output == false", output)?);
|
|
13
|
-
|
|
14
|
-
Ok(())
|
|
15
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
use magnus::{encoding, encoding::EncodingCapable, Error, RString};
|
|
2
|
-
use serde_bytes::{ByteBuf, Bytes};
|
|
3
|
-
use serde_magnus::serialize;
|
|
4
|
-
|
|
5
|
-
#[test]
|
|
6
|
-
fn test_serializing_strings() -> Result<(), Error> {
|
|
7
|
-
let _cleanup = unsafe { magnus::embed::init() };
|
|
8
|
-
|
|
9
|
-
let output: RString = serialize(&'☃')?;
|
|
10
|
-
assert_eq!("☃", output.to_string()?);
|
|
11
|
-
assert!(output.enc_get() == encoding::Index::utf8());
|
|
12
|
-
|
|
13
|
-
let output: RString = serialize(&"Hello, world!")?;
|
|
14
|
-
assert_eq!("Hello, world!", output.to_string()?);
|
|
15
|
-
assert!(output.enc_get() == encoding::Index::utf8());
|
|
16
|
-
|
|
17
|
-
let output: RString = serialize(&String::from("Hello, world!"))?;
|
|
18
|
-
assert_eq!("Hello, world!", output.to_string()?);
|
|
19
|
-
assert!(output.enc_get() == encoding::Index::utf8());
|
|
20
|
-
|
|
21
|
-
let output: RString = serialize(&Bytes::new(b"Hello, world!"))?;
|
|
22
|
-
assert_eq!(b"Hello, world!", unsafe { output.as_slice() });
|
|
23
|
-
assert!(output.enc_get() == encoding::Index::ascii8bit());
|
|
24
|
-
|
|
25
|
-
let output: RString = serialize(&ByteBuf::from(*b"Hello, world!"))?;
|
|
26
|
-
assert_eq!(b"Hello, world!", unsafe { output.as_slice() });
|
|
27
|
-
assert!(output.enc_get() == encoding::Index::ascii8bit());
|
|
28
|
-
|
|
29
|
-
Ok(())
|
|
30
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
use magnus::{eval, value::ReprValue, Error, RArray, Value};
|
|
2
|
-
use serde_magnus::serialize;
|
|
3
|
-
|
|
4
|
-
#[test]
|
|
5
|
-
fn test_serializing_tuples() -> Result<(), Error> {
|
|
6
|
-
let _cleanup = unsafe { magnus::embed::init() };
|
|
7
|
-
|
|
8
|
-
// To nil
|
|
9
|
-
let output: Value = serialize(&())?;
|
|
10
|
-
assert!(output.is_nil());
|
|
11
|
-
|
|
12
|
-
// To a homogeneous array
|
|
13
|
-
let output: RArray = serialize(&(1, 2, 3))?;
|
|
14
|
-
assert!(eval!("output == [ 1, 2, 3 ]", output)?);
|
|
15
|
-
|
|
16
|
-
// To a heterogeneous array
|
|
17
|
-
let input: (u64, bool, &str) = (1234, true, "Hello, world!");
|
|
18
|
-
let output: RArray = serialize(&input)?;
|
|
19
|
-
assert!(eval!("output == [ 1234, true, 'Hello, world!' ]", output)?);
|
|
20
|
-
|
|
21
|
-
// To an array containing nil
|
|
22
|
-
let input: (u64, (), &str) = (1234, (), "Hello, world!");
|
|
23
|
-
let output: RArray = serialize(&input)?;
|
|
24
|
-
assert!(eval!("output == [ 1234, nil, 'Hello, world!' ]", output)?);
|
|
25
|
-
|
|
26
|
-
Ok(())
|
|
27
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/complete_object/lib/temperature.rb
RENAMED
|
File without changes
|
/data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/custom_exception_ruby/Rakefile
RENAMED
|
File without changes
|
|
File without changes
|
/data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/custom_exception_ruby/lib/ahriman.rb
RENAMED
|
File without changes
|
|
File without changes
|
/data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/custom_exception_rust/Rakefile
RENAMED
|
File without changes
|
/data/ext/cargo-vendor/{magnus-0.7.1 → magnus-0.8.2}/examples/custom_exception_rust/lib/ahriman.rb
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|