This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ext/mysql.c b/ext/mysql.c | |
index b14cae1..cead7c3 100644 | |
--- a/ext/mysql.c | |
+++ b/ext/mysql.c | |
@@ -893,6 +893,30 @@ static VALUE simulate_disconnect( VALUE obj ) | |
return Qnil; | |
} | |
+static int begins_with_insensitive(char *candidate, char *check_for_in_upper_case) | |
+{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: gc.c | |
=================================================================== | |
--- gc.c (revision 19984) | |
+++ gc.c (working copy) | |
@@ -281,7 +281,7 @@ | |
int limit; | |
}; | |
-#define HEAP_MIN_SLOTS 10000 | |
+#define HEAP_MIN_SLOTS 100000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: gc.c | |
=================================================================== | |
--- gc.c (revision 20686) | |
+++ gc.c (working copy) | |
@@ -1,4 +1,4 @@ | |
-/********************************************************************** | |
+/* | |
gc.c - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.module PyRuby | |
2. public | |
3. | |
4. | |
5. def self.require(base_name) # Creates a singleton (?) method named "require" in the namespace "PyRuby" | |
6. if $".include? base_name # In the current Ruby environment, is the name passed to require() in the list of already-imported modules? | |
7. return false # Do nothing | |
8. else | |
9. file = find_file base_name # find_file in same namespace | |
10. if file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'yaml' | |
if ARGV.size < 1 | |
puts "Usage: github-test.rb my-project.gemspec" | |
exit | |
end | |
require 'rubygems' | |
require 'rubygems/specification' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# load DRb | |
require 'drb' | |
require 'thread' | |
require 'socket' | |
BasicSocket.do_not_reverse_lookup = true | |
class Synchronized | |
def initialize(this_obj) | |
@self = this_obj | |
@mutex = Mutex.new | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Finished in 991.171875 seconds. | |
1) Failure: | |
test_ip_v6(ACLEntryTest) [C:/dev/ruby/downloads/new/ruby_trunk_debug_flags/test/drb/test_acl.rb:56]: | |
Failed assertion, no message given. | |
2) Failure: | |
test_last_error(DL::TestCFunc) [C:/dev/ruby/downloads/new/ruby_trunk_debug_flags/test/dl/test_cfunc.rb:69]: | |
Expected 0 to be nil. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ffi' | |
# button constants | |
BUTTONS_OK = 0 | |
BUTTONS_OKCANCEL = 1 | |
BUTTONS_ABORTRETRYIGNORE = 2 | |
BUTTONS_YESNO = 4 | |
# return code constants | |
CLICKED_OK = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// google hash with ruby interactions | |
#include <iostream> | |
#include <google/dense_hash_map> | |
#include <ruby.h> | |
using google::dense_hash_map; // namespace where class lives by default | |
using std::cout; | |
using std::endl; | |
using __gnu_cxx::hash; // or __gnu_cxx::hash, or maybe tr1::hash, depending on your OS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby\redcar>E:\installs\ruby191p376\bin\ruby.exe e:\installs\spawn.rb "E:/Program Files/e/e.exe" Rakefile | |
E:\dev\ruby\redcar>jruby -S rake | |
(in E:/dev/ruby/redcar) | |
E:/dev/ruby/redcar/lib/redcar/boot.rb:5:in `require': no such file to load -- little-plugger (LoadError) | |
from E:/dev/ruby/redcar/lib/redcar/boot.rb:5 | |
from E:/dev/ruby/redcar/lib/redcar/boot.rb:23:in `require' | |
from E:/dev/ruby/redcar/lib/redcar.rb:23:in `boot' | |
from ./plugins/application/spec/application/../spec_helper.rb:3 | |
from ./plugins/application/spec/application/../spec_helper.rb:1:in `require' |
OlderNewer