Skip to content
Open
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
18 changes: 18 additions & 0 deletions toys/tombstone-library/.data/rakefile-template.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# frozen_string_literal: true

# Copyright <%= cur_year %> Google LLC

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cur_year. Does this work? Otherwise, LGTM! I will ping you with a suggestion for testing.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like this can work: https://github.com/googleapis/gapic-generator-ruby/blob/cf7b51a224feacfbe2a187cad412824fdb7a48d2/gapic-generator-ads/templates/ads/shared/_license.text.erb#L1

No need to spend tons of time testing this btw! It is pretty isolated

#
# 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"
1 change: 1 addition & 0 deletions toys/tombstone-library/.toys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading