You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
先日社内の Ruby と Rails の質問チャットに「ローマ字とカナを変換するのに良いライブラリないですか」と質問したら、「貴様の要求に足るものはない。というか貴様が作って gem で公開しろ」と言われたので (こわい) 、ライブラリを書いて romaji という名前で公開した。 gem install romaji でインストールできる。 ローマ字とカナを相互変換するライブラリは既にいくつかあったのだが、ぼくが求めていた以下の条件をすべて満たせるものがなかったので新しく作った次第。 gem として提供されている テストされている Ruby 1.8.7 と 1.9.x で問題なく動く require するだけでは既存のクラスを拡張しない Guard と Travis CI で絶えずテストを回しつづけて作った。便利な世の中になった。
Koala is a Facebook library for Ruby, supporting the Graph API (including the batch requests and photo uploads), the Marketing API, the Atlas API, realtime updates, test users, and OAuth validation. We wrote Koala with four goals: Lightweight: Koala should be as light and simple as Facebook’s own libraries, providing API accessors and returning simple JSON. Fast: Koala should, out of the box, be q
id3.rb - ID3 Library for Ruby by Tilo Sloboda <tools-NOSPAM@unixgods.org> Update Pending! I'm in the middle of re-writing this library. The original design is from 2002 - time for a little code clean-up ;-) 2008-08-24 Feedback Needed Currently I would like to get feedback on the interface, classes, methods provided by the ID3-library. Please send me email and let me know what you think.. Introdu
Win32OLEとは Win32OLEは、Ruby1.8より標準添付となりました。 Rubyをダウンロードすれば、その中に含まれています。 1.8以降はそちらをご利用ください。 Win32OLEは、RubyからExcelやMS-Wordなどを利用するための拡張ライブラリです。 RubyでVBAに似たスクリプトを書くことができます。 require 'win32ole' excel = WIN32OLE.new('Excel.Application') excel.visible = TRUE workbook = excel.Workbooks.Add(); worksheet = workbook.Worksheets(1); worksheet.Range('A1:D1').value = ['North','South','East','West']; ダウンロード (Ruby 1.
Rubyでファイルに対するMIME型の自動判別を行うには、次のライブラリが便利です。 MIME::Types shared-mime-info これらの違いは判別方法にあります。MIME::Typesは、IANAに登録されているMIME型情報を元に、ファイルの拡張子から判別を行なうので、拡張子が付いていないものに対しては無力です。一方shared-mime-infoは、freedesktop.orgの提供するMIMEデータベースを使い、拡張子とファイル内容の両面から判別することが出来ます。よって、拡張子が付いているとは限らない環境や付いている拡張子が信用できない場合、shared-mime-infoを使うしかありません。 なお、どちらも pure ruby であり、また gem を使って簡単にインストールすることが出来ます。 gem install mime-types gem insta
eruby-1.0.3-i586-mswin32-1.6.zip 75091 2015-07-25T02:03:04.000Z eruby-1.0.5-i386-mswin32-1.8.zip 72242 2015-07-25T02:03:04.000Z md5.sum 1030 2015-07-25T02:03:04.000Z narray-0.5.9-i386-mswin32-1.8.zip 83063 2015-07-25T02:03:04.000Z racc-1.4.3-all-i586-mswin32-1.6.zip 126321 2015-07-25T02:03:05.000Z racc-1.4.5-all-i386-mswin32-1.8.zip 131328 2015-07-25T02:03:06.000Z rubywin-0.0.4.3-i586-mswin32-1.6.
スクレイピングのチュートリアルを書いてみた。 参考:http://nokogiri.rubyforge.org/nokogiri/Nokogiri.html まだまだたくさんのクラスやメソッドがあるが(読んでない)、HTMLのスクレイピングに限定すれば多分これくらいで十分。 2014-02-16追記 なんかたくさんブックマークされていることに気づいたので、サンプルコードのRuby1.9/2対応のアップデート。 Mechanize周りも修正。WWW::Mechanize → Mechanize 等 (0) 前提知識 Ruby、HTML、DOM、CSSセレクタまたはXPath (1) クラス構造の理解 Nokogiri::HTML::Document < Nokogiri::XML::Document < Nokogiri::XML::Node < Object Nokogiri::XML::
WebOS Goodies へようこそ! WebOS はインターネットの未来形。あらゆる Web サイトが繋がり、共有し、協力して創り上げる、ひとつの巨大な情報システムです。そこでは、あらゆる情報がネットワーク上に蓄積され、我々はいつでも、どこからでも、多彩なデバイスを使ってそれらにアクセスできます。 WebOS Goodies は、さまざまな情報提供やツール開発を通して、そんな世界の実現に少しでも貢献するべく活動していきます。 以前公開した前バージョンにはたくさんのアドバイス、リンクなどいただきまして、ありがとうございます。少々時間が経ってしまいましたが、あれからいろいろと勉強しまして、 strscan なる便利なライブラリが Ruby の標準ライブラリに含まれていることも知りました。それらをきちんと使えばコードをだいぶシンプルにできそうだったので、思い切って書き直してみました。まだまだ
『るびま』は、Ruby に関する技術記事はもちろんのこと、Rubyist へのインタビューやエッセイ、その他をお届けするウェブ雑誌です。 Rubyist Magazine について 『Rubyist Magazine』、略して『るびま』は、日本 Ruby の会の有志による Rubyist の Rubyist による、Rubyist とそうでない人のためのウェブ雑誌です。 最新号 Rubyist Magazine 0058 号 バックナンバー Rubyist Magazine 0058 号 RubyKaigi 2018 直前特集号 Rubyist Magazine 0057 号 RubyKaigi 2017 直前特集号 Rubyist Magazine 0056 号 Rubyist Magazine 0055 号 Rubyist Magazine 0054 号 東京 Ruby 会議 11 直
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く