repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
arnab0073/idea
.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/rvm-1.11.3.9/lib/rvm/shell/single_shot_wrapper.rb
require 'open3' module RVM module Shell # Implementation of the abstract wrapper class that opens a new # instance of bash when a command is run, only keeping it around # for the lifetime of the command. Possibly inefficient but for # the moment simplest and hence default implementation. class Si...
arnab0073/idea
.rvm/src/ruby-2.3.0/sample/cbreak.rb
<filename>.rvm/src/ruby-2.3.0/sample/cbreak.rb # ioctl example works on Sun CBREAK = 0x00000002 ECHO = 0x00000008 TIOCGETP = 0x40067408 TIOCSETP = 0x80067409 def cbreak () set_cbreak(true) end def cooked () set_cbreak(false) end def set_cbreak (on) tty = "\0" * 256 STDIN.ioctl(TIOCGETP, tty) ttys = tty.un...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/bootstraptest/test_flow.rb
<gh_stars>0 assert_equal %q{[1, 2, 4, 5, 6, 7, 8]}, %q{$a = []; begin; ; $a << 1 [1,2].each{; $a << 2 break; $a << 3 }; $a << 4 begin; $a << 5 ensure; $a << 6 end; $a << 7 ; $a << 8 ; rescue Exception; $a << 99; end; $a} assert_equal %q{[1, 2, 3, 5, 6, 7, 8]}, %q{$a = []; begin; ; $a << 1 begin; $a <<...
arnab0073/idea
.rvm/src/ruby-2.3.0/tool/gen_dummy_probes.rb
#!/usr/bin/ruby # -*- coding: us-ascii -*- text = ARGF.read text.gsub!(/^(?!#)(.*)/){$1.upcase} # remove comments text.gsub!(%r'(?:^ *)?/\*.*?\*/\n?'m, '') # remove the pragma declarations text.gsub!(/^#pragma.*\n/, '') # replace the provider section with the start of the header file text.gsub!(/PROVIDER RUBY \{/, ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/dynect.rb
require 'fog/dynect/dns'
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/-test-/iseq_load/extconf.rb
# frozen_string_literal: false create_makefile("-test-/iseq_load/iseq_load")
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/sample/demos-en/goldberg.rb
<reponame>arnab0073/idea # frozen_string_literal: false # # Ruby/Tk Goldverg demo (called by 'widget') # # Based on Tcl/Tk8.5a2 widget demos. # The following is the original comment of TkGoldberg.tcl. # #>>##+################################################################# #>># #>># TkGoldberg.tcl #>># by <NAME>, Marc...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/ripper/lib/ripper/sexp.rb
# frozen_string_literal: false # # $Id: sexp.rb 53143 2015-12-16 05:31:54Z naruse $ # # Copyright (c) 2004,2005 <NAME> # # This program is free software. # You can distribute and/or modify this program under the Ruby License. # For details of Ruby License, see ruby/COPYING. # require 'ripper/core' class Ripper # [...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/securerandom.rb
# -*- coding: us-ascii -*- # frozen_string_literal: true begin require 'openssl' rescue LoadError end # == Secure random number generator interface. # # This library is an interface to secure random number generators which are # suitable for generating session keys in HTTP cookies, etc. # # You can use this library ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/sff/discover.rb
<reponame>arnab0073/idea # frozen_string_literal: false
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/examples/rspec_integration.rb
# :stopdoc: # # One useful feature of log messages in your code is that they provide a # convenient instrumentation point for testing. Through log messages you can # confirm that internal methods were called or that certain code paths were # executed. This example demonstrates how to capture log output during testing #...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/lib/spec/logging_helper.rb
require File.expand_path('../../rspec/logging_helper', __FILE__) Spec::LoggingHelper = RSpec::LoggingHelper if defined? Spec::Runner::Configuration class Spec::Runner::Configuration include Spec::LoggingHelper end end
arnab0073/idea
.rvm/src/ruby-2.3.0/test/psych/test_emitter.rb
# -*- coding: utf-8 -*- # frozen_string_literal: false require_relative 'helper' module Psych class TestEmitter < TestCase def setup super @out = StringIO.new('') @emitter = Psych::Emitter.new @out end def test_line_width @emitter.line_width = 10 assert_equal 10, @emitter....
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/treectrl/layout.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/treectrl/layout.rb # # Demo: Layout # def demoLayout(t) t.configure(:showroot=>false, :showrootbutton=>true, :showbuttons=>true, :showlines=>true, :itemheight=>0, :selectmode=>:browse) if $HasColumnCreate t.column_create(:text=>'Layout') ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/knife-windows-1.4.1/spec/unit/knife/bootstrap_windows_winrm_spec.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/src/ruby-2.3.0/gems/did_you_mean-1.0.0/evaluation/dictionary_generator.rb
<reponame>arnab0073/idea require 'open-uri' require 'cgi' require 'json' per_page = 500 base_url = "https://simple.wiktionary.org/w/api.php?action=query&aplimit=#{per_page}&list=allpages&format=json" filename = "evaluation/dictionary.yml" count = nil apfrom = "" num = 0 titles = [] begin url = base_url ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/java_spec.rb
<filename>.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/java_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 ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/lib/net/ntlm/string.rb
<gh_stars>0 module Net module NTLM class String < Field def initialize(opts) super(opts) @size = opts[:size] end def parse(str, offset=0) if @active and str.size >= offset + @size @value = str[offset, @size] @size else ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/vsphere/requests/compute/cloudinit_to_customspec.rb
module Fog module Compute class Vsphere class Real def cloudinit_to_customspec(user_data) raise ArgumentError, "user_data can't be nil" if user_data.nil? custom_spec = { 'customization_spec' => Hash.new } user_data = YAML.load(user_data) # hostname expects a s...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/-test-/load/dot.dot/extconf.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/-test-/load/dot.dot/extconf.rb create_makefile("-test-/load/dot.dot/dot.dot")
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/figmemo_sample.rb
#!/usr/bin/env ruby require 'tk' begin # try to use Img extension require 'tkextlib/tkimg' rescue Exception # cannot use Img extention --> ignore end ############################ # scrolled_canvas class TkScrolledCanvas < TkCanvas include TkComposite def initialize_composite(keys={}) @h_scr = TkScroll...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/systemu-2.6.5/samples/e.rb
# # any environment vars specified are merged into the child's environment # require 'systemu' env = %q( ruby -r yaml -e" puts ENV[ 'answer' ] " ) status = systemu env, 1=>stdout='', 'env'=>{ 'answer' => 0b101010 } puts stdout
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/include.rb
# frozen_string_literal: false ## # A Module included in a class with \#include # # RDoc::Include.new 'Enumerable', 'comment ...' class RDoc::Include < RDoc::Mixin end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/lib/logging/appenders/file.rb
module Logging::Appenders # Accessor / Factory for the File appender. # def self.file( *args ) fail ArgumentError, '::Logging::Appenders::File needs a name as first argument.' if args.empty? ::Logging::Appenders::File.new(*args) end # This class provides an Appender that can write to a File. # ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/tabset.rb
#!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' # Create a listbox with two items (one and two) l = TkListbox.new(:selectmode=>:single, :exportselection=>false).pack l.insert('end', 'one') l.insert('end', 'two') l.selection_set(0) # Define a proc that knows how to select an item # from a list given an in...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/test_gem_name_tuple.rb
<reponame>arnab0073/idea<gh_stars>1-10 # frozen_string_literal: false require 'rubygems/test_case' require 'rubygems/name_tuple' class TestGemNameTuple < Gem::TestCase def test_full_name n = Gem::NameTuple.new "a", Gem::Version.new(0), "ruby" assert_equal "a-0", n.full_name n = Gem::NameTuple.new "a", ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rest-client-1.6.9/lib/restclient/raw_response.rb
<filename>.rvm/gems/ruby-2.3.0/gems/rest-client-1.6.9/lib/restclient/raw_response.rb<gh_stars>100-1000 module RestClient # The response from RestClient on a raw request looks like a string, but is # actually one of these. 99% of the time you're making a rest call all you # care about is the body, but on the occa...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rdoc/test_rdoc_markup_pre_process.rb
# coding: utf-8 # frozen_string_literal: false require 'rdoc/test_case' class TestRDocMarkupPreProcess < RDoc::TestCase def setup super @tempfile = Tempfile.new 'test_rdoc_markup_pre_process' @file_name = File.basename @tempfile.path @dir = File.dirname @tempfile.path @pp = RDoc::Markup::Pre...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/psych/lib/psych/set.rb
# frozen_string_literal: false module Psych class Set < ::Hash end end
arnab0073/idea
.rvm/src/ruby-2.3.0/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb
# -*- frozen-string-literal: true -*- require 'delegate' module DidYouMean class ClassNameChecker include SpellCheckable attr_reader :class_name def initialize(exception) @class_name, @receiver = exception.name, exception.receiver end def candidates {class_name => class_names} e...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/psych/lib/psych/visitors/to_ruby.rb
# frozen_string_literal: false require 'psych/scalar_scanner' require 'psych/class_loader' require 'psych/exception' unless defined?(Regexp::NOENCODING) Regexp::NOENCODING = 32 end module Psych module Visitors ### # This class walks a YAML AST, converting each node to Ruby class ToRuby < Psych::Visito...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkmultilistframe.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkmultilistframe.rb<gh_stars>1-10 # # tkmultilistframe.rb : multiple listbox widget on scrollable frame # by <NAME> (<EMAIL>) # require 'tk' class TkMultiListFrame < TkListbox include TkComposite # lbox_height : height of listboxes (pixel) ...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/ripper/tools/generate-param-macros.rb
# frozen_string_literal: false off = true ARGF.each do |line| case line when /RIPPER_PARAMS_DECL_BEGIN/ off = false when /RIPPER_PARAMS_DECL_END/ exit when /ripper/ next if off var = line.scan(/\w+/).last or next base = var.sub(/ripper_/, '') puts %"\#define #{base}\t\t(parser->ripper_#{...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-authentication-1.4.1/spec/mixlib/authentication/mixlib_authentication_spec.rb
# # Author:: <NAME> (<<EMAIL>>) # Author:: <NAME> (<<EMAIL>>) # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2009, 2010 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. ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/other-lang/loop.rb
i=0 while i<30000000 i+=1 end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkentry.rb
# # tkentry.rb - load tk/entry.rb # require 'tk/entry'
arnab0073/idea
.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb
<filename>.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/executable-hooks-1.3.2/lib/executable-hooks/regenerate_binstubs_command.rb require 'rubygems/command_manager' require 'rubygems/installer' require 'rubygems/version' require 'executable-hooks/wrapper' class RegenerateBinstubsCommand < Gem::Command def initial...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkline.rb
<gh_stars>10-100 require "tkclass" $tkline_init = FALSE def start_random return if $tkline_init $tkline_init = TRUE if defined? Thread Thread.start do loop do sleep 2 Line.new($c, rand(400), rand(200), rand(400), rand(200)) end end end end Label.new('text'=>'Please press o...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rubygems/commands/generate_index_command.rb
# frozen_string_literal: false require 'rubygems/command' require 'rubygems/indexer' ## # Generates a index files for use as a gem server. # # See `gem help generate_index` class Gem::Commands::GenerateIndexCommand < Gem::Command def initialize super 'generate_index', 'Generates the index files for a...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/systemu-2.6.5/samples/b.rb
<gh_stars>100-1000 # # quite a few keys can be passed to the command to alter it's behaviour. if # either stdout or stderr is supplied those objects should respond_to? '<<' # and only status will be returned # require 'systemu' date = %q( ruby -e" t = Time.now; STDOUT.puts t; STDERR.puts t " ) stdout, stderr...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/labeledframe.rb
<gh_stars>10-100 #!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' lf = Tk::Iwidgets::Labeledframe.new(:labeltext=>'Entry Frame', :labelpos=>:n) lf.pack(:fill=>:both, :expand=>true, :padx=>10, :pady=>10) cs = lf.child_site Tk::Iwidgets::Entryfield.new(cs, :labeltext=>'Name:').pack(:side=>:top, :fill=>:x) ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/-test-/array/resize/extconf.rb
<reponame>arnab0073/idea<gh_stars>0 create_makefile("-test-/array/resize")
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/markup/inline.rb
# frozen_string_literal: false warn "requiring rdoc/markup/inline is deprecated and will be removed in RDoc 4." if $-w
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkclass.rb
# # tkclass.rb - Tk classes # Date: 2000/11/27 09:23:36 # by <NAME> <<EMAIL>> # # $Id: tkclass.rb 25189 2009-10-02 12:04:37Z akr $ require "tk" TopLevel = TkToplevel Frame = TkFrame Label = TkLabel Button = TkButton Radiobutton = TkRadioB...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/checkbox.rb
<gh_stars>10-100 #!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' cb = Tk::Iwidgets::Checkbox.new cb.add('bold', :text=>'Bold') cb.add('italic', :text=>'Italic') cb.add('underline', :text=>'Underline') cb.select('underline') cb.pack(:expand=>true, :fill=>:both, :padx=>10, :pady=>10) Tk.mainloop
arnab0073/idea
.rvm/src/ruby-2.3.0/test/lib/zombie_hunter.rb
# frozen_string_literal: false module ZombieHunter def after_teardown super assert_empty(Process.waitall) end end Test::Unit::TestCase.include ZombieHunter
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/fix_openssl_warnings.rb
<filename>.rvm/src/ruby-2.3.0/test/rubygems/fix_openssl_warnings.rb # frozen_string_literal: false ## # HACK: this drives me BONKERS if defined? OpenSSL then class OpenSSL::X509::ExtensionFactory alias :old_create_ext :create_ext def create_ext(*args) @config ||= nil old_create_ext(*args) end...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/code_objects.rb
# frozen_string_literal: false # This file was used to load all the RDoc::CodeObject subclasses at once. Now # autoload handles this. require 'rdoc'
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rubyntlm-0.6.0/lib/net/ntlm/message/type1.rb
<reponame>arnab0073/idea module Net module NTLM class Message # @private false class Type1 < Message string :sign, {:size => 8, :value => SSP_SIGN} int32LE :type, {:value => 1} int32LE :flag, {:value => DEFAULT_FLAGS[:...
arnab0073/idea
.rvm/gems/ruby-2.3.0/specifications/knife-windows-1.4.1.gemspec
# -*- encoding: utf-8 -*- # stub: knife-windows 1.4.1 ruby lib Gem::Specification.new do |s| s.name = "knife-windows" s.version = "1.4.1" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] s.authors = ["<NAME>"] s.date = "2016-...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/zlib/extconf.rb
# # extconf.rb # # $Id: extconf.rb 37561 2012-11-08 08:34:18Z usa $ # require 'mkmf' require 'rbconfig' dir_config 'zlib' if %w'z libz zlib1 zlib zdll zlibwapi'.find {|z| have_library(z, 'deflateReset')} and have_header('zlib.h') then defines = [] message 'checking for kind of operating system... ' os_c...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/sample/pty/expect_sample.rb
# # sample program of expect.rb # # by <NAME> # # This program reports the latest version of ruby interpreter # by connecting to ftp server at ruby-lang.org. # require 'pty' require 'expect' fnames = [] PTY.spawn("ftp ftp.ruby-lang.org") do |r_f,w_f,pid| w_f.sync = true $expect_verbose = false if !ENV['USER...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/lib/tkextlib/bwidget/progressdlg.rb
<filename>.rvm/src/ruby-2.3.0/ext/tk/lib/tkextlib/bwidget/progressdlg.rb # frozen_string_literal: false # # tkextlib/bwidget/progressdlg.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tk/variable' require 'tkextlib/bwidget.rb' require 'tkextlib/bwidget/progressbar' require 'tkextlib/bw...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/syck/extconf.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/syck/extconf.rb require 'mkmf' have_header( "st.h" ) create_makefile( "syck" )
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_so_meteor_contest.rb
<gh_stars>10-100 #!/usr/bin/env ruby # # The Computer Language Shootout # http://shootout.alioth.debian.org # contributed by <NAME> (Ruby novice) # PROGRAM: the main body is at the bottom. # 1) read about the problem here: http://www-128.ibm.com/developerworks/java/library/j-javaopt/ # 2) see how I represent ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/puma-1.6.3/lib/puma/server.rb
<gh_stars>0 require 'rack' require 'stringio' require 'puma/thread_pool' require 'puma/const' require 'puma/events' require 'puma/null_io' require 'puma/compat' require 'puma/reactor' require 'puma/client' require 'puma/puma_http11' require 'socket' module Puma # The HTTP Server itself. Serves out a single Rack ...
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/lib/tk/msgcat.rb
<filename>.rvm/src/ruby-2.3.0/ext/tk/lib/tk/msgcat.rb<gh_stars>0 # frozen_string_literal: false # # tk/msgcat.rb : methods for Tcl message catalog # by <NAME> <<EMAIL>> # require 'tk' #class TkMsgCatalog class TkMsgCatalog < TkObject include TkCore extend Tk #extend TkMsgCatalog TkComman...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/openssl/test_pkcs5.rb
<filename>.rvm/src/ruby-2.3.0/test/openssl/test_pkcs5.rb # frozen_string_literal: false require_relative 'utils' class OpenSSL::TestPKCS5 < Test::Unit::TestCase def test_pbkdf2_hmac_sha1_rfc6070_c_1_len_20 p ="password" s = "<PASSWORD>" c = 1 dk_len = 20 raw = %w{ 0c 60 c8 0f 96 1f 0e 71 ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/openssl/test_cipher.rb
# frozen_string_literal: false require_relative 'utils' if defined?(OpenSSL::TestUtils) class OpenSSL::TestCipher < Test::Unit::TestCase class << self def has_cipher?(name) ciphers = OpenSSL::Cipher.ciphers # redefine method so we can use the cached ciphers value from the closure # and need ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/knife-windows-1.4.1/lib/chef/knife/winrm_session.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/src/ruby-2.3.0/test/erb/test_erb_command.rb
# -*- coding: us-ascii -*- # frozen_string_literal: false require 'test/unit' class TestErbCommand < Test::Unit::TestCase def test_var assert_in_out_err(["-w", File.expand_path("../../../bin/erb", __FILE__), "var=hoge"], "<%=var%>", ["hoge"]) ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rubygems/rubygems/commands/crash_command.rb
# frozen_string_literal: false class Gem::Commands::CrashCommand < Gem::Command raise "crash" end
arnab0073/idea
.rvm/src/ruby-2.3.0/ext/tk/sample/tcltklib/sample1.rb
<reponame>arnab0073/idea #! /usr/local/bin/ruby -d # -*- encoding: utf-8 -*- # frozen_string_literal: false # -d オプションを付けると, デバッグ情報を表示する. # tcltk ライブラリのサンプル # まず, ライブラリを require する. require "tcltk" # 以下は, Test1 のインスタンスの initialize() で, # tcl/tk に関する処理を行う例である. # 必ずしもそのようにする必要は無く, # (もし, そうしたければ) class の外で tcl/tk に関する...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/ripper/test_ripper.rb
# frozen_string_literal: false begin require 'ripper' require 'test/unit' ripper_test = true module TestRipper; end rescue LoadError end class TestRipper::Ripper < Test::Unit::TestCase def setup @ripper = Ripper.new '1 + 1' end def test_column assert_nil @ripper.column end def test_encodin...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/tests/google/models/compute/backend_services_tests.rb
<reponame>arnab0073/idea require 'securerandom' Shindo.tests("Fog::Compute[:google] | backend_services model", ['google']) do random_string = SecureRandom.hex @health_check = create_test_http_health_check(Fog::Compute[:google]) collection_tests(Fog::Compute[:google].backend_services, {:name => "fog-backend-servic...
arnab0073/idea
.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/rvm-1.11.3.9/lib/rvm/environment/alias.rb
<reponame>arnab0073/idea module RVM class Environment # Returns a hash of aliases. def alias_list lines = normalize_array(rvm(:alias, :list).stdout) lines.inject({}) do |acc, current| alias_name, ruby_string = current.to_s.split(" => ") unless alias_name.empty? || ruby_string.empt...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/lib/fog/xenserver/requests/compute/create_vdi.rb
module Fog module Compute class XenServer class Real def create_vdi( config ) raise ArgumentError.new('Invalid #config') if config.nil? raise ArgumentError.new('Missing #virtual_size attribute') if config[:virtual_size].nil? raise ArgumentError.new('Missing #read_only a...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/rest-client-1.6.9/lib/restclient/net_http_ext.rb
<reponame>arnab0073/idea module Net class HTTP # Adding the patch method if it doesn't exist (rest-client issue: https://github.com/archiloque/rest-client/issues/79) if !defined?(Net::HTTP::Patch) # Code taken from this commit: https://github.com/ruby/ruby/commit/ab70e53ac3b5102d4ecbe8f38d4f76afad29d37d#lib/...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tk/clipboard.rb
# # tk/clipboard.rb : methods to treat clipboard # require 'tk' module TkClipboard include Tk extend Tk TkCommandNames = ['clipboard'.freeze].freeze def self.clear(win=nil) if win tk_call_without_enc('clipboard', 'clear', '-displayof', win) else tk_call_without_enc('clipboard', 'clear') ...
arnab0073/idea
.rvm/src/ruby-2.3.0/test/rdoc/test_rdoc_require.rb
<gh_stars>10-100 # frozen_string_literal: false require File.expand_path '../xref_test_case', __FILE__ class TestRDocRequire < XrefTestCase def setup super @req = RDoc::Require.new 'foo', 'comment' end def test_initialize assert_equal 'foo', @req.name req = RDoc::Require.new '"foo"', '' a...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/lib/net/http.rb
# # = net/http.rb # # Copyright (c) 1999-2007 <NAME> # Copyright (c) 1999-2007 <NAME> # Copyright (c) 2001 <NAME> # # Written and maintained by <NAME> <<EMAIL>>. # HTTPS support added by GOTOU Yuuzou <<EMAIL>>. # # This file is derived from "http-access.rb". # # Documented by Minero Aoki; converted to RDoc by <NAME>. #...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/extfileselectiondialog.rb
<reponame>arnab0073/idea #!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' mainloop = Thread.new{Tk.mainloop} # # Non-modal example # nmfsd = Tk::Iwidgets::Extfileselectiondialog.new(:title=>'Non-Modal') nmfsd.buttonconfigure('OK', :command=>proc{ puts "You selected #{nmfsd.get}" ...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-shellout-1.6.1/lib/mixlib/shellout/version.rb
<gh_stars>0 module Mixlib class ShellOut VERSION = "1.6.1" end end
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/fog-1.29.0/tests/google/credentials_tests.rb
<reponame>arnab0073/idea require 'google/api_client' Shindo.tests('Google | credentials', ['google']) do tests('success') do pending if Fog.mocking? google_key_location = Fog.credentials[:google_key_location] if google_key_location.nil? tests('Needs a :google_key_location credentials key').pendin...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/bootstraptest/test_block.rb
<gh_stars>0 assert_equal %q{1}, %q{ 1.times{ begin a = 1 ensure foo = nil end } } assert_equal %q{2}, %q{ [1,2,3].find{|x| x == 2} } assert_equal %q{2}, %q{ class E include Enumerable def each(&block) [1, 2, 3].each(&block) end end E.new.find {|x| x == 2 } } assert_...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-config-2.2.1/spec/mixlib/config_spec.rb
# # 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 # # http://www.apach...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/logging-2.1.0/lib/rspec/logging_helper.rb
<reponame>arnab0073/idea module RSpec module LoggingHelper # Capture log messages from the Logging framework and make them # available via a @log_output instance variable. The @log_output # supports a readline method to access the log messages. # def capture_log_messages( opts = {} ) from ...
arnab0073/idea
.rvm/src/ruby-2.3.0/lib/rdoc/known_classes.rb
# frozen_string_literal: false module RDoc ## # Ruby's built-in classes, modules and exceptions KNOWN_CLASSES = { "rb_cArray" => "Array", "rb_cBasicObject" => "BasicObject", "rb_cBignum" => "Bignum", "rb_cClass" => "Class", "rb_cData" => "Data...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/unit/plugins/darwin/cpu_spec.rb
# # Author:: <NAME> (<<EMAIL>>) # Copyright:: Copyright (c) 2013 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.apac...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/tcllib/swaplist.rb
# # tkextlib/tcllib/swaplist.rb # by <NAME> (<EMAIL>) # # * Part of tcllib extension # * A dialog which allows a user to move options between two lists # require 'tk' require 'tkextlib/tcllib.rb' # TkPackage.require('swaplist', '0.1') TkPackage.require('swaplist') module Tk::Tcllib...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/gdbm/extconf.rb
require 'mkmf' dir_config("gdbm") if have_library("gdbm", "gdbm_open") and have_header("gdbm.h") create_makefile("gdbm") end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/tktable/maxsize.rb
<gh_stars>1-10 #!/usr/bin/env ruby ## ## maxsize.rb ## ## This demo uses a really big table. The big startup time is in ## filling the table's Tcl array var. ## ## ( based on 'maxsize.tcl' included source archive of tktable extension ) ## require 'tk' require 'tkextlib/tktable' ary = TkVariable.new_hash rows = 40000...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/bootstraptest/runner.rb
"exec" "${RUBY-ruby}" "-x" "$0" "$@"; true # -*- mode: ruby; coding: utf-8 -*- #!./ruby # $Id: runner.rb 32088 2011-06-14 14:17:42Z akr $ # NOTE: # Never use optparse in this file. # Never use test/unit in this file. # Never use Ruby extensions in this file. begin require 'fileutils' require 'tmpdir' rescue LoadE...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/gssapi-1.2.0/lib/gssapi/heimdal.rb
=begin Copyright © 2010 <NAME> <<EMAIL>> Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php =end module GSSAPI module LibGSSAPI GSSAPI_LIB_TYPE = :heimdal end end
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/benchmark/bm_vm1_rescue.rb
i=0 while i<30_000_000 # while loop 1 i+=1 begin rescue end end
arnab0073/idea
.rvm/src/ruby-2.3.0/test/ruby/test_object.rb
<gh_stars>1-10 # -*- coding: us-ascii -*- # frozen_string_literal: false require 'test/unit' class TestObject < Test::Unit::TestCase def setup @verbose = $VERBOSE $VERBOSE = nil end def teardown $VERBOSE = @verbose end def test_itself feature6373 = '[ruby-core:44704] [Feature #6373]' ob...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/bcc32/mkexports.rb
#!./miniruby -s $:.unshift(File.expand_path("../..", __FILE__)) require 'win32/mkexports' class Exports::Bcc < Exports def forwarding(internal, export) internal[/\A_?/]+export end def each_line(objs, &block) objs.each do |obj| opt = /\.(?:so|dll)\z/i =~ obj ? "-ee" : "-oiPUBDEF -oiPUBD32" I...
arnab0073/idea
.rvm/rubies/ruby-2.3.0/lib/ruby/gems/2.3.0/gems/gem-wrappers-1.2.7/gem-wrappers.gemspec
<reponame>arnab0073/idea #!/usr/bin/env ruby # -*- encoding: utf-8 -*- require File.expand_path("../lib/gem-wrappers/version.rb", __FILE__) Gem::Specification.new do |s| s.name = "gem-wrappers" s.version = GemWrappers::VERSION s.authors = ["<NAME>"] s.email = ["<EMAIL>"] s.homepage = "https://github.com/rvm...
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/spec/support/platform_helpers.rb
<reponame>arnab0073/idea def ruby_19? !!(RUBY_VERSION =~ /^1.9/) end def ruby_18? !!(RUBY_VERSION =~ /^1.8/) end def windows? !!(RUBY_PLATFORM =~ /mswin|mingw|windows/) end # def jruby? def unix? !windows? end def os_x? !!(RUBY_PLATFORM =~ /darwin/) end def solaris? !!(RUBY_PLATFORM =~ /solaris/) end ...
arnab0073/idea
.rvm/src/ruby-2.3.0/prelude.rb
class Thread MUTEX_FOR_THREAD_EXCLUSIVE = Mutex.new # :nodoc: # call-seq: # Thread.exclusive { block } => obj # # Wraps the block in a single, VM-global Mutex.synchronize, returning the # value of the block. A thread executing inside the exclusive section will # only block other threads which also u...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/nkf/extconf.rb
<reponame>arnab0073/idea<filename>.rvm/src/ruby-1.9.3-p551/ext/nkf/extconf.rb require 'mkmf' create_makefile('nkf')
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/ohai-6.18.0/lib/ohai/plugins/openbsd/kernel.rb
<reponame>arnab0073/idea # # Author:: <NAME> (<EMAIL>) # 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. # You may obtain a copy of the License at # # ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkmenubar.rb
<gh_stars>10-100 # # tkmenubar.rb - load tk/menubar.rb # require 'tk/menubar'
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/menubar2.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/sample/menubar2.rb # # menubar sample 2 : use 'menu' option of root/toplevel widget # require 'tk' radio_var = TkVariable.new('y') menu_spec = [ [['File', 0], {:label=>'Open', :command=>proc{puts('Open clicked')}, :underline=>0}, '---', ['Check_A', TkVariable.n...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/spintime.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/sample/tkextlib/iwidgets/sample/spintime.rb #!/usr/bin/env ruby require 'tk' require 'tkextlib/iwidgets' Tk::Iwidgets::Spintime.new.pack(:padx=>10, :pady=>10) Tk.mainloop
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/test/mkmf/test_framework.rb
require_relative 'base' class TestMkmf class TestHaveFramework < TestMkmf def create_framework(fw, hdrname = "#{fw}.h") Dir.mktmpdir("frameworks") do |dir| fwdir = "#{dir}/#{fw}.framework" hdrdir = "#{fwdir}/Headers" FileUtils.mkdir_p(hdrdir) File.write("#{hdrdir}/#{hdrname}...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/test/ruby/test_gc.rb
<filename>.rvm/src/ruby-1.9.3-p551/test/ruby/test_gc.rb<gh_stars>0 require 'test/unit' require_relative "envutil" class TestGc < Test::Unit::TestCase class S def initialize(a) @a = a end end def test_gc prev_stress = GC.stress GC.stress = false assert_nothing_raised do 1.upto(1...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkbgerror.rb
# # tkbgerror.rb - load tk/bgerror.rb # require 'tk/bgerror'
arnab0073/idea
.rvm/gems/ruby-2.3.0/gems/mixlib-cli-1.6.0/mixlib-cli.gemspec
<reponame>arnab0073/idea<gh_stars>0 $:.unshift(File.dirname(__FILE__) + "/lib") require "mixlib/cli/version" Gem::Specification.new do |s| s.name = "mixlib-cli" s.version = Mixlib::CLI::VERSION s.platform = Gem::Platform::RUBY s.has_rdoc = true s.extra_rdoc_files = ["README.md", "LICENSE", "NOTICE"] s.summ...
arnab0073/idea
.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/iwidgets/extbutton.rb
<filename>.rvm/src/ruby-1.9.3-p551/ext/tk/lib/tkextlib/iwidgets/extbutton.rb # # tkextlib/iwidgets/extbutton.rb # by <NAME> (<EMAIL>) # require 'tk' require 'tkextlib/iwidgets.rb' module Tk module Iwidgets class Extbutton < Tk::Itk::Widget end end end class Tk::Iwidgets::E...