o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1361225093.730121: @value"¶{I" class:EFI"ProcessedAsset;FI"logical_path;FI"'rails_assistant/rails_assistant.js;FI" pathname;FI"y/Users/daniel/Projects/Nocturnal/GitHub/RailsAssistant/app/assets/javascripts/rails_assistant/rails_assistant.js.erb;FI"content_type;FI"application/javascript;FI" mtime;FI"2013-02-19T11:04:49+13:00;FI" length;FiUI" digest;F"%36f25ea8ffda1c7bf9189a3fd433baeaI" source;FI"U// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. // // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the // the compiled file. // // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD // GO AFTER THE REQUIRES BELOW. // var ws; var t; function SendMessage() { ws.send(JSON.stringify("ping")); t=setTimeout("SendMessage()",1000); } function Connect() { ws = new WebSocket("ws://localhost:2999/service"); ws.onopen = function() { ws.send(JSON.stringify( {"action":"identifier","identifier":$(location).attr('port')} )) t=setTimeout("SendMessage()",1000); $("#rails-assistant").addClass("connected"); $('#rails-assistant img').attr('title', 'Rails Assistant: Websocket connected'); }; ws.onmessage = function(evt) { var message = evt.data; var json = JSON.parse(message); // $('#rails-assistant').css({opacity: 0.9}); // $('#rails-assistant').animate({opacity: 1}, 100 ); if (json["action"] == "refresh") { window.location.reload(true); } }; ws.onclose = function() { $("#rails-assistant").removeClass("connected"); $('#rails-assistant img').attr('title', 'Rails Assistant: Websocket not connected'); Connect(); }; ws.onerror = function(evt) { // console.log("onerror: " + evt); }; } $(window).load(function() { if ("WebSocket" in window) { $('body').append('
') Connect(); } }); ;FI"dependency_digest;F"%310976d4f30316aeffd73f41f9a510b9I"required_paths;F[ I"w/Users/daniel/.rvm/gems/ruby-1.9.3-p194@RailsAssistant/gems/jquery-rails-2.1.4/vendor/assets/javascripts/jquery.js;FI"{/Users/daniel/.rvm/gems/ruby-1.9.3-p194@RailsAssistant/gems/jquery-rails-2.1.4/vendor/assets/javascripts/jquery_ujs.js;FI"k/Users/daniel/Projects/Nocturnal/GitHub/RailsAssistant/app/assets/javascripts/rails_assistant/json2.js;FI"y/Users/daniel/Projects/Nocturnal/GitHub/RailsAssistant/app/assets/javascripts/rails_assistant/rails_assistant.js.erb;FI"dependency_paths;F[ {I" path;FI"b/Users/daniel/Projects/Nocturnal/GitHub/RailsAssistant/app/assets/javascripts/rails_assistant;FI" mtime;FI"2013-02-12T15:21:42+13:00;FI" digest;F"%59f6ff48041bc3bf81d803081ab41dc4{I" path;FI"y/Users/daniel/Projects/Nocturnal/GitHub/RailsAssistant/app/assets/javascripts/rails_assistant/rails_assistant.js.erb;FI" mtime;FI"2013-02-19T11:04:49+13:00;FI" digest;F"%1afa0f53967778585f47fe38b15d74e3{I" path;FI"w/Users/daniel/.rvm/gems/ruby-1.9.3-p194@RailsAssistant/gems/jquery-rails-2.1.4/vendor/assets/javascripts/jquery.js;FI" mtime;FI"2013-01-15T23:04:30+13:00;FI" digest;F"%f2ce65e415fd2052859d295e2408c12f{I" path;FI"{/Users/daniel/.rvm/gems/ruby-1.9.3-p194@RailsAssistant/gems/jquery-rails-2.1.4/vendor/assets/javascripts/jquery_ujs.js;FI" mtime;FI"2013-01-15T23:04:30+13:00;FI" digest;F"%dbffce0516bb6cebd4daed20bf58d5ba{I" path;FI"k/Users/daniel/Projects/Nocturnal/GitHub/RailsAssistant/app/assets/javascripts/rails_assistant/json2.js;FI" mtime;FI"2013-02-12T15:21:42+13:00;FI" digest;F"%410a4cb6f401d02b76e00255fe86d646I" _version;F"%6776f581a4329e299531e1d52aa59832