What is rb++? Rb++ makes it almost trivially easy to create Ruby extensions for any C++ C++ library. In the simplest of cases, there is no need to ever touch C++, everything is done in a very simple and clean Ruby API. For wrapping plain C libraries, I highly recommend FFI: github.com/ffi/ffi Note: For those familiar with py++, the similarities are minimal. Outside of the purpose of both libraries
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work. Try for free Learn more
Jul 14 2012 Once upon a time, I was building my First Serious Rails App. I was drawn to Rails in the first place because of automated testing and ActiveRecord; I felt the pain of not using an ORM and spending about a week on every deploy making sure that things were still okay in production. So of course, I tried to write a pretty reasonable suite of tests for the app. To gloss over some details t
以前、つくったRVM環境をGemsetsをつかわない環境に作り直したのでメモ。 Rubyのバージョン管理ツール RVM は 複数バージョンのRuby と 各RubyのGemをGemsets で管理をするつもりで環境を作っていたのですが、この間、Rails勉強会@東京 に行ったときに、Gemの管理はBundlerで、RVM では Rubyのバージョン管理のみに使うのがいいんじゃないかとアドバイスを頂いて、いろいろ試してみました。 まず、Gemの管理というのがいまいちイメージがつかめていなかったのですがGemfileという設定ファイルで RailsアプリなどをGithubなどからダウンロード、必要なGemをBundlerでインストール Rails2アプリを作る、Gemfileを作成する、バージョンを固定 Rails3アプリを作る、Gemfileは自動作成される、追記する、バージョンを固定 空
245: Bundlerでgemを作る (view original Railscast) Other translations: Other formats: Written by Naomi Fujimoto Ruby gemの作成および管理の方法は、ここ数年で進化を続けています。エピソード135 [動画を見る, 読む] ではgemの作成にechoe gemを使用しました。その約1年後のエピソード183 [動画を見る, 読む]ではJewelerを使用しました。どちらのツールもgemのリリース毎にGemspecファイルを生成する手段と、そのGemspecファイルを管理するツールを提供します。今回は、Gemspecファイルの管理を、手作業で全体的にずっと簡単な方法で行うことにします。 今回の方法でも、gemごとに最初にGemspecファイルを作成する必要があります。これを手作業で行う
■ [ruby] myrurema 0.3.0をリリースしました 最新のbitclustで動かないというレポートをいただいたので(ありがとうございます)直しました。 https://github.com/yhara/myrurema あとrefeでは「refe Ar i」でArray#indexなどが検索できるというのを知った(思い出した?)ので、それにも対応しました。 /Users/yhara $ rurema Ar ind (1)Array#index (2)Array#indexes (3)Array#indices which one? > ■ [ruby] gem生成ツールをJewelerからBundlerに乗り換えた BundlerはRubyGemsの依存関係をメンテナンスするツールだけど、実はJeweler等のようにgemを生成するための機能もある。 bundle gemコマ
When I try to install the mysql2 gem, it fails with no apparent errors. Does anyone know what to do to work around this so mysql2 installs? $ sudo gem install mysql2 Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb checking for rb_thread_
Verify to continue To continue, please confirm that you're a human (and not a spambot).
You pay a fixed amount, and receive total ownership of this domain. Ideas for showqase.com Here are some possible uses for this domain name: Digital Portfolio Showcase. Showqase could offer a platform for artists, designers, photographers, and other creative professionals to showcase their work online. With customizable templates and user-friendly interface, this platform would attract individuals
jeweler とは rubygems 作成支援ツールとでも言えば良いのでしょうか。 こいつ自体は gem install jeweler でインストールできます。 くわしくは Route 477 - gemspecの作り方がわからない?ならばjewelerだ 前提条件 このエントリを読む人は以下を満たしていると良いかもしれません github にアカウントを持っている(もってない人はさっさと取ってきなさい) jeweler がインストールされている rubygems でインストールさせるライブラリ等を作りたい github 用の プロジェクトのスケルトンコードの作成 まだ github のプロジェクトは作っていないので、jeweler に作ってもらいましょう。 jeweler のオプションに --create-repo オプションを追加すると、スケルトンコードの他に github 上のリ
I am getting the following error when I try to use gems in windows, and I also referred to this stackoverflow post and updated rubygems and rails. But nothing could solve the problem. The following is the complete error, D:\>gem env Invalid gemspec in [D:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/specifications /tilt-1.3.3.gemspec]: invalid date format in specification: "2011-08-25 00:00:00 .0000
Products Kwartz A beautiful template engine. Kwartz can separate presentation logics from html template file, and in the result template is pure HTML file. Kwalify A simple but useful schema validator for YAML and JSON. You can check your YAML or JSON data according to schema definition. Kook Build tool like Make, Rake or Ant for Python and so on. Kook is much powerful than other tools because it
Sifter (freeware) A simple and functional (and free) template engine for PHP/Perl/Ruby/Python シンプルで機能的なPHP/Perl/Ruby/Python用のテンプレートエンジンです。 導入のしやすさと、簡潔なテンプレートが特徴です。 条件分岐やループ(繰り返し)、外部テンプレートの読み込み、フォーム要素への値の埋め込みなど、機能も豊富です。 また、各言語で同じテンプレートを使用できるので、環境によって使い分けることができます。 (言語によって条件判定や演算の結果が異なることがあります) 詳しい使用方法はreferenceの各項目を参照してください。 PHP5、PHP4版(1.1.8) [download] (14.8KB) Perl版(1.1.8) [download] (9.1KB) Ruby版
About SmallCageはシンプルで強力なウェブサイト生成ツールです。 SmallCageは、ソースとなるコンテンツファイルにテンプレートを適用し、静的なウェブページへと変換します。SmallCageの実行にはデータベースもアプリケーションコンテナも必要ありません。様々な場面で手軽に導入でき、たくさんのページを作成する際のつまらない繰り返し作業を劇的に減らすことができるでしょう。 SmallCageでできること コンテンツとレイアウトを分離できます。 コンテンツファイル(YAML)を静的なHTMLへと変換します。静的なHTMLは確認するのも公開するのも簡単です。 1枚のCSVファイルやひとつのGoogle Docs スプレッドシートから、複数のウェブページを生成することができます。 Ruby on Rails, WordPress, MovableTypeなど様々なアプリケーション向
Rails-2.2.2で動いているRailsアプリをRails-2.3.2に移行する場合、 pre>> % rake rails:update <<-- を行うと便利ですが、これを実行すると、以下のようなファイルが影響を受けます。 pre>> Changed but not updated: (use "git add/rm ..." to update what will be committed) deleted: app/controllers/application.rb modified: config/boot.rb modified: config/environment.rb modified: public/javascripts/controls.js modified: public/javascripts/dragdrop.js modified: public/j
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く