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
TL;DR Although apps and gems look like they share the concept of "dependency", there are some important differences between them. Gems depend on a name and version range, and intentionally don't care about where exactly the dependencies come from. Apps have more controlled deployments, and need a guarantee that the exact same code is used on all machines (dev, ci and production). When developing a
Ruby の HTTP クライアントライブラリ Faraday が便利そう Ruby の HTTP クライアントライブラリ Faraday が便利そう API ラッパの開発には RestClient gem だとか OAuth の必要なものは Net/HTTP + OAuth gem を使ってた Twitter gem や Instagram gem など API ライブラリのソースを読んでみると Faraday gem というものがよく使われてた なんとなく気になったので Faraday について調べてみた ついでに Tumblife gem を Faraday を使うようにした 以下そのメモ Faraday って何? Faraday is an HTTP client lib that provides a common interface over many adapters (su
@satococoa やっぱウェブみにいくんですね、了解です。この辺も Dash とかで見れるようにしたいな— Naoya Itoさん (@naoya_ito) 1月 22, 2013 こんな話から、インストールした gem のドキュメントが見られる風な Docset が Dash にあったのを思い出してちょっと調べてみました。 以下の手順に沿ってちょこちょこっと設定をすると、RDoc で生成された gem のドキュメントが見られました。 設定方法 Preferences… -> Downloads から “Ruby Installed Gems” というdocsetをインストール Preferences… -> Docsets に Ruby Gems という docset があるので、その一番右にあるギヤのボタンからrdocが置かれているパスを設定する。gem env gempath と
Models relationships between AR models. Allows you to follow, friend, and block other AR’s. Consists of two mixins: acts_as_followable and acts_as_friend. These options allow an AR to inherit either a twitter-like follower system or a facebook-like friend system. Installation If you’re running rails 2 use gem version 0.3.2 or the rails-2 branch. Install the gem gem install party_boy Run the genera
is a totally awesome idea still being worked on. Check back later.
OmniAuth のロケタッチ用ストラテジーである omniauth-loctouch と NoNoPaste 用のコマンドラインインターフェースである nonopaste-cli を rubygems.org で公開しました。 https://rubygems.org/gems/omniauth-loctouch https://rubygems.org/gems/nonopaste-cli 初めて Gem を公開したので記念にスクリーンショットを撮ってみた nonopaste-cli はもともと、社内のイントラネット内に設置されている NoNoPaste をターミナルから楽に使いたくて書いたツールで、単にコードのバックアップを置いておくくらいのつもりで GitHub で公開していたものですが、 Gem 化のリクエストをもらったのでリリースしてみました。 gemspec を書いてくれたう
RubyGemをバージョンアップした結果、さまざまなエラーが出る等で不都合がある場合はgem uninstall -v 1.8.3 rubygems-update等により、指定したバージョンのRubyGemをアンインストールします。 例えば、RubyGems 1.7.2をインストールしている状態で、最新のRubyGem(ここでは v 1.8.3とします)へアップデートしたとします。さまざまなエラーメッセージが出るようになったり、rakeが使用できなくなったり等の不都合が発生するため、以前のバージョンに戻したくなった場合は、以下のようにgem uninstallを用いて指定したバージョンのrubygemを削除し、希望するバージョンのRubyGemを再度インストールします。指定したバージョンのRubyGemをアンインストールするには、$ gem uninstall -v 1.8.3 rubyg
kramdown is a fast, pure-Ruby converter for Markdown-like markup.Welcome to the kramdown site kramdown is a free GPL-licensed Ruby library for parsing Markdown-like syntax. It is completely written in Ruby, supports standard Markdown (with some minor modifications) and various extensions that have been made popular by the PHP Markdown Extra package and Maruku. It is probably the fastest pure-Ruby
UserStreamを受信するときに,毎回Net::HTTPがどうとか書いていて,めんどうだったので,UserStreamを受信するgemを作った. 1行ずつ受信したJSON(のテキスト)をくれるから,使いたいように使える. UserStreamReceiver.new.run{|chunk| p JSON.parse(chunk) } 内部的には,id:tilyさんのOAuth::CLI::Twitterを使ってAccessTokenを取得していて,最初に起動したときに,対話的にPINを入れるように言ってきたりする. 既存のtwitterクライアントから使いたい場合とかは,コンストラクタにAccessTokenを指定して使うこともできる. bin/以下に2つコマンドが入ってる. user-stream-receiver 受信したJSONを表示する. user-stream-receive
moved a rails app of mine onto a new server and had to install a few gem dependencies. However, after installing the mysql gem I get the error, uninitialized constant MysqlCompat::MysqlRes, whenever I try to run a rake command that involves the mysql database. It seems I only get this error when I require the mms2r gem. Has anyone ever heard of this? I'm running mysql 2.8.1 gem.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く