Skip to content

Commit 435697f

Browse files
authored
Update gem metadata (#67)
1 parent d33fb5c commit 435697f

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Changed
10+
- Minor fixups in gem metadata ([#67]).
11+
912
[Unreleased]: https://github.com/envato/zxcvbn-ruby/compare/v1.3.0...HEAD
13+
[#67]: https://github.com/envato/zxcvbn-ruby/pull/67
1014

1115
## [1.3.0] - 2026-01-02
1216

zxcvbn-ruby.gemspec

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
require File.expand_path('lib/zxcvbn/version', __dir__)
44

5-
GITHUB_URL = 'https://github.com/envato/zxcvbn-ruby'
6-
75
Gem::Specification.new do |gem|
86
gem.authors = ['Steve Hodgkiss', 'Matthieu Aussaguel']
97
gem.email = ['steve@hodgkiss.me', 'matthieu.aussaguel@gmail.com']
108
gem.description = 'Ruby port of Dropboxs zxcvbn.js'
119
gem.summary = ''
12-
gem.homepage = 'http://github.com/envato/zxcvbn-ruby'
10+
gem.homepage = 'https://github.com/envato/zxcvbn-ruby'
1311

1412
gem.files = `git ls-files -z`.split("\x0").reject do |file|
1513
file.match(%r{^(\.|CODE_OF_CONDUCT.md|Gemfile|Rakefile|Guardfile|zxcvbn-ruby.gemspec|spec/)})
@@ -22,10 +20,11 @@ Gem::Specification.new do |gem|
2220
gem.required_ruby_version = '>= 2.5'
2321

2422
gem.metadata = {
25-
'bug_tracker_uri' => "#{GITHUB_URL}/issues",
26-
'changelog_uri' => "#{GITHUB_URL}/blob/HEAD/CHANGELOG.md",
27-
'documentation_uri' => "#{GITHUB_URL}/blob/HEAD/README.md",
28-
'homepage_uri' => GITHUB_URL,
29-
'source_code_uri' => GITHUB_URL
23+
'allowed_push_host' => 'https://rubygems.org',
24+
'bug_tracker_uri' => "#{gem.homepage}/issues",
25+
'changelog_uri' => "#{gem.homepage}/blob/HEAD/CHANGELOG.md",
26+
'documentation_uri' => "https://www.rubydoc.info/gems/#{gem.name}/#{gem.version}",
27+
'homepage_uri' => gem.homepage,
28+
'source_code_uri' => "#{gem.homepage}/tree/v#{gem.version}"
3029
}
3130
end

0 commit comments

Comments
 (0)