repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/webrick.rb
lib/webrick.rb
## # = WEB server toolkit. # # WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, # a proxy server, and a virtual-host server. WEBrick features complete # logging of both server operations and HTTP access. WEBrick supports both # basic and digest authentication in addition to algorithms not ...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/open-uri.rb
lib/open-uri.rb
require 'uri' require 'stringio' require 'time' module Kernel private alias open_uri_original_open open # :nodoc: class << self alias open_uri_original_open open # :nodoc: end # Allows the opening of various resources including URIs. # # If the first argument responds to the 'open' method, 'open' is...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/getoptlong.rb
lib/getoptlong.rb
# # GetoptLong for Ruby # # Copyright (C) 1998, 1999, 2000 Motoyuki Kasahara. # # You may redistribute and/or modify this library under the same license # terms as Ruby. # # See GetoptLong for documentation. # # Additional documents and the latest version of `getoptlong.rb' can be # found at http://www.sra.co.jp/peopl...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkafter.rb
lib/tkafter.rb
# # tkafter.rb - load tk/after.rb # require 'tk/timer'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/securerandom.rb
lib/securerandom.rb
begin require 'openssl' rescue LoadError end # == Secure random number generator interface. # # This library is an interface for secure random number generator which is # suitable for generating session key in HTTP cookies, etc. # # It supports following secure random number generators. # # * openssl # * /dev/urando...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkpalette.rb
lib/tkpalette.rb
# # tkpalette.rb - load tk/palette.rb # require 'tk/palette'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/dl.rb
lib/dl.rb
require 'dl.so' begin require 'fiddle' unless Object.const_defined?(:Fiddle) rescue LoadError end warn "DL is deprecated, please use Fiddle" module DL # Returns true if DL is using Fiddle, the libffi wrapper. def self.fiddle? Object.const_defined?(:Fiddle) end end
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/weakref.rb
lib/weakref.rb
require "delegate" # Weak Reference class that allows a referenced object to be # garbage-collected. # # A WeakRef may be used exactly like the object it references. # # Usage: # # foo = Object.new # create a new object instance # p foo.to_s # original's class # foo = WeakRef.new(foo)...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/optparse.rb
lib/optparse.rb
# # optparse.rb - command-line option analysis with the OptionParser class. # # Author:: Nobu Nakada # Documentation:: Nobu Nakada and Gavin Sinclair. # # See OptionParser for documentation. # #-- # == Developer Documentation (not for RDoc output) # # === Class tree # # - OptionParser:: front end # - OptionParser::Sw...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
true
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkvirtevent.rb
lib/tkvirtevent.rb
# # tkvirtevent.rb - load tk/virtevent.rb # require 'tk/virtevent'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/ripper.rb
lib/ripper.rb
require 'ripper/core' require 'ripper/lexer' require 'ripper/filter' require 'ripper/sexp' # Ripper is a Ruby script parser. # # You can get information from the parser with event-based style. # Information such as abstract syntax trees or simple lexical analysis of the # Ruby program. # # == Usage # # Ripper provides...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/English.rb
lib/English.rb
# Include the English library file in a Ruby script, and you can # reference the global variables such as \VAR{\$\_} using less # cryptic names, listed in the following table.% \vref{tab:english}. # # Without 'English': # # $\ = ' -- ' # "waterbuffalo" =~ /buff/ # print $", $', $$, "\n" # # With Eng...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/logger.rb
lib/logger.rb
# logger.rb - simple logging utility # Copyright (C) 2000-2003, 2005, 2008, 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>. # # Documentation:: NAKAMURA, Hiroshi and Gavin Sinclair # License:: # You can redistribute it and/or modify it under the same terms of Ruby's # license; either the dual license version in 2003,...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/mathn.rb
lib/mathn.rb
#-- # $Release Version: 0.5 $ # $Revision: 1.1.1.1.4.1 $ ## # = mathn # # mathn is a library for changing the way Ruby does math. If you need # more precise rounding with multiple division or exponentiation # operations, then mathn is the right tool. # # Without mathn: # # 3 / 2 => 1 # Integer # # With mathn: # # ...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/thwait.rb
lib/thwait.rb
# # thwait.rb - thread synchronization class # $Release Version: 0.9 $ # $Revision: 1.3 $ # by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd.) require "thread.rb" require "e2mmap.rb" # # This class watches for termination of multiple threads. Basic functionality # (wait until specified threads ...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tempfile.rb
lib/tempfile.rb
# # tempfile - manipulates temporary files # # $Id: tempfile.rb 43758 2013-11-21 09:28:43Z nobu $ # require 'delegate' require 'tmpdir' require 'thread' # A utility class for managing temporary files. When you create a Tempfile # object, it will create a temporary file with a unique filename. A Tempfile # objects beh...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/profiler.rb
lib/profiler.rb
# Profile provides a way to Profile your Ruby application. # # Profiling your program is a way of determining which methods are called and # how long each method takes to complete. This way you can detect which # methods are possible bottlenecks. # # Profiling your program will slow down your execution time considerab...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/expect.rb
lib/expect.rb
$expect_verbose = false # Expect library adds the IO instance method #expect, which does similar act to # tcl's expect extension. # # In order to use this method, you must require expect: # # require 'expect' # # Please see #expect for usage. class IO # call-seq: # IO#expect(pattern,timeout=9999999) ...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/timeout.rb
lib/timeout.rb
# Timeout long-running blocks # # == Synopsis # # require 'timeout' # status = Timeout::timeout(5) { # # Something that should be interrupted if it takes more than 5 seconds... # } # # == Description # # Timeout provides a way to auto-terminate a potentially long-running # operation if it hasn't finished in a...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/resolv.rb
lib/resolv.rb
require 'socket' require 'fcntl' require 'timeout' require 'thread' begin require 'securerandom' rescue LoadError end # Resolv is a thread-aware DNS resolver library written in Ruby. Resolv can # handle multiple DNS requests concurrently without blocking the entire Ruby # interpreter. # # See also resolv-replace.r...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
true
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tracer.rb
lib/tracer.rb
#-- # $Release Version: 0.3$ # $Revision: 1.12 $ require "thread" ## # Outputs a source level execution trace of a Ruby program. # # It does this by registering an event handler with Kernel#set_trace_func for # processing incoming events. It also provides methods for filtering unwanted # trace output (see Tracer.add_...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/rdoc.rb
lib/rdoc.rb
$DEBUG_RDOC = nil # :main: README.rdoc ## # RDoc produces documentation for Ruby source files by parsing the source and # extracting the definition for classes, modules, methods, includes and # requires. It associates these with optional documentation contained in an # immediately preceding comment block then render...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/sync.rb
lib/sync.rb
# # sync.rb - 2 phase lock with counter # $Release Version: 1.0$ # $Revision: 40825 $ # by Keiju ISHITSUKA(keiju@ishitsuka.com) # # -- # Sync_m, Synchronizer_m # Usage: # obj.extend(Sync_m) # or # class Foo # include Sync_m # : # end # # Sync_m#sync_mode # Sync_m#sync_locke...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/digest.rb
lib/digest.rb
require 'digest.so' module Digest def self.const_missing(name) # :nodoc: case name when :SHA256, :SHA384, :SHA512 lib = 'digest/sha2.so' else lib = File.join('digest', name.to_s.downcase) end begin require lib rescue LoadError raise LoadError, "library not found for c...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkmngfocus.rb
lib/tkmngfocus.rb
# # tkmngfocus.rb - load tk/mngfocus.rb # require 'tk/mngfocus'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/socket.rb
lib/socket.rb
require 'socket.so' class Addrinfo # creates an Addrinfo object from the arguments. # # The arguments are interpreted as similar to self. # # Addrinfo.tcp("0.0.0.0", 4649).family_addrinfo("www.ruby-lang.org", 80) # #=> #<Addrinfo: 221.186.184.68:80 TCP (www.ruby-lang.org:80)> # # Addrinfo.unix("/...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/ostruct.rb
lib/ostruct.rb
# # = ostruct.rb: OpenStruct implementation # # Author:: Yukihiro Matsumoto # Documentation:: Gavin Sinclair # # OpenStruct allows the creation of data objects with arbitrary attributes. # See OpenStruct for an example. # # # An OpenStruct is a data structure, similar to a Hash, that allows the # definition of arbitra...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/benchmark.rb
lib/benchmark.rb
#-- # benchmark.rb - a performance benchmarking library # # $Id: benchmark.rb 43002 2013-09-20 16:05:48Z zzak $ # # Created by Gotoken (gotoken@notwork.org). # # Documentation by Gotoken (original RD), Lyle Johnson (RDoc conversion), and # Gavin Sinclair (editing). #++ # # == Overview # # The Benchmark module provides ...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/set.rb
lib/set.rb
#-- # set.rb - defines the Set class #++ # Copyright (c) 2002-2013 Akinori MUSHA <knu@iDaemons.org> # # Documentation by Akinori MUSHA and Gavin Sinclair. # # All rights reserved. You can redistribute and/or modify it under the same # terms as Ruby. # # $Id: set.rb 43808 2013-11-22 23:50:06Z tmm1 $ # # == Overview #...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/time.rb
lib/time.rb
require 'date' # = time.rb # # When 'time' is required, Time is extended with additional methods for parsing # and converting Times. # # == Features # # This library extends the Time class with the following conversions between # date strings and Time objects: # # * date-time defined by {RFC 2822}[http://www.ietf.org/...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkdialog.rb
lib/tkdialog.rb
# # tkdialog.rb - load tk/dialog.rb # require 'tk/dialog'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/remote-tk.rb
lib/remote-tk.rb
# # remote-tk.rb - supports to control remote Tk interpreters # by Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> if defined? MultiTkIp fail RuntimeError, "'remote-tk' library must be required before requiring 'multi-tk'" end class MultiTkIp; end class RemoteTkIp < MultiTkIp; end clas...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/fileutils.rb
lib/fileutils.rb
# # = fileutils.rb # # Copyright (c) 2000-2007 Minero Aoki # # This program is free software. # You can distribute/modify this program under the same terms of ruby. # # == module FileUtils # # Namespace for several file utility methods for copying, moving, removing, etc. # # === Module Functions # # cd(dir, options) ...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
true
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/observer.rb
lib/observer.rb
# # Implementation of the _Observer_ object-oriented design pattern. The # following documentation is copied, with modifications, from "Programming # Ruby", by Hunt and Thomas; http://www.ruby-doc.org/docs/ProgrammingRuby/html/lib_patterns.html. # # See Observable for more info. # The Observer pattern (also known as ...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/yaml.rb
lib/yaml.rb
## # The YAML module is an alias of Psych, the YAML engine for Ruby. begin require 'psych' rescue LoadError warn "#{caller[0]}:" warn "It seems your ruby installation is missing psych (for YAML output)." warn "To eliminate this warning, please install libyaml and reinstall your ruby." raise end YAML = Psych...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkentry.rb
lib/tkentry.rb
# # tkentry.rb - load tk/entry.rb # require 'tk/entry'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/csv.rb
lib/csv.rb
# encoding: US-ASCII # = csv.rb -- CSV Reading and Writing # # Created by James Edward Gray II on 2005-10-31. # Copyright 2005 James Edward Gray II. You can redistribute or modify this code # under the terms of Ruby's license. # # See CSV for documentation. # # == Description # # Welcome to the new and improved CSV....
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
true
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/kconv.rb
lib/kconv.rb
# # kconv.rb - Kanji Converter. # # $Id: kconv.rb 30112 2010-12-07 11:47:39Z naruse $ # # ---- # # kconv.rb implements the Kconv class for Kanji Converter. Additionally, # some methods in String classes are added to allow easy conversion. # require 'nkf' # # Kanji Converter for Ruby. # module Kconv # # Public Co...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/json.rb
lib/json.rb
require 'json/common' ## # = JavaScript Object Notation (JSON) # # JSON is a lightweight data-interchange format. It is easy for us # humans to read and write. Plus, equally simple for machines to generate or parse. # JSON is completely language agnostic, making it the ideal interchange format. # # Built on two univer...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/irb.rb
lib/irb.rb
# # irb.rb - irb main module # $Release Version: 0.9.6 $ # $Revision: 42045 $ # by Keiju ISHITSUKA(keiju@ruby-lang.org) # # -- # # # require "e2mmap" require "irb/init" require "irb/context" require "irb/extend-command" #require "irb/workspace" require "irb/ruby-lex" require "irb/input-method" req...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/prime.rb
lib/prime.rb
# # = prime.rb # # Prime numbers and factorization library. # # Copyright:: # Copyright (c) 1998-2008 Keiju ISHITSUKA(SHL Japan Inc.) # Copyright (c) 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp> # # Documentation:: # Yuki Sonoda # require "singleton" require "forwardable" class Integer # Re-composes a prime fact...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/base64.rb
lib/base64.rb
# # = base64.rb: methods for base64-encoding and -decoding strings # # The Base64 module provides for the encoding (#encode64, #strict_encode64, # #urlsafe_encode64) and decoding (#decode64, #strict_decode64, # #urlsafe_decode64) of binary data using a Base64 representation. # # == Example # # A simple encoding and de...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/un.rb
lib/un.rb
# # = un.rb # # Copyright (c) 2003 WATANABE Hirofumi <eban@ruby-lang.org> # # This program is free software. # You can distribute/modify this program under the same terms of Ruby. # # == Utilities to replace common UNIX commands in Makefiles etc # # == SYNOPSIS # # ruby -run -e cp -- [OPTION] SOURCE DEST # ruby -ru...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/openssl.rb
lib/openssl.rb
=begin = $RCSfile$ -- Loader for all OpenSSL C-space and Ruby-space definitions = Info 'OpenSSL for Ruby 2' project Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz> All rights reserved. = Licence This program is licenced under the same licence as Ruby. (See the file 'LICENCE'.) = Version $Id: openss...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/rubygems.rb
lib/rubygems.rb
# -*- ruby -*- #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. # See LICENSE.txt for permissions. #++ require 'rbconfig' module Gem VERSION = '2.2.2' end # Must be first since it unloads the prelude from 1.9.2 require 'rubygems/compatibility' require 'rubygems/defa...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/uri.rb
lib/uri.rb
# URI is a module providing classes to handle Uniform Resource Identifiers # (RFC2396[http://tools.ietf.org/html/rfc2396]) # # == Features # # * Uniform handling of handling URIs # * Flexibility to introduce custom URI schemes # * Flexibility to have an alternate URI::Parser (or just different patterns # and regexp's...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/debug.rb
lib/debug.rb
# Copyright (C) 2000 Network Applied Communication Laboratory, Inc. # Copyright (C) 2000 Information-technology Promotion Agency, Japan # Copyright (C) 2000-2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org> require 'continuation' if $SAFE > 0 STDERR.print "-r debug.rb is not available in safe mode\n" exit 1 end re...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/drb.rb
lib/drb.rb
require 'drb/drb'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/matrix.rb
lib/matrix.rb
# encoding: utf-8 # # = matrix.rb # # An implementation of Matrix and Vector classes. # # See classes Matrix and Vector for documentation. # # Current Maintainer:: Marc-André Lafortune # Original Author:: Keiju ISHITSUKA # Original Documentation:: Gavin Sinclair (sourced from <i>Ruby in a Nutshell</i> (Matsumoto, O'Rei...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
true
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/open3.rb
lib/open3.rb
# # = open3.rb: Popen, but with stderr, too # # Author:: Yukihiro Matsumoto # Documentation:: Konrad Meyer # # Open3 gives you access to stdin, stdout, and stderr when running other # programs. # # # Open3 grants you access to stdin, stdout, stderr and a thread to wait for the # child process when running another prog...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/gserver.rb
lib/gserver.rb
# # Copyright (C) 2001 John W. Small All Rights Reserved # # Author:: John W. Small # Documentation:: Gavin Sinclair # Licence:: Ruby License require "socket" require "thread" # # GServer implements a generic server, featuring thread pool management, # simple logging, and multi-server management. See Ht...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tktext.rb
lib/tktext.rb
# # tktext.rb - load tk/text.rb # require 'tk/text'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkscrollbox.rb
lib/tkscrollbox.rb
# # tkscrollbox.rb - load tk/scrollbox.rb # require 'tk/scrollbox'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/rss.rb
lib/rss.rb
## # = RSS reading and writing # # Really Simple Syndication (RSS) is a family of formats that describe 'feeds,' # specially constructed XML documents that allow an interested person to # subscribe and receive updates from a particular web service. This portion of # the standard library provides tooling to read and cre...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/complex.rb
lib/complex.rb
# :enddoc: warn('lib/complex.rb is deprecated') if $VERBOSE require 'cmath' unless defined?(Math.exp!) Object.instance_eval{remove_const :Math} Math = CMath end def Complex.generic? (other) other.kind_of?(Integer) || other.kind_of?(Float) || other.kind_of?(Rational) end class Complex alias image ima...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/xmlrpc.rb
lib/xmlrpc.rb
# == Author and Copyright # # Copyright (C) 2001-2004 by Michael Neumann (mailto:mneumann@ntecs.de) # # Released under the same term of license as Ruby. # # == Overview # # XMLRPC is a lightweight protocol that enables remote procedure calls over # HTTP. It is defined at http://www.xmlrpc.com. # # XMLRPC allows you to...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/forwardable.rb
lib/forwardable.rb
# # forwardable.rb - # $Release Version: 1.1$ # $Revision: 40906 $ # by Keiju ISHITSUKA(keiju@ishitsuka.com) # original definition by delegator.rb # Revised by Daniel J. Berger with suggestions from Florian Gross. # # Documentation by James Edward Gray II and Gavin Sinclair # Th...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/shell.rb
lib/shell.rb
# # shell.rb - # $Release Version: 0.7 $ # $Revision: 1.9 $ # by Keiju ISHITSUKA(keiju@ruby-lang.org) # # -- # # # require "e2mmap" require "thread" unless defined?(Mutex) require "forwardable" require "shell/error" require "shell/command-processor" require "shell/process-controller" # Shell im...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/shellwords.rb
lib/shellwords.rb
## # == Manipulates strings like the UNIX Bourne shell # # This module manipulates strings according to the word parsing rules # of the UNIX Bourne shell. # # The shellwords() function was originally a port of shellwords.pl, # but modified to conform to POSIX / SUSv3 (IEEE Std 1003.1-2001 [1]). # # === Usage # # You ca...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkcanvas.rb
lib/tkcanvas.rb
# # tkcanvas.rb - load tk/canvas.rb # require 'tk/canvas'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/pathname.rb
lib/pathname.rb
# # = pathname.rb # # Object-Oriented Pathname Class # # Author:: Tanaka Akira <akr@m17n.org> # Documentation:: Author and Gavin Sinclair # # For documentation, see class Pathname. # require 'pathname.so' class Pathname # :stopdoc: if RUBY_VERSION < "1.9" TO_PATH = :to_str else # to_path is implemented...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/mkmf.rb
lib/mkmf.rb
# -*- coding: us-ascii -*- # module to create Makefile for extension modules # invoke like: ruby -r mkmf extconf.rb require 'rbconfig' require 'fileutils' require 'shellwords' # :stopdoc: class String # Wraps a string in escaped quotes if it contains whitespace. def quote /\s/ =~ self ? "\"#{self}\"" : "#{sel...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
true
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkclass.rb
lib/tkclass.rb
# # tkclass.rb - Tk classes # Date: 2000/11/27 09:23:36 # by Yukihiro Matsumoto <matz@caelum.co.jp> # # $Id: tkclass.rb 25189 2009-10-02 12:04:37Z akr $ require "tk" TopLevel = TkToplevel Frame = TkFrame Label = TkLabel Button = TkButton ...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/pstore.rb
lib/pstore.rb
# = PStore -- Transactional File Storage for Ruby Objects # # pstore.rb - # originally by matz # documentation by Kev Jackson and James Edward Gray II # improved by Hongli Lai # # See PStore for documentation. require "digest/md5" # # PStore implements a file based persistence mechanism based on a Hash. User #...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/prettyprint.rb
lib/prettyprint.rb
# This class implements a pretty printing algorithm. It finds line breaks and # nice indentations for grouped structure. # # By default, the class assumes that primitive elements are strings and each # byte in the strings have single column in width. But it can be used for # other situations by giving suitable argument...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/rbconfig.rb
lib/rbconfig.rb
# This file was blindly copied from MRI 2.1.1 by Tim Jarratt when grubby was built. # He then modified it to suit his whims and needs at the time. # Any inconsistencies in this file are entirely his fault. module RbConfig CONFIG = {} CONFIG["MAJOR"] = "2" CONFIG["MINOR"] = "1" CONFIG["TEENY"] = "1" CONFIG["...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkbgerror.rb
lib/tkbgerror.rb
# # tkbgerror.rb - load tk/bgerror.rb # require 'tk/bgerror'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/fiddle.rb
lib/fiddle.rb
require 'fiddle.so' require 'fiddle/function' require 'fiddle/closure' module Fiddle if WINDOWS # Returns the last win32 +Error+ of the current executing +Thread+ or nil # if none def self.win32_last_error Thread.current[:__FIDDLE_WIN32_LAST_ERROR__] end # Sets the last win32 +Error+ of th...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/psych.rb
lib/psych.rb
require 'psych.so' require 'psych/nodes' require 'psych/streaming' require 'psych/visitors' require 'psych/handler' require 'psych/tree_builder' require 'psych/parser' require 'psych/omap' require 'psych/set' require 'psych/coder' require 'psych/core_ext' require 'psych/deprecated' require 'psych/stream' require 'psych...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/profile.rb
lib/profile.rb
require 'profiler' RubyVM::InstructionSequence.compile_option = { :trace_instruction => true, :specialized_instruction => false } END { Profiler__::print_profile(STDERR) } Profiler__::start_profile
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/erb.rb
lib/erb.rb
# -*- coding: us-ascii -*- # = ERB -- Ruby Templating # # Author:: Masatoshi SEKI # Documentation:: James Edward Gray II, Gavin Sinclair, and Simon Chiang # # See ERB for primary documentation and ERB::Util for a couple of utility # routines. # # Copyright (c) 1999-2000,2002,2003 Masatoshi SEKI # # You can redistribute...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/ubygems.rb
lib/ubygems.rb
# This file allows for the running of rubygems with a nice # command line look-and-feel: ruby -rubygems foo.rb #-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. # See LICENSE.txt for permissions. #++ require 'rubygems'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/scanf.rb
lib/scanf.rb
# scanf for Ruby # #-- # $Release Version: 1.1.2 $ # $Revision: 44196 $ # $Id: scanf.rb 44196 2013-12-14 02:55:33Z nobu $ # $Author: nobu $ #++ # # == Description # # scanf is an implementation of the C function scanf(3), modified as necessary # for Ruby compatibility. # # the methods provided are String#scanf, IO#scan...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkmenubar.rb
lib/tkmenubar.rb
# # tkmenubar.rb - load tk/menubar.rb # require 'tk/menubar'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkmacpkg.rb
lib/tkmacpkg.rb
# # tkmacpkg.rb - load tk/macpkg.rb # require 'tk/macpkg'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/mutex_m.rb
lib/mutex_m.rb
# # mutex_m.rb - # $Release Version: 3.0$ # $Revision: 1.7 $ # Original from mutex.rb # by Keiju ISHITSUKA(keiju@ishitsuka.com) # modified by matz # patched by akira yamada # # -- require 'thread' # = mutex_m.rb # # When 'mutex_m' is required, any object that extends or includes...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tcltk.rb
lib/tcltk.rb
# tof #### tcltk library, more direct manipulation of tcl/tk #### Sep. 5, 1997 Y. Shigehiro require "tcltklib" ################ # module TclTk: collection of tcl/tk utilities (supplies namespace.) module TclTk # initialize Hash to hold unique symbols and such @namecnt = {} # initialize Hash to hold ca...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/cgi.rb
lib/cgi.rb
# # cgi.rb - cgi support library # # Copyright (C) 2000 Network Applied Communication Laboratory, Inc. # # Copyright (C) 2000 Information-technology Promotion Agency, Japan # # Author: Wakou Aoyama <wakou@ruby-lang.org> # # Documentation: Wakou Aoyama (RDoc'd and embellished by William Webber) # raise "Please, use r...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tmpdir.rb
lib/tmpdir.rb
# # tmpdir - retrieve temporary directory path # # $Id: tmpdir.rb 40825 2013-05-19 03:10:21Z ktsj $ # require 'fileutils' begin require 'etc.so' rescue LoadError end class Dir @@systmpdir ||= defined?(Etc.systmpdir) ? Etc.systmpdir : '/tmp' ## # Returns the operating system's temporary file path. def Dir...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/rational.rb
lib/rational.rb
# :enddoc: warn('lib/rational.rb is deprecated') if $VERBOSE class Fixnum alias quof fdiv alias rdiv quo alias power! ** unless method_defined? :power! alias rpower ** end class Bignum alias quof fdiv alias rdiv quo alias power! ** unless method_defined? :power! alias rpower ** end
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/ipaddr.rb
lib/ipaddr.rb
# # ipaddr.rb - A class to manipulate an IP address # # Copyright (c) 2002 Hajimu UMEMOTO <ume@mahoroba.org>. # Copyright (c) 2007, 2009, 2012 Akinori MUSHA <knu@iDaemons.org>. # All rights reserved. # # You can redistribute and/or modify it under the same terms as Ruby. # # $Id: ipaddr.rb 39300 2013-02-18 07:31:17Z kn...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/rake.rb
lib/rake.rb
#-- # Copyright 2003-2010 by Jim Weirich (jim.weirich@gmail.com) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkfont.rb
lib/tkfont.rb
# # tkfont.rb - load tk/font.rb # require 'tk/font'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/delegate.rb
lib/delegate.rb
# = delegate -- Support for the Delegation Pattern # # Documentation by James Edward Gray II and Gavin Sinclair ## # This library provides three different ways to delegate method calls to an # object. The easiest to use is SimpleDelegator. Pass an object to the # constructor and all methods supported by the object w...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/monitor.rb
lib/monitor.rb
# = monitor.rb # # Copyright (C) 2001 Shugo Maeda <shugo@ruby-lang.org> # # This library is distributed under the terms of the Ruby license. # You can freely distribute/modify this library. # require 'thread' # # In concurrent programming, a monitor is an object or module intended to be # used safely by more than on...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/singleton.rb
lib/singleton.rb
require 'thread' # The Singleton module implements the Singleton pattern. # # == Usage # # To use Singleton, include the module in your class. # # class Klass # include Singleton # # ... # end # # This ensures that only one instance of Klass can be created. # # a,b = Klass.instance, Klass.insta...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/date.rb
lib/date.rb
# date.rb: Written by Tadayoshi Funaba 1998-2011 require 'date_core' require 'date/format' class Date class Infinity < Numeric # :nodoc: include Comparable def initialize(d=1) @d = d <=> 0 end def d() @d end protected :d def zero? () false end def finite? () false end def infinite?...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/pp.rb
lib/pp.rb
require 'prettyprint' module Kernel # Returns a pretty printed object as a string. # # In order to use this method you must first require the PP module: # # require 'pp' # # See the PP module for more information. def pretty_inspect PP.pp(self, '') end private # prints arguments in pretty ...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/resolv-replace.rb
lib/resolv-replace.rb
require 'socket' require 'resolv' class << IPSocket # :stopdoc: alias original_resolv_getaddress getaddress # :startdoc: def getaddress(host) begin return Resolv.getaddress(host).to_s rescue Resolv::ResolvError raise SocketError, "Hostname not known: #{host}" end end end class TCPSoc...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkconsole.rb
lib/tkconsole.rb
# # tkconsole.rb - load tk/console.rb # require 'tk/console'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/tkwinpkg.rb
lib/tkwinpkg.rb
# # tkwinpkg.rb - load tk/winpkg.rb # require 'tk/winpkg'
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/e2mmap.rb
lib/e2mmap.rb
# #-- # e2mmap.rb - for Ruby 1.1 # $Release Version: 2.0$ # $Revision: 1.10 $ # by Keiju ISHITSUKA # #++ # # Helper module for easily defining exceptions with predefined messages. # # == Usage # # 1. # class Foo # extend Exception2MessageMapper # def_e2message ExistingExceptionClass, "mess...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
grubby/grubby
https://github.com/grubby/grubby/blob/e582a835a585db590ca5df80aca3d5f1cbd1e774/lib/cmath.rb
lib/cmath.rb
## # CMath is a library that provides trigonometric and transcendental # functions for complex numbers. # # == Usage # # To start using this library, simply: # # require "cmath" # # Square root of a negative number is a complex number. # # CMath.sqrt(-9) #=> 0+3.0i # module CMath include Math alias exp! exp...
ruby
MIT
e582a835a585db590ca5df80aca3d5f1cbd1e774
2026-01-04T17:51:36.659653Z
false
joker1007/rukawa
https://github.com/joker1007/rukawa/blob/23b32adbbb61a42c549b582f03df92b8cc548746/spec/rukawa_spec.rb
spec/rukawa_spec.rb
require 'spec_helper' describe Rukawa do it 'run jobs correctly' do Rukawa.configure do |c| c.logger = Logger.new($stdout) end Rukawa::Runner.run(SampleJobNet.new(variables: {"var1" => "value1"}), true) expect(ExecuteLog.store).to match({ Job1 => an_instance_of(Time), Job3 => an_ins...
ruby
MIT
23b32adbbb61a42c549b582f03df92b8cc548746
2026-01-04T17:51:46.689670Z
false
joker1007/rukawa
https://github.com/joker1007/rukawa/blob/23b32adbbb61a42c549b582f03df92b8cc548746/spec/spec_helper.rb
spec/spec_helper.rb
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'rukawa' require 'rukawa/runner' require 'rspec-power_assert' require 'rspec-parameterized' require 'active_job' RSpec::PowerAssert.example_assertion_alias :assert Dir.glob(File.expand_path('../../sample/job_nets/**/*.rb', __FILE__)).each { |f| requir...
ruby
MIT
23b32adbbb61a42c549b582f03df92b8cc548746
2026-01-04T17:51:46.689670Z
false
joker1007/rukawa
https://github.com/joker1007/rukawa/blob/23b32adbbb61a42c549b582f03df92b8cc548746/spec/rukawa/dependency_spec.rb
spec/rukawa/dependency_spec.rb
require 'spec_helper' describe Rukawa::Dependency do describe "AllSuccess" do describe "#resolve" do using RSpec::Parameterized::TableSyntax where(:result1, :result2, :result3, :resolved) do Rukawa::State.get(:finished) | Rukawa::State.get(:finished) | Rukawa::State.get(:finished) | true ...
ruby
MIT
23b32adbbb61a42c549b582f03df92b8cc548746
2026-01-04T17:51:46.689670Z
false
joker1007/rukawa
https://github.com/joker1007/rukawa/blob/23b32adbbb61a42c549b582f03df92b8cc548746/spec/rukawa/abstract_job_spec.rb
spec/rukawa/abstract_job_spec.rb
require 'spec_helper' describe Rukawa::AbstractJob do describe ".add_skip_rule" do it "inheritable" do job_class1 = Class.new(Rukawa::AbstractJob) do add_skip_rule -> { true } end job_class2 = Class.new(job_class1) expect(job_class2.skip_rules.size).to eq(1) end it "cha...
ruby
MIT
23b32adbbb61a42c549b582f03df92b8cc548746
2026-01-04T17:51:46.689670Z
false
joker1007/rukawa
https://github.com/joker1007/rukawa/blob/23b32adbbb61a42c549b582f03df92b8cc548746/lib/rukawa.rb
lib/rukawa.rb
require "concurrent" module Rukawa class << self def logger config.logger end def configure yield config end def config Configuration.instance end def load_jobs job_dirs = config.job_dirs.map { |d| File.expand_path(d) }.uniq job_dirs.each do |dir| ...
ruby
MIT
23b32adbbb61a42c549b582f03df92b8cc548746
2026-01-04T17:51:46.689670Z
false
joker1007/rukawa
https://github.com/joker1007/rukawa/blob/23b32adbbb61a42c549b582f03df92b8cc548746/lib/rukawa/job_net.rb
lib/rukawa/job_net.rb
require 'rukawa/abstract_job' module Rukawa class JobNet < AbstractJob include Enumerable attr_reader :dag, :context, :variables class << self def dependencies raise NotImplementedError, "Please override" end end def initialize(variables: {}, context: Context.new, parent_job...
ruby
MIT
23b32adbbb61a42c549b582f03df92b8cc548746
2026-01-04T17:51:46.689670Z
false
joker1007/rukawa
https://github.com/joker1007/rukawa/blob/23b32adbbb61a42c549b582f03df92b8cc548746/lib/rukawa/version.rb
lib/rukawa/version.rb
module Rukawa VERSION = "0.9.2" end
ruby
MIT
23b32adbbb61a42c549b582f03df92b8cc548746
2026-01-04T17:51:46.689670Z
false