Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:

- name: Restore vcpkg artifact
id: restore-vcpkg
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
uses: actions/cache/restore@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
with:
path: src\vcpkg_installed
key: windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
Expand All @@ -100,7 +100,7 @@ jobs:
if: ${{ ! steps.restore-vcpkg.outputs.cache-hit }}

- name: Save vcpkg artifact
uses: actions/cache/save@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
uses: actions/cache/save@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
with:
path: src\vcpkg_installed
key: windows-${{ matrix.os }}-vcpkg-${{ hashFiles('src/vcpkg.json') }}
Expand Down
14 changes: 8 additions & 6 deletions include/ruby/internal/intern/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ VALUE rb_utf8_str_new_static(const char *ptr, long len);

/**
* Identical to rb_interned_str(), except it takes a Ruby's string instead of
* C's. It can also be seen as a routine identical to rb_str_new_shared(),
* except it returns an infamous "f"string.
* C's and preserves its encoding. It can also be seen as a routine identical
* to rb_str_new_shared(), except it returns an infamous "f"string.
*
* @param[in] str An object of ::RString.
* @return An instance of ::rb_cString, either cached or allocated, which
Expand Down Expand Up @@ -444,8 +444,9 @@ VALUE rb_str_to_interned_str(VALUE str);
* terminating NUL character.
* @exception rb_eArgError `len` is negative.
* @return A found or created instance of ::rb_cString, of `len` bytes
* length, of US-ASCII or "binary" encoding, whose contents are
* identical to that of `ptr`.
* length, whose contents are identical to that of `ptr`. Its
* encoding will be US-ASCII if all bytes are lower ASCII, BINARY
* otherwise.
* @pre At least `len` bytes of continuous memory region shall be
* accessible via `ptr`.
*/
Expand All @@ -461,8 +462,9 @@ RBIMPL_ATTR_NONNULL(())
*
* @param[in] ptr A C string.
* @exception rb_eNoMemError Failed to allocate memory.
* @return An instance of ::rb_cString, of "binary" encoding, whose
* contents are verbatim copy of `ptr`.
* @return An instance of ::rb_cString, whose contents are verbatim copy
* of `ptr`. Its encoding will be US-ASCII if all bytes are lower
* ASCII, BINARY otherwise.
* @pre `ptr` must not be a null pointer.
*/
VALUE rb_interned_str_cstr(const char *ptr);
Expand Down
11 changes: 4 additions & 7 deletions tool/sync_default_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -861,13 +861,10 @@ def update_default_gems(gem, release: false)
REPOSITORIES.each_key {|gem| update_default_gems(gem)}
end
when "all"
if ARGV[1] == "release"
REPOSITORIES.each_key do |gem|
update_default_gems(gem, release: true)
sync_default_gems(gem)
end
else
REPOSITORIES.each_key {|gem| sync_default_gems(gem)}
REPOSITORIES.each_key do |gem|
next if ["Onigmo"].include?(gem)
update_default_gems(gem, release: true) if ARGV[1] == "release"
sync_default_gems(gem)
end
when "list"
ARGV.shift
Expand Down