Skip to content

Commit

Permalink
Validate to build gem (#596)
Browse files Browse the repository at this point in the history
* Add validation task to build gem

Preparation part for GH-544

* Fix validation error in gem strict build with removing conflict meta
  • Loading branch information
kachick authored Aug 28, 2024
1 parent e934910 commit 80f9ae8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
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

0 comments on commit 80f9ae8

Please sign in to comment.