From 89d83513c358c4a679d5551f6d452ab9a8507dc1 Mon Sep 17 00:00:00 2001 From: Torrey Payne <11740989+torreypayne@users.noreply.github.com> Date: Tue, 11 Aug 2026 22:38:35 +0000 Subject: [PATCH 1/3] fix(tombstone-library): generate Rakefile with bundler gem_tasks for release build --- .../.data/rakefile-template.erb | 18 ++++++++++++++++++ toys/tombstone-library/.toys.rb | 1 + 2 files changed, 19 insertions(+) create mode 100644 toys/tombstone-library/.data/rakefile-template.erb diff --git a/toys/tombstone-library/.data/rakefile-template.erb b/toys/tombstone-library/.data/rakefile-template.erb new file mode 100644 index 00000000..adc16a6c --- /dev/null +++ b/toys/tombstone-library/.data/rakefile-template.erb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +# Copyright <%= cur_year %> Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +require "bundler/setup" +require "bundler/gem_tasks" diff --git a/toys/tombstone-library/.toys.rb b/toys/tombstone-library/.toys.rb index cd0967fe..5e008834 100644 --- a/toys/tombstone-library/.toys.rb +++ b/toys/tombstone-library/.toys.rb @@ -97,6 +97,7 @@ def generate_files generate_one "LICENSE.md", "license-template.erb" generate_one "#{gem_name}.gemspec", "gemspec-template.erb" generate_one ".yardopts", "yardopts-template.erb" + generate_one "Rakefile", "rakefile-template.erb" mkdir_p "lib/#{namespace_dir}" generate_one "lib/#{namespace_dir}/version.rb", "version-template.erb" end From efac5a57ad3a759f3d65d1b280d99a3d30b43573 Mon Sep 17 00:00:00 2001 From: Torrey Payne <11740989+torreypayne@users.noreply.github.com> Date: Tue, 11 Aug 2026 22:39:48 +0000 Subject: [PATCH 2/3] fix(tombstone-library): fix version.rb require and files path in gemspec template --- toys/tombstone-library/.data/gemspec-template.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toys/tombstone-library/.data/gemspec-template.erb b/toys/tombstone-library/.data/gemspec-template.erb index c6a91e30..aa104d92 100644 --- a/toys/tombstone-library/.data/gemspec-template.erb +++ b/toys/tombstone-library/.data/gemspec-template.erb @@ -1,4 +1,4 @@ -require File.expand_path("<%= namespace_dir %>/version", __dir__) +require File.expand_path("lib/<%= namespace_dir %>/version", __dir__) Gem::Specification.new do |gem| gem.name = "<%= gem_name %>" @@ -21,7 +21,7 @@ Gem::Specification.new do |gem| gem.homepage = "https://github.com/googleapis/google-cloud-ruby" gem.license = "Apache-2.0" gem.platform = Gem::Platform::RUBY - gem.files = ["README.md", "LICENSE.md", ".yardopts", "<%= namespace_dir %>/version.rb"] + gem.files = ["README.md", "LICENSE.md", ".yardopts", "lib/<%= namespace_dir %>/version.rb"] gem.require_paths = ["lib"] gem.required_ruby_version = ">= 3.0" end From 32fdaa141596b3404c38fafe8dcd0433b5428c6c Mon Sep 17 00:00:00 2001 From: Torrey Payne <11740989+torreypayne@users.noreply.github.com> Date: Tue, 11 Aug 2026 22:49:54 +0000 Subject: [PATCH 3/3] Revert "fix(tombstone-library): fix version.rb require and files path in gemspec template" This reverts commit efac5a57ad3a759f3d65d1b280d99a3d30b43573. --- toys/tombstone-library/.data/gemspec-template.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toys/tombstone-library/.data/gemspec-template.erb b/toys/tombstone-library/.data/gemspec-template.erb index aa104d92..c6a91e30 100644 --- a/toys/tombstone-library/.data/gemspec-template.erb +++ b/toys/tombstone-library/.data/gemspec-template.erb @@ -1,4 +1,4 @@ -require File.expand_path("lib/<%= namespace_dir %>/version", __dir__) +require File.expand_path("<%= namespace_dir %>/version", __dir__) Gem::Specification.new do |gem| gem.name = "<%= gem_name %>" @@ -21,7 +21,7 @@ Gem::Specification.new do |gem| gem.homepage = "https://github.com/googleapis/google-cloud-ruby" gem.license = "Apache-2.0" gem.platform = Gem::Platform::RUBY - gem.files = ["README.md", "LICENSE.md", ".yardopts", "lib/<%= namespace_dir %>/version.rb"] + gem.files = ["README.md", "LICENSE.md", ".yardopts", "<%= namespace_dir %>/version.rb"] gem.require_paths = ["lib"] gem.required_ruby_version = ">= 3.0" end