V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
shyling
V2EX  ›  Ruby

Ruby 写了一个命令行火车票查看器

  •  
  •   shyling · Jun 15, 2016 · 7849 views
    This topic created in 3603 days ago, the information mentioned may be changed or developed.

    最近迷上了 Ruby 呐,在 Python 区看到了http://v2ex.com/t/284909 顺手也用 Ruby 写了一个,参考了部分代码。

    地址:github

    Tickets

    顺便增加了更新 stations.dat 的功能

    不是很会玩 rubygems ,就不考虑上传什么的了

    话说,编码问题还是很麻烦啊=-= 在 windows 上 ARGV 里默认是 GBK 编码,我在 ssh 里用 arch 时 ARGV 是 ASCII_8BIT,在电脑上的 arch 上是 utf-8 , ARGV 的内容默认还是 frozen 的。 Rubinius/JRuby 什么的还木有测试

    求 star 啊求 star,顺便如果那里写的不好的话求指点。

    2 replies    2016-06-15 19:08:46 +08:00
    jimmy66
        1
    jimmy66  
       Jun 15, 2016
    支持下~
    Stlin
        2
    Stlin  
       Jun 15, 2016   ❤️ 1
    star 啦 star 啦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1066 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 22:52 · PVG 06:52 · LAX 15:52 · JFK 18:52
    ♥ Do have faith in what you're doing.