Created
September 27, 2010 16:31
-
-
Save jdee/599313 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jdee@fatman:~/github/csinitiative/trisano/webapp$ cat check_cr.rb | |
#!/usr/bin/env ruby | |
require File.join(File.dirname(__FILE__), 'features', 'support', | |
'hl7_messages') | |
puts "a CR character in a here doc becomes " + | |
HL7MESSAGES[:empty_batch].slice(96,1).inspect | |
jdee@fatman:~/github/csinitiative/trisano/webapp$ rvm list | |
rvm rubies | |
ruby-1.9.2-p0 [ x86_64 ] | |
jruby-1.3.1 [ amd64-java ] | |
=> jruby-1.5.2 [ amd64-java ] | |
ruby-1.8.7-p302 [ x86_64 ] | |
jdee@fatman:~/github/csinitiative/trisano/webapp$ ./check_cr.rb | |
a CR character in a here doc becomes "\n" | |
jdee@fatman:~/github/csinitiative/trisano/webapp$ rvm use 1.9.2 | |
Using /home/jdee/.rvm/gems/ruby-1.9.2-p0 | |
jdee@fatman:~/github/csinitiative/trisano/webapp$ ./check_cr.rb | |
a CR character in a here doc becomes "\r" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment