【文件属性】:
文件名称:mktorrent:轻松创建.torrent文件的Ruby Gem
文件大小:8KB
文件格式:ZIP
更新时间:2021-04-27 14:33:40
Ruby
mktorrent
轻松创建.torrent文件的Ruby Gem。
开始:
git clone https://github.com/mukaibot/mktorrent.git
gem build mktorrent.gemspec
gem install mktorrent
然后在您的Ruby代码中:
require 'mktorrent'
t = Torrent.new("http://your.tracker.com")
t.add_file("path/to/your.file")
t.add_file("path/to/another.file")
t.add_tracker("udp://your.secondtracker.tk:80") # Optional
t.add_tracker("http://third.tracker.com:6500/announc
【文件预览】:
mktorrent-master
----mktorrent.gemspec(828B)
----lib()
--------mktorrent.rb(5KB)
----Gemfile(38B)
----Rakefile(225B)
----test()
--------test_helper.rb(807B)
--------mktorrent_test.rb(2KB)
--------mktorrent_acceptance_test.rb(2KB)
--------test_data()
----README.md(1KB)
----Gemfile.lock(701B)
----.gitignore(92B)