repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/psych/lib/psych/nodes/node.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-2.3.0/ext/psych/lib/psych/nodes/node.rb # frozen_string_literal: false require 'stringio' require 'psych/class_loader' require 'psych/scalar_scanner' module Psych module Nodes ### # The base class for any Node in a YAML parse tree. This class should # neve...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-log-1.6.0/spec/mixlib/log_spec.rb
<reponame>arnab0073/idea # # Author:: <NAME> (<<EMAIL>>) # 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 o...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkconsole.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkconsole.rb # # tkconsole.rb - load tk/console.rb # require 'tk/console'
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/console.rb
# # tk/console.rb : control the console on system without a real console # require 'tk' module TkConsole include Tk extend Tk TkCommandNames = ['console'.freeze, 'consoleinterp'.freeze].freeze def self.create TkCore::INTERP._create_console end self.create # initialize console def self.title(str...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-log-1.6.0/lib/mixlib/log/version.rb
module Mixlib module Log VERSION = "1.6.0" end end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/fiddle/lib/fiddle.rb
require 'fiddle.so' require 'fiddle/function' require 'fiddle/closure' require 'dl' unless Object.const_defined?(:DL) module Fiddle # A reference to DL::CPtr Pointer = DL::CPtr if WINDOWS # Returns the last win32 +Error+ of the current executing +Thread+ or nil # if none def self.win32_last_error ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm1_block.rb
<filename>.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm1_block.rb<gh_stars>0 def m yield end i=0 while i<30_000_000 # while loop 1 i+=1 m{ } end
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/markup/to_markdown.rb
# frozen_string_literal: false # :markup: markdown ## # Outputs parsed markup as Markdown class RDoc::Markup::ToMarkdown < RDoc::Markup::ToRdoc ## # Creates a new formatter that will output Markdown format text def initialize markup = nil super @headings[1] = ['# ', ''] @headings[2] = ['## '...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/bind.rb
<reponame>arnab0073/idea # bind.rb # # This demonstration script creates a text widget with bindings set # up for hypertext-like effects. # # text (tag bindings) widget demo (called by 'widget') # # toplevel widget if defined?($bind_demo) && $bind_demo $bind_demo.destroy $bind_demo = nil end # demo toplevel widge...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/sample/tkextlib/bwidget/manager.rb
# frozen_string_literal: false # # manager demo --- called from demo.rb # unless Object.const_defined?('DemoVar') fail RuntimeError, "This is NOT a stand alone script. This script is called from 'demo.rb'. " end module DemoManager @@progress = TkVariable.new(false) @@status = TkVariable.new('Compute i...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm_thread_pass_flood.rb
<filename>.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm_thread_pass_flood.rb 1000.times{ Thread.new{loop{Thread.pass}} } i=0 while i<10000 i += 1 end
arnab0073/idea
.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/executable-hooks-1.3.2/lib/executable-hooks/uninstaller.rb
<filename>.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/executable-hooks-1.3.2/lib/executable-hooks/uninstaller.rb require 'executable-hooks/wrapper' require 'executable-hooks/regenerate_binstubs_command' module ExecutableHooks def self.uninstall Gem.configuration[:custom_shebang] = "$env #{Gem.default_exec_fo...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/cloudstack/models/compute/public_ip_address.rb
module Fog module Compute class Cloudstack class PublicIpAddress < Fog::Model identity :id, :aliases => 'id' attribute :network_id, :aliases => 'networkid' attribute :associated_network_id, :aliases => 'associatednetworkid' attribute :physical_n...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/output_spec.rb
<reponame>arnab0073/idea # encoding: UTF-8 describe WinRM::Output, unit: true do subject { WinRM::Output.new } context 'when there is no output' do describe '#stdout' do it 'is empty' do expect(subject.stdout).to be_empty end end describe '#stderr' do it 'is empty' do ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/rubygems_plugin.rb
<reponame>arnab0073/idea # frozen_string_literal: false require 'rubygems/command_manager' ## # This is an example of exactly what NOT to do. # # DO NOT include code like this in your rubygems_plugin.rb class Gem::Commands::InterruptCommand < Gem::Command def initialize super('interrupt', 'Raises an Interrupt ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/tool/merger.rb
#! /bin/ruby # This needs ruby 1.9 and subversion. # run this in a repository to commit. require 'date' require 'tempfile' $repos = 'svn+ssh://<EMAIL>@ci.ruby-lang.org/ruby/' ENV['LC_ALL'] = 'C' def help puts <<-end simple backport ruby #$0 1234 range backport ruby #$0 1234:5678 backport from other branch ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/psych/test_tree_builder.rb
# frozen_string_literal: false require_relative 'helper' module Psych class TestTreeBuilder < TestCase def setup super @parser = Psych::Parser.new TreeBuilder.new @parser.parse(<<-eoyml) %YAML 1.1 --- - foo - { bar : &A !!str baz, boo : *A } - *A eoyml @tree = @parser.handler.ro...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tktext.rb
# # tktext.rb - load tk/text.rb # require 'tk/text'
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkdialog.rb
# # tkdialog.rb - load tk/dialog.rb # require 'tk/dialog'
arnab0073/idea
.rvm/src/ruby-2.3.0/test/-ext-/bignum/test_big2str.rb
# frozen_string_literal: false require 'test/unit' require "-test-/bignum" class TestBignum < Test::Unit::TestCase class TestBig2str < Test::Unit::TestCase SIZEOF_BDIGIT = Bignum::SIZEOF_BDIGIT BITSPERDIG = Bignum::BITSPERDIG BDIGMAX = (1 << BITSPERDIG) - 1 def test_big2str_generic x = 10**10...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/itk/setup.rb
# # setup.rb -- setup script before calling TkPackage.require() # # If you need some setup operations (for example, add a library path # to the library search path) before using Tcl/Tk library packages # wrapped by Ruby scripts in this directory, please write the setup # operations in this file. # # ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/puma-1.6.3/lib/puma/jruby_restart.rb
<filename>.rvm/gems/ruby-2.3.0/gems/puma-1.6.3/lib/puma/jruby_restart.rb require 'ffi' module Puma module JRubyRestart extend FFI::Library ffi_lib 'c' attach_function :execlp, [:string, :varargs], :int attach_function :chdir, [:string], :int def self.chdir_exec(dir, cmd, *argv) chdir(dir)...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/vu/canvSticker.rb
<reponame>arnab0073/idea #!/usr/bin/env ruby require 'tk' require 'tkextlib/vu/charts' ####################################### Tk.root.geometry('+30+30') delay = 2000 c = TkCanvas.new.pack begin st = Tk::Vu::TkcSticker.new(c, 0, 0, 10, 10) rescue Tk.messageBox(:type=>'ok', :title=>"No sticker Item", ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/statusbar.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/bwidget/statusbar.rb # # tkextlib/bwidget/statusbar.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tk/frame' require 'tkextlib/bwidget.rb' module Tk module BWidget class StatusBar < TkWindow end ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/darwin/system_profiler_spec.rb
<gh_stars>0 # # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2012 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 # # htt...
arnab0073/idea
.rvm/gems/ruby-2.3.0/specifications/excon-0.49.0.gemspec
<reponame>arnab0073/idea # -*- encoding: utf-8 -*- # stub: excon 0.49.0 ruby lib Gem::Specification.new do |s| s.name = "excon" s.version = "0.49.0" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] s.authors = ["dpiddy (<NAME>)...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/bin.rb
<reponame>arnab0073/idea<filename>.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/bin.rb require 'fog/core/credentials' module Fog class << self def available_providers @available_providers ||= Fog.providers.values.select {|provider| Kernel.const_get(provider).available?}.sort end def registered_prov...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/test/net/smtp/test_smtp.rb
<gh_stars>0 require 'net/smtp' require 'minitest/autorun' module Net class TestSMTP < MiniTest::Unit::TestCase def test_critical smtp = Net::SMTP.new 'localhost', 25 assert_raises RuntimeError do smtp.send :critical do raise 'fail on purpose' end end assert_kin...
arnab0073/idea
.rvm/src/ruby-2.3.0/gems/test-unit-3.1.5/lib/test/unit/version.rb
module Test module Unit VERSION = '3.1.5' end end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/lib/net/ntlm/blob.rb
module Net module NTLM BLOB_SIGN = 0x00000101 class Blob < FieldSet int32LE :blob_signature, {:value => BLOB_SIGN} int32LE :reserved, {:value => 0} int64LE :timestamp, {:value => 0} string :challenge, {:value => "", :size => 8} int32LE ...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/psych/lib/psych_jars.rb
# frozen_string_literal: false require 'psych/versions' require 'psych.jar' require 'jar-dependencies' require_jar('org.yaml', 'snakeyaml', Psych::DEFAULT_SNAKEYAML_VERSION)
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/lib/net/ssh/multi/channel.rb
<reponame>arnab0073/idea<filename>.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/lib/net/ssh/multi/channel.rb<gh_stars>1-10 module Net; module SSH; module Multi # Net::SSH::Multi::Channel encapsulates a collection of Net::SSH::Connection::Channel # instances from multiple different connections. It allows for operati...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/vscale.rb
# vscale.rb # # This demonstration script shows an example with a vertical scale. require "tkcanvas" if defined?($vscale_demo) && $vscale_demo $vscale_demo.destroy $vscale_demo = nil end $vscale_demo = TkToplevel.new {|w| title("Vertical Scale Demonstration") iconname("vscale") } positionWindow($vscale_demo)...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/gem_prelude.rb
require 'rubygems.rb' if defined?(Gem)
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/test/test_all.rb
# $ ruby -Ilib -Itest -rrubygems test/test_all.rb # $ ruby -Ilib -Itest -rrubygems test/channel_test.rb Dir["#{File.dirname(__FILE__)}/**/*_test.rb"].each do |file| load(file) end
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/resolver/molinillo/lib/molinillo.rb
<reponame>arnab0073/idea # frozen_string_literal: false require 'rubygems/resolver/molinillo/lib/molinillo/gem_metadata' require 'rubygems/resolver/molinillo/lib/molinillo/errors' require 'rubygems/resolver/molinillo/lib/molinillo/resolver' require 'rubygems/resolver/molinillo/lib/molinillo/modules/ui' require 'rubygem...
arnab0073/idea
.rvm/src/ruby-2.3.0/tool/rbuninstall.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-2.3.0/tool/rbuninstall.rb #! /usr/bin/ruby -nl BEGIN { $dryrun = false $tty = STDOUT.tty? until ARGV.empty? case ARGV[0] when /\A--destdir=(.*)/ $destdir = $1 when /\A-n\z/ $dryrun = true when /\A--(?:no-)?tty\z/ $tty = !$1 else...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/i18n/locale.rb
# frozen_string_literal: false ## # A message container for a locale. # # This object provides the following two features: # # * Loads translated messages from .po file. # * Translates a message into the locale. class RDoc::I18n::Locale @@locales = {} # :nodoc: class << self ## # Returns the locale ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/-test-/win32/dln/extconf.rb
if $mingw or $mswin $objs = ["dlntest.o"] testdll = "$(topdir)/dlntest.dll" $cleanfiles << testdll config_string('cleanobjs') {|t| $cleanfiles.concat(t.gsub(/\$\*/, 'dlntest').split)} create_makefile("-test-/win32/dln") m = File.read("Makefile") dlntestlib = "dlntest.#{$LIBEXT}" m.sub!(/^OBJS =.*/) {"#...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/deprecate.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-2.3.0/lib/rubygems/deprecate.rb # frozen_string_literal: false ## # Provides a single method +deprecate+ to be used to declare when # something is going away. # # class Legacy # def self.klass_method # # ... # end # # def instance_method # ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/ttk_wrapper.rb
#!/usr/bin/env ruby # # ttk_wrapper.rb -- use Ttk widgets as default on old Ruby/Tk scripts # # by <NAME> (<EMAIL>) # version = '0.1.3' # ########################################################################## # parse commandline arguments ###################################################...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/gce_spec.rb
# # Author:: <NAME> (<EMAIL>) # 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.org/licenses/LICENSE-2.0 # # Unless required by...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/remote-ip_sample.rb
<gh_stars>1-10 #!/usr/bin/env ruby require 'remote-tk' puts <<EOM This sample controls the other Tk interpreter (Ruby/Tk, Tcl/Tk, and so on) which running on the other process. For this purpose, Ruby/Tk uses Tcl/Tk's 'send' command. Availability of the command depends on your GUI environment. If this script doesn't wo...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/openssl/test_ns_spki.rb
# frozen_string_literal: false require_relative 'utils' if defined?(OpenSSL::TestUtils) class OpenSSL::TestNSSPI < Test::Unit::TestCase def setup # This request data is adopt from the specification of # "Netscape Extensions for User Key Generation". # -- http://wp.netscape.com/eng/security/comm4-keygen....
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/nori-2.6.0/lib/nori/core_ext/hash.rb
require "uri" class Nori module CoreExt module Hash # @param key<Object> The key for the param. # @param value<Object> The value for the param. # # @return <String> This key value pair as a param # # @example normalize_param(:name, "<NAME>") #=> "name=Bob%20Jones" def n...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/meta_method.rb
# frozen_string_literal: false ## # MetaMethod represents a meta-programmed method class RDoc::MetaMethod < RDoc::AnyMethod end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/systemu-2.6.5/samples/f.rb
# # if a block is specified then it is passed the child pid and run in a # background thread. note that this thread will __not__ be blocked during the # execution of the command so it may do useful work such as killing the child # if execution time passes a certain threshold # require 'systemu' looper = %q( ruby ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/tkpiechart.rb
<gh_stars>1-10 # # tkextlib/tcllib/tkpiechart.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * Create 2D or 3D pies with labels in Tcl canvases # require 'tk' require 'tk/canvas' require 'tkextlib/tcllib.rb' # TkPackage.require('tkpiechart', '6.6') TkPackage.require('tkpi...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/resolver/specification.rb
<reponame>arnab0073/idea<gh_stars>0 # frozen_string_literal: false ## # A Resolver::Specification contains a subset of the information # contained in a Gem::Specification. Only the information necessary for # dependency resolution in the resolver is included. class Gem::Resolver::Specification ## # The dependenc...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/nokogiri-1.6.8/ext/nokogiri/extconf.rb
<reponame>arnab0073/idea # :stopdoc: ENV['RC_ARCHS'] = '' if RUBY_PLATFORM =~ /darwin/ require 'mkmf' ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')) # # functions # def windows? RbConfig::CONFIG['target_os'] =~ /mingw32|mswin/ end def solaris? RbConfig::CONFIG['target_os'] =~ /solaris/ e...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/tests/brightbox/models/compute/database_server_tests.rb
<reponame>arnab0073/idea Shindo.tests("Fog::Compute[:brightbox] | DatabaseServer model", ["brightbox"]) do pending if Fog.mocking? @service = Fog::Compute[:brightbox] tests("success") do tests("#create") do test("a new database server is returned") do @database_server = @service.database_serve...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/mkmf/test_find_executable.rb
# frozen_string_literal: false require_relative 'base' class TestMkmf class TestFindExecutable < TestMkmf def setup super @path, ENV["PATH"] = ENV["PATH"], @tmpdir end def teardown ENV["PATH"] = @path super end def test_find_executable bug2669 = '[ruby-core:27912]'...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/test_config.rb
<reponame>arnab0073/idea<gh_stars>1-10 # frozen_string_literal: false require 'rubygems/test_case' require 'rubygems' class TestConfig < Gem::TestCase def test_datadir util_make_gems spec = Gem::Specification.find_by_name("a") spec.activate assert_equal "#{spec.full_gem_path}/data/a", Gem.datadir('a...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/sample/tkextlib/tkHTML/hv.rb
<gh_stars>0 #!/usr/bin/env ruby # frozen_string_literal: false # # This script implements the "hv" application. Type "hv FILE" to # view FILE as HTML. # # This application is used for testing the HTML widget. It can # also server as an example of how to use the HTML widget. # require 'tk' require 'tkextlib/tkHTML' r...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/nori-2.6.0/spec/nori/core_ext/hash_spec.rb
require "spec_helper" describe Hash do describe "#normalize_param" do it "should have specs" end describe "#to_xml_attributes" do it "should turn the hash into xml attributes" do attrs = { :one => "ONE", "two" => "TWO" }.to_xml_attributes expect(attrs).to match(/one="ONE"/m) expect(a...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/layouts/test_color_pattern.rb
<filename>.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/test/layouts/test_color_pattern.rb require File.expand_path('../../setup', __FILE__) module TestLogging module TestLayouts class TestColorPattern < Test::Unit::TestCase include LoggingTestCase CS = ::Logging::ColorScheme def setup super ::...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkpalette.rb
<gh_stars>10-100 # # tkpalette.rb - load tk/palette.rb # require 'tk/palette'
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/psych/lib/psych/visitors/visitor.rb
<reponame>arnab0073/idea # frozen_string_literal: false module Psych module Visitors class Visitor def accept target visit target end private DISPATCH = Hash.new do |hash, klass| hash[klass] = "visit_#{klass.name.gsub('::', '_')}" end def visit target ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/open-uri/test_ssl.rb
<reponame>arnab0073/idea # frozen_string_literal: true require 'test/unit' require 'open-uri' require 'stringio' require 'webrick' begin require 'openssl' require 'webrick/https' require_relative '../openssl/utils' rescue LoadError end require 'webrick/httpproxy' class TestOpenURISSL < Test::Unit::TestCase end ...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/win32ole/sample/excel2.rb
<filename>.rvm/src/ruby-2.3.0/ext/win32ole/sample/excel2.rb # frozen_string_literal: false require 'win32ole' # -4100 is the value for the Excel constant xl3DColumn. ChartTypeVal = -4100; # Creates OLE object to Excel excel = WIN32OLE.new("excel.application") # Create and rotate the chart excel.visible = TRUE; e...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm2_unif1.rb
i = 0 def m a, b end while i<6_000_000 # benchmark loop 2 i+=1 m 100, 200 end
arnab0073/idea
.rvm/src/ruby-2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/extra_features.rb
<filename>.rvm/src/ruby-2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/extra_features.rb require 'did_you_mean' module DidYouMean TRACE = TracePoint.trace(:raise) do |tp| e = tp.raised_exception if SPELL_CHECKERS.include?(e.class.to_s) && !e.instance_variable_defined?(:@frame_binding) e.instance_varia...
arnab0073/idea
.rvm/src/ruby-2.3.0/gems/did_you_mean-1.0.0/test/correctable/method_name_test.rb
<reponame>arnab0073/idea require 'test_helper' class MethodNameTest < Minitest::Test class User def friends; end def first_name; end def descendants; end def call_incorrect_private_method raiae NoMethodError end protected def the_protected_method; end private def friend; e...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-aws-0.9.2/lib/fog/aws.rb
<reponame>arnab0073/idea require 'fog/core' require 'fog/xml' require 'fog/json' require File.expand_path('../aws/version', __FILE__) module Fog module CDN autoload :AWS, File.expand_path('../aws/cdn', __FILE__) end module Compute autoload :AWS, File.expand_path('../aws/compute', __FILE__) end mo...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/-ext-/funcall/test_passing_block.rb
<filename>.rvm/src/ruby-2.3.0/test/-ext-/funcall/test_passing_block.rb # frozen_string_literal: false require 'test/unit' class TestFuncall < Test::Unit::TestCase module Relay def self.target(*args, &block) yield(*args) if block end end require '-test-/funcall/funcall' def test_with_funcall2 ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/clrpick.rb
# clrpick.rb # # This demonstration script prompts the user to select a color. # # widget demo prompts the user to select a color (called by 'widget') # # Note: don't support ttk_wrapper. work with standard widgets only. # # toplevel widget if defined?($clrpick_demo) && $clrpick_demo $clrpick_demo.destroy $clrpic...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/psych/lib/psych/syntax_error.rb
<gh_stars>10-100 # frozen_string_literal: false require 'psych/exception' module Psych class SyntaxError < Psych::Exception attr_reader :file, :line, :column, :offset, :problem, :context def initialize file, line, col, offset, problem, context err = [problem, context].compact.join ' ' filen...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/lib/logging/filter.rb
<gh_stars>100-1000 module Logging # The `Filter` class allows for filtering messages based on event # properties independently of the standard minimum-level restriction. # # All other Filters inherit from this class, and must override the # `allow` method to return the event if it should be allowed into the ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/openstack/baremetal.rb
require 'fog/openstack/core' module Fog module Baremetal class OpenStack < Fog::Service SUPPORTED_VERSIONS = /(.)*/ requires :openstack_auth_url recognizes :openstack_auth_token, :openstack_management_url, :persistent, :openstack_service_type, :openstack_service_name, :opensta...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/examples/gss_client.rb
<reponame>arnab0073/idea require 'gssapi' require 'base64' require 'socket' host = 'example.org' service = 'host' sock = TCPSocket.new(host, 8082) cli = GSSAPI::Simple.new(host, service) tok = cli.init_context stok = Base64.strict_encode64(tok) sock.write("#{stok}\n") # send initial token stok = sock.gets.chomp #...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/commands/cert_command.rb
# frozen_string_literal: false require 'rubygems/command' require 'rubygems/security' begin require 'openssl' rescue LoadError => e raise unless (e.respond_to?(:path) && e.path == 'openssl') || e.message =~ / -- openssl$/ end class Gem::Commands::CertCommand < Gem::Command def initialize supe...
arnab0073/idea
.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/rubygems-bundler-1.4.4/lib/rubygems_executable_plugin.rb
Gem.execute do |original_file| require 'rubygems' begin require 'rubygems-bundler/noexec' rescue LoadError warn "unable to load rubygems-bundler/noexec" if ENV.key?('NOEXEC_DEBUG') end end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/io/wait/extconf.rb
<gh_stars>10-100 require 'mkmf' target = "io/wait" unless macro_defined?("DOSISH", "#include <ruby.h>") have_header(ioctl_h = "sys/ioctl.h") or ioctl_h = nil fionread = %w[sys/ioctl.h sys/filio.h sys/socket.h].find do |h| have_macro("FIONREAD", [h, ioctl_h].compact) end if fionread $defs << "-DFIONREAD...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/demos-en/twind.rb
<reponame>arnab0073/idea # twind.rb # # This demonstration script creates a text widget with a bunch of # embedded windows. # # text (embedded windows) widget demo (called by 'widget') # # toplevel widget if defined?($twind_demo) && $twind_demo $twind_demo.destroy $twind_demo = nil end # demo toplevel widget $twi...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/win32ole/sample/ienavi2.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/win32ole/sample/ienavi2.rb require 'win32ole' class IEHandler attr_reader :loop def initialize @urls = [] @loop = true end def method_missing(event, *args) case event when "BeforeNavigate2" puts "Now Navigate #{args[1]}..." end end def onNavi...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/propagate.rb
#!/usr/bin/env ruby require 'tk' TkLabel.new(:text=>"Please click the bottom frame").pack f = TkFrame.new(:width=>400, :height=>100, :background=>'yellow', :relief=>'ridge', :borderwidth=>5).pack # TkPack.propagate(f, false) # <== important!! f.pack_propagate(false) # <== important!! list = (1....
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/hyperhelp.rb
<gh_stars>10-100 #!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' mainloop = Thread.new{Tk.mainloop} dir = '/usr/local/ActiveTcl/demos/IWidgets/html/' href = [ 'hyperhelp.n', 'buttonbox.n', 'calendar.n' ] hh = Tk::Iwidgets::Hyperhelp.new(:topics=>href, :helpdir=>dir) hh.show_topic('hyperhelp.n') hh.acti...
arnab0073/idea
.rvm/gems/ruby-2.3.0/specifications/winrm-1.8.1.gemspec
<gh_stars>0 # -*- encoding: utf-8 -*- # stub: winrm 1.8.1 ruby lib Gem::Specification.new do |s| s.name = "winrm" s.version = "1.8.1" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] s.authors = ["<NAME>", "<NAME>"] s.date = ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/lib/logging/layouts/basic.rb
module Logging::Layouts # Accessor / Factory for the Basic layout. # def self.basic( *args ) return ::Logging::Layouts::Basic if args.empty? ::Logging::Layouts::Basic.new(*args) end # The +Basic+ layout class provides methods for simple formatting of log # events. The resulting string follows the...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/class_module.rb
# frozen_string_literal: false ## # ClassModule is the base class for objects representing either a class or a # module. class RDoc::ClassModule < RDoc::Context ## # 1:: # RDoc 3.7 # * Added visibility, singleton and file to attributes # * Added file to constants # * Added file to includes # *...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/plugin/exception/rubygems_plugin.rb
# frozen_string_literal: false TestGem::TEST_PLUGIN_EXCEPTION = :loaded raise Exception.new('boom')
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-multi-1.2.0/lib/net/ssh/multi/server.rb
require 'net/ssh' module Net; module SSH; module Multi # Encapsulates the connection information for a single remote server, as well # as the Net::SSH session corresponding to that information. You'll rarely # need to instantiate one of these directly: instead, you should use # Net::SSH::Multi::Session#use. ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/net-ssh-2.2.2/test/test_buffer.rb
require 'common' require 'net/ssh/buffer' class TestBuffer < Test::Unit::TestCase def test_constructor_should_initialize_buffer_to_empty_by_default buffer = new assert buffer.empty? assert_equal 0, buffer.position end def test_constructor_with_string_should_initialize_buffer_to_the_string buffer...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/examples/classes.rb
# :stopdoc: # # The Logging framework is very good about figuring out predictable names # for loggers regardless of what object is used to create them. The name is # the class name or module name of whatever is passed to the logger bracket # method. The following lines all return the exact same logger instance: # # ...
arnab0073/idea
.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/specifications/io-console-0.3.gemspec
<filename>.rvm/rubies/ruby-1.9.3-p551/lib/ruby/gems/1.9.1/specifications/io-console-0.3.gemspec Gem::Specification.new do |s| s.name = "io-console" s.version = "0.3" s.summary = "This io-console is bundled with Ruby" s.executables = [] end
arnab0073/idea
.rvm/src/ruby-2.3.0/test/test_mutex_m.rb
# frozen_string_literal: false require 'test/unit' require 'thread' require 'mutex_m' class TestMutexM < Test::Unit::TestCase def test_cv_wait o = Object.new o.instance_variable_set(:@foo, nil) o.extend(Mutex_m) c = ConditionVariable.new t = Thread.start { o.synchronize do until foo...
arnab0073/idea
.rvm/src/ruby-2.3.0/tool/vcs.rb
# vcs require 'fileutils' ENV.delete('PWD') unless File.respond_to? :realpath require 'pathname' def File.realpath(arg) Pathname(arg).realpath.to_s end end def IO.pread(*args) STDERR.puts(*args.inspect) if $DEBUG popen(*args) {|f|f.read} end if RUBY_VERSION < "2.0" class IO @orig_popen = method(...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/racc/cparse/extconf.rb
# $Id: extconf.rb 25189 2009-10-02 12:04:37Z akr $ require 'mkmf' have_func('rb_block_call', 'ruby/ruby.h') create_makefile 'racc/cparse'
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/-test-/st/numhash/extconf.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-1.9.3-p551/ext/-test-/st/numhash/extconf.rb<gh_stars>0 create_makefile("-test-/st/numhash")
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/scrollbar.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/scrollbar.rb<gh_stars>1-10 # # tk/scrollbar.rb : treat scrollbar widget # require 'tk' class Tk::Scrollbar<TkWindow TkCommandNames = ['scrollbar'.freeze].freeze WidgetClassName = 'Scrollbar'.freeze WidgetClassNames[WidgetClassName] ||= self def create_self(keys...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/xenserver/requests/compute/create_sr.rb
module Fog module Compute class XenServer class Real # # Create a storage repository (SR) # # @see http://docs.vmd.citrix.com/XenServer/6.0.0/1.0/en_gb/api/?c=SR # # @param [String] host_ref host reference # @param [String] name_label repository label ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/winrm-1.8.1/spec/issue_184_spec.rb
<gh_stars>0 # encoding: UTF-8 require 'winrm/winrm_service' require 'rexml/document' require 'erb' require 'base64' describe 'issue 184', unit: true do let(:shell_id) { 'shell-123' } let(:command_id) { 123 } let(:test_data_xml_template) do ERB.new(File.read('spec/stubs/responses/get_command_output_respon...
arnab0073/idea
.rvm/src/ruby-2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/extra_features/initializer_name_correction.rb
# -*- frozen-string-literal: true -*- module DidYouMean module ExtraFeatures module InitializerNameCorrection def method_added(name) super distance = Levenshtein.distance(name.to_s, 'initialize') if distance != 0 && distance <= 2 warn "warning: #{name} might be misspelled...
arnab0073/idea
.rvm/src/ruby-2.3.0/bootstraptest/test_fork.rb
<gh_stars>10-100 assert_equal '0', %q{ begin GC.stress = true pid = fork {} Process.wait pid $?.to_i rescue NotImplementedError 0 end }, '[ruby-dev:32404]' assert_finish 10, %q{ begin children = (1..10).map{ Thread.start{fork{}}.value } while !children.empty? and pid = Pro...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/knife-windows-1.4.1/spec/unit/knife/winrm_session_spec.rb
<gh_stars>0 # # Author:: <NAME> <<EMAIL>> # Copyright:: Copyright (c) 2015-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 # #...
arnab0073/idea
.rvm/gems/ruby-2.3.0/specifications/ohai-6.18.0.gemspec
<gh_stars>0 # -*- encoding: utf-8 -*- # stub: ohai 6.18.0 ruby lib Gem::Specification.new do |s| s.name = "ohai" s.version = "6.18.0" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] s.authors = ["<NAME>"] s.date = "2013-07-1...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/systemu-2.6.5/samples/a.rb
<reponame>arnab0073/idea # # systemu can be used on any platform to return status, stdout, and stderr of # any command. unlike other methods like open3/popen4 there is zero danger of # full pipes or threading issues hanging your process or subprocess. # require 'systemu' date = %q( ruby -e" t = Time.now; STDOUT....
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/tcllib/plotdemos3.rb
#!/usr/bin/ruby require 'tk' require 'tkextlib/tcllib/plotchart' ############################### # Set up a strip chart ############################### Tk::Tcllib::Plotchart::Stripchart.new([0.0, 100.0, 10.0], [0.0, 100.0, 20.0], :background...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/lib/tk/texttag.rb
# frozen_string_literal: false # # tk/texttag.rb - methods for treating text tags # require 'tk' require 'tk/text' require 'tk/tagfont' class TkTextTag<TkObject include TkTreatTagFont include Tk::Text::IndexModMethods TTagID_TBL = TkCore::INTERP.create_table (Tk_TextTag_ID = ['tag'.freeze, TkUtil.untrust('00...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/curses/view.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/curses/view.rb #!/usr/local/bin/ruby require "curses" include Curses # # main # if ARGV.size != 1 then printf("usage: view file\n"); exit end begin fp = open(ARGV[0], "r") rescue raise "cannot open file: #{ARGV[1]}" end # signal(SIGINT, finish) init_screen #keypad(std...