-
-
Save pjammer/caf0aff6c57f9ca011a9 to your computer and use it in GitHub Desktop.
This file contains 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
#I'd like to just return the changes... | |
@diff= (transaction_3.raw_data - transaction.raw_data) | |
=> "[\"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Transitional//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\\"> <html xmlns=\\\"http://www.w3.org/1999/xhtml\\\" xml:lang=\\\"en\\\" lang=\\\"en\\\"> <head> <meta http-equiv=\\\"content-type\\\" content=\\\"text/html;charset=UTF-8\\\" /> <title>Ingram Internet Enterprises: Textmate Ruby 1.9.1 and rvm - the facts</title> <link href=\\\"/stylesheets/site_style.css?1269786783\\\" media=\\\"screen\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\" /> <script src=\\\"/javascripts/prototype.js?1242493369\\\" type=\\\"text/javascript\\\"></script> <script src=\\\"/javascripts/effects.js?1242493369\\\" type=\\\"text/javascript\\\"></script> <script src=\\\"/javascripts/dragdrop.js?1242493369\\\" type=\\\"text/javascript\\\"></script> <script src=\\\"/javascripts/controls.js?1242493369\\\" type=\\\"text/javascript\\\"></script> <script src=\\\"/javascripts/application.js?1242493369\\\" type=\\\"text/javascript\\\"></script> </head> <body> <div id=\\\"header\\\"> <div id=\\\"menu_container\\\"> <ul> <li id=\\\"first\\\"><a href=\\\"/\\\">Home</a> </li> <li><a href=\\\"/posts\\\">Blog</a> </li> <li><a href=\\\"/projects\\\">Projects</a> </li> <li><a href=\\\"/contact\\\">Contact Us</a> </li> </ul> </div> </div> <div id=\\\"page\\\"> <div id=\\\"flash\\\"> <p> </p> </div> <div id=\\\"content\\\"> <div id='post_container'> <div id=\\\"ltcolumn\\\"> <h1> Textmate Ruby 1.9.1 and rvm - the facts </h1> <p><small>Posted 3 months ago by Philip Ingram</small> </p> <p> boy, I almost went to macVim because of this error. <em>/me <strong>shudders</strong>.</em></p> <p>Note: this solution appears to work for Mac’s that can’t run in Snow Leopard in full 64 bit mode. Here is my uname on my box:<br /> <pre><code> $ uname -a Darwin macbook.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386 </code></pre></p> <h2>Google Bait: Errors i got</h2> <p>So here is the final error i got in the end that brought all of this together<br /> <pre><br /> <code> macbook:Bundles nerb$ osascript -e 'tell app \\\"TextMate\\\" to reload bundles' 2010-02-11 09:14:54.925 osascript[91871:903] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find: /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper osascript: OpenScripting.framework - scripting addition \\\"/Library/ScriptingAdditions/Adobe Unit Types.osax\\\" declares no loadable handlers. </code><br /> </pre></p> <h2>You are trying to get <span class=\\\"caps\\\">RVM</span>, Ruby 1.9.1 and the Textmate w/Ruby on Rails bundle to work.</h2> <ul> <li><em>You’ve installed rvm and are using Ruby version 1.9.1</em> – No steps here, google is your friend.</li> <li><em>You are getting weird Textmate snippet errors</em> – Things that worked before are now botched. It’s because of the ruby on Rails tmbundle that you’ve yet to update.</li> </ul> <h2>Steps to fix</h2> <p>Well, it was another Wayne E. Seguin impromptu script that came through for me. Praise be unto him.</p> <ol> <li>First be sure your textmate is latest version</li> </ol> <ol> <li>Then run the script below to make sure that your textmate bundles are up to date (you may have to run it as root depending on your permissions).<br /> <pre><code> #!/usr/bin/env bash</li> </ol> <p>mkdir -p /Library/Application\\\\ Support/TextMate/<br /> cd /Library/Application\\\\ Support/TextMate/</p> <p>if [[ -d Bundles/.svn ]] ; then<br /> cd Bundles && svn up<br /> else<br /> if [[ -d Bundles ]] ; then<br /> mv Bundles Bundles.old<br /> fi<br /> svn co http://svn.textmate.org/trunk/Bundles<br /> fi</p> <p>arch -i386 osascript -e ‘tell app “TextMate” to reload bundles’</p> <p>exit 0<br /> </code></pre></p> <ol> <li>Set a textmate rvm ruby:<br /> <pre><code> rvm 1.9.1 --symlink textmate</code></pre></li> </ol> <ol> <li>Then go to Textmate | Preferences | Advanced | Shell Variables, click the + sign and add this variable (change <span class=\\\"caps\\\">YOURUSERNAME</span> to your real user name)<br /> <pre><code> TM_RUBY to /Users/YOURUSERNAME/.rvm/bin/textmate </code></pre></li> </ol> <ol> <li>Close textmate and re-open it after to be sure everything is correct.</li> </ol> <h2>If it doesn’t work:</h2> <p>Perhaps you missed the uname line at the top and you are lucky enough to be running Snow Leopard in a native 64 bit environment, cough <em>prick</em> cough. Well just run this last line of the script without the "arch -i386 " bit.<br /> <pre><code> macbook:Bundles $ osascript -e 'tell app \\\"TextMate\\\" to reload bundles' </code><br /> </pre></p> <h2>If that still doesn’t work:</h2> <p>Perhaps you’ll need a new <a href=\\\"http://github.com/drnic/ruby-on-rails-tmbundle\\\">Ruby on Rails tmbundle</a>.</p> <p>Follow the instructions to download and when you run the osascript line at the bottom, adjust it to use the ‘arch -i386’ flag as we do in the script. Again, assuming you’ve got a uname similar to mine.</p> <p>Hope it helps. </p> <h1>Comments</h1> <div id=\\\"comment_container\\\"> <div id=\\\"comment_lt\\\"> <img alt=\\\"844c4a75a36ff4948d3bbcd77217a4da\\\" src=\\\"http://gravatar.com/avatar/844c4a75a36ff4948d3bbcd77217a4da.png?r=PG&s=50\\\" /> <a href=\\\"http://andrewcox.org\\\">Andrew Cox</a> </div> <div id=\\\"comment_rt\\\"> Awesome. </p> <p>I recently switched to Ruby 1.9.1 with rvm and since I was already up-to-date with my Rails TextMate bundle, I just needed to do the symlink and set the TM_RUBY variable and all was well.</p> <p>Thanks! </div> </div> <div \", <ins class=\"differ\">id=\"comment_container\"> <div id=\"comment_lt\"> <img alt=\"8f5dac3a09b4b8a3d049be5ad0ba11c7\" src=\"http://gravatar.com/avatar/8f5dac3a09b4b8a3d049be5ad0ba11c7.png?r=PG&s=50\" /> Philip Ingram </div> <div id=\"comment_rt\"> Shortly After I wrote this post, Rails should use Ruby 1.9.2-head (now preview, but i can only speak to head). I should revamp this post shortly. </div> </div> <div </ins>, \"id='hide_it'> <h3><a href=\\\"#\\\" onclick=\\\"new Effect.Fold('hide_it');new Effect.BlindDown('show_it', {queue: 'end'}); return false;\\\">Write a Comment</a></h3> </div> <div id='show_it' style=\\\"display:none;\\\"> <hr /> <h2>Write your comment</h2> <form action=\\\"/posts/18-textmate-ruby-1-9-1-and-rvm-the-facts/comments\\\" class=\\\"new_comment\\\" id=\\\"new_comment\\\" method=\\\"post\\\"><div style=\\\"margin:0;padding:0;display:inline\\\"><input name=\\\"authenticity_token\\\" type=\\\"hidden\\\" \", <del class=\"differ\">value=\"xgIMthR9WsShwLXvLU+llPS4XlUwNmtZQEViDdtuIg4=\"</del><ins class=\"differ\">value=\"2OQ+pk5nREf3sW9SMp2zj1yrVuFnO268G8Qk12N6gp4=\"</ins>, \" /></div> <p> <label for=\\\"comment_author\\\">Name *</label><br /> <input id=\\\"comment_author\\\" name=\\\"comment[author]\\\" size=\\\"30\\\" type=\\\"text\\\" /> <p> <label for=\\\"comment_email\\\">Email * - (only used for verification purposes)</label><br /> <input id=\\\"comment_email\\\" name=\\\"comment[email]\\\" size=\\\"30\\\" type=\\\"text\\\" /> </p> <p> <label for=\\\"comment_url\\\">Url</label><br /> <input id=\\\"comment_url\\\" name=\\\"comment[url]\\\" size=\\\"30\\\" type=\\\"text\\\" /> </p> <p> <label for=\\\"comment_body\\\">Comment *</label> - You may use <a href=\\\"http://hobix.com/textile/quick.html\\\" target=_blank>Textile</a>.<br /> <textarea cols=\\\"40\\\" id=\\\"comment_body\\\" name=\\\"comment[body]\\\" rows=\\\"8\\\"></textarea> </p> <p><small>* - Mandatory Fields</small></p> <p> <input id=\\\"comment_submit\\\" name=\\\"commit\\\" type=\\\"submit\\\" value=\\\"Post Comment\\\" /> </p> </p> </form><br /> </div> </div> <div id=\\\"rtcolumn\\\"> <h2>Recent Posts</h2> <p><a href=\\\"/posts/22-testing-activeresource-basic-tutorial\\\">Testing ActiveResource - Basic Tutorial</a> </p> <p><a href=\\\"/posts/21-active-resource-to-sinatra-datamapper-backend\\\">Active Resource to Sinatra DataMapper backend</a> </p> <p><a href=\\\"/posts/20-armrest-and-the-tale-of-the-no-schema-scheme\\\">ArmRest and the tale of the No Schema Scheme</a> </p> <p><a href=\\\"/posts/19-active-resource-view-examples\\\">Active Resource View Examples</a> </p> <p><a href=\\\"/posts/18-textmate-ruby-1-9-1-and-rvm-the-facts\\\">Textmate Ruby 1.9.1 and rvm - the facts</a> </p> <p><a href=\\\"/posts/17-easiest-postgres-install-ever-mac-edition\\\">Easiest Postgres Install Ever - Mac Edition</a> </p> <p><a href=\\\"/posts/16-two-questions-to-help-decide-between-rdbms-mongodb-or-couchdb\\\">Two Questions to Help Decide Between RDBMS, MongoDB or CouchDB</a> </p> <p><a href=\\\"/posts/15-testing-rails-3-just-the-facts\\\">Testing Rails 3 - Just the Facts</a> </p> <p><a href=\\\"/posts/14-acts_as_snook-creating-an-admin-panel\\\">Acts_as_snook - Creating an admin panel </a> </p> <p><a href=\\\"/posts/13-top-10-movies-of-this-decade-rebuttal\\\">Top 10 Movies of this Decade... Rebuttal</a> </p> <p><a href=\\\"/posts/12-thinking_sphinx-easy-setup-tutorial\\\">Thinking_Sphinx - Easy Setup Tutorial</a> </p> <p><a href=\\\"/posts/11-how-to-use-callback-classes\\\">How to Use Callback Classes</a> </p> <p><a href=\\\"/posts/10-naming-patterns-used-in-online-applications\\\">Naming Patterns used in Online Applications</a> </p> <p><a href=\\\"/posts/9-solved-xterm-16color-unknown-terminal-type\\\">Solved: 'xterm-16color': unknown terminal type.</a> </p> <p><a href=\\\"/posts/8-using-the-paypal-ipn-with-rails\\\">Using the PayPal IPN with Rails</a> </p> </div> </div> </div> </div> <div id=\\\"footer\\\"><p>©Ingram Internet Enterprises</p></div> </body> </html>\"]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment