March 31, 2012 Tagged: bundler ruby rails suspenders Comments (View) What would happen if you ran bundle update right now? Is there a bundle command to tell me what would be updated with bundle update , without actually making those updates? As it turns out there is! Bundler 1.1 intro...
Followup to RESTful thinking considered harmful Posted by wvanbergen on March 31, 2012 — 0 comments Because many people didn't get the point I was trying to make in my RESTful considered harmful post (due to my own fault), I wrote a followup post for clarification. Comments Post a...
We have been working hard on making RVM rock-solid, and to prevent regressions while simultaneously fixing and improving it. As a result, we now have RVM stable and RVM tests. This created a level of stability on which you can rely, and we have already heard that it works and is used ...
reading large xml made easy Posted by amolnpujari on March 31, 2012 — 6 comments hey look ...this is very large xml I have, I guess it has these elements inside, let me know if you find any one of these elements .... here it is... Comments Christian Louboutinafra99 - March 31, 201...
JbuilderはJSONレスポンスを出力するテンプレートエンジンです。David Heinemeier Hanssonが最近作成したものですが、Rails 3.2には含まれずに独立したgemとしてリリースされました。このアプローチをとることによって、以前のバージョンのRailsでも利用可能になっています。JbuilderはJSONを生成するための、XML Builderに似た便利なDSLを提供します。今回のエピソードでその使い方を紹介します。
bash git clone [email protected]:ryanb/vcr.git cd vcr git branch -r bundle install bundle exec rake git submodule init git submodule update git status git checkout . git checkout -b readme-contributing-link git diff git commit -a -m "adding contributing link to readme" git push origin re...
How do you use jQuery with Rails? In this episode I redo episode #43 using jQuery instead of Prototype/RJS.
csv_combine 0.1.0 The combined CSV file is read. install gem install csv_combine Download Documentation Subscribe Stats Authors Yamamoto Kazuhisa 10 total downloads 10 for this version Owners Links Homepage Bundler gem "csv_combine", "~> 0.1.0" Versions 0.1.0 March 31, 2012 Developmen...
#291 Testing with VCR Oct 17, 2011 | 13 minutes | Testing , Plugins If you ever need to test an application which communicates with an external API, VCR is the way to go. Here I show a workflow in RSpec, how to use with capybara-mechanize, how to add sanitization filtering, and more. ...
We're moving Pivotal Tracker to a new, faster database server with solid state drives tomorrow, and performing some other maintenance that requires downtime. To minimize disruption during work hours in as many parts of the world as possible, we're planning this maintenance for tomorro...
# find in batches Product.count Product.find_in_batches(:batch_size => 10) do |batch| puts "Products in batch: #{batch.size}" end Product.each(:batch_size => 10) do |product| puts product.name end # scoped_by Product.scoped_by_price(4.99).size Product.scoped_by_price(4.99).first Produ...
Nov 09, 2009 | 10 minutes | Testing , Debugging Sometimes bad code slips into production and triggers a 500 error. Learn how to be notified of this and resolve it through integration tests. Click to Play Video ▶ Tweet Download: source code Project Files in Zip (94.8 KB) mp4 Full Size ...
Try JRuby! This applet lets you try JRuby in your browser. It's a 6 or 13MB file so it may take a few seconds to download. You can also download the IRB console as a WebStart app by downloading the WebStart JNLP file and running "javaws irb.jnlp" or launch it in directly (on some brow...
Comparing characters and uris is surprisingly more difficult and important than you might otherwise imagine (think: security holes) Layering is the problem, not the solution
Spectacular is an SNMP client that displays traffic information in the browser.
あなたが作ったメソッドの名前を仮に cmaxlen(i, j) とした require 'runit/testcase' require 'runit/cui/testrunner' require 'benchmark' include Benchmark class TestUnit < RUNIT::TestCase def setup # for test 1. c = 10 tw = 100 @tiny_data = (1..c).map { s = rand(1000) [s, s + tw] } # for test 2. limit = 10000...
cutest 1.1.3 Run tests in separate processes to avoid shared state. install gem install cutest Download Documentation Subscribe Stats Authors Damian Janowski, Michel Martens 9,455 total downloads 933 for this version Owners Links Homepage Source Code Bundler gem "cutest", "~> 1.1.3" V...
require 'matrix' require 'complex' class Vector def conjugate collect{|e| e.conjugate } end end v1 = Vector[Complex(1,1),Complex(2,2),Complex(3,3)] v2 = v1.conjugate p v2 #=> Vector[Complex(1,-1),Complex(2,-2),Complex(3,-3)] v3 = v1+v2 p v3 #=> Vector[Complex(1,0),Complex(2,0),Complex...
My understanding of integration testing is testing anything that needs to work together without any level of mocking. On server provisioning this can be extremely slow (10 minutes per test or more). This is where the split becomes important. Let's I have some complex logic in an app a...
date = Date.new(2010, 1, 1) %w(robot automobile ship).each do |code| Department.create!({ code: code, name: code.capitalize, started_on: date, ended_on: nil }, without_protection: true) end %w(alpha bravo).each_with_index do |code, index| Product.create!({ code: code, started_on: date...