APIΩʔΛऔಘ͢Δ
$ gem signin
Enter your RubyGems.org credentials.
Don't have an account yet? Create one at https://rubygems.org/sign_up
Email: sinsoku.listy@gmail.com
Password:
API Key name [MacBook-Pro.local-sinsoku-20230907163435]:
Please select scopes you want to enable for the API key (y/n)
index_rubygems [y/N]: y
push_rubygem [y/N]: y
yank_rubygem [y/N]: y
add_owner [y/N]: N
remove_owner [y/N]: N
access_webhooks [y/N]: N
show_dashboard [y/N]: N
You have enabled multi-factor authentication. Please enter OTP code.
Code: 012345
Signed in with API key: MacBook-Pro.local-sinsoku-20230907163435.
22
--- sinsoku_hello.gemspec
+++ sinsoku_hello.gemspec
@@ -8,16 +8,14 @@ Gem::Specification.new do |spec|
spec.authors = ["Takumi Shotoku"]
spec.email = ["sinsoku.listy@gmail.com"]
- spec.summary = "TODO: Write a short summary, because RubyGems requires one."
- spec.description = "TODO: Write a longer description or delete this line."
- spec.homepage = "TODO: Put your gem's website or public repo URL here."
+ spec.summary = "Hello, RubyGems!"
+ spec.description = "This is a gem created for studying."
+ spec.homepage = "https://github.com/sinsoku/sinsoku_hello"
spec.required_ruby_version = ">= 2.6.0"
- spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
-
spec.metadata["homepage_uri"] = spec.homepage
- spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
- spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
+ spec.metadata["source_code_uri"] = "#{spec.homepage}/blob/v#{spec.version}/CHANGELOG.md"
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/tree/v#{spec.version}"
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
31
Slide 32
Slide 32 text
--- spec/sinsoku_hello_spec.rb
+++ spec/sinsoku_hello_spec.rb
@@ -4,8 +4,4 @@ RSpec.describe SinsokuHello do
it "has a version number" do
expect(SinsokuHello::VERSION).not_to be nil
end
-
- it "does something useful" do
- expect(false).to eq(true)
- end
end
32