code
stringlengths
1
1.73M
language
stringclasses
1 value
require "English" require "time" require "stringio" require "tempfile" require "svn/util" require "svn/error" require "svn/ext/core" class Time MILLION = 1_000_000 class << self def from_apr_time(apr_time) return apr_time if apr_time.is_a?(Time) sec, usec = apr_time.divmod(MILLION) ...
Ruby
# experimental require "optparse" require "ostruct" require "time" require "net/smtp" require "socket" require "svn/info" class OptionParser class CannotCoexistOption < ParseError const_set(:Reason, 'cannot coexist option'.freeze) end end module Svn class CommitMailer KILO_SIZE = 1000 DEFAULT_MAX_...
Ruby
require "English" require "svn/error" require "svn/util" require "svn/core" require "svn/delta" require "svn/ext/wc" module Svn module Wc Util.set_constants(Ext::Wc, self) Util.set_methods(Ext::Wc, self) self.swig_init_asp_dot_net_hack() @@alias_targets = %w(parse_externals_description ...
Ruby
require "English" require "forwardable" require "svn/error" require "svn/util" require "svn/core" require "svn/ext/delta" module Svn module Delta Util.set_constants(Ext::Delta, self) Util.set_methods(Ext::Delta, self) class << self alias _path_driver path_driver end alias ...
Ruby
require "English" require 'uri' require "svn/error" require "svn/util" require "svn/core" require "svn/wc" require "svn/ra" require "svn/ext/client" module Svn module Client Util.set_constants(Ext::Client, self) Util.set_methods(Ext::Client, self) class CommitItem class << self ...
Ruby
require "svn/util" require "svn/ext/core" module Svn class Error < StandardError class << self # This is for backward compatibility with 1.4 or earlier. def new_corresponding_error(*args) SvnError.new_corresponding_error(*args) end end class SvnError < Error ...
Ruby
# Experimental require "cgi" require "svn/ra" module Svn class Synchronizer class Error < StandardError end class NotInitialized < Error attr_reader :destination_url def initialize(destination_url) @destination_url = destination_url super("#{@destination_url} is not initiali...
Ruby
if /cygwin|mingw|mswin32|bccwin32/.match(RUBY_PLATFORM) $LOAD_PATH.each do |load_path| svn_ext_path = File.join(load_path, "svn", "ext") if File.exists?(svn_ext_path) svn_ext_path_win = File.expand_path(svn_ext_path) svn_ext_path_win = svn_ext_path.gsub(File::SEPARATOR, File::ALT_SEPARATOR) ...
Ruby
require "English" require "svn/error" require "svn/util" require "svn/core" require "svn/fs" require "svn/client" require "svn/ext/repos" module Svn module Repos Util.set_constants(Ext::Repos, self) Util.set_methods(Ext::Repos, self) @@alias_targets = %w(create hotcopy recover db_logfiles...
Ruby
require "English" require "tempfile" require "svn/error" require "svn/util" require "svn/delta" require "svn/ext/fs" module Svn module Fs Util.set_constants(Ext::Fs, self) Util.set_methods(Ext::Fs, self) @@fs_pool = Svn::Core::Pool.new initialize(@@fs_pool) class << self d...
Ruby
require "tempfile" require "my-assertions" require "util" require "svn/core" require "svn/fs" require "svn/repos" require "svn/client" class SvnReposTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version ...
Ruby
require "test-unit-ext/always-show-result" require "test-unit-ext/priority" require "test-unit-ext/backtrace-filter" require "test-unit-ext/long-display-for-emacs"
Ruby
require "my-assertions" require "util" require "stringio" require "svn/core" require "svn/repos" class SvnCoreTest < Test::Unit::TestCase include SvnTestUtil def setup setup_default_variables @config_file = File.join(@config_path, Svn::Core::CONFIG_CATEGORY_CONFIG) @servers_file = File...
Ruby
module SvnTestUtil class Greek TREE = [ # relative path , contents(nil means directory) ["iota" , "This is the file 'iota'.\n" ], ["A" , nil ], ["A/mu" , "This is the file 'mu'.\n" ], ["A/B...
Ruby
require "test/unit" require "test/unit/assertions" module Test module Unit module Assertions def assert_true(boolean, message=nil) _wrap_assertion do assert_equal(true, boolean, message) end end def assert_false(boolean, message=nil) _wrap_asser...
Ruby
require "my-assertions" require "svn/core" require "svn/util" class SvnUtilTest < Test::Unit::TestCase def test_to_ruby_const_name assert_equal("ABC", Svn::Util.to_ruby_const_name("abc")) assert_equal("ABC_DEF", Svn::Util.to_ruby_const_name("abc_def")) end def test_to_ruby_class_name ...
Ruby
#!/usr/bin/env ruby require "test/unit" require "fileutils" test_dir = File.expand_path(File.join(File.dirname(__FILE__))) base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..")) top_dir = File.expand_path(File.join(base_dir, "..", "..", "..", "..")) ext_dir = File.join(base_dir, ".ext") ext_s...
Ruby
#!/usr/bin/env ruby require "test/unit" require "fileutils" test_dir = File.expand_path(File.join(File.dirname(__FILE__))) base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..")) top_dir = File.expand_path(File.join(base_dir, "..", "..", "..", "..")) ext_dir = File.join(base_dir, ".ext") ext_s...
Ruby
require "my-assertions" require "svn/error" class SvnErrorTest < Test::Unit::TestCase def test_error_name Svn::Error.constants.each do |const_name| if /\A[A-Z0-9_]+\z/ =~ const_name and Svn::Error.const_get(const_name).is_a?(Class) class_name = Svn::Util.to_ruby_class_name(const...
Ruby
require "my-assertions" require "util" require "svn/core" require "svn/wc" require "svn/repos" require "svn/ra" class SvnWcTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version assert_equal(Svn::Core.su...
Ruby
require "fileutils" require "pathname" require "my-assertions" class Time unless instance_methods.include?("to_int") alias to_int to_i end end require 'greek_tree' module SvnTestUtil def setup_default_variables test_dir = Pathname.new(File.dirname(__FILE__)) pwd = Pathname.new(Dir....
Ruby
require "util" require "svn/ra" class SvnRaTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version assert_equal(Svn::Core.subr_version, Svn::Ra.version) end def test_uuid session = Svn::Ra::Sessi...
Ruby
require "test/unit" require "fileutils" module Test module Unit class TestCase class << self def inherited(sub) super sub.instance_variable_set("@priority_initialized", true) sub.instance_variable_set("@priority_table", {}) sub.priority :normal ...
Ruby
require 'test/unit/failure' require 'test/unit/error' module Test module Unit BACKTRACE_INFO_RE = /.+:\d+:in `.+?'/ class Failure alias_method :original_long_display, :long_display def long_display extract_backtraces_re = /^ \[(#{BACKTRACE_INFO_RE}(?:\n #{BACKTR...
Ruby
require "test/unit/ui/testrunnermediator" module Test module Unit module UI class TestRunnerMediator alias_method :original_run_suite, :run_suite def run_suite @notified_finished = false begin_time = Time.now original_run_suite rescue Interru...
Ruby
require 'test/unit/util/backtracefilter' module Test module Unit module Util module BacktraceFilter TEST_UNIT_EXT_PREFIX = File.dirname(__FILE__) alias_method :original_filter_backtrace, :filter_backtrace def filter_backtrace(backtrace, prefix=nil) original_resu...
Ruby
require "my-assertions" require "util" require "svn/core" require "svn/client" class SvnClientTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic(true) end def teardown teardown_basic end def test_version assert_equal(Svn::Core.subr_version, Svn::Client.v...
Ruby
require 'etc' require 'fileutils' module SvnTestUtil module Windows module Svnserve SERVICE_NAME = 'test-svn-server' class << self def escape_value(value) escaped_value = value.gsub(/"/, '\\"') # " "\"#{escaped_value}\"" end end def ser...
Ruby
require "util" require "svn/info" class SvnInfoTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_info file = "hello.txt" path = File.join(@wc_path, file) log = "test commit\nnew line" FileUtils.t...
Ruby
require "my-assertions" require "util" require "time" require "md5" require "svn/core" require "svn/fs" require "svn/repos" require "svn/client" class SvnFsTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_ver...
Ruby
require "util" require "stringio" require 'md5' require 'tempfile' require "svn/info" class SvnDeltaTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version assert_equal(Svn::Core.subr_version, Svn::Delta.v...
Ruby
#!/usr/bin/env ruby require 'English' original_argv = ARGV.dup argv = [] found_include_option = false while (arg = original_argv.shift) if found_include_option $LOAD_PATH.unshift(arg) found_include_option = false else case arg when "-I", "--include" found_include_option = tru...
Ruby
#!/usr/bin/env ruby require 'English' original_argv = ARGV.dup argv = [] found_include_option = false while (arg = original_argv.shift) if found_include_option $LOAD_PATH.unshift(arg) found_include_option = false else case arg when "-I", "--include" found_include_option = tru...
Ruby
#!/usr/bin/env ruby # # svnlook.rb : a Ruby-based replacement for svnlook # ###################################################################### # # Copyright (c) 2000-2005 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as par...
Ruby
#!/usr/bin/env ruby # # svnshell.rb : a Ruby-based shell interface for cruising 'round in # the filesystem. # # Usage: ruby svnshell.rb REPOS_PATH, where REPOS_PATH is a path to # a repository on your local filesystem. # # NOTE: This program requires the Ruby readline extension. # See http://wiki...
Ruby
#!/usr/bin/env ruby require "erb" require "svn/client" include ERB::Util path = File.expand_path(ARGV.shift || Dir.pwd) html = <<-HEADER <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xm...
Ruby
#!/usr/bin/env ruby # # svnlook.rb : a Ruby-based replacement for svnlook # ###################################################################### # # Copyright (c) 2000-2005 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as par...
Ruby
#!/usr/bin/env ruby # # svnshell.rb : a Ruby-based shell interface for cruising 'round in # the filesystem. # # Usage: ruby svnshell.rb REPOS_PATH, where REPOS_PATH is a path to # a repository on your local filesystem. # # NOTE: This program requires the Ruby readline extension. # See http://wiki...
Ruby
#!/usr/bin/env ruby require "erb" require "svn/client" include ERB::Util path = File.expand_path(ARGV.shift || Dir.pwd) html = <<-HEADER <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xm...
Ruby
require "English" require "tempfile" require "svn/error" require "svn/util" require "svn/core" require "svn/repos" require "svn/ext/ra" module Svn module Ra Util.set_constants(Ext::Ra, self) Util.set_methods(Ext::Ra, self) @@ra_pool = Svn::Core::Pool.new Ra.initialize(@@ra_pool) ...
Ruby
require "English" require "time" require "digest/sha2" require "tempfile" require "nkf" begin require "uconv" rescue LoadError module Uconv class Error < StandardError end def self.u8toeuc(str) raise Error end end end require "svn/core" require "svn/repos" require "svn/...
Ruby
require "English" require "time" require "stringio" require "tempfile" require "svn/util" require "svn/error" require "svn/ext/core" class Time MILLION = 1_000_000 class << self def from_apr_time(apr_time) return apr_time if apr_time.is_a?(Time) sec, usec = apr_time.divmod(MILLION) ...
Ruby
# experimental require "optparse" require "ostruct" require "time" require "net/smtp" require "socket" require "svn/info" class OptionParser class CannotCoexistOption < ParseError const_set(:Reason, 'cannot coexist option'.freeze) end end module Svn class CommitMailer KILO_SIZE = 1000 DEFAULT_MAX_...
Ruby
require "English" require "svn/error" require "svn/util" require "svn/core" require "svn/delta" require "svn/ext/wc" module Svn module Wc Util.set_constants(Ext::Wc, self) Util.set_methods(Ext::Wc, self) self.swig_init_asp_dot_net_hack() @@alias_targets = %w(parse_externals_description ...
Ruby
require "English" require "forwardable" require "svn/error" require "svn/util" require "svn/core" require "svn/ext/delta" module Svn module Delta Util.set_constants(Ext::Delta, self) Util.set_methods(Ext::Delta, self) class << self alias _path_driver path_driver end alias ...
Ruby
require "English" require 'uri' require "svn/error" require "svn/util" require "svn/core" require "svn/wc" require "svn/ra" require "svn/ext/client" module Svn module Client Util.set_constants(Ext::Client, self) Util.set_methods(Ext::Client, self) class CommitItem class << self ...
Ruby
require "svn/util" require "svn/ext/core" module Svn class Error < StandardError class << self # This is for backward compatibility with 1.4 or earlier. def new_corresponding_error(*args) SvnError.new_corresponding_error(*args) end end class SvnError < Error ...
Ruby
# Experimental require "cgi" require "svn/ra" module Svn class Synchronizer class Error < StandardError end class NotInitialized < Error attr_reader :destination_url def initialize(destination_url) @destination_url = destination_url super("#{@destination_url} is not initiali...
Ruby
if /cygwin|mingw|mswin32|bccwin32/.match(RUBY_PLATFORM) $LOAD_PATH.each do |load_path| svn_ext_path = File.join(load_path, "svn", "ext") if File.exists?(svn_ext_path) svn_ext_path_win = File.expand_path(svn_ext_path) svn_ext_path_win = svn_ext_path.gsub(File::SEPARATOR, File::ALT_SEPARATOR) ...
Ruby
require "English" require "svn/error" require "svn/util" require "svn/core" require "svn/fs" require "svn/client" require "svn/ext/repos" module Svn module Repos Util.set_constants(Ext::Repos, self) Util.set_methods(Ext::Repos, self) @@alias_targets = %w(create hotcopy recover db_logfiles...
Ruby
require "English" require "tempfile" require "svn/error" require "svn/util" require "svn/delta" require "svn/ext/fs" module Svn module Fs Util.set_constants(Ext::Fs, self) Util.set_methods(Ext::Fs, self) @@fs_pool = Svn::Core::Pool.new initialize(@@fs_pool) class << self d...
Ruby
require "tempfile" require "my-assertions" require "util" require "svn/core" require "svn/fs" require "svn/repos" require "svn/client" class SvnReposTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version ...
Ruby
require "test-unit-ext/always-show-result" require "test-unit-ext/priority" require "test-unit-ext/backtrace-filter" require "test-unit-ext/long-display-for-emacs"
Ruby
require "my-assertions" require "util" require "stringio" require "svn/core" require "svn/repos" class SvnCoreTest < Test::Unit::TestCase include SvnTestUtil def setup setup_default_variables @config_file = File.join(@config_path, Svn::Core::CONFIG_CATEGORY_CONFIG) @servers_file = File...
Ruby
module SvnTestUtil class Greek TREE = [ # relative path , contents(nil means directory) ["iota" , "This is the file 'iota'.\n" ], ["A" , nil ], ["A/mu" , "This is the file 'mu'.\n" ], ["A/B...
Ruby
require "test/unit" require "test/unit/assertions" module Test module Unit module Assertions def assert_true(boolean, message=nil) _wrap_assertion do assert_equal(true, boolean, message) end end def assert_false(boolean, message=nil) _wrap_asser...
Ruby
require "my-assertions" require "svn/core" require "svn/util" class SvnUtilTest < Test::Unit::TestCase def test_to_ruby_const_name assert_equal("ABC", Svn::Util.to_ruby_const_name("abc")) assert_equal("ABC_DEF", Svn::Util.to_ruby_const_name("abc_def")) end def test_to_ruby_class_name ...
Ruby
#!/usr/bin/env ruby require "test/unit" require "fileutils" test_dir = File.expand_path(File.join(File.dirname(__FILE__))) base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..")) top_dir = File.expand_path(File.join(base_dir, "..", "..", "..", "..")) ext_dir = File.join(base_dir, ".ext") ext_s...
Ruby
#!/usr/bin/env ruby require "test/unit" require "fileutils" test_dir = File.expand_path(File.join(File.dirname(__FILE__))) base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..")) top_dir = File.expand_path(File.join(base_dir, "..", "..", "..", "..")) ext_dir = File.join(base_dir, ".ext") ext_s...
Ruby
require "my-assertions" require "svn/error" class SvnErrorTest < Test::Unit::TestCase def test_error_name Svn::Error.constants.each do |const_name| if /\A[A-Z0-9_]+\z/ =~ const_name and Svn::Error.const_get(const_name).is_a?(Class) class_name = Svn::Util.to_ruby_class_name(const...
Ruby
require "my-assertions" require "util" require "svn/core" require "svn/wc" require "svn/repos" require "svn/ra" class SvnWcTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version assert_equal(Svn::Core.su...
Ruby
require "fileutils" require "pathname" require "my-assertions" class Time unless instance_methods.include?("to_int") alias to_int to_i end end require 'greek_tree' module SvnTestUtil def setup_default_variables test_dir = Pathname.new(File.dirname(__FILE__)) pwd = Pathname.new(Dir....
Ruby
require "util" require "svn/ra" class SvnRaTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version assert_equal(Svn::Core.subr_version, Svn::Ra.version) end def test_uuid session = Svn::Ra::Sessi...
Ruby
require "test/unit" require "fileutils" module Test module Unit class TestCase class << self def inherited(sub) super sub.instance_variable_set("@priority_initialized", true) sub.instance_variable_set("@priority_table", {}) sub.priority :normal ...
Ruby
require 'test/unit/failure' require 'test/unit/error' module Test module Unit BACKTRACE_INFO_RE = /.+:\d+:in `.+?'/ class Failure alias_method :original_long_display, :long_display def long_display extract_backtraces_re = /^ \[(#{BACKTRACE_INFO_RE}(?:\n #{BACKTR...
Ruby
require "test/unit/ui/testrunnermediator" module Test module Unit module UI class TestRunnerMediator alias_method :original_run_suite, :run_suite def run_suite @notified_finished = false begin_time = Time.now original_run_suite rescue Interru...
Ruby
require 'test/unit/util/backtracefilter' module Test module Unit module Util module BacktraceFilter TEST_UNIT_EXT_PREFIX = File.dirname(__FILE__) alias_method :original_filter_backtrace, :filter_backtrace def filter_backtrace(backtrace, prefix=nil) original_resu...
Ruby
require "my-assertions" require "util" require "svn/core" require "svn/client" class SvnClientTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic(true) end def teardown teardown_basic end def test_version assert_equal(Svn::Core.subr_version, Svn::Client.v...
Ruby
require 'etc' require 'fileutils' module SvnTestUtil module Windows module Svnserve SERVICE_NAME = 'test-svn-server' class << self def escape_value(value) escaped_value = value.gsub(/"/, '\\"') # " "\"#{escaped_value}\"" end end def ser...
Ruby
require "util" require "svn/info" class SvnInfoTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_info file = "hello.txt" path = File.join(@wc_path, file) log = "test commit\nnew line" FileUtils.t...
Ruby
require "my-assertions" require "util" require "time" require "md5" require "svn/core" require "svn/fs" require "svn/repos" require "svn/client" class SvnFsTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_ver...
Ruby
require "util" require "stringio" require 'md5' require 'tempfile' require "svn/info" class SvnDeltaTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version assert_equal(Svn::Core.subr_version, Svn::Delta.v...
Ruby
#!/usr/bin/env ruby require 'English' original_argv = ARGV.dup argv = [] found_include_option = false while (arg = original_argv.shift) if found_include_option $LOAD_PATH.unshift(arg) found_include_option = false else case arg when "-I", "--include" found_include_option = tru...
Ruby
#!/usr/bin/env ruby require 'English' original_argv = ARGV.dup argv = [] found_include_option = false while (arg = original_argv.shift) if found_include_option $LOAD_PATH.unshift(arg) found_include_option = false else case arg when "-I", "--include" found_include_option = tru...
Ruby
#!/usr/bin/env ruby # # svnlook.rb : a Ruby-based replacement for svnlook # ###################################################################### # # Copyright (c) 2000-2005 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as par...
Ruby
#!/usr/bin/env ruby # # svnshell.rb : a Ruby-based shell interface for cruising 'round in # the filesystem. # # Usage: ruby svnshell.rb REPOS_PATH, where REPOS_PATH is a path to # a repository on your local filesystem. # # NOTE: This program requires the Ruby readline extension. # See http://wiki...
Ruby
#!/usr/bin/env ruby require "erb" require "svn/client" include ERB::Util path = File.expand_path(ARGV.shift || Dir.pwd) html = <<-HEADER <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xm...
Ruby
#!/usr/bin/env ruby # # svnlook.rb : a Ruby-based replacement for svnlook # ###################################################################### # # Copyright (c) 2000-2005 CollabNet. All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as par...
Ruby
#!/usr/bin/env ruby # # svnshell.rb : a Ruby-based shell interface for cruising 'round in # the filesystem. # # Usage: ruby svnshell.rb REPOS_PATH, where REPOS_PATH is a path to # a repository on your local filesystem. # # NOTE: This program requires the Ruby readline extension. # See http://wiki...
Ruby
#!/usr/bin/env ruby require "erb" require "svn/client" include ERB::Util path = File.expand_path(ARGV.shift || Dir.pwd) html = <<-HEADER <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xm...
Ruby
require "English" require "tempfile" require "svn/error" require "svn/util" require "svn/core" require "svn/repos" require "svn/ext/ra" module Svn module Ra Util.set_constants(Ext::Ra, self) Util.set_methods(Ext::Ra, self) @@ra_pool = Svn::Core::Pool.new Ra.initialize(@@ra_pool) ...
Ruby
require "English" require "time" require "digest/sha2" require "tempfile" require "nkf" begin require "uconv" rescue LoadError module Uconv class Error < StandardError end def self.u8toeuc(str) raise Error end end end require "svn/core" require "svn/repos" require "svn/...
Ruby
require "English" require "time" require "stringio" require "tempfile" require "svn/util" require "svn/error" require "svn/ext/core" class Time MILLION = 1_000_000 class << self def from_apr_time(apr_time) return apr_time if apr_time.is_a?(Time) sec, usec = apr_time.divmod(MILLION) ...
Ruby
# experimental require "optparse" require "ostruct" require "time" require "net/smtp" require "socket" require "svn/info" class OptionParser class CannotCoexistOption < ParseError const_set(:Reason, 'cannot coexist option'.freeze) end end module Svn class CommitMailer KILO_SIZE = 1000 DEFAULT_MAX_...
Ruby
require "English" require "svn/error" require "svn/util" require "svn/core" require "svn/delta" require "svn/ext/wc" module Svn module Wc Util.set_constants(Ext::Wc, self) Util.set_methods(Ext::Wc, self) self.swig_init_asp_dot_net_hack() @@alias_targets = %w(parse_externals_description ...
Ruby
require "English" require "forwardable" require "svn/error" require "svn/util" require "svn/core" require "svn/ext/delta" module Svn module Delta Util.set_constants(Ext::Delta, self) Util.set_methods(Ext::Delta, self) class << self alias _path_driver path_driver end alias ...
Ruby
require "English" require 'uri' require "svn/error" require "svn/util" require "svn/core" require "svn/wc" require "svn/ra" require "svn/ext/client" module Svn module Client Util.set_constants(Ext::Client, self) Util.set_methods(Ext::Client, self) class CommitItem class << self ...
Ruby
require "svn/util" require "svn/ext/core" module Svn class Error < StandardError class << self # This is for backward compatibility with 1.4 or earlier. def new_corresponding_error(*args) SvnError.new_corresponding_error(*args) end end class SvnError < Error ...
Ruby
# Experimental require "cgi" require "svn/ra" module Svn class Synchronizer class Error < StandardError end class NotInitialized < Error attr_reader :destination_url def initialize(destination_url) @destination_url = destination_url super("#{@destination_url} is not initiali...
Ruby
if /cygwin|mingw|mswin32|bccwin32/.match(RUBY_PLATFORM) $LOAD_PATH.each do |load_path| svn_ext_path = File.join(load_path, "svn", "ext") if File.exists?(svn_ext_path) svn_ext_path_win = File.expand_path(svn_ext_path) svn_ext_path_win = svn_ext_path.gsub(File::SEPARATOR, File::ALT_SEPARATOR) ...
Ruby
require "English" require "svn/error" require "svn/util" require "svn/core" require "svn/fs" require "svn/client" require "svn/ext/repos" module Svn module Repos Util.set_constants(Ext::Repos, self) Util.set_methods(Ext::Repos, self) @@alias_targets = %w(create hotcopy recover db_logfiles...
Ruby
require "English" require "tempfile" require "svn/error" require "svn/util" require "svn/delta" require "svn/ext/fs" module Svn module Fs Util.set_constants(Ext::Fs, self) Util.set_methods(Ext::Fs, self) @@fs_pool = Svn::Core::Pool.new initialize(@@fs_pool) class << self d...
Ruby
require "tempfile" require "my-assertions" require "util" require "svn/core" require "svn/fs" require "svn/repos" require "svn/client" class SvnReposTest < Test::Unit::TestCase include SvnTestUtil def setup setup_basic end def teardown teardown_basic end def test_version ...
Ruby
require "test-unit-ext/always-show-result" require "test-unit-ext/priority" require "test-unit-ext/backtrace-filter" require "test-unit-ext/long-display-for-emacs"
Ruby
require "my-assertions" require "util" require "stringio" require "svn/core" require "svn/repos" class SvnCoreTest < Test::Unit::TestCase include SvnTestUtil def setup setup_default_variables @config_file = File.join(@config_path, Svn::Core::CONFIG_CATEGORY_CONFIG) @servers_file = File...
Ruby
module SvnTestUtil class Greek TREE = [ # relative path , contents(nil means directory) ["iota" , "This is the file 'iota'.\n" ], ["A" , nil ], ["A/mu" , "This is the file 'mu'.\n" ], ["A/B...
Ruby
require "test/unit" require "test/unit/assertions" module Test module Unit module Assertions def assert_true(boolean, message=nil) _wrap_assertion do assert_equal(true, boolean, message) end end def assert_false(boolean, message=nil) _wrap_asser...
Ruby
require "my-assertions" require "svn/core" require "svn/util" class SvnUtilTest < Test::Unit::TestCase def test_to_ruby_const_name assert_equal("ABC", Svn::Util.to_ruby_const_name("abc")) assert_equal("ABC_DEF", Svn::Util.to_ruby_const_name("abc_def")) end def test_to_ruby_class_name ...
Ruby
#!/usr/bin/env ruby require "test/unit" require "fileutils" test_dir = File.expand_path(File.join(File.dirname(__FILE__))) base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..")) top_dir = File.expand_path(File.join(base_dir, "..", "..", "..", "..")) ext_dir = File.join(base_dir, ".ext") ext_s...
Ruby
#!/usr/bin/env ruby require "test/unit" require "fileutils" test_dir = File.expand_path(File.join(File.dirname(__FILE__))) base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..")) top_dir = File.expand_path(File.join(base_dir, "..", "..", "..", "..")) ext_dir = File.join(base_dir, ".ext") ext_s...
Ruby