Changeset 812
- Timestamp:
- 10/29/07 10:59:37 (6 years ago)
- Location:
- lang/ruby/Amalgam
- Files:
-
- 3 modified
-
AppController.rb (modified) (3 diffs)
-
plugins/debug_eval.rb (modified) (2 diffs)
-
plugins/firefox.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/Amalgam/AppController.rb
r800 r812 127 127 128 128 def reload 129 [plugins, default_plugins].each do |p| 130 p.reload.first.each do |c| 129 reloaded = [] 130 [self.plugins, self.default_plugins].each do |pl| 131 pl.reload.first.each do |c| 132 log c 133 reloaded << c 131 134 plugins[c].init(@controller) 132 135 end 133 136 end 137 reloaded 138 end 139 140 def inspect 141 "#<%s:%#08x>" % [self.class.to_s, self.object_id] 134 142 end 135 143 end … … 199 207 rescue Exception => e 200 208 log e 209 $stderr.puts e.backtrace 201 210 alert("Error", e.inspect) 202 211 end … … 432 441 end 433 442 434 def reload 435 @config.reload 436 end 437 438 439 end 440 441 443 end 444 445 -
lang/ruby/Amalgam/plugins/debug_eval.rb
r796 r812 18 18 ] 19 19 else 20 # @config を評価すると SEGV するためコメントアウト21 20 [ 22 21 "restart", 23 # "reload",24 #"build_candidates",22 "@config.reload", 23 "build_candidates", 25 24 ].map do |m| 26 25 Candidate.new(m, m, NSApp.applicationIconImage) do … … 38 37 rescue Exception => e 39 38 result = e.inspect 39 result << "\n#{e.backtrace.join("\n")}" 40 40 end 41 41 log result -
lang/ruby/Amalgam/plugins/firefox.rb
r797 r812 35 35 telnet.cmd("") { |c| result << c } 36 36 eval(result.gsub(/repl> /, "")) 37 rescue 37 rescue Exception 38 38 log "Failed to get history... retry..." 39 39 sleep 10
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)