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
Rackとは RackはRubyによるWebアプリケーション開発のHTTP送受信処理を担当するモジュール(gem)で、Ruby on Railsを始めとする多くのWebフレームワークの一番下のレベルで利用されています。 https://github.com/rack/rack http://rack.github.io/ 本稿ではRackの基本的な部分を中心に説明します。 簡単なRackアプリケーション まず基本を理解するため説明用の簡単なアプリケーションを作成します。 最初にrack gemのインストールが必要ですが、Ruby on Railsをインストールしている場合はすでに必須モジュールとして入っています。単独でインストールする場合は次を参考にして下さい。 http://qiita.com/higuma/items/b23ca9d96dac49999ab9#2-3 次にconfig.
11. 今日実装する機能 • 整数リテラル(1, 2, 3, ...) • 加算(1 + 2) • グローバル変数の参照と代入(gvar = 77; gvar) • ローカル変数の参照と代入(var lvar = 77; lvar) • 関数呼び出し(f(77)) • 非常に簡単な最適化 12. JavaScriptを厳密に知るなら ECMAScript 2015 Language Specification http://www.ecma-international.org/publications/ files/ECMA-ST/Ecma-262.pdf ※半分冗談だけど半分は本気です
Subject: [ruby-list:49902] [ANN] test-unit 3.0.0 From: Kouhei Sutou <kou@ z x . g Date: Sun, 03 Aug 2014 16:05:27 +0900 (JST) 須藤です。 test-unit 3.0.0をリリースしました。 Web: http://test-unit.github.io/ja/#test-unit インストール: gem install test-unit test-unitとは: test-unitは テストコードもいつも通りのRubyのコードとして書けること を大事にしているxUnit系の単体テストフレームワークです。 私たちはRubyで楽しくプログラムを書いているはずなので、テスト を楽しく書くためにはいつも通りコードを書けることが大事だとい う考えです。 このリリースについて
Most of the open-source software that I write is done at least partly for learning purposes. The majority of it isn’t used by many people, I just wrote it to implement some existing idea, so I could understand how it works. One such project is Canopy, a PEG parser generator that I originally wrote as part of a very protracted yak shave – while writing a Capybara driver to run in the browser, I fou
BUNDLED WITH って何? bundler 1.10.0 以降で作成された Gemfile.lock では、BUNDLED WITH というセクションがあって、使用された bundler のバージョンがトラックされるようになっている [3485] 。 例えば bundler 1.9.0 で作成された Gemfile.lock のあるプロジェクト上で、 最新の bundler 1.10.3 を使用して bundle install --path vendor/bundle すると、 Gemfile.lock には以下の差分ができる。 これをもう一度 1.9.0 で bundle install すると、上の文字はきれいさっぱり消える。 BUNDLED WITH の何が困るか 多人数で開発するときには、この変更は微妙に邪魔で、意図しない Gemfile.lock 変更が出てしまうことで
Just when you’re getting used to working with Sass, you hear about a new type of Sass called LibSass. Then you immediately start asking yourself: “What the heck is LibSass? Should I drop Ruby Sass and get on board with LibSass? Oh no — I’m behind on the new hotness!” Don’t worry, you’re not behind… As you’ll learn, Ruby Sass and LibSass are similar. The main differences are in the implementation,
Automated testing of look and feel for your responsive websites Download 2.4.4 The Idea... Layout testing seemed always a complex task. Galen Framework offers a simple solution: test location of objects relatively to each other on page. Using a special syntax and comprehensive rules you can describe any layout you can imagine Runs in Selenium Grid Galen Framework runs well in Selenium Grid. You ca
Capistrano3 を使って、Bitbucket に作成したリポジトリに置いた Rail アプリケーションを、staging 環境の CentOS サーバーにデプロイさせるところまで試しました。忘れないように作業記録です。 — 環境 — Rails 4.1.1 Capistrano 3.2.1 SSH接続の設定 作業は手元の Mac にて。 1. Mac ローカルから Bitbucket リポジトリに push 2. staging 環境のサーバーが Bitbucket から master ブランチをチェックアウトしてデプロイ という流れになります。SSH接続のために、2種類の鍵ペア(秘密鍵・公開鍵)が必要となる。 ① Mac ローカルから staging サーバーへの SSH 接続用 ② staging サーバーから Bitbucket への SSH 接続用 いずれもパスフレーズを空
はじめに AWSにEC2インスタンス(Amazon Linux)を新規作成して、capistrano 3.3 + rbenv + Bundler + Ruby 2.2.0をインストールして、capistrano3サーバを構築する手順です。 capistrano3サーバ上でcapistranoタスク(task)を実行する事で、ssh経由でリモートサーバ(CentOS 6.6)へ接続し、リモートサーバ上の設定ファイル(今回の例では/etc/hostsファイル)の内容を変更するところまで記載致します。 EC2インスタンス作成時に使用したAMI ・Amazon Linux AMI 2014.09.1 (HVM) - ami-4985b048 構築した環境 以下の構成でcapistrano3サーバを構築する手順になります。 ・Amazon Linux ・capistrano3 (Capistrano
About reserved postingIf you register a secret article by the day before the same day, it will be automatically published around 7:00 on the same day. About posting periodOnly articles submitted after November 1 of the year can be registered. (Secret articles can be registered anytime articles are posted.)
While few people deny the benefits of test automation, comprehensive automated testing via UI (browser for web applications) is rarely implemented in software projects. Common reasons for projects' failed attempts on test automation are: Difficult to learn - test scripts are complex and testing tools are not easy to useHard to maintain - UI tests are vulnerable to application changesLong feedback
RailsアプリケーションからSprocketsが受け持っている処理をNodeパッケージに移そうとした挑戦の記録です。joker1007さんの https://github.com/joker1007/rails_browserify_sample や https://speakerdeck.com/j…
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く