Sha256: c57d27c8bf5892bf4da6ad170ac1dc830cafe754a770e5f2b53419e66ed411be
Contents?: true
Size: 1.8 KB
Versions: 2
Compression:
Stored size: 1.8 KB
Contents
# Simple2ch 2ch Japanese BBS simple reader for Ruby. Ruby用の2chの簡易リーダーです。  [リファレンス](http://dogwood008.github.io/simple2ch/) ## 更新内容 [v0.1.0] * メソッド名の変更 * Thre.new から Thre.parse に変更 * Thre.newは引数の数を変更 * この変更に伴い、v0.0.2以下とは一部互換性無し * バグ修正 * Time.parseの呼び出しに失敗する問題を修正 * その他 * その他微細な修正 [v0.0.2] * メソッド名の変更 * Board#threads から Board#thres に変更 * ドキュメントの再生成 * モジュール名が誤っていたため * README.mdを修正 * 使用法などを追加 * yardの結果を追加 ## Installation Add this line to your application's Gemfile: gem 'simple2ch' And then execute: $ bundle Or install it yourself as: $ gem install simple2ch ## Usage * 初期化 ```ruby require 'simple2ch' ``` * スレ取得 ```ruby board = Simple2ch::Board.new('ニュー速VIP', 'http://viper.2ch.sc/news4vip/') board.thres #=>[#<Simple2ch::Thre>, ..., #<Simple2ch::Thre>] ``` * レス取得 ```ruby hoge = SUM_OF_NUMBER1 thre = board.thres[hoge] #=> #<Simple2ch::Thre> thre.reses #=> [#<Simple2ch::Res>, ..., #<Simple2ch::Res>] ``` * 書き込み内容取得 ```ruby foo = SUM_OF_NUMBER2 res = thre.reses[foo] #=> #<Simple2ch::Res> res.author #=> "以下、\(^o^)/でVIPがお送りします" res.contents #=> "hoge foo bar" ``` ## Contributing 1. Fork it ( https://github.com/dogwood008/simple2ch/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create a new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple2ch-0.1.1 | README.md |
simple2ch-0.1.0 | README.md |