repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/spec/lib/net/ntlm/message/type3_spec.rb
<filename>.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/spec/lib/net/ntlm/message/type3_spec.rb require 'spec_helper' describe Net::NTLM::Message::Type3 do fields = [ { :name => :sign, :class => Net::NTLM::String, :value => Net::NTLM::SSP_SIGN, :active => true }, { :name => :type, :class => Net::NTLM::...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/layouts/test_basic.rb
<reponame>arnab0073/idea require File.expand_path('../setup', File.dirname(__FILE__)) module TestLogging module TestLayouts class TestBasic < Test::Unit::TestCase include LoggingTestCase def setup super @layout = Logging.layouts.basic({}) @levels = Logging::LEVELS end def test_f...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/bigdecimal/sample/linear.rb
#!/usr/local/bin/ruby # # linear.rb # # Solves linear equation system(A*x = b) by LU decomposition method. # where A is a coefficient matrix,x is an answer vector,b is a constant vector. # # USAGE: # ruby linear.rb [input file solved] # require "bigdecimal" require "bigdecimal/ludcmp" # # NOTE: # Change follow...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/lib/logging/filters.rb
module Logging module Filters ; end require libpath('logging/filters/level') end
arnab0073/idea
.rvm/src/ruby-2.3.0/test/webrick/test_httprequest.rb
# frozen_string_literal: false require "webrick" require "stringio" require "test/unit" class TestWEBrickHTTPRequest < Test::Unit::TestCase def test_simple_request msg = <<-_end_of_message_ GET / _end_of_message_ req = WEBrick::HTTPRequest.new(WEBrick::Config::HTTP) req.parse(StringIO.new(msg)) a...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/excon-0.49.0/lib/excon/response.rb
module Excon class Response attr_accessor :data # backwards compatability reader/writers def body=(new_body) @data[:body] = new_body end def body @data[:body] end def headers=(new_headers) @data[:headers] = new_headers end def headers @data[:headers] e...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/test/ruby/test_method.rb
<filename>.rvm/src/ruby-1.9.3-p551/test/ruby/test_method.rb require 'test/unit' require_relative 'envutil' class TestMethod < Test::Unit::TestCase def setup @verbose = $VERBOSE $VERBOSE = nil end def teardown $VERBOSE = @verbose end def m0() end def m1(a) end def m2(a, b) end def mo1(a = ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/lib/xmlrpc/create.rb
<reponame>arnab0073/idea<gh_stars>0 # # Creates XML-RPC call/response documents # # Copyright (C) 2001, 2002, 2003 by <NAME> (<EMAIL>) # # $Id: create.rb 31321 2011-04-22 13:35:43Z naruse $ # require "date" require "xmlrpc/base64" module XMLRPC module XMLWriter class Abstract def ele(name, *children) ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-authentication-1.4.1/spec/mixlib/authentication/http_authentication_request_spec.rb
<filename>.rvm/gems/ruby-2.3.0/gems/mixlib-authentication-1.4.1/spec/mixlib/authentication/http_authentication_request_spec.rb # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2010 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you ma...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/good_rake.rb
# frozen_string_literal: false exit 0
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rdoc/test_rdoc_rd.rb
<reponame>arnab0073/idea # frozen_string_literal: false require 'rdoc/test_case' class TestRDocRd < RDoc::TestCase def test_class_parse expected = @RM::Document.new( @RM::Paragraph.new('hello')) assert_equal expected, RDoc::RD.parse("hello") end def test_class_parse_begin_end expecte...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/date/extconf.rb
<filename>.rvm/src/ruby-2.3.0/ext/date/extconf.rb # frozen_string_literal: false require 'mkmf' config_string("strict_warnflags") {|w| $warnflags += " #{w}"} create_makefile('date_core')
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/menubar3.rb
<gh_stars>0 # # menubar sample 3 : vertical layout menubar; use frame and menubuttons # require 'tk' radio_var = TkVariable.new('y') menu_spec = [ [['&File', true], # when underline option is ture, '&' index is the position {:label=>'Open', :command=>proc{puts('Open clicked')}, :underline=>0}, '---', [...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/test/session_actions_test.rb
require 'common' require 'net/ssh/multi/server' require 'net/ssh/multi/session_actions' class SessionActionsTest < Test::Unit::TestCase class SessionActionsContainer include Net::SSH::Multi::SessionActions attr_reader :servers def initialize @servers = [] end def default_user "user...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/xenserver/requests/compute/destroy_network.rb
<gh_stars>1-10 module Fog module Compute class XenServer class Real # # Destroy a Network # # @see http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=network # def destroy_network( ref ) Fog::Logger.deprecation( 'This method is...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/lib/irb.rb
<reponame>arnab0073/idea<gh_stars>0 # # irb.rb - irb main module # $Release Version: 0.9.6 $ # $Revision: 31641 $ # by <NAME>(<EMAIL>) # # -- # # # require "e2mmap" require "irb/init" require "irb/context" require "irb/extend-command" #require "irb/workspace" require "irb/ruby-lex" require "irb/in...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/nkf/test_kconv.rb
# frozen_string_literal: false require 'test/unit' require 'kconv' class TestKconv < Test::Unit::TestCase def setup @euc_str = "\ \xa5\xaa\xa5\xd6\xa5\xb8\xa5\xa7\xa5\xaf\xa5\xc8\xbb\xd8\xb8\xfe\ \xa5\xd7\xa5\xed\xa5\xb0\xa5\xe9\xa5\xdf\xa5\xf3\xa5\xb0\xb8\xc0\xb8\xec \x52\x75\x62\x79".force_encoding('EUC-JP') ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rdoc/test_rdoc_markup_to_ansi.rb
# frozen_string_literal: false require 'rdoc/test_case' class TestRDocMarkupToAnsi < RDoc::Markup::TextFormatterTestCase add_visitor_tests add_text_tests def setup super @to = RDoc::Markup::ToAnsi.new end def accept_blank_line assert_equal "\e[0m\n", @to.res.join end def accept_block_quo...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/iwidgets/disjointlistbox.rb
# # tkextlib/iwidgets/disjointlistbox.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/iwidgets.rb' module Tk module Iwidgets class Disjointlistbox < Tk::Itk::Widget end end end class Tk::Iwidgets::Disjointlistbox TkCommandNames = ['::iwidgets::disjointlistbox'....
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/excon-0.49.0/lib/excon/middlewares/instrumentor.rb
module Excon module Middleware class Instrumentor < Excon::Middleware::Base def error_call(datum) if datum.has_key?(:instrumentor) datum[:instrumentor].instrument("#{datum[:instrumentor_name]}.error", :error => datum[:error]) do @stack.error_call(datum) end el...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/style.rb
<reponame>arnab0073/idea # style.rb # # This demonstration script creates a text widget that illustrates the # various display styles that may be set for tags. # # text (display styles) widget demo (called by 'widget') # # toplevel widget if defined?($style_demo) && $style_demo $style_demo.destroy $style_demo = ni...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/profiler.rb
# frozen_string_literal: false # 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...
arnab0073/idea
.rvm/src/ruby-2.3.0/nacl/create_nmf.rb
#!/usr/bin/ruby # Copyright:: Copyright 2012 Google Inc. # License:: All Rights Reserved. # Original Author:: <NAME> (mailto:<EMAIL>) # # Wrapper for create_nmf.py / generate_nmf.py require File.join(File.dirname(__FILE__), 'nacl-config') include NaClConfig $verbosity = 0 def usage_and_exit $stderr.puts "Usage: #{...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/-ext-/symbol/test_inadvertent_creation.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-2.3.0/test/-ext-/symbol/test_inadvertent_creation.rb # frozen_string_literal: false require 'test/unit' require "-test-/symbol" module Test_Symbol class TestInadvertent < Test::Unit::TestCase def noninterned_name(prefix = "") prefix += "_#{Thread.current.obje...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/-test-/bignum/extconf.rb
<filename>.rvm/src/ruby-2.3.0/ext/-test-/bignum/extconf.rb # frozen_string_literal: false $INCFLAGS << " -I$(topdir) -I$(top_srcdir)" $srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] inits = $srcs.map {|s| File.basename(s, ".*")} inits.delete("init") inits.map! {|s|"X(#{s})"} $defs << "-DTEST_INIT_FUNCS(X)...
arnab0073/idea
.rvm/src/ruby-2.3.0/sample/philos.rb
<gh_stars>10-100 # # The Dining Philosophers - thread example # require "thread" srand #srand N=9 # number of philosophers $forks = [] for i in 0..N-1 $forks[i] = Mutex.new end $state = "-o"*N def wait sleep rand(20)/10.0 end def think(n) wait end def eat(n) wait end def philosopher(n) while true ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/transport_spec.rb
<gh_stars>0 # encoding: UTF-8 require 'rubyntlm' require 'winrm/http/transport' describe WinRM::HTTP::HttpNegotiate, unit: true do describe '#init' do let(:endpoint) { 'some_endpoint' } let(:domain) { 'some_domain' } let(:user) { 'some_user' } let(:password) { '<PASSWORD>' } let(:options) { {} } ...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/psych/lib/psych/nodes/alias.rb
<gh_stars>10-100 # frozen_string_literal: false module Psych module Nodes ### # This class represents a {YAML Alias}[http://yaml.org/spec/1.1/#alias]. # It points to an +anchor+. # # A Psych::Nodes::Alias is a terminal node and may have no children. class Alias < Psych::Nodes::Node # The...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/frame.rb
<reponame>arnab0073/idea # # tk/frame.rb : treat frame widget # require 'tk' class Tk::Frame<TkWindow TkCommandNames = ['frame'.freeze].freeze WidgetClassName = 'Frame'.freeze WidgetClassNames[WidgetClassName] ||= self ################# old version # def initialize(parent=nil, keys=nil) # if keys.kind_of? H...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-2.2.2/lib/net/ssh/errors.rb
<reponame>arnab0073/idea module Net; module SSH # A general exception class, to act as the ancestor of all other Net::SSH # exception classes. class Exception < ::RuntimeError; end # This exception is raised when authentication fails (whether it be # public key authentication, password authentication, or wha...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm1_ivar_set.rb
<filename>.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm1_ivar_set.rb<gh_stars>10-100 i = 0 while i<30_000_000 # while loop 1 i+= 1 @a = 1 @b = 2 end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/knife-windows-1.4.1/lib/chef/knife/windows_listener_create.rb
# Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2014-2016 Chef Software, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/spec/lib/net/ntlm/int32_le_spec.rb
<gh_stars>0 require 'spec_helper' describe Net::NTLM::Int32LE do int_values = { :default => 252716124, :default_hex => "\x5C\x24\x10\x0f", :alt => 235938908, :alt_hex => "\x5C\x24\x10\x0e", :small => "\x0F\x00", :size => 4, :bits ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-shellout-1.6.1/lib/mixlib/shellout/exceptions.rb
module Mixlib class ShellOut class ShellCommandFailed < RuntimeError; end class CommandTimeout < RuntimeError; end class InvalidCommandOption < RuntimeError; end end end
arnab0073/idea
.rvm/src/ruby-2.3.0/test/gdbm/test_gdbm.rb
# frozen_string_literal: false begin require 'gdbm' rescue LoadError end if defined? GDBM require 'test/unit' require 'tmpdir' require 'fileutils' class TestGDBM_RDONLY < Test::Unit::TestCase def TestGDBM_RDONLY.uname_s require 'rbconfig' case RbConfig::CONFIG['target_os'] when 'cygwin...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/glesys/models/compute/server.rb
require 'fog/compute/models/server' module Fog module Compute class Glesys class Server < Fog::Compute::Server extend Fog::Deprecation identity :serverid attribute :hostname attribute :datacenter attribute :cpucores attribute :memorysize attribute :...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/-test-/bug-3571/extconf.rb
<gh_stars>0 create_makefile("-test-/bug-3571/bug")
arnab0073/idea
.rvm/src/ruby-2.3.0/sample/pty/script.rb
<filename>.rvm/src/ruby-2.3.0/sample/pty/script.rb require 'pty' if ARGV.size == 0 then ofile = "typescript" else ofile = ARGV[0] end logfile = File.open(ofile,"a") system "stty -echo raw lnext ^_" PTY.spawn("/bin/csh") do |r_pty,w_pty,pid| Thread.new do while true w_pty.print STDIN.getc.chr ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/test_gem_resolver_dependency_request.rb
# frozen_string_literal: false require 'rubygems/test_case' class TestGemResolverDependencyRequest < Gem::TestCase def setup super @DR = Gem::Resolver::DependencyRequest end def test_development_eh a_dep = dep 'a', '>= 1' a_dep_req = @DR.new a_dep, nil refute a_dep_req.development? ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/diagrams.rb
<gh_stars>1-10 # # tkextlib/tcllib/diagrams.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * Draw diagrams # require 'tk' require 'tkextlib/tcllib.rb' # TkPackage.require('Diagrams', '0.3') TkPackage.require('Diagrams') module Tk::Tcllib module Diagrams PACKAGE_NAM...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/test_weakref.rb
# frozen_string_literal: false require 'test/unit' require 'weakref' class TestWeakRef < Test::Unit::TestCase def make_weakref(level = 10) if level > 0 make_weakref(level - 1) else WeakRef.new(Object.new) end end def test_ref obj = Object.new weak = WeakRef.new(obj) assert_eq...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-2.6.8/lib/net/ssh/proxy/http.rb
<reponame>arnab0073/idea<filename>.rvm/gems/ruby-2.3.0/gems/net-ssh-2.6.8/lib/net/ssh/proxy/http.rb<gh_stars>10-100 require 'socket' require 'net/ssh/proxy/errors' module Net; module SSH; module Proxy # An implementation of an HTTP proxy. To use it, instantiate it, then # pass the instantiated object via the :pro...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/normal_module.rb
# frozen_string_literal: false ## # A normal module, like NormalClass class RDoc::NormalModule < RDoc::ClassModule def aref_prefix # :nodoc: 'module' end def inspect # :nodoc: "#<%s:0x%x module %s includes: %p extends: %p attributes: %p methods: %p aliases: %p>" % [ self.class, object_id, f...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/digest/extconf.rb
# $RoughId: extconf.rb,v 1.6 2001/07/13 15:38:27 knu Exp $ # $Id: extconf.rb 25189 2009-10-02 12:04:37Z akr $ require "mkmf" $INSTALLFILES = { "digest.h" => "$(HDRDIR)" } create_makefile("digest")
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/groovy_spec.rb
# # Author:: <NAME> <<EMAIL>> # Copyright:: Copyright (c) 2009 VMware, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.o...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/hscale.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/hscale.rb require "tkcanvas" if defined?($hscale_demo) && $hscale_demo $hscale_demo.destroy $hscale_demo = nil end $hscale_demo = TkToplevel.new {|w| title("Horizontal Scale Demonstration") iconname("hscale") } positionWindow($h...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/resolver/molinillo.rb
<gh_stars>0 # frozen_string_literal: false require 'rubygems/resolver/molinillo/lib/molinillo'
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/spec_helper.rb
<reponame>arnab0073/idea # encoding: UTF-8 require 'rubygems' require 'bundler/setup' require 'winrm' require 'json' require_relative 'matchers' # Creates a WinRM connection for integration tests module ConnectionHelper # rubocop:disable AbcSize def winrm_connection winrm = WinRM::WinRMWebService.new( co...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm2_method.rb
def m nil end i=0 while i<6_000_000 # benchmark loop 2 i+=1 m; m; m; m; m; m; m; m; end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/puma-1.6.3/ext/puma_http11/extconf.rb
require 'mkmf' dir_config("puma_http11") create_makefile("puma/puma_http11")
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/-test-/bug-5832/extconf.rb
<gh_stars>0 # frozen_string_literal: false create_makefile("-test-/bug-5832/bug")
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/lib/gssapi/simple.rb
=begin Copyright © 2010 <NAME> <<EMAIL>> Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php =end module GSSAPI # This class is a simple wrapper around the most common usage of GSSAPI. If you are looking at doing # something a bit more advanced you may want to check out the LibGSS...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/cursor.rb
# # tkextlib/tcllib/cursor.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * Procedures to handle CURSOR data # require 'tk' require 'tkextlib/tcllib.rb' module Tk module Tcllib module Cursor PACKAGE_NAME = 'cursor'.freeze def self.package_name PA...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/token_stream.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-2.3.0/lib/rdoc/token_stream.rb # frozen_string_literal: false ## # A TokenStream is a list of tokens, gathered during the parse of some entity # (say a method). Entities populate these streams by being registered with the # lexer. Any class can collect tokens by including...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/syck/lib/syck/ypath.rb
# # YAML::YPath # warn "#{caller[0]}: YAML::YPath is deprecated" if $VERBOSE module Syck class YPath attr_accessor :segments, :predicates, :flags def initialize( str ) @segments = [] @predicates = [] @flags = nil while str =~ /^\/?(\/|[^\/\[]+)(?:\[...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/solaris2/hostname.rb
# # Author:: <NAME> (<<EMAIL>>) # Author:: <NAME> <<EMAIL>> # Copyright:: Copyright (c) 2008 Opscode, Inc. # Copyright:: Copyright (c) 2009 <NAME> # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/-ext-/bignum/test_bigzero.rb
# frozen_string_literal: false require 'test/unit' require "-test-/bignum" class TestBignum < Test::Unit::TestCase class TestBigZero < Test::Unit::TestCase def test_equal_0 bug8204 = '[ruby-core:53893] [Bug #8204]' (0..10).each do |i| assert_equal(0, Bug::Bignum.zero(i), "#{bug8204} Bignum.ze...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/-test-/old_thread_select/extconf.rb
create_makefile("-test-/old_thread_select/old_thread_select")
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-2.6.8/test/test_all.rb
<gh_stars>10-100 $: << '.' # $ ruby -Ilib -Itest -rrubygems test/test_all.rb # $ ruby -Ilib -Itest -rrubygems test/transport/test_server_version.rb Dir.chdir(File.dirname(__FILE__)) do test_files = Dir['**/test_*.rb']-['test_all.rb'] # prevent circular require test_files = test_files.reject { |f| f =~ /^ma...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/test_gem_command.rb
# frozen_string_literal: false require 'rubygems/test_case' require 'rubygems/command' class Gem::Command public :parser end class TestGemCommand < Gem::TestCase def setup super @xopt = nil Gem::Command.common_options.clear Gem::Command.common_options << [ ['-x', '--exe', 'Execute'], lam...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rdoc/test_rdoc_rd_inline.rb
# frozen_string_literal: false require 'rdoc/test_case' class TestRDocRdInline < RDoc::TestCase def setup super @inline = RDoc::RD::Inline.new '+text+', 'text' end def test_class_new inline = RDoc::RD::Inline.new @inline refute_equal inline.rdoc, inline.reference end def test_initialize ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/safe-tk.rb
<reponame>arnab0073/idea #!/usr/bin/env ruby # This script is a sample of MultiTkIp class require "multi-tk" ############################### TkLabel.new(:text=>'This is the Default Master Ipnterpreter').pack(:padx=>5, :pady=>3) TkButton.new(:text=>'QUIT', :command=>proc{exit}).pack(:pady=>3) TkFrame.new(:borderwidth...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/io/console/extconf.rb
# frozen_string_literal: false require 'mkmf' ok = true hdr = nil case when macro_defined?("_WIN32", "") # rb_w32_map_errno: 1.8.7 vk_header = File.exist?("#$srcdir/win32_vk.list") ? "chksum" : "inc" vk_header = "#{'{$(srcdir)}' if $nmake == ?m}win32_vk.#{vk_header}" when hdr = %w"termios.h termio.h".find {|h| h...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/test_prime.rb
# frozen_string_literal: false require 'test/unit' require 'prime' require 'timeout' class TestPrime < Test::Unit::TestCase # The first 100 prime numbers PRIMES = [ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137...
arnab0073/idea
.rvm/src/ruby-2.3.0/gems/test-unit-3.1.5/lib/test/unit/test-suite-creator.rb
#-- # # Author:: <NAME> # Copyright:: # * Copyright (c) 2011 <NAME> <tt><<EMAIL>></tt> # License:: Ruby license. module Test module Unit class TestSuiteCreator # :nodoc: def initialize(test_case) @test_case = test_case end def create suite = TestSuite.new(@test_case.name, @te...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/sample/openssl/certstore.rb
require 'c_rehash' require 'crlstore' class CertStore include OpenSSL include X509 attr_reader :self_signed_ca attr_reader :other_ca attr_reader :ee attr_reader :crl attr_reader :request def initialize(certs_dir) @certs_dir = certs_dir @c_store = CHashDir.new(@certs_dir) @c_store.hash_di...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkmacpkg.rb
# # tkmacpkg.rb - load tk/macpkg.rb # require 'tk/macpkg'
arnab0073/idea
.rvm/src/ruby-2.3.0/test/excludes/TestException.rb
# frozen_string_literal: false reason = %[\ Because machine stack overflow can happen anywhere, even critical sections including external libraries, it is very neary impossible to recover from such situation. ] exclude /test_machine_stackoverflow/, reason exclude :test_machine_stackoverflow_by_define_method, reason
arnab0073/idea
.rvm/src/ruby-2.3.0/test/date/test_date_new.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-2.3.0/test/date/test_date_new.rb # frozen_string_literal: false require 'test/unit' require 'date' class TestDateNew < Test::Unit::TestCase def test_jd d = Date.jd dt = DateTime.jd assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday]) assert_equal([-471...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/bootstraptest/test_autoload.rb
<filename>.rvm/src/ruby-1.9.3-p551/bootstraptest/test_autoload.rb assert_equal 'ok', %q{ File.unlink('zzz.rb') if File.file?('zzz.rb') instance_eval do autoload :ZZZ, './zzz.rb' begin ZZZ rescue LoadError :ok end end }, '[ruby-dev:43816]' assert_equal 'ok', %q{ open('zzz.rb', 'w') {...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/feedback.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/feedback.rb #!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' Tk::Iwidgets::Feedback.new(:labeltext=>'Status', :steps=>20){|fb| pack(:padx=>10, :pady=>10, :fill=>:both, :expand=>true) TkTimer.new(500, 20, p...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/examples/fork.rb
<gh_stars>1000+ # :stopdoc: # # Because of the global interpreter lock, Kernel#fork is the best way # to achieve true concurrency in Ruby scripts. However, there are peculiarities # when using fork and passing file descriptors between process. These # peculiarities affect the logging framework. # # In short, always reo...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/dl/win32/extconf.rb
if compiled?('dl') and $mswin||$bccwin||$mingw||$cygwin create_makefile('win32') end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/optionobj.rb
# # tk/optionobj.rb : control options for a group of widgets # # NOTE: If you want to use key-only option (no value), # use Tk::None for the value of the key-only option. # # e.g. hash_kv({'aaa'=>1, 'bbb'=>Tk::None, 'ccc'=>3}) # => ["-aaa", 1, "-bbb", "-ccc", 3] # require 'tk' module Tk ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/lib/net/ntlm/encode_util.rb
<filename>.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/lib/net/ntlm/encode_util.rb<gh_stars>0 module Net module NTLM class EncodeUtil if RUBY_VERSION == "1.8.7" require "kconv" # Decode a UTF16 string to a ASCII string # @param [String] str The string to convert def self.decode_utf1...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/image1.rb
## image1.rb # # This demonstration script displays two image widgets. # # two image widgets demo (called by 'widget') # # toplevel widget if defined?($image1_demo) && $image1_demo $image1_demo.destroy $image1_demo = nil end # demo toplevel widget $image1_demo = TkToplevel.new {|w| title('Image Demonstration #1...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/windows/cpu.rb
<filename>.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/windows/cpu.rb<gh_stars>0 # # Author:: <NAME> <<EMAIL>> # Copyright:: Copyright (c) 2010 VMware, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complia...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/examples/gss_iov_client.rb
#!/usr/bin/env ruby $: << '../lib' $: << '.' #require 'gssapi/heimdal' require 'gssapi' require 'gss_iov_helpers' require 'base64' require 'socket' class GssIovClient include GssIOVHelpers def initialize @host = 'example.org' @service = 'host' @sock = TCPSocket.new(@host, 8082) @gss = GSSAPI::Sim...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/solaris2/virtualization_spec.rb
# # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2009 Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apach...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/test_proxy.rb
require File.expand_path('../setup', __FILE__) module TestLogging class TestProxy < Test::Unit::TestCase include LoggingTestCase def setup super ::Logging.init @appender = Logging.appenders.string_io('test_appender') logger = Logging.logger[Array] logger.level = :debug ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkafter.rb
# # tkafter.rb - load tk/after.rb # require 'tk/timer'
arnab0073/idea
.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/gem-wrappers-1.2.7/test/gem-wrappers/fakes.rb
<reponame>arnab0073/idea module GemWrappers class FakeInstaller def initialize @executables = [] end def install(executable) @executables << executable end def uninstall(executable) @executables.delete(executable) end def executables @executables end def ens...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/bootstraptest/test_class.rb
# class assert_equal 'true', %q( class C; end Object.const_defined?(:C) ) assert_equal 'Class', %q( class C; end C.class ) assert_equal 'C', %q( class C; end C.name ) assert_equal 'C', %q( class C; end ...
blueberrystream/capistrano-locally
spec/spec_helper.rb
$LOAD_PATH.unshift File.expand_path('../lib', __dir__) require 'capistrano' require 'singleton' require 'sshkit' require 'capistrano/locally'
blueberrystream/capistrano-locally
spec/capistrano/locally_spec.rb
require 'spec_helper' module Capistrano class DummyDSL include DSL end end describe Capistrano::Locally do it 'has a version number' do expect(Capistrano::Locally::VERSION).not_to be nil end let(:dsl) { Capistrano::DummyDSL.new } let(:servers) do [::Capistrano::Configuration::Server.new("serv...
blueberrystream/capistrano-locally
capistrano-locally.gemspec
<filename>capistrano-locally.gemspec<gh_stars>0 # coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'capistrano/locally/version' Gem::Specification.new do |spec| spec.name = "capistrano-locally" spec.version = Capistrano::Locally...
blueberrystream/capistrano-locally
lib/capistrano/locally/version.rb
module Capistrano module Locally VERSION = "0.2.7" end end
1debit/plaid-ruby
lib/plaidio/customer.rb
<reponame>1debit/plaid-ruby<filename>lib/plaidio/customer.rb<gh_stars>0 module Plaidio # This is used when a customer needs to be defined by the plaid access token. # Abstracting as a class makes it easier since we wont have to redefine the access_token over and over. class Customer BASE_URL = 'https://tarta...
1debit/plaid-ruby
lib/plaidio.rb
<reponame>1debit/plaid-ruby require 'plaidio/config' require 'plaidio/call' require 'plaidio/customer' require 'rest_client' module Plaidio class << self include Plaidio::Configure # Defined when a user exists with a unique access_token. Ex: Plaidio.customer.get_transactions def customer @customer...
1debit/plaid-ruby
plaidio.gemspec
<filename>plaidio.gemspec Gem::Specification.new do |s| s.name = 'plaidio' s.version = '0.1.6' s.date = '2015-07-30' s.summary = "Plaid.io api gem" s.description = "A simple to use ruby wrapper for Plaid.io API." s.authors = ["<NAME>", "<NAME>"] s.email = '<EMAIL>' s.file...
1debit/plaid-ruby
lib/plaidio/call.rb
<gh_stars>0 module Plaidio class Call BASE_URL = 'https://tartan.plaid.com/' # This initializes our instance variables, and sets up a new Customer class. def initialize Plaidio::Configure::KEYS.each do |key| instance_variable_set(:"@#{key}", Plaidio.instance_variable_get(:"@#{key}")) ...
ciholas/cdp-examples
ruby/cdp-ruby-example.rb
<reponame>ciholas/cdp-examples # Ciholas, Inc. - www.ciholas.com # Licensed under: creativecommons.org/licenses/by/4.0 require 'bindata' require 'ipaddr' require 'socket' # Maximum size of any UDP packet received RECEIVE_BUFFER_SIZE = 65536 # The expected value of the CDP Header MARK field CDP_MARK_WORD = 0x3230434C...
ciholas/cdp-examples
c/object-oriented/src/rake/source.rake
### constants class Source OUT_DIR = 'output' OBJS_DIR = ".objects/" OUTPUT = "#{OUT_DIR}/cdp-c-example" SRC_FILES = FileList["src/**/*.c"] OBJ_FILES = SRC_FILES.ext('.o').map { |sf| File.join(".objects",sf) } FLAGS="-Isrc -Isrc/include -pthread" end ### rules #.c to .o rule /.*\.o/ => proc { |t| t.ext('...
twittemb/homebrew-formulae
Formula/xcodecoverageconverter.rb
# Documentation: https://docs.brew.sh/Formula-Cookbook # https://rubydoc.brew.sh/Formula # PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! class Xcodecoverageconverter < Formula desc "" homepage "https://github.com/twittemb/XcodeCoverageConverter" url "https://github.com/t...
oneplanetliving/hyper-router
lib/react/router.rb
module React class Router < React::NativeLibrary imports 'ReactRouter' end end
oneplanetliving/hyper-router
lib/hyper-router/version.rb
<reponame>oneplanetliving/hyper-router module HyperRouter VERSION = '4.2.6.lap28' HYPERLOOP_VERSION = '1.0.0.lap28' end
oneplanetliving/hyper-router
lib/hyperstack/router/component.rb
<reponame>oneplanetliving/hyper-router<gh_stars>0 module Hyperstack class Router class Component class << self def inherited(base) base.include(Mixin) end end end end end
oneplanetliving/hyper-router
lib/hyper-router/component_methods.rb
# rubocop:disable Style/MethodName module HyperRouter module ComponentMethods def Link(to, opts = {}, &children) opts[:to] = {}.tap do |hash| hash[:pathname] = to hash[:search] = opts.delete(:search) if opts[:search] hash[:hash] = opts.delete(:hash) if opts[:hash] end.to_n ...
oneplanetliving/hyper-router
lib/hyperstack/router/hash.rb
module Hyperstack class Router module Hash def self.included(base) base.extend(HyperRouter::ClassMethods) base.history(:hash) base.include(HyperRouter::InstanceMethods) base.include(HyperRouter::ComponentMethods) end end end end
oneplanetliving/hyper-router
lib/hyperstack/router.rb
<reponame>oneplanetliving/hyper-router module Hyperstack class Router def self.inherited(child) child.include(Hyperstack::Component::Mixin) child.include(Base) end end class BrowserRouter def self.inherited(child) child.include(Hyperstack::Component::Mixin) child.include(Hyper...