
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/fast_packager_test
. To experiment with that code, run bin/console
for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
Install the gem and add to the application's Gemfile by executing:
$ bundle add fast_packager_test
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install fast_packager_test
TODO: Write usage instructions here
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fast_packager_test.
生成初始化project
$bundle gem project_name
修改文件
修改project_name.gemspec文件
修改
spec.summary = 'desc1' (这里任意为空或任意其他字符串)
spec.description = "desc2" (这里任意为空或任意其他字符串)
注释
spec.metadata["allowed_push_host"]
spec.metadata["homepage_uri"]
spec.metadata["source_code_uri"]
spec.metadata["changelog_uri"]
制作gem
$gem build project_name.gemspec
得到一个project_name.gemspec文件中{spec.name相同名称}-{spec.version}.gem的文件
上传gem
gem官网注册账号,注册完成执行
$gem sin signin (输入邮箱及密码)
API Key name (回车)
index_rubygems: y
push_rubygem: y
yank_rubygem: y
add_owner: y
remove_owner: y
access_webhooks: y
show_dashboard: n
凭证存放在$HOME/.local/share/gem/credentials (之后登录依靠此凭证,如果想重新输入账号密码把这个文件删除即可)
$gem push {spec.name}-{spec.version}.gem
提示:
Pushing gem to https://rubygems.org...
Successfully registered gem: spec.name (spec.version)
下载安装测试
查看本地已安装gem包列表
$gem list | grep {spec.name}-{spec.version}.gem
结果: 无
本地安装gem包
$gem install ./{spec.name}-{spec.version}.gem
检查本地已安装gem包列表
$gem list | grep {spec.name}-{spec.version}.gem
结果: {spec.name} ({spec.version})
删除本地安装的gem包后安装公共public repo gem
$gem uninstall fast_packager_test
结果: Successfully uninstalled {spec.name}-{spec.version}
检查本地已安装gem包列表
$gem list | grep {spec.name}-{spec.version}.gem
结果: 无
下载public repo gem
$gem install fast_packager_test
检查本地已安装gem包列表
$gem list | grep {spec.name}-{spec.version}.gem
结果: {spec.name} ({spec.version})
Gemfile.lock
本地运行调试即生成
$irb (ruby的命令行交互模式)
FAQs
Unknown package
We found that fast_packager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.