mukaibot / mktorrent Goto Github PK
View Code? Open in Web Editor NEWA Ruby Gem for easily creating .torrent files.
A Ruby Gem for easily creating .torrent files.
I'm assuming it creates public torrents by default.
When creating a torrent in uTorrent you can select an option to preserve file order. I looked at the bit torrent docs and didn't see an option for this in the meta info description.
I'm wondering if this is done at a layer above bittorrent. I'm wondering if the file list simply has to be ordered or if the files have to be hashed in order as well.
What do you think?
Mind if I open a pull request for this?
Adding a directory to the torrent works, but the path of the files is absolute, ie (/Volumes/External/Torrent Download Path/file.mp3) instead of the relative path (file.mp3).
I have checked the rake tasks available and I have rake test
When I run it I get this:
/home/gerep/.rvm/gems/ruby-2.1.2/gems/bencode-0.7.0/lib/bencode/core_ext/hash.rb:12: warning: assigned but unused variable - error
/home/gerep/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/minitest/unit.rb:26:in `const_missing': uninitialized constant MiniTest::Test (NameError)
from /home/gerep/mktorrent/test/mktorrent_test.rb:4:in `<top (required)>'
from /home/gerep/.rvm/gems/ruby-2.1.2/gems/rake-10.0.3/lib/rake/rake_test_loader.rb:10:in `require'
from /home/gerep/.rvm/gems/ruby-2.1.2/gems/rake-10.0.3/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
from /home/gerep/.rvm/gems/ruby-2.1.2/gems/rake-10.0.3/lib/rake/rake_test_loader.rb:9:in `each'
from /home/gerep/.rvm/gems/ruby-2.1.2/gems/rake-10.0.3/lib/rake/rake_test_loader.rb:9:in `block in <main>'
from /home/gerep/.rvm/gems/ruby-2.1.2/gems/rake-10.0.3/lib/rake/rake_test_loader.rb:4:in `select'
from /home/gerep/.rvm/gems/ruby-2.1.2/gems/rake-10.0.3/lib/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
Command failed with status (1): [ruby -w -I"lib" -I"/home/gerep/.rvm/gems/ruby-2.1.2/gems/rake-10.0.3/lib" "/home/gerep/.rvm/gems/ruby-2.1.2/gems/rake-10.0.3/lib/rake/rake_test_loader.rb" "test/*_test.rb" ]
/home/gerep/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
/home/gerep/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => test
My gems:
Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.