summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tool/gem-unpack.rb10
-rw-r--r--version.h2
2 files changed, 7 insertions, 5 deletions
diff --git a/tool/gem-unpack.rb b/tool/gem-unpack.rb
index fe10b0e420..16ee89f62d 100644
--- a/tool/gem-unpack.rb
+++ b/tool/gem-unpack.rb
@@ -11,10 +11,12 @@ def Gem.unpack(file, dir = nil, spec_dir = nil)
target = spec.full_name
target = File.join(dir, target) if dir
pkg.extract_files target
- FileUtils.mkdir_p(spec_dir ||= target)
- spec_file = File.join(spec_dir, "#{spec.name}-#{spec.version}.gemspec")
- open(spec_file, 'wb') do |f|
- f.print spec.to_ruby
+ if spec.extensions.empty?
+ spec_dir ||= target
+ else
+ spec_dir = target
end
+ FileUtils.mkdir_p(spec_dir)
+ File.binwrite(File.join(spec_dir, "#{spec.name}-#{spec.version}.gemspec"), spec.to_ruby)
puts "Unpacked #{file}"
end
diff --git a/version.h b/version.h
index 961e6ae59c..797a418baa 100644
--- a/version.h
+++ b/version.h
@@ -11,7 +11,7 @@
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
#define RUBY_VERSION_TEENY 3
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
-#define RUBY_PATCHLEVEL 76
+#define RUBY_PATCHLEVEL 77
#define RUBY_RELEASE_YEAR 2022
#define RUBY_RELEASE_MONTH 10