Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate to build gem #596

Merged
merged 2 commits into from
Aug 28, 2024
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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@ jobs:
bundler-cache: false # runs 'bundle install' and caches installed gems automatically
- run: bundle install
- run: bundle exec rake test_all --suppress-backtrace='\/bundle'
- run: bundle exec rake validate_gem
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ else
RuboCop::RakeTask.new
end

multitask(default: %i[test signature_all rubocop dprint])
multitask(default: %i[test signature_all rubocop validate_gem dprint])

desc('Keep light weight!')
task(test: :test_core)
Expand Down Expand Up @@ -110,6 +110,10 @@ task(:generate_snapshots) do
ruby('./scripts/generate_snapshots.rb')
end

task(:validate_gem) do
sh('gem build --strict --norc --backtrace ruby-ulid.gemspec')
end

desc('To prevent #69 anymore!')
task(:view_packaging_files) do
remove_entry_secure('./pkg')
Expand Down
1 change: 0 additions & 1 deletion ruby-ulid.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Gem::Specification.new do |gem|

gem.metadata = {
'documentation_uri' => 'https://kachick.github.io/ruby-ulid/',
'homepage_uri' => repository_url,
'source_code_uri' => repository_url,
'bug_tracker_uri' => "#{repository_url}/issues",
'rubygems_mfa_required' => 'true'
Expand Down