repo
stringlengths
5
92
file_url
stringlengths
80
287
file_path
stringlengths
5
197
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:37:27
2026-01-04 17:58:21
truncated
bool
2 classes
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/Saikuro-1.1.0/lib/saikuro.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/Saikuro-1.1.0/lib/saikuro.rb
# $Id: saikuro.rb 39 2008-06-21 05:35:07Z zev $ # Saikruo uses the BSD license. # # Copyright (c) 2005, Ubiquitous Business Technology (http://ubit.com) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/Saikuro-1.1.0/lib/saikuro/usage.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/Saikuro-1.1.0/lib/saikuro/usage.rb
# This is a patch to RDoc so that when saikuro is installed as a # RubyGem usage will read the proper file. require 'rdoc/usage' module RDoc def RDoc.main_program_file=(file) @@main_program_file = file end # Display usage def RDoc.usage_no_exit(*args) @@main_program_file ||= caller[-1].sub(/:\d+$/, ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/install.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/install.rb
#!/usr/bin/env ruby require 'rbconfig' require 'fileutils' include FileUtils::Verbose include Config bindir = CONFIG["bindir"] cd 'bin' do filename = 'edit_json.rb' #install(filename, bindir) end sitelibdir = CONFIG["sitelibdir"] cd 'lib' do install('json.rb', sitelibdir) mkdir_p File.join(sitelibdir, 'json'...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/benchmarks/parser2_benchmark.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/benchmarks/parser2_benchmark.rb
#!/usr/bin/env ruby # CODING: UTF-8 require 'rbconfig' RUBY_PATH=File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) RAKE_PATH=File.join(Config::CONFIG['bindir'], 'rake') require 'bullshit' case ARGV.first when 'ext' require 'json/ext' when 'pure' require 'json/pure' when 'yaml' require 'yam...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/benchmarks/parser_benchmark.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/benchmarks/parser_benchmark.rb
#!/usr/bin/env ruby # CODING: UTF-8 require 'rbconfig' RUBY_PATH=File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) RAKE_PATH=File.join(Config::CONFIG['bindir'], 'rake') require 'bullshit' case ARGV.first when 'ext' require 'json/ext' when 'pure' require 'json/pure' when 'yaml' require 'yam...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/benchmarks/generator2_benchmark.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/benchmarks/generator2_benchmark.rb
#!/usr/bin/env ruby # CODING: UTF-8 require 'rbconfig' RUBY_PATH=File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) RAKE_PATH=File.join(Config::CONFIG['bindir'], 'rake') require 'bullshit' case ARGV.first when 'ext' require 'json/ext' when 'pure' require 'json/pure' when 'rails' require 'ac...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/benchmarks/generator_benchmark.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/benchmarks/generator_benchmark.rb
#!/usr/bin/env ruby # CODING: UTF-8 require 'rbconfig' RUBY_PATH=File.join(Config::CONFIG['bindir'], Config::CONFIG['ruby_install_name']) RAKE_PATH=File.join(Config::CONFIG['bindir'], 'rake') require 'bullshit' case ARGV.first when 'ext' require 'json/ext' when 'pure' require 'json/pure' when 'rails' require 'ac...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tools/fuzz.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tools/fuzz.rb
require 'json' require 'iconv' ISO_8859_1_TO_UTF8 = Iconv.new('utf-8', 'iso-8859-15') class ::String def to_utf8 ISO_8859_1_TO_UTF8.iconv self end end class Fuzzer def initialize(n, freqs = {}) sum = freqs.inject(0.0) { |s, x| s + x.last } freqs.each_key { |x| freqs[x] /= sum } s = 0.0 freqs...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tools/server.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tools/server.rb
#!/usr/bin/env ruby require 'webrick' include WEBrick $:.unshift 'ext' $:.unshift 'lib' require 'json' class JSONServlet < HTTPServlet::AbstractServlet @@count = 1 def do_GET(req, res) obj = { "TIME" => Time.now.strftime("%FT%T"), "foo" => "Bär", "bar" => "© ≠ €!", 'a' => 2, 'b'...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_generate.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_generate.rb
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require 'test/unit' case ENV['JSON'] when 'pure' then require 'json/pure' when 'ext' then require 'json/ext' else require 'json' end class TC_JSONGenerate < Test::Unit::TestCase include JSON def setup @hash = { 'a' => 2, 'b' => 3.141, ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_encoding.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_encoding.rb
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require 'test/unit' case ENV['JSON'] when 'pure' then require 'json/pure' when 'ext' then require 'json/ext' else require 'json' end require 'iconv' class TC_JSONEncoding < Test::Unit::TestCase include JSON def setup @utf_8 = '["© ≠ €!"]' @parsed =...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_unicode.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_unicode.rb
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require 'test/unit' case ENV['JSON'] when 'pure' then require 'json/pure' when 'ext' then require 'json/ext' else require 'json' end class TC_JSONUnicode < Test::Unit::TestCase include JSON def test_unicode assert_equal '""', ''.to_json assert_equa...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_fixtures.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_fixtures.rb
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require 'test/unit' case ENV['JSON'] when 'pure' then require 'json/pure' when 'ext' then require 'json/ext' else require 'json' end class TC_JSONFixtures < Test::Unit::TestCase def setup fixtures = File.join(File.dirname(__FILE__), 'fixtures/*.json') ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_rails.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_rails.rb
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require 'test/unit' case ENV['JSON'] when 'pure' then require 'json/pure' when 'ext' then require 'json/ext' else require 'json' end require 'json/add/rails' require 'date' class TC_JSONRails < Test::Unit::TestCase include JSON class A def initialize(a...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_addition.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json_addition.rb
#!/usr/bin/env ruby # -*- coding:utf-8 -*- require 'test/unit' case ENV['JSON'] when 'pure' then require 'json/pure' when 'ext' then require 'json/ext' else require 'json' end require 'json/add/core' require 'date' class TC_JSONAddition < Test::Unit::TestCase include JSON class A def initialize(...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/tests/test_json.rb
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require 'test/unit' case ENV['JSON'] when 'pure' then require 'json/pure' when 'ext' then require 'json/ext' else require 'json' end require 'stringio' unless Array.method_defined?(:permutation) begin require 'enumerator' require 'permutation' cla...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/bin/prettify_json.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/bin/prettify_json.rb
#!/usr/bin/env ruby require 'json' require 'fileutils' include FileUtils # Parses the argument array _args_, according to the pattern _s_, to # retrieve the single character command line options from it. If _s_ is # 'xy:' an option '-x' without an option argument is searched, and an # option '-y foo' with an option a...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/bin/edit_json.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/bin/edit_json.rb
#!/usr/bin/env ruby require 'json/editor' filename, encoding = ARGV JSON::Editor.start(encoding) do |window| if filename window.file_open(filename) end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/ext/json/ext/generator/extconf.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/ext/json/ext/generator/extconf.rb
require 'mkmf' require 'rbconfig' unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O3') $CFLAGS << ' -O3' end if CONFIG['CC'] =~ /gcc/ $CFLAGS << ' -Wall' #unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb') # $CFLAGS << ' -O0 -ggdb' #end end if RUBY_VERSION < "1.9" have_header("re.h") else have_header("ruby/re.h") ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/ext/json/ext/parser/extconf.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/ext/json/ext/parser/extconf.rb
require 'mkmf' require 'rbconfig' unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O3') $CFLAGS << ' -O3' end if CONFIG['CC'] =~ /gcc/ $CFLAGS << ' -Wall' #unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb') # $CFLAGS << ' -O0 -ggdb' #end end have_header("re.h") create_makefile 'json/ext/parser'
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json.rb
require 'json/common' module JSON require 'json/version' begin require 'json/ext' rescue LoadError require 'json/pure' end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/common.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/common.rb
require 'json/version' require 'iconv' module JSON class << self # If _object_ is string-like parse the string and return the parsed result # as a Ruby data structure. Otherwise generate a JSON text from the Ruby # data structure object and return it. # # The _opts_ argument is passed through to ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/version.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/version.rb
module JSON # JSON version VERSION = '1.4.6' VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc: VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc: VERSION_MINOR = VERSION_ARRAY[1] # :nodoc: VERSION_BUILD = VERSION_ARRAY[2] # :nodoc: end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/ext.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/ext.rb
require 'json/common' module JSON # This module holds all the modules/classes that implement JSON's # functionality as C extensions. module Ext require 'json/ext/parser' require 'json/ext/generator' $DEBUG and warn "Using c extension for JSON." JSON.parser = Parser JSON.generator = Generator ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/pure.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/pure.rb
require 'json/common' require 'json/pure/parser' require 'json/pure/generator' module JSON begin require 'iconv' # An iconv instance to convert from UTF8 to UTF16 Big Endian. UTF16toUTF8 = Iconv.new('utf-8', 'utf-16be') # :nodoc: # An iconv instance to convert from UTF16 Big Endian to UTF8. UTF8t...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/editor.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/editor.rb
# To use the GUI JSON editor, start the edit_json.rb executable script. It # requires ruby-gtk to be installed. require 'gtk2' require 'iconv' require 'json' require 'rbconfig' require 'open-uri' module JSON module Editor include Gtk # Beginning of the editor window title TITLE = 'JSON ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
true
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/pure/parser.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/pure/parser.rb
require 'strscan' module JSON module Pure # This class implements the JSON parser that is used to parse a JSON string # into a Ruby data structure. class Parser < StringScanner STRING = /" ((?:[^\x0-\x1f"\\] | # escaped special characters: ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/pure/generator.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/pure/generator.rb
module JSON MAP = { "\x0" => '\u0000', "\x1" => '\u0001', "\x2" => '\u0002', "\x3" => '\u0003', "\x4" => '\u0004', "\x5" => '\u0005', "\x6" => '\u0006', "\x7" => '\u0007', "\b" => '\b', "\t" => '\t', "\n" => '\n', "\xb" => '\u000b', "\f" => '\f', "\r" =...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/add/core.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/add/core.rb
# This file contains implementations of ruby core's custom objects for # serialisation/deserialisation. unless Object.const_defined?(:JSON) and ::JSON.const_defined?(:JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end require 'date' class Symbol def to_json(*a) { JSON.create_id => self.class.name...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/add/rails.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/json_pure-1.4.6/lib/json/add/rails.rb
# This file contains implementations of rails custom objects for # serialisation/deserialisation. unless Object.const_defined?(:JSON) and ::JSON.const_defined?(:JSON_LOADED) and ::JSON::JSON_LOADED require 'json' end class Object def self.json_create(object) obj = new for key, value in object next...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mysql_multibyte_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mysql_multibyte_test.rb
require 'jdbc_common' require 'db/mysql' class MySQLMultibyteTest < Test::Unit::TestCase include MultibyteTestMethods end class MySQLNonUTF8EncodingTest < Test::Unit::TestCase include NonUTF8EncodingMethods end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_limit_offset_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_limit_offset_test.rb
require 'jdbc_common' require 'db/mssql' ActiveRecord::Schema.verbose = false class CreateLongShips < ActiveRecord::Migration def self.up create_table "long_ships", :force => true do |t| t.string "name", :limit => 50, :null => false t.integer "width", :default => 123 t.integer "length", :defa...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_reserved_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_reserved_test.rb
require 'jdbc_common' require 'db/postgres' require 'models/reserved_word' class PostgresReservedWordsTest < Test::Unit::TestCase def setup CreateReservedWords.up end def teardown CreateReservedWords.down end def test_quote_reserved_word_column columns = ReservedWord.column_names - ["id"] Re...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit.rb
$silentTests = false $testnum=0 $ntest=0 $failed = [] $curtestOK=true module MiniRUnit class Failure def initialize(what, testnum, msg, where) @what, @testnum, @msg, @where = what, testnum, msg, where end def to_s sprintf("FAILED %s %d %s-- %s\n", @what, @testnum, @msg, @where) end en...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/has_many_through.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/has_many_through.rb
class CreateRbac < ActiveRecord::Migration def self.up create_table :role_assignments do |t| t.column :role_id, :integer t.column :user_id, :integer end create_table :roles do |t| t.column :name, :string t.column :description, :string end create_table :permission_group...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_identity_insert_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_identity_insert_test.rb
require 'jdbc_common' require 'db/mssql' class MsSQLIdentityInsertTest < Test::Unit::TestCase include MigrationSetup def test_enable_identity_insert_when_necessary Entry.connection.execute("INSERT INTO entries([id], [title]) VALUES (333, 'Title')") Entry.connection.execute("INSERT INTO entries([title],...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/generic_jdbc_connection_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/generic_jdbc_connection_test.rb
require 'jdbc_common' require 'db/jdbc' class GenericJdbcConnectionTest < Test::Unit::TestCase def test_connection_available_through_jdbc_adapter ActiveRecord::Base.connection.execute("show databases"); assert ActiveRecord::Base.connected? end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mysql_nonstandard_primary_key_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mysql_nonstandard_primary_key_test.rb
require 'jdbc_common' require 'db/mysql' class Project < ActiveRecord::Migration def self.up create_table :project, :primary_key => "project_id" do |t| t.string :projectType, :limit => 31 t.boolean :published t.datetime :created_date t.text :abstract, :title end e...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/manualTestDatabase.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/manualTestDatabase.rb
#!/usr/bin/env jruby if ARGV.length < 2 $stderr.puts "syntax: #{__FILE__} [filename] [configuration-name]" $stderr.puts " where filename points to a YAML database configuration file" $stderr.puts " and the configuration name is in this file" exit end $:.unshift File.join(File.dirname(__FILE__),'..','lib')...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_multibyte_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_multibyte_test.rb
#! /usr/bin/env jruby require 'jdbc_common' require 'db/mssql' class MsSQLMultibyteTest < Test::Unit::TestCase include MultibyteTestMethods def test_select_multibyte_string Entry.create!(:title => 'テスト', :content => '本文') entry = Entry.find(:last) assert_equal "テスト", entry.title assert_equal "...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/derby_migration_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/derby_migration_test.rb
require 'jdbc_common' require 'db/derby' class CreateDummies < ActiveRecord::Migration def self.up create_table :dummies, :force => true do |t| t.string :year, :default => "", :null => false end add_index :dummies, :year, :unique => true end end class DerbyQuotingTest < Test::Unit::TestCase ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/hsqldb_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/hsqldb_simple_test.rb
require 'jdbc_common' require 'db/hsqldb' class HsqldbSimpleTest < Test::Unit::TestCase include SimpleTestMethods end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/sqlite3_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/sqlite3_simple_test.rb
require 'jdbc_common' require 'db/sqlite3' require 'models/data_types' require 'models/validates_uniqueness_of_string' class SQLite3SimpleTest < Test::Unit::TestCase include SimpleTestMethods include ActiveRecord3TestMethods def test_recreate_database assert @connection.tables.include?(Entry.table_name) ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_mixed_case_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_mixed_case_test.rb
require 'jdbc_common' require 'models/mixed_case' class MixedCaseTest < Test::Unit::TestCase def setup Migration::MixedCase.up end def teardown Migration::MixedCase.down end def test_create mixed_case = MixedCase.create :SOME_value => 'some value' assert_equal 'some value', mixed_case.SO...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/informix_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/informix_simple_test.rb
# -*- coding: utf-8 -*- # # To run this script, run the following: # # CREATE DATABASE weblog_development; # # TODO: Finish the explanation. require 'jdbc_common' require 'db/informix' class InformixSimpleTest < Test::Unit::TestCase include SimpleTestMethods # Informix does not like "= NULL". def test_equals...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_schema_search_path_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_schema_search_path_test.rb
require 'rubygems' require 'active_record' require 'jdbc_common' require 'db/postgres' class CreateSchema < ActiveRecord::Migration def self.up execute "CREATE SCHEMA test" execute "CREATE TABLE test.people (id serial, name text)" execute "INSERT INTO test.people (name) VALUES ('Alex')" execute "CREA...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/oracle_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/oracle_simple_test.rb
require 'jdbc_common' require 'db/oracle' class OracleSimpleTest < Test::Unit::TestCase include SimpleTestMethods end class OracleSpecificTest < Test::Unit::TestCase include MultibyteTestMethods # so we can get @java_con def setup super @java_con.createStatement.execute "CREATE TABLE DEFAULT_NUMBER (V...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/pick_rails_version.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/pick_rails_version.rb
# Specify version of activerecord with ENV['AR_VERSION'] if desired gem 'rails', ENV['AR_VERSION'] if ENV['AR_VERSION'] require 'active_record/version'
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/jndi_callbacks_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/jndi_callbacks_test.rb
require 'jdbc_common' begin require 'mocha' class JndiConnectionPoolCallbacksTest < Test::Unit::TestCase def setup @connection = mock "JdbcConnection" @connection.stubs(:jndi_connection?).returns(true) @connection.stubs(:adapter=) @logger = mock "logger" @config = { :jndi => "jdbc/some_pool", ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mysql_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mysql_simple_test.rb
# To run this script, run the following in a mysql instance: # # drop database if exists weblog_development; # create database weblog_development; # grant all on weblog_development.* to blog@localhost; # flush privileges; require 'jdbc_common' require 'db/mysql' class MysqlSimpleTest < Test::Unit::TestCase ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/sybase_jtds_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/sybase_jtds_simple_test.rb
require 'jdbc_common' require 'db/sybase_jtds' class SybaseJtdsSimpleTest < Test::Unit::TestCase include SimpleTestMethods end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/simple.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/simple.rb
# -*- coding: utf-8 -*- ActiveRecord::Schema.verbose = false ActiveRecord::Base.time_zone_aware_attributes = true if ActiveRecord::Base.respond_to?(:time_zone_aware_attributes) ActiveRecord::Base.default_timezone = :utc #just a random zone, unlikely to be local, and not utc Time.zone = 'Moscow' if Time.respond_to?(:zon...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/jdbc_common.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/jdbc_common.rb
# Simple method to reduce the boilerplate def jruby? defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby" end require 'rubygems' require 'pick_rails_version' require 'jdbc_adapter' if jruby? puts "Using activerecord version #{ActiveRecord::VERSION::STRING}" puts "Specify version with AR_VERSION=={version} or RUBYLIB={pat...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/cachedb_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/cachedb_simple_test.rb
require 'jdbc_common' require 'db/cachedb' class CacheDBSimpleTest < Test::Unit::TestCase include SimpleTestMethods end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mysql_info_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mysql_info_test.rb
require 'jdbc_common' require 'db/mysql' class DBSetup < ActiveRecord::Migration def self.up create_table :books do |t| t.string :title end create_table :cars, :primary_key => 'legacy_id' do |t| t.string :name end create_table :cats, :id => false do |t| t.string :na...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/jndi_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/jndi_test.rb
# In order to run these tests, you need to have a few things on your # classpath. First, you're going to need the Sun File system # context. You can get that here: # # http://java.sun.com/products/jndi/serviceproviders.html. # # Make sure that you put both the fscontext.jar and the # providerutil.jar on your classpa...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_legacy_types_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_legacy_types_test.rb
require 'jdbc_common' require 'db/mssql' ActiveRecord::Schema.verbose = false class CreateArticles < ActiveRecord::Migration def self.up execute <<-SQL CREATE TABLE articles ( [id] int NOT NULL IDENTITY(1, 1) PRIMARY KEY, [title] VARCHAR(100), [author] VARCHAR(60) DEFAULT 'anony...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/derby_multibyte_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/derby_multibyte_test.rb
# To run this script, run the following in a mysql instance: # # drop database if exists weblog_development; # create database weblog_development; # grant all on weblog_development.* to blog@localhost; require 'jdbc_common' require 'db/derby' class DerbyMultibyteTest < Test::Unit::TestCase include MultibyteTe...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/helper.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/helper.rb
module Kernel def find_executable?(name) ENV['PATH'].split(File::PATH_SEPARATOR).detect {|p| File.executable?(File.join(p, name))} end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_simple_test.rb
require 'jdbc_common' require 'db/mssql' class MsSQLSimpleTest < Test::Unit::TestCase include SimpleTestMethods # MS SQL 2005 doesn't have a DATE class, only TIMESTAMP. undef_method :test_save_date # String comparisons are insensitive by default undef_method :test_validates_uniqueness_of_strings_case_sens...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/derby_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/derby_simple_test.rb
# To run this script, run the following in a mysql instance: # # drop database if exists weblog_development; # create database weblog_development; # grant all on weblog_development.* to blog@localhost; require 'jdbc_common' require 'db/derby' class DerbySimpleTest < Test::Unit::TestCase include SimpleTestMeth...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_db_create_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mssql_db_create_test.rb
require 'abstract_db_create' require 'db/mssql' class MysqlDbCreateTest < Test::Unit::TestCase include AbstractDbCreate def db_config MSSQL_CONFIG end def test_rake_db_create begin Rake::Task["db:create"].invoke rescue => e if e.message =~ /CREATE DATABASE permission denied/ ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mysql_db_create_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/mysql_db_create_test.rb
require 'abstract_db_create' require 'db/mysql' class MysqlDbCreateTest < Test::Unit::TestCase include AbstractDbCreate def db_config MYSQL_CONFIG end if find_executable?("mysql") def test_rake_db_create Rake::Task["db:create"].invoke output = nil IO.popen("mysql -u #{MYSQL_CONFIG[:...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_db_create_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_db_create_test.rb
require 'abstract_db_create' require 'db/postgres' class PostgresDbCreateTest < Test::Unit::TestCase include AbstractDbCreate def db_config POSTGRES_CONFIG end if find_executable?("psql") def test_rake_db_create Rake::Task["db:create"].invoke output = `psql -c '\\l'` assert output =...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db2_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db2_simple_test.rb
require 'jdbc_common' require 'db/db2' class DB2SimpleTest < Test::Unit::TestCase include SimpleTestMethods end class DB2HasManyThroughTest < Test::Unit::TestCase include HasManyThroughMethods end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_simple_test.rb
# To run this script, set up the following postgres user and database: # # sudo -u postgres createuser -D -A -P blog # sudo -u postgres createdb -O blog weblog_development # require 'jdbc_common' require 'db/postgres' class PostgresSimpleTest < Test::Unit::TestCase include SimpleTestMethods include ActiveReco...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/h2_simple_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/h2_simple_test.rb
require 'jdbc_common' require 'db/h2' class H2SimpleTest < Test::Unit::TestCase include SimpleTestMethods end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_nonseq_pkey_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/postgres_nonseq_pkey_test.rb
require 'rubygems' require 'active_record' require 'jdbc_common' require 'db/postgres' class CreateUrls < ActiveRecord::Migration def self.up create_table 'urls', :id => false do |t| t.text :uhash, :null => false t.text :url, :null => false end execute "ALTER TABLE urls ADD PRIMARY KEY (uhas...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/abstract_db_create.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/abstract_db_create.rb
require 'jdbc_common' require 'rake' module Rails class Configuration end class Application def self.config @config ||= Object.new end end end module AbstractDbCreate def setup @prevapp = Rake.application Rake.application = Rake::Application.new verbose(true) @prevconfigs = Act...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testLoadActiveRecord.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testLoadActiveRecord.rb
require 'test/minirunit' RAILS_CONNECTION_ADAPTERS = ['abstract'] test_load 'active_record'
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testHsqldb.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testHsqldb.rb
require 'minirunit' config = { :adapter => 'jdbc', :username => 'sa', :password => '', :driver => 'org.hsqldb.jdbcDriver', :url => 'jdbc:hsqldb:test.db' } RAILS_CONNECTION_ADAPTERS = ['abstract', 'jdbc'] require 'active_record' ActiveRecord::Base.establish_connection(config) require 'logger' ActiveRecord:...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testConnect.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testConnect.rb
require 'test/minirunit' RAILS_CONNECTION_ADAPTERS = ['abstract', 'jdbc'] require 'active_record' connspec = ActiveRecord::Base.establish_connection( :adapter => 'jdbc', :driver => 'com.mysql.jdbc.Driver', :url => 'jdbc:mysql://localhost:3306/test', :username => 'rlsmgr', :password => '' ) puts "#{c...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testRawSelect.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testRawSelect.rb
require 'test/minirunit' RAILS_CONNECTION_ADAPTERS = ['abstract', 'jdbc'] require 'active_record' connspec = ActiveRecord::Base.establish_connection( :adapter => 'jdbc', :driver => 'com.mysql.jdbc.Driver', :url => 'jdbc:mysql://localhost:3306/weblog_development', :username => 'blog', :password => ''...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testMysql.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testMysql.rb
# To run this script, run the following in a mysql instance: # # drop database if exists weblog_development; # create database weblog_development; # grant all on weblog_development.* to blog@localhost; require 'minirunit' config = { :username => 'blog', :password => '' } if RUBY_PLATFORM =~ /java/ RAILS_...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testH2.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/minirunit/testH2.rb
require 'minirunit' config = { :adapter => 'jdbc', :username => 'sa', :password => '', :driver => 'org.h2.Driver', :url => 'jdbc:h2:test.db' } RAILS_CONNECTION_ADAPTERS = ['abstract', 'jdbc'] require 'active_record' ActiveRecord::Base.establish_connection(config) require 'logger' ActiveRecord::Base.logger...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/activerecord/connections/native_jdbc_mysql/connection.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/activerecord/connections/native_jdbc_mysql/connection.rb
print "Using native JDBC (MySQL)\n" require_dependency 'fixtures/course' require 'logger' RAILS_CONNECTION_ADAPTERS << 'jdbc' require "active_record/connection_adapters/jdbc_adapter" ActiveRecord::Base.logger = Logger.new("debug.log") db1 = 'activerecord_unittest' db2 = 'activerecord_unittest2' ActiveRecord::Base.e...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/activerecord/connection_adapters/type_conversion_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/activerecord/connection_adapters/type_conversion_test.rb
require 'java' require 'models/data_types' require 'active_record/connection_adapters/jdbc_adapter' require 'db/derby' require 'test/unit' JInteger = java.lang.Integer class TypeConversionTest < Test::Unit::TestCase TEST_TIME = Time.at(1169964202).gmtime def setup DbTypeMigration.up DbType.create( ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/jdbc_adapter/jdbc_db2_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/jdbc_adapter/jdbc_db2_test.rb
require 'java' require 'lib/jdbc_adapter/jdbc_db2' require 'test/unit' class JdbcSpec::DB2Test < Test::Unit::TestCase def setup @inst = Object.new @inst.extend JdbcSpec::DB2 @column = Object.new class <<@column attr_accessor :type end end def test_quote_decimal assert_equal %q{'1...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/jdbc_adapter/jdbc_sybase_test.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/jdbc_adapter/jdbc_sybase_test.rb
require 'jdbc_common' require 'jdbc_adapter' class MockConnection def adapter=( adapt ) end end module ActiveRecord module ConnectionAdapters class SybaseAdapterSelectionTest < Test::Unit::TestCase def testJtdsSelectionUsingDialect() config = { :driver => 'net.sourcefor...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/mysql.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/mysql.rb
MYSQL_CONFIG = { :username => 'blog', :password => '', :adapter => 'mysql', :database => 'weblog_development', :host => 'localhost' } ActiveRecord::Base.establish_connection(MYSQL_CONFIG)
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/cachedb.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/cachedb.rb
config = { :username => '_SYSTEM', :password => 'SYS', :adapter => 'cachedb', :host => ENV[ "CACHE_HOST" ] || 'localhost', :database => ENV[ "CACHE_NAMESPACE" ] || 'weblog_development' } ActiveRecord::Base.establish_connection( config )
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/logger.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/logger.rb
require 'logger' ActiveRecord::Base.logger = Logger.new($stdout) ActiveRecord::Base.logger.level = Logger::DEBUG
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/postgres.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/postgres.rb
POSTGRES_CONFIG = { :adapter => 'postgresql', :database => 'weblog_development', :host => 'localhost', :username => 'blog', :password => '' } ActiveRecord::Base.establish_connection(POSTGRES_CONFIG)
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/jndi_config.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/jndi_config.rb
require 'fileutils' require 'active_record/connection_adapters/jdbc_adapter' System = java.lang.System Context = javax.naming.Context InitialContext = javax.naming.InitialContext Reference = javax.naming.Reference StringRefAddr = javax.naming.StringRefAddr System.set_property(Context::INITIAL_CONTEXT_FACTORY, ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/oracle.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/oracle.rb
config = { :username => 'blog', :password => 'blog', :adapter => 'oracle', :host => ENV["ORACLE_HOST"] || 'localhost', :database => ENV["ORACLE_SID"] || 'XE' # XE is the default SID for oracle xe } ActiveRecord::Base.establish_connection(config) # Here are some notes of things I had to do to get running on...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/db2.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/db2.rb
config = { :username => "blog", :password => "", :adapter => "jdbc", :driver => "com.ibm.db2.jcc.DB2Driver", :url => "jdbc:db2:weblog_development" } ActiveRecord::Base.establish_connection(config)
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/hsqldb.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/hsqldb.rb
config = { :adapter => 'hsqldb', :database => 'test.db' } ActiveRecord::Base.establish_connection(config) at_exit { # Clean up hsqldb when done Dir['test.db*'].each {|f| File.delete(f)} File.delete('hsqldb-testdb.log') rescue nil #can't delete on windows }
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/mssql.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/mssql.rb
MSSQL_CONFIG = { :username => 'blog', :password => '', :adapter => 'mssql', :database => 'weblog_development' } MSSQL_CONFIG[:host] = ENV['SQLHOST'] if ENV['SQLHOST'] ActiveRecord::Base.establish_connection(MSSQL_CONFIG)
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/derby.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/derby.rb
require 'logger' config = { :adapter => 'derby', :database => "derby-testdb" } ActiveRecord::Base.establish_connection(config) at_exit { # Clean up derby files require 'fileutils' FileUtils.rm_rf('derby-testdb') }
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/h2.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/h2.rb
config = { :adapter => 'h2', :database => 'test.db' } ActiveRecord::Base.establish_connection(config) at_exit { # Clean up hsqldb when done Dir['test.db*'].each {|f| File.delete(f)} }
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/jdbc.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/jdbc.rb
require 'jdbc/mysql' config = { :username => 'blog', :password => '', :adapter => 'jdbc', :driver => 'com.mysql.jdbc.Driver', :url => 'jdbc:mysql://localhost:3306/weblog_development' } ActiveRecord::Base.establish_connection(config)
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/informix.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/informix.rb
config = { :username => 'blog', :password => 'blog', :adapter => 'informix', :servername => 'ol_weblog', :database => 'weblog_development', :host => 'localhost', :port => '9088' } ActiveRecord::Base.establish_connection(config)
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/sqlite3.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/db/sqlite3.rb
require 'jdbc/sqlite3' if jruby? config = { :adapter => jruby? ? 'jdbcsqlite3' : 'sqlite3', :dbfile => 'test.sqlite3.db' # :url => 'jdbc:sqlite:test.sqlite3.db', # :driver => 'org.sqlite.JDBC' } ActiveRecord::Base.establish_connection(config) at_exit { # Clean up sqlite3 db when done Dir['test.sqlite3*']...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/entry.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/entry.rb
require 'rubygems' require 'active_record' class CreateEntries < ActiveRecord::Migration def self.up create_table "entries", :force => true do |t| t.column :title, :string, :limit => 100 t.column :updated_on, :datetime t.column :content, :text t.column :rating, :decimal, :precision => 10,...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/data_types.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/data_types.rb
require 'rubygems' require 'active_record' class DbTypeMigration < ActiveRecord::Migration def self.up create_table "db_types", :force => true do |t| t.column :sample_timestamp, :timestamp t.column :sample_datetime, :datetime t.column :sample_date, :date t.column :sample_time, :time ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/reserved_word.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/reserved_word.rb
require 'rubygems' require 'active_record' class CreateReservedWords < ActiveRecord::Migration def self.up create_table "reserved_words", :force => true do |t| t.column :position, :integer t.column :select, :integer end end def self.down drop_table "reserved_words" end end class Reser...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/auto_id.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/auto_id.rb
require 'rubygems' require 'active_record' class CreateAutoIds < ActiveRecord::Migration def self.up create_table "auto_ids", :force => true do |t| t.column :value, :integer end end def self.down drop_table "auto_ids" end end class AutoId < ActiveRecord::Base def self.table_name () "auto_...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/add_not_null_column_to_table.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/add_not_null_column_to_table.rb
require 'rubygems' require 'active_record' class AddNotNullColumnToTable < ActiveRecord::Migration def self.up add_column :entries, :color, :string, :null => false, :default => "blue" end def self.down remove_column :entries, :color end end
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/string_id.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/string_id.rb
require 'rubygems' require 'active_record' class CreateStringIds < ActiveRecord::Migration def self.up create_table "string_ids", :force => true, :id => false do |t| t.string :id end end def self.down drop_table "string_ids" end end class StringId < ActiveRecord::Base def self.table_name ...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false
ThoughtWorksStudios/oauth2_provider
https://github.com/ThoughtWorksStudios/oauth2_provider/blob/d54702f194edd05389968cf8947465860abccc5d/tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/mixed_case.rb
tools/jruby-1.5.1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9.7-java/test/models/mixed_case.rb
require 'rubygems' require 'active_record' module Migration class MixedCase < ActiveRecord::Migration def self.up create_table "mixed_cases" do |t| t.column :SOME_value, :string end end def self.down drop_table "mixed_cases" end end end class MixedCase < ActiveR...
ruby
MIT
d54702f194edd05389968cf8947465860abccc5d
2026-01-04T17:46:04.645080Z
false