rethinkdb/rethinkdb — pull request #1846 by nviennot (2014-01-11 05:46:50+00:00)
Title: Ruby: Fix mutable backtrace

This program:

```ruby
require 'rethinkdb'
extend RethinkDB::Shortcuts
r.connect.repl

q = r.table("non_existent_table").orderby({:index => r.asc("id")}).limit(1)
puts q.pp
q.run rescue nil
puts q.pp
```

Outputs:

```
r.table("non_existent_table").limit(1)
r.table("non_existent_table").limit(1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Erroneous_Portion_Constructed:
from test.rb:5:in `

'
Called:
```

Expected output:

```
r.table("non_existent_table").limit(1)
r.table("non_existent_table").limit(1)
```

Issue: the driver should not mutate queries.