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
# Ruby/C/Fortran Bridge Rakefile | |
# Cameron Carroll, July 2012 | |
# Purpose: Rake build script to facilitate calling Fortran code from Ruby in order to outsource | |
# heavy lifting computation. This script will compile Fortran and C code in present directory | |
# but leaves implementation and linking up to the user. | |
# | |
# Notes: This script may require a little bit of configuration depending on the system. | |
# 1: The Ruby include flags are specifically for MY system. I haven't found a way to generate them, | |
# so you have to either tailor them by hand or generate a extconf.rb makefile, enable verbose mode, | |
# and copy the include flags from the compile command. Yeah, I know, I know... |
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
# Ruby/C/Fortran Bridge Rakefile | |
# Cameron Carroll, July 2012 | |
# Purpose: Rake build script to facilitate calling Fortran code from Ruby in order to outsource | |
# heavy lifting computation. This script will compile Fortran and C code in present directory | |
# but leaves implementation and linking up to the user. | |
# | |
# Notes: This script may require a little bit of configuration depending on the system. | |
# 1: The Ruby include flags are specifically for MY system. I haven't found a way to generate them, | |
# so you have to either tailor them by hand or generate a extconf.rb makefile, enable verbose mode, | |
# and copy the include flags from the compile command. Yeah, I know, I know... |
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
# A Rails 2.3.14 monkey patch for the "XSS Vulnerability in the select helper", as reported in: | |
# http://groups.google.com/group/rubyonrails-security/browse_thread/thread/9da0c515a6c4664 | |
# | |
module ActionView | |
module Helpers | |
class InstanceTag #:nodoc: | |
private | |
def add_options(option_tags, options, value = nil) | |
if options[:include_blank] |