leaderboard:Redis在Ruby中支持的排行榜

时间:2021-04-13 06:18:16
【文件属性】:
文件名称:leaderboard:Redis在Ruby中支持的排行榜
文件大小:34KB
文件格式:ZIP
更新时间:2021-04-13 06:18:16
Ruby 排行榜 在Ruby中支持的排行榜。 建立在提出的想法。 安装 gem install leaderboard 或在您的Gemfile gem 'leaderboard' 确保您的Redis服务器正在运行! Redis配置不在本README的范围之内,但请查阅。 兼容性 该宝石已根据2.2.1进行构建和测试。 注意:gem在Ruby的早期版本(例如1.8.7或1.9.3)中应该可以正常工作。 目前,我们没有利用Ruby 2.x的特定方面。 用法 创建排行榜 确保需要排行榜库: require 'leaderboard' 创建一个新的排行榜或附加到一个名为“ highscores”的现有排行榜: highscore_lb = Leaderboard . new ( 'highscores' ) => #<Leaderboard:0x0000010307b530 @lea
【文件预览】:
leaderboard-main
----.travis.yml(57B)
----leaderboard.gemspec(878B)
----Rakefile(247B)
----README.markdown(21KB)
----Gemfile(39B)
----.ruby-gemset(16B)
----.rspec(45B)
----spec()
--------leaderboard_spec.rb(33KB)
--------reverse_leaderboard_spec.rb(15KB)
--------version_spec.rb(156B)
--------reverse_competition_ranking_leaderboard_spec.rb(5KB)
--------reverse_tie_ranking_leaderboard_spec.rb(8KB)
--------tie_ranking_leaderboard_spec.rb(15KB)
--------spec_helper.rb(488B)
--------competition_ranking_leaderboard_spec.rb(8KB)
----.ruby-version(11B)
----.gitignore(89B)
----lib()
--------leaderboard.rb(39KB)
--------leaderboard()
--------competition_ranking_leaderboard.rb(4KB)
--------tie_ranking_leaderboard.rb(11KB)
----CHANGELOG.markdown(9KB)
----LICENSE.txt(1KB)

网友评论