1 2345678910...
|
=begin
= $RCSfile: ftptls.rb,v $ -- SSL/TLS enhancement for Net::HTTP.
= Info
'OpenSSL for Ruby 2' project
Language: Ruby (C) 2003 Blaz Grilc LOC: 17 Savannah NonGNU : RubyPKI (project search) : .../rubypki/ossl2/lib/net/ftptls.rb
|
def do_POST(req, res)
if req["content-length"].to_i > 1024*10
raise WEBrick::HTTPStatus::Forbidden, "file size too large"
end
if req["user-agent"] =~ /Konqueror\/3.3/
Language: Ruby LOC: 104 RubyForge : R:O:S, Ruby Operating System (project search) : .../projects/experiments/config_system/webrick_samples/xmlhttprequest.rb
|
MINSIZE = 3500
Thread.abort_on_exception = true
def note(file_content)
begin
cmd = IO.popen("bogofilter -v -c /etc/pornfind/bogofilter.cf -t","w+")
Language: Ruby License: GPL LOC: 164 Savannah NonGNU : Porn web page detector (project search) : .../p/pornfind/pornfind/pornfind/parse_porn.rb
|
@model._setup
end
def open(fileName)
@currentFile = fileName
@buffer = nil
Language: Ruby (c) 2001, Richard Kilmer, rich@infoether.com LOC: 497 Savannah NonGNU : FreeRIDE (project search) : .../freeride/plugins/rubyide_fox_gui/fxscintilla/scintilla.rb
|
if ruby_source_path.nil? then
cached_dir = "ext/cached/ruby-#{RUBY_VERSION}"
if File.exist?(cached_dir) then
puts "Ruby source path not specified; using generated files from #{cached_dir}"
else
Language: Ruby LOC: 44 RubyForge : nodewrap (project search) : .../n/nodewrap/nodewrap/nodewrap/post-config.rb
|
class FileReadFunctions
def initialize(directory)
@directory = directory
Language: Ruby LOC: 279 RubyForge : B10g - A Simple Ruby Weblog (project search) : .../b10g/b10g/b10g/Ruby/FileReadFunctions.rb
|
end
end
unless File.respond_to?(:read)
def File.read(fname)
open(fname) {|f|
Language: Ruby License: LGPL (c) 2000-2004 Minero Aoki LOC: 1002 RubyForge : Net::SSH (project search) : .../net-ssh/net-ssh-0.1.0/setup.rb
|
#
# This file is automatically generated. DO NOT MODIFY!
#
# setup.rb
Language: Ruby License: LGPL (c) 2000-2003 Minero Aoki LOC: 973 RubyForge : Ruby/CAPTCHA (project search) : .../c/captcha/captcha/captcha/setup.rb
|
def month_id; created.strftime( "%Y/%m" ) if created; end
def year_id; created.strftime( "%Y" ) if created; end
def section_id; File.dirname( id ) if id; end
def base_id; File.basename( id ) if id; end
def self.url_link( e, url = nil, ext = nil ); "#{ url }/#{ link_format e }#{ '.' + ext if ext }"; end
Language: Ruby (c) 2003-2004 why the lucky stiff LOC: 317 RubyForge : Hobix (project search) : .../hobix/hobix/lib/hobix/base.rb
|
end
def draw_graph(algo)
#xCmd = @graph.make_output_command( "output" => "svg", "file" => "-", "use" => algo )
xCmd = @graph.make_output_command( "output" => "svg", "use" => algo )
f = IO.popen( xCmd )
Language: Ruby LOC: 223 RubyForge : GnomeGraphwidget (project search) : .../ggraphwidget/ggraphwidget/lib/graphwidget.rb
|
# - TODO prepare sub-directory for tracker
# The Tracker's source code is going to be longer,
# perhaps we should separate files later.
#
# - TODO Add server control tool (shutdown server etc).
Language: Ruby LOC: 344 RubyForge : Aversa (project search) : .../aversa/aversa/lib/aversa/track.rb
|
raise e
end
# load the remaining files.. (less likely that this should fail)
require 'aeditor/commands'
require 'aeditor/buffer'
Language: Ruby LOC: 1858 RubyForge : AEditor (project search) : .../projects/experimental/buffer/source/viewfox.rb
|
# $Date: 2003/10/16 14:24:21 $
#
# CONTRIBUTORS: (see also CREDITS file)
#
#
Language: Ruby (c) 2003 LOC: 127 Savannah NonGNU : ZoneCheck (project search) : .../zonecheck/zonecheck/lib/nresolv/dns_resource.rb
|
class Preprocessor
def initialize(input, output, filename)
@input = input
@output = output
Language: Ruby LOC: 88 RubyForge : nodewrap (project search) : .../nodewrap/nodewrap/nodewrap/ext/rubypp.rb
|
class FileReadFunctions
def initialize(directory)
@directory = directory
Language: Ruby LOC: 186 RubyForge : B10g - A Simple Ruby Weblog (project search) : .../b10g/b10g/b10g/Ruby/old_FileReadFunctions.rb
|
end
end
unless File.respond_to?(:read)
def File.read(fname)
open(fname) {|f|
Language: Ruby (c) 2000-2004 Minero Aoki LOC: 1010 RubyForge : SQLite-Ruby (project search) : .../sqlite-ruby/sqlite3-ruby/setup.rb
|
end
end
unless File.respond_to?(:read)
def File.read(fname)
open(fname) {|f|
Language: Ruby License: LGPL (c) 2000-2004 Minero Aoki LOC: 1002 RubyForge : Net::SSH (project search) : .../net-ssh/net-ssh/setup.rb
|
def dirj( dir, link ) #:nodoc:
if link[0] != ?/ and link != '.'
link = File.join( dir == '.' ? "/" : dir, link )
end
link
Language: Ruby (c) 2003-2004 why the lucky stiff... LOC: 464 RubyForge : Hobix (project search) : .../hobix/hobix/lib/hobix/weblog.rb
|
rescue InstallError
end
rb_files = Dir['*.rb']
rpp_files = Dir['*.rpp']
generated_files = rpp_files.map { |f| f.sub(/\.rpp$/, '') }
Language: Ruby LOC: 48 RubyForge : nodewrap (project search) : .../nodewrap/nodewrap/nodewrap/ext/extconf.rb
|
require 'find'
def list_files(dir, pattern)
arr = []
Find.find(dir) do |filename|
Language: Ruby LOC: 28 RubyForge : nodewrap (project search) : .../n/nodewrap/nodewrap/nodewrap/generate_rdoc.rb
|
# We could use rbconfig, but it might not be generated yet (or
# correctly)
File.open(File.join(RUBY_SOURCE_DIR, 'version.h')) do |version_h|
version_h.each_line do |line|
# #define RUBY_VERSION "1.6.4"
Language: Ruby LOC: 11 RubyForge : nodewrap (project search) : .../nodewrap/nodewrap/nodewrap/ext/ruby_version_code.rb
|
end
end
unless File.respond_to?(:read)
def File.read(fname)
open(fname) {|f|
Language: Ruby License: LGPL (c) 2000-2004 Minero Aoki LOC: 1002 RubyForge : Ruby/ActiveLdap (project search) : .../r/ruby-activeldap/ruby-activeldap/ruby-activeldap/setup.rb
|
exe = @name.suffix('exec')
objs = sources.collect do |src|
raise "unknown source file `#{src}'" if /\.[cS]$/ !~ src
prefix + '-' + src.to_obj
end
Language: Ruby (C) 2002,2003,2004,2005,2006 Free Software Foundation, Inc. LOC: 258 Savannah GNU : GNU GRUB (project search) : .../g/grub/grub/grub2/genmk.rb
|
NODE_H_LOCATION = "#{RUBY_SOURCE_DIR}/node.h"
NODEINFO = Hash.new
File.open(NODE_H_LOCATION) do |node_h|
while line = node_h.gets do
case line
Language: Ruby LOC: 15 RubyForge : nodewrap (project search) : .../nodewrap/nodewrap/nodewrap/ext/read_node_h.rb
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
# The magic number of the font file.
MAGIC = "PPF\x7f"
def usage(status = 0)
Language: Ruby (C) 2003 Free Software Foundation, Inc. LOC: 60 Savannah GNU : GNU GRUB (project search) : .../grub/grub/grub2/util/unifont2pff.rb
|
1 2345678910...
|