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
| Index: vendor/plugins/cache_fu/lib/acts_as_cached/config.rb | |
| =================================================================== | |
| --- vendor/plugins/cache_fu/lib/acts_as_cached/config.rb (revision 2337) | |
| +++ vendor/plugins/cache_fu/lib/acts_as_cached/config.rb (working copy) | |
| @@ -42,9 +42,16 @@ | |
| def setup_memcache(config) | |
| config[:namespace] << "-#{RAILS_ENV}" | |
| - | |
| + |
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
| namespace 'views' do | |
| desc 'Renames all your html.erb views to erb' | |
| task 'rename' do | |
| Dir.glob('app/views/**/*.html.erb').each do |file| | |
| puts "#{file} -> #{file.gsub(/\.html.erb$/, '.erb')}" | |
| #puts `mv #{file} #{file.gsub(/\.html.erb$/, '.erb')}` | |
| end | |
| end | |
| end |
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
| IO.popen( "prince_whatever", "r+" ) do |pipe| | |
| pipe.puts( _html ) | |
| pipe.gets | |
| end |
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
| macbook-pros-computer:ruby187 lourens$ gdb miniruby | |
| GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007) | |
| Copyright 2004 Free Software Foundation, Inc. | |
| GDB is free software, covered by the GNU General Public License, and you are | |
| welcome to change it and/or distribute copies of it under certain conditions. | |
| Type "show copying" to see the conditions. | |
| There is absolutely no warranty for GDB. Type "show warranty" for details. | |
| This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries .... done | |
| (gdb) break malloc_error_break |
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
| static VALUE | |
| rb_callcc(self) | |
| VALUE self; | |
| { | |
| volatile VALUE cont; | |
| rb_thread_t th; | |
| volatile rb_thread_t th_save; | |
| struct tag *tag; | |
| struct RVarmap *vars; | |
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
| macbook-pros-computer:ruby187 lourens$ gdb miniruby | |
| GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007) | |
| Copyright 2004 Free Software Foundation, Inc. | |
| GDB is free software, covered by the GNU General Public License, and you are | |
| welcome to change it and/or distribute copies of it under certain conditions. | |
| Type "show copying" to see the conditions. | |
| There is absolutely no warranty for GDB. Type "show warranty" for details. | |
| This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries .... done | |
| (gdb) break malloc_error_break |
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
| ## | |
| # Select whether or not to use the pretty-printer. If this option is set | |
| # to false before any assertions are made, pp.rb will not be required. | |
| public | |
| def self.use_pp=(value) | |
| AssertionMessage.use_pp = value | |
| end |
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
| def output_single(something, level=NORMAL) | |
| @io.write(something) if (output?(level)) | |
| @io.flush | |
| end |
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
| static void | |
| fiber_link_join(rb_fiber_t *fib) | |
| { | |
| VALUE current_fibval = rb_fiber_current(); | |
| rb_fiber_t *current_fib; | |
| GetFiberPtr(current_fibval, current_fib); | |
| /* join fiber link */ | |
| fib->next_fiber = current_fib->next_fiber; | |
| fib->prev_fiber = current_fib; | |
| current_fib->next_fiber = fib; |
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
| macbook-pros-computer:ruby187 lourens$ gdb miniruby | |
| GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007) | |
| Copyright 2004 Free Software Foundation, Inc. | |
| GDB is free software, covered by the GNU General Public License, and you are | |
| welcome to change it and/or distribute copies of it under certain conditions. | |
| Type "show copying" to see the conditions. | |
| There is absolutely no warranty for GDB. Type "show warranty" for details. | |
| This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries .... done | |
| (gdb) break malloc_error_break |