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
まずはインストール gem install selenium-webdriver 公式ドキュメントのサンプルをchromeに換えて動かすと require "selenium-webdriver" driver = Selenium::WebDriver.for :chrome driver.navigate.to "http://google.com" element = driver.find_element(:name, 'q') element.send_keys "Hello WebDriver!" element.submit puts driver.title driver.quit エラーが C:/Ruby200-p353/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.41.0/lib/selenium/ webdriver/c
pry実行時のIntegerの色が暗い紫で背景黒だとめちゃくちゃ見にくかったので変更しました。 調べた中で簡単に設定できるruby version番号の表示の設定も行ってみました。 pryの色変更方法 .pryrcがなければ、homeディレクトリに作成し、以下の設定を行う。 .pryrcの設定 # 色設定メソッドの定義 def Pry.set_color sym, color CodeRay::Encoders::Terminal::TOKEN_COLORS[sym] = color.to_s { sym => color.to_s } end # 色設定の変更 Pry.set_color :integer, "\e[1;36m" 設定書式 Pry.set_color Symbol "ESC [ 色コード m" 上記の例だと「1;36」が色コード 使用可能なSymbolの一覧とデフォルト色
Sam Phippen, Myron Marston, Jon Rowe and Yuji NakayamaJul 1, 2016RSpec 3.5 がリリースされました! 私たちは semantic versioning に準拠する方針を掲げているため、 このリリースはすでに RSpec 3 を使っている方にとってなにか対応が必要になるものではありません。 しかし、もし私たちがバグを作り込んでしまっていた場合は教えてください。 できるだけ早く修正をし、パッチ版をリリースします。 RSpec は世界中のコントリビュータと共に、コミュニティ主導のプロジェクトであり続けます。 今回のリリースには、50 人以上のコントリビュータによる 600 以上のコミットと 150 以上の pull request が含まれています! このリリースに向けて力になってくれたみなさん、ありがとう! 主要な変更 C
translations Documentation RSpec is a great tool in the behavior-driven development (BDD) process of writing human readable specifications that direct and validate the development of your application. On the web there are many resources that give complete overview of _what_ you can do with RSpec. But there are fewer resources devoted to how to create a great RSpec test suite. Better Specs tries to
Summary: Ruby apps in the memory-restrictive and randomly-routed Heroku environment don't have to be slow. Achieve (3706 words/18 minutes) I've seen a lot of slow Ruby web apps. Sometimes, it feels like my entire consulting career has been a slow accumulation of downward-sloping New Relic graphs. Why is the case? If you read that bastion of intellectual thought, Hacker News, you'd think it was bec
Twitterでのぼってきてツボったので。 Emacs Lispで解いてみたというのならばRubyで解いてみましょう。 http://furandon-pig.hatenablog.com/entry/2014/07/28/012735 キライの ハンタイの ハンタイの ハンタイの ハンタイの そのさらにハンタイの キモチを伝えるのって 何だか難しい (setq キライの nil) (defun ハンタイの(p) (not p)) (defun そのさらにハンタイの(p) (not p)) (defun キモチを伝えるのって(p) (if p 'スキ 'キライ)) (defun 何だか難しい(p) p) (defun ハンタイは?(p) (if (not p) 'スキ 'キライ)) (何だか難しい (キモチを伝えるのって (そのさらにハンタイの (ハンタイの (ハンタイの (ハンタイの (
Rubyのヒアドキュメントは便利です。複数行に渡る整形文章を出力するときに、これを使わない手はありません。 class ATool def self.help lines = <<EOS Instruction of `#{self}` `#{self}` is one of a great tool in the world. This helps you a lot on your daily work. Your life will be changed with `#{self}`!! Everyone knows about `#{self}`. So, You can ask them to learn `#{self}` Just Use `#{self}` from Today! EOS lines end end puts ATool.help # >> Instruct
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く