projects
/
depot.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Froze rails gems
[depot.git]
/
vendor
/
rails
/
actionpack
/
test
/
testing_sandbox.rb
1
module
TestingSandbox
2
# Temporarily replaces KCODE for the block
3
def
with_kcode
(
kcode
)
4
if
RUBY_VERSION
<
'1.9'
5
old_kcode
,
$KCODE
=
$KCODE
,
kcode
6
begin
7
yield
8
ensure
9
$KCODE
=
old_kcode
10
end
11
else
12
yield
13
end
14
end
15
end