repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/blt/graph7a.rb
<reponame>arnab0073/idea #!/usr/bin/env ruby require 'tk' require 'tkextlib/blt' file = File.join(File.dirname(File.expand_path(__FILE__)), 'images', 'buckskin.gif') bgTexture = TkPhotoImage.new(:file=>file) TkOption.add('*Graph.Tile', bgTexture) TkOption.add('*Label.Tile', bgTexture) TkOption.add('*...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/listbox.rb
# # tk/listbox.rb : treat listbox widget # require 'tk' require 'tk/itemconfig' require 'tk/scrollable' require 'tk/txtwin_abst' module TkListItemConfig include TkItemConfigMethod def __item_listval_optkeys(id) [] end private :__item_listval_optkeys end class Tk::Listbox<TkTextWin include TkListItemCon...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/test_gem_commands_open_command.rb
<gh_stars>1-10 # frozen_string_literal: false require 'rubygems/test_case' require 'rubygems/commands/open_command' class TestGemCommandsOpenCommand < Gem::TestCase def setup super @cmd = Gem::Commands::OpenCommand.new end def gem name spec = quick_gem name do |gem| gem.files = %W[lib/#{name...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb # # tkextlib/tcllib/tablelist_tlie.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * A multi-column listbox require 'tk' require 'tkextlib/tcllib.rb' # TkPackage.require('tablelist_tile', '4.2'...
arnab0073/idea
.rvm/src/ruby-2.3.0/sample/delegate.rb
require 'delegate' class ExtArray<DelegateClass(Array) def initialize() super([]) end end ary = ExtArray.new p ary.class ary.push 25 p ary ary.push 42 ary.each {|x| p x} foo = Object.new def foo.test 25 end def foo.iter yield self end def foo.error raise 'this is OK' end foo2 = SimpleDelegator.new(foo)...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkbrowse.rb
<gh_stars>1-10 #!/usr/bin/env ruby # # This script generates a directory browser, which lists the working # directory and allows you to open files or subdirectories by # double-clicking. # Create a scrollbar on the right side of the main window and a listbox # on the left side. require "tkscrollbox" # The procedure ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/tkencoding.rb
# -*- ruby -*- # # tkencoding.rb # written by <EMAIL> class TclTkIp alias __eval _eval alias __invoke _invoke private :__eval private :__invoke attr_accessor :encoding def _eval(cmd) if( @encoding ) _fromUTF8(__eval(_toUTF8(cmd,@encoding)),@encoding) else __eval(cmd) end end ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/sdbm/extconf.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/sdbm/extconf.rb require 'mkmf' $defs << "-D""BADMESS=0" create_makefile("sdbm")
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/xenserver/requests/compute/snapshot_revert.rb
<gh_stars>1-10 module Fog module Compute class XenServer class Real def revert_server( snapshot_ref, extra_args = {}) @connection.request({:parser => Fog::Parsers::XenServer::Base.new, :method => 'VM.revert'}, snapshot_ref) end def snapshot_revert(snapshot_ref, extra_args ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rdoc/test_rdoc_attr.rb
# frozen_string_literal: false require 'rdoc/test_case' class TestRDocAttr < RDoc::TestCase def setup super @a = RDoc::Attr.new nil, 'attr', 'RW', '' end def test_aref m = RDoc::Attr.new nil, 'attr', 'RW', nil assert_equal 'attribute-i-attr', m.aref end def test_arglists assert_nil @...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/examples/gss_server.rb
<reponame>arnab0073/idea<filename>.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/examples/gss_server.rb require 'gssapi' require 'base64' require 'socket' host = 'example.org' service = 'host' keytab = "#{ENV['HOME']}/.gssapi/krb5.keytab" # this is optional, but probably required if not running as root tcpsrv = TCPServer....
arnab0073/idea
.rvm/src/ruby-2.3.0/test/psych/visitors/test_depth_first.rb
<filename>.rvm/src/ruby-2.3.0/test/psych/visitors/test_depth_first.rb # frozen_string_literal: false require 'psych/helper' module Psych module Visitors class TestDepthFirst < TestCase class Collector < Struct.new(:calls) def initialize(calls = []) super end def call obj ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/lib/winrm/version.rb
<gh_stars>0 # encoding: UTF-8 # WinRM module module WinRM # The version of the WinRM library VERSION = '1.8.1' end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/lib/logging/proxy.rb
module Logging # Defines a Proxy that will log all method calls on the proxied object. This # class uses +method_missing+ on a "blank slate" object to intercept all # method calls. The method name being called and the arguments are all # logged to the proxied object's logger instance. The log level and other ...
arnab0073/idea
.rvm/src/ruby-2.3.0/sample/openssl/cipher.rb
<reponame>arnab0073/idea #!/usr/bin/env ruby require 'openssl' def crypt_by_password(alg, pass, salt, text) puts "--Setup--" puts %(cipher alg: "#{alg}") puts %(plain text: "#{text}") puts %(password: "#{pass}") puts %(salt: "#{salt}") puts puts "--Encrypting--" enc = OpenSSL::Ciph...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/test/spec/test_buffer_spec.rb
<gh_stars>1-10 $: << File.dirname(__FILE__) + '/../../lib/' require 'gssapi' describe GSSAPI::LibGSSAPI::UnManagedGssBufferDesc, 'Unmanaged Buffer Test' do it 'should create a new UnManagedGssBufferDesc and assign to it and test GC' do 0.upto 100 do |i| b = GSSAPI::LibGSSAPI::UnManagedGssBufferDesc.new ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-cli-1.6.0/spec/spec_helper.rb
<reponame>arnab0073/idea $TESTING = true $:.push File.join(File.dirname(__FILE__), "..", "lib") require "mixlib/cli" class TestCLI include Mixlib::CLI end RSpec.configure do |config| config.filter_run :focus => true config.run_all_when_everything_filtered = true config.treat_symbols_as_metadata_keys_with_tru...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/spinint.rb
<reponame>arnab0073/idea #!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' TkOption.add('*textBackground', 'white') Tk::Iwidgets::Spinint.new(:labeltext=>'Temperature', :labelpos=>:w, :width=>5, :fixed=>true, :range=>[32, 212]).pack(:pady=>10) Tk.mainloop
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/spec/lib/net/ntlm/message_spec.rb
require 'spec_helper' describe Net::NTLM::Message do fields = [] flags = [ :UNICODE, :OEM, :REQUEST_TARGET, :NTLM, :ALWAYS_SIGN, :NTLM2_KEY ] it_behaves_like 'a fieldset', fields it_behaves_like 'a message', flags end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/win32ole/sample/ienavi.rb
require 'win32ole' $urls = [] def navigate(url) $urls << url end def stop_msg_loop puts "Now Stop IE..." $LOOP = FALSE; end def default_handler(event, *args) case event when "BeforeNavigate" puts "Now Navigate #{args[0]}..." end end ie = WIN32OLE.new('InternetExplorer.Application') ie.visible = TRU...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/test/ruby/test_bignum.rb
<gh_stars>0 require 'test/unit' class TestBignum < Test::Unit::TestCase def setup @verbose = $VERBOSE $VERBOSE = nil @fmax = Float::MAX.to_i @fmax2 = @fmax * 2 @big = (1 << 63) - 1 end def teardown $VERBOSE = @verbose end def fact(n) return 1 if n == 0 f = 1 while n>0 ...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/ext.rb
<reponame>arnab0073/idea # frozen_string_literal: false #-- # Copyright 2006 by <NAME>, <NAME>, <NAME> and others. # All rights reserved. # See LICENSE.txt for permissions. #++ ## # Classes for building C extensions live here. module Gem::Ext; end require 'rubygems/ext/build_error' require 'rubygems/ext/builder' req...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/scanf/test_scanf.rb
<filename>.rvm/src/ruby-2.3.0/test/scanf/test_scanf.rb # frozen_string_literal: false # $Id: test_scanf.rb 53141 2015-12-16 05:07:31Z naruse $ # # scanf for Ruby # # Unit tests # require 'scanf.rb' require 'test/unit' require 'tempfile' # Comment out either of these lines to skip those tests. class TestStringScanf <...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/knife-windows-1.4.1/features/support/env.rb
<filename>.rvm/gems/ruby-2.3.0/gems/knife-windows-1.4.1/features/support/env.rb require 'aruba/cucumber' Before do @aruba_timeout_seconds = 5 end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/statusbar.rb
<gh_stars>1-10 # # tkextlib/tcllib/statusbar.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * statusbar widget # require 'tk' require 'tkextlib/tcllib.rb' # TkPackage.require('widget::statusbar', '1.2') TkPackage.require('widget::statusbar') module Tk::Tcllib module Wi...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/auth_timeout_spec.rb
<filename>.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/auth_timeout_spec.rb # encoding: UTF-8 # This test may only be meaningful with kerberos auth # Against server 2012, a kerberos connection will require reauth (get a 401) # if there are no requests for >= 15 seconds describe 'Verify kerberos will reauth when necessar...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/lib/net/ssh/multi/pending_connection.rb
require 'net/ssh/multi/channel_proxy' module Net; module SSH; module Multi # A PendingConnection instance mimics a Net::SSH::Connection::Session instance, # without actually being an open connection to a server. It is used by # Net::SSH::Multi::Session when a concurrent connection limit is in effect, # so tha...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/util.rb
# frozen_string_literal: false ## # This module contains various utility methods as module methods. module Gem::Util @silent_mutex = nil ## # Zlib::GzipReader wrapper that unzips +data+. def self.gunzip(data) require 'zlib' require 'stringio' data = StringIO.new(data, 'r') unzipped = Zlib::...
arnab0073/idea
.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/executable-hooks-1.3.2/lib/executable-hooks/wrapper.rb
# install / uninstall wrapper require 'fileutils' require 'rubygems' require 'executable-hooks/specification' module ExecutableHooks module Wrapper def self.wrapper_name 'ruby_executable_hooks' end def self.expanded_wrapper_name Gem.default_exec_format % self.wrapper_name end def self...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tile/tspinbox.rb
# # ttk::spinbox widget (Tcl/Tk 8.6b1 or later) # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/tile.rb' module Tk module Tile class TSpinbox < Tk::Tile::TEntry end Spinbox = TSpinbox end end class Tk::Tile::TSpinbox < Tk::Tile::TEntry include Tk::Tile::TileWid...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/tile/themes/kroc.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/tile/themes/kroc.rb # # kroc.rb # # based on: # >> kroc.tcl - Copyright (C) 2004 <NAME> <<EMAIL>> # imgdir = File.join(File.dirname(__FILE__), 'kroc', 'kroc') $images = Tk::Tile.load_images(imgdir, '*.gif') if TkPackage.vcompare(Tk::T...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/bgerror.rb
# # tkbgerror -- bgerror ( tkerror ) module # 1998/07/16 by <NAME> <<EMAIL>> # require 'tk' module TkBgError extend Tk TkCommandNames = ['bgerror'.freeze].freeze def bgerror(message) tk_call('bgerror', message) end alias tkerror bgerror alias show bgerror module_function :bgerr...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/generator/pot/po.rb
# frozen_string_literal: false ## # Generates a PO format text class RDoc::Generator::POT::PO ## # Creates an object that represents PO format. def initialize @entries = {} add_header end ## # Adds a PO entry to the PO. def add entry existing_entry = @entries[entry.msgid] if existing_...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm_thread_mutex1.rb
# one thread, one mutex (no contention) require 'thread' m = Mutex.new r = 0 max = 2000 lmax = max * max (1..1).map{ Thread.new{ i=0 while i<lmax i+=1 m.synchronize{ r += 1 } end } }.each{|e| e.join } raise r.to_s if r != max * max
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/psych_additions.rb
# frozen_string_literal: false # This exists just to satisfy bugs in marshal'd gemspecs that # contain a reference to YAML::PrivateType. We prune these out # in Specification._load, but if we don't have the constant, Marshal # blows up. module Psych # :nodoc: class PrivateType # :nodoc: end end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/yajl-ruby-1.2.1/spec/json_gem_compatibility/compatibility_spec.rb
<filename>.rvm/gems/ruby-2.3.0/gems/yajl-ruby-1.2.1/spec/json_gem_compatibility/compatibility_spec.rb<gh_stars>10-100 # encoding: UTF-8 require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb') class Dummy; end describe "JSON Gem compatability API" do it "shoud not mixin #to_json on base objects until...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tile/tnotebook.rb
# # tnotebook widget # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/tile.rb' module Tk module Tile class TNotebook < TkWindow end Notebook = TNotebook end end class Tk::Tile::TNotebook < TkWindow ################################ include TkItemConfigMethod ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/sample/exyacc.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-1.9.3-p551/sample/exyacc.rb #! /usr/local/bin/ruby -Kn # usage: exyacc.rb [yaccfiles] # this is coverted from exyacc.pl in the camel book ARGF.each(nil) do |source| sbeg = source.index("\n%%") + 1 send = source.rindex("\n%%") + 1 grammer = source[sbeg, send-sbeg] ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/win32ole/sample/xml.rb
<gh_stars>10-100 # # This file created by olegen.rb as following. # ruby olegen.rb 'Microsoft XML, version 2.0' > xml.rb # require 'win32ole' require 'win32ole/property' # module IXMLDOMImplementation include WIN32OLE::VARIANT attr_reader :lastargs # BOOL hasFeature # BSTR arg0 --- feature [IN] # BST...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/bootstraptest/test_literal.rb
<filename>.rvm/src/ruby-1.9.3-p551/bootstraptest/test_literal.rb # empty program assert_equal '', '' assert_equal '', ' ' assert_equal '', "\n" # special const assert_equal 'true', 'true' assert_equal 'TrueClass', 'true.class' assert_equal 'false', ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/pathname/extconf.rb
<reponame>arnab0073/idea require 'mkmf' create_makefile('pathname')
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gyoku-1.3.1/lib/gyoku.rb
<reponame>arnab0073/idea<gh_stars>100-1000 require "gyoku/version" require "gyoku/hash" module Gyoku # Converts a given Hash +key+ with +options+ into an XML tag. def self.xml_tag(key, options = {}) XMLKey.create(key, options) end # Translates a given +hash+ with +options+ to XML. def self.xml(hash, op...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/-ext-/num2int/test_num2int.rb
<reponame>arnab0073/idea # frozen_string_literal: false require 'test/unit' require '-test-/num2int/num2int' class TestNum2int < Test::Unit::TestCase SHRT_MIN = -32768 SHRT_MAX = 32767 USHRT_MAX = 65535 INT_MIN = -2147483648 INT_MAX = 2147483647 UINT_MAX = 4294967295 case [0].pack('L!').size when 4 ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm2_array.rb
i=0 while i<6_000_000 # benchmark loop 2 i+=1 a = [1,2,3,4,5,6,7,8,9,10] end
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/psych/lib/psych/handlers/recorder.rb
# frozen_string_literal: false require 'psych/handler' module Psych module Handlers ### # This handler will capture an event and record the event. Recorder events # are available vial Psych::Handlers::Recorder#events. # # For example: # # recorder = Psych::Handlers::Recorder.new # ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-2.2.2/lib/net/ssh/transport/kex.rb
<gh_stars>10-100 require 'net/ssh/transport/kex/diffie_hellman_group1_sha1' require 'net/ssh/transport/kex/diffie_hellman_group_exchange_sha1' module Net::SSH::Transport module Kex # Maps the supported key-exchange algorithms as named by the SSH protocol # to their corresponding implementors. MAP = { ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/fiddle/extconf.rb
require 'mkmf' # :stopdoc: dir_config 'libffi' pkg_config("libffi") unless have_header('ffi.h') if have_header('ffi/ffi.h') $defs.push(format('-DUSE_HEADER_HACKS')) else raise "ffi.h is missing. Please install libffi." end end unless have_library('ffi') || have_library('libffi') raise "libffi is mis...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/spec_helper.rb
require 'rspec' $:.unshift(File.expand_path("../..", __FILE__)) $:.unshift(File.dirname(__FILE__) + '/../lib') require 'spec/support/platform_helpers' require 'ohai' Ohai::Config[:log_level] = :error def it_should_check_from(plugin, attribute, from, value) it "should set the #{attribute} to the value from '#{from}...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/lib/net/ssh/multi/channel_proxy.rb
module Net; module SSH; module Multi # The ChannelProxy is a delegate class that represents a channel that has # not yet been opened. It is only used when Net::SSH::Multi is running with # with a concurrent connections limit (see Net::SSH::Multi::Session#concurrent_connections). # # You'll never need to inst...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-2.6.8/test/test_known_hosts.rb
require 'common' class TestKnownHosts < Test::Unit::TestCase def test_key_for_when_all_hosts_are_recognized source = File.join(File.dirname(__FILE__),"known_hosts/github") kh = Net::SSH::KnownHosts.new(source) keys = kh.keys_for("github.com") assert_equal(1, keys.count) assert_equal("ssh-rsa", k...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/xenserver/requests/compute/create_network.rb
<gh_stars>1-10 module Fog module Compute class XenServer class Real # Create a Network # # @see http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=network # def create_network( name, config = {} ) if name.is_a?(Hash) default_config = nam...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/google/dns.rb
<filename>.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/google/dns.rb require 'fog/google/core' module Fog module DNS class Google < Fog::Service requires :google_project recognizes :app_name, :app_version, :google_client_email, :google_key_location, :google_key_string, :google_client...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/lib/net/ntlm/channel_binding.rb
<filename>.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/lib/net/ntlm/channel_binding.rb module Net module NTLM class ChannelBinding # Creates a ChannelBinding used for Extended Protection Authentication # @see http://blogs.msdn.com/b/openspecification/archive/2013/03/26/ntlm-and-channel-binding-hash-...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/test_gem_util.rb
# frozen_string_literal: false require 'rubygems/test_case' require 'rubygems/util' class TestGemUtil < Gem::TestCase def test_class_popen assert_equal "0\n", Gem::Util.popen(Gem.ruby, '-e', 'p 0') assert_raises Errno::ECHILD do Process.wait(-1) end end def test_silent_system assert_sile...
arnab0073/idea
.rvm/gems/ruby-2.3.0/specifications/mime-types-1.19.gemspec
<reponame>arnab0073/idea # -*- encoding: utf-8 -*- # stub: mime-types 1.19 ruby lib Gem::Specification.new do |s| s.name = "mime-types" s.version = "1.19" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] s.authors = ["<NAME>"] ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/darwin/system_profiler.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/src/ruby-2.3.0/lib/rdoc/ri/store.rb
# frozen_string_literal: false module RDoc::RI Store = RDoc::Store # :nodoc: end
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rdoc/test_rdoc_token_stream.rb
# frozen_string_literal: false require 'rdoc/test_case' class TestRDocTokenStream < RDoc::TestCase def test_class_to_html tokens = [ RDoc::RubyToken::TkCONSTANT. new(0, 0, 0, 'CONSTANT'), RDoc::RubyToken::TkDEF. new(0, 0, 0, 'KW'), RDoc::RubyToken::TkIVAR. new(0, 0, 0, 'IVAR'), ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm1_swap.rb
a = 1 b = 2 i=0 while i<30_000_000 # while loop 1 i+=1 a, b = b, a end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/winrm_options_spec.rb
<reponame>arnab0073/idea<filename>.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/winrm_options_spec.rb # encoding: UTF-8 describe 'WinRM options', unit: true do let(:subject) { WinRM::WinRMWebService.new('http://localhost:55985/wsman', :plaintext) } context 'when operations timeout is set to 60' do before(:each) {...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/pagesmanager.rb
# # tkextlib/bwidget/pagesmanager.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tk/frame' require 'tkextlib/bwidget.rb' module Tk module BWidget class PagesManager < TkWindow end end end class Tk::BWidget::PagesManager TkCommandNames = ['PagesManager'.freeze].freeze ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/linux/lsb_spec.rb
<gh_stars>1-10 # # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2008 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 # # ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/ripper/tools/strip.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/ripper/tools/strip.rb last_is_void = false ARGF.each do |line| if line.strip.empty? #puts() unless last_is_void last_is_void = true elsif /\A\#/ === line ; else print line last_is_void = false end end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/spec/lib/net/ntlm/int16_le_spec.rb
require 'spec_helper' describe Net::NTLM::Int16LE do int_values = { :default => 15, :default_hex => "\x0F\x00", :alt => 14, :alt_hex => "\x0E\x00", :small => "\x0F", :size => 2, :bits => 16 } it_behaves_like 'a field', 15, false i...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/test_gem_source_fetch_problem.rb
<reponame>arnab0073/idea<gh_stars>1-10 # frozen_string_literal: false require 'rubygems/test_case' class TestGemSourceFetchProblem < Gem::TestCase def test_exception source = Gem::Source.new @gem_repo error = RuntimeError.new 'test' sf = Gem::SourceFetchProblem.new source, error e = assert_raises...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/blt/graph.rb
<gh_stars>1-10 # # tkextlib/blt/graph.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/blt.rb' require 'tkextlib/blt/component.rb' module Tk::BLT class Graph < TkWindow TkCommandNames = ['::blt::graph'.freeze].freeze WidgetClassName = 'Graph'.freeze WidgetClassNam...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/tktable/command.rb
#!/usr/bin/env ruby ## ## command.rb ## ## This demo shows the use of the table widget's -command options ## ## ( based on 'command.tcl' included source archive of tktable extension ) ## require 'tk' require 'tkextlib/tktable' # create the table data = TkVariable.new_hash rows = 10 cols = 10 # fill table variable ((-...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkvirtevent.rb
<reponame>arnab0073/idea<gh_stars>10-100 # # tkvirtevent.rb - load tk/virtevent.rb # require 'tk/virtevent'
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/examples/formatting.rb
<reponame>arnab0073/idea # :stopdoc: # # Any Ruby object can be passed to the log methods of a logger. How these # objects are formatted by the Logging framework is controlled by a global # "format_as" option and a global "backtrace" option. # # The format_as option allows objects to be converted to a string using the ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/puma-1.6.3/lib/puma/control_cli.rb
require 'optparse' require 'puma/const' require 'puma/configuration' require 'yaml' require 'uri' require 'socket' module Puma class ControlCLI def initialize(argv, stdout=STDOUT) @argv = argv @stdout = stdout end def setup_options @parser = OptionParser.new do |o| o.on "-S...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/lib/gssapi/extensions.rb
=begin Copyright © 2014 <NAME> <<EMAIL>> Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php =end module GSSAPI module LibGSSAPI # Some versions of GSSAPI might not have support for IOV yet. begin # OM_uint32 GSSAPI_LIB_FUNCTION gss_wrap_iov( OM_uint32 * minor_status, gs...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/radiobox.rb
#!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' rb = Tk::Iwidgets::Radiobox.new(:labeltext=>'Fonts') rb.add('times', :text=>'Times') rb.add('helvetica', :text=>'Helvetica') rb.add('courier', :text=>'Courier') rb.add('symbol', :text=>'Symbol') rb.select('courier') rb.pack(:expand=>true, :fill=>:bo...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-shellout-2.2.6/lib/mixlib/shellout/version.rb
<reponame>arnab0073/idea<filename>.rvm/gems/ruby-2.3.0/gems/mixlib-shellout-2.2.6/lib/mixlib/shellout/version.rb module Mixlib class ShellOut VERSION = "2.2.6" end end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/yajl-ruby-1.2.1/lib/yajl/json_gem/encoding.rb
require 'yajl' unless defined?(Yajl::Parser) # NOTE: this is probably temporary until I can split out the JSON compat C code into it's own # extension that can be included when this file is. Yajl::Encoder.enable_json_gem_compatability # Our fallback to_json definition unless defined?(ActiveSupport) class Object ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/spinbox.rb
# # tkextlib/bwidget/entry.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/bwidget.rb' require 'tkextlib/bwidget/arrowbutton' require 'tkextlib/bwidget/entry' module Tk module BWidget class SpinBox < Tk::Entry end end end class Tk::BWidget::SpinBox include Scrol...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/win32ole/test_win32ole.rb
<reponame>arnab0073/idea # coding: us-ascii # frozen_string_literal: false begin require 'win32ole' rescue LoadError end require 'test/unit' if defined?(WIN32OLE) module CONST1 end module CONST2 end module TestCaseForDict def test_convert_bignum @dict1.add("a", 9999999999) @dict1.add("b",...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/json/lib/json/add/regexp.rb
# frozen_string_literal: false unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end # Regexp serialization/deserialization class Regexp # Deserializes JSON string by constructing new Regexp object with source # <tt>s</tt> (Regexp or String) and options <tt>o</tt> serialized by # <tt...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/-test-/typeddata/extconf.rb
<filename>.rvm/src/ruby-2.3.0/ext/-test-/typeddata/extconf.rb # frozen_string_literal: false create_makefile("-test-/typeddata/typeddata")
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/source/lock.rb
<gh_stars>0 # frozen_string_literal: false ## # A Lock source wraps an installed gem's source and sorts before other sources # during dependency resolution. This allows RubyGems to prefer gems from # dependency lock files. class Gem::Source::Lock < Gem::Source ## # The wrapped Gem::Source attr_reader :wrapped...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/fiber/extconf.rb
require 'mkmf' create_makefile('fiber')
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/24hr_clock.rb
#!/usr/bin/env ruby require 'tk' class Clock def initialize(clock24 = true) @clock = (clock24)? 24: 12 @size = 200 @cdot_size = 5 @cdot_color = 'black' @hour_hand_color = 'black' @minute_hand_color = 'gray25' @second_hand_color = 'gray50' @mark_font = 'Helvetica -14' ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rdoc/test_rdoc_alias.rb
<gh_stars>10-100 # frozen_string_literal: false require File.expand_path '../xref_test_case', __FILE__ class TestRDocAlias < XrefTestCase def test_to_s a = RDoc::Alias.new nil, 'a', 'b', '' a.parent = @c2 assert_equal 'alias: b -> #a in: RDoc::NormalClass C2 < Object', a.to_s end end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/json/parser/extconf.rb
<reponame>arnab0073/idea require 'mkmf' require 'rbconfig' if RUBY_VERSION < "1.9" have_header("re.h") else have_header("ruby/re.h") have_header("ruby/encoding.h") end create_makefile 'json/ext/parser'
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/autoscroll.rb
# # tkextlib/tcllib/autoscroll.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * Provides for a scrollbar to automatically mapped and unmapped as needed # # (The following is the original description of the library.) # # This package allows scrollbars to be mapped and unmapp...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/tktable/valid.rb
#!/usr/bin/env ruby ## ## valid.rb ## ## This demos shows the use of the validation mechanism of the table ## and uses the table's cache (no -command or -variable) ## ## ( based on 'valid.tcl' included source archive of tktable extension ) ## require 'tk' require 'tkextlib/tktable' rows = 10 cols = 10 def colorize(nu...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/json/extconf.rb
# frozen_string_literal: false require 'mkmf' create_makefile('json')
arnab0073/idea
.rvm/src/ruby-2.3.0/tool/downloader.rb
require 'open-uri' begin require 'net/https' rescue LoadError https = 'http' else https = 'https' # open-uri of ruby 2.2.0 accept an array of PEMs as ssl_ca_cert, but old # versions are not. so, patching OpenSSL::X509::Store#add_file instead. class OpenSSL::X509::Store alias orig_add_file add_file ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/xenserver/requests/compute/create_vif.rb
module Fog module Compute class XenServer class Real def create_vif( vm_ref, network_ref, device = -1) raise ArgumentError.new('Invalid vm_ref') if vm_ref.nil? raise ArgumentError.new('Invalid network_ref') if network_ref.nil? if vm_ref.is_a?(Hash) vif_confi...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/openssl/test_ocsp.rb
<reponame>arnab0073/idea # frozen_string_literal: false require_relative "utils" if defined?(OpenSSL::TestUtils) class OpenSSL::TestOCSP < Test::Unit::TestCase def setup ca_subj = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=TestCA") ca_key = OpenSSL::TestUtils::TEST_KEY_RSA1024 ca_serial = 0xabca...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-brightbox-0.10.1/lib/fog/brightbox/version.rb
module Fog module Brightbox VERSION = "0.10.1" end end
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/ri/task.rb
# frozen_string_literal: false require 'rubygems' begin gem 'rdoc' rescue Gem::LoadError end unless defined?(RDoc) require 'rdoc/task' ## # RDoc::RI::Task creates ri data in <code>./.rdoc</code> for your project. # # It contains the following tasks: # # [ri] # Build ri data # # [clobber_ri] # Delete ri data fil...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/cgi/html.rb
# frozen_string_literal: false class CGI # Base module for HTML-generation mixins. # # Provides methods for code generation for tags following # the various DTD element types. module TagMaker # :nodoc: # Generate code for an element with required start and end tags. # # - - def nn_element(e...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/appenders/test_rolling_file.rb
require File.expand_path('../setup', File.dirname(__FILE__)) module TestLogging module TestAppenders class TestRollingFile < Test::Unit::TestCase include LoggingTestCase NAME = 'roller' def setup super Logging.init @fn = File.expand_path('test.log', TMP) @fn_fmt = File.expand...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/win32ole/sample/oledirs.rb
# # You need WSH(Windows Scripting Host) to run this script. # require "win32ole" def listup(items) # items.each do |i| for i in items puts i.name end end fs = WIN32OLE.new("Scripting.FileSystemObject") folder = fs.GetFolder(".") puts "--- folder of #{folder.path} ---" listup(folder.SubFolders) puts "---...
arnab0073/idea
.rvm/src/ruby-2.3.0/tool/generic_erb.rb
<gh_stars>0 # -*- coding: us-ascii -*- require 'erb' require 'optparse' require 'fileutils' $:.unshift(File.dirname(__FILE__)) require 'vpath' vpath = VPath.new timestamp = nil output = nil ifchange = nil source = false color = nil opt = OptionParser.new do |o| o.on('-t', '--timestamp[=PATH]') {|v| timestamp = v ||...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/lib/winrm/helpers/powershell_script.rb
# encoding: UTF-8 # # Copyright 2014 <NAME> <<EMAIL>> # # 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.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-2.2.2/test/manual/test_forward.rb
<gh_stars>0 # $ ruby -Ilib -Itest -rrubygems test/test_forward.rb # Tests for the following patch: # # http://github.com/net-ssh/net-ssh/tree/portfwfix # # It fixes 3 issues, regarding closing forwarded ports: # # 1.) if client closes a forwarded connection, but the server is reading, net-ssh terminates with I...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/ctext.rb
<gh_stars>1-10 # ctext.rb # # This demonstration script creates a canvas widget with a text # item that can be edited and reconfigured in various ways. # # Canvas Text widget demo (called by 'widget') # # toplevel widget if defined?($ctext_demo) && $ctext_demo $ctext_demo.destroy $ctext_demo = nil end # demo topl...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/lib/net/ssh/multi/server_list.rb
<filename>.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/lib/net/ssh/multi/server_list.rb<gh_stars>1-10 require 'net/ssh/multi/server' require 'net/ssh/multi/dynamic_server' module Net; module SSH; module Multi # Encapsulates a list of server objects, both dynamic (Net::SSH::Multi::DynamicServer) # and static (Net...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/openstack/models/planning/role.rb
<reponame>arnab0073/idea<filename>.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/openstack/models/planning/role.rb require 'fog/core/model' module Fog module Openstack class Planning class Role < Fog::Model identity :uuid attribute :description attribute :name attribute :uuid...