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/lib/technoweenie/attachment_fu/backends/file_system_backend.rb b/lib/technoweenie/attachment_fu/backends/file_system_backend.rb | |
index f746ae7..591365a 100644 | |
--- a/lib/technoweenie/attachment_fu/backends/file_system_backend.rb | |
+++ b/lib/technoweenie/attachment_fu/backends/file_system_backend.rb | |
@@ -1,4 +1,4 @@ | |
-require 'ftools' | |
+require 'fileutils' | |
module Technoweenie # :nodoc: | |
module AttachmentFu # :nodoc: | |
module Backends |
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/hpricot_scan/hpricot_scan.rl b/ext/hpricot_scan/hpricot_scan.rl | |
index d9ea15c..60b62b3 100644 | |
--- a/ext/hpricot_scan/hpricot_scan.rl | |
+++ b/ext/hpricot_scan/hpricot_scan.rl | |
@@ -24,7 +24,7 @@ static VALUE mHpricot, rb_eHpricotParseError; | |
static VALUE cBaseEle, cBogusETag, cCData, cComment, cDoc, cDocType, cElem, cETag, cText, | |
cXMLDecl, cProcIns, symAllow, symDeny; | |
static ID s_ElementContent; | |
-static ID s_downcase, s_new, s_parent, s_read, s_to_str; | |
+static ID s_downcase, s_new, s_parent, s_read, s_to_str, s_force_encoding, s_set_encoding; |
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/local/bin/ruby | |
require 'fastdb' | |
include FastDB | |
class Person | |
def initialize(name, salary, address, rating, pets, subordinates) | |
@name = name | |
@salary = salary | |
@address = address |
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
VALUE kernel_spec_rb_rescue2(int argc, VALUE *args, VALUE self) { | |
VALUE main_array = rb_ary_new(); | |
rb_ary_push(main_array, args[0]); | |
rb_ary_push(main_array, args[1]); | |
VALUE raise_array = rb_ary_new(); | |
rb_ary_push(raise_array, args[2]); | |
rb_ary_push(raise_array, args[3]); | |
return rb_rescue2(kernel_spec_call_proc, main_array, kernel_spec_call_proc, raise_array, args[4], args[5], 0); |
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
commit 67acceac0e56e1c78824ec595881f1337446312e | |
Author: Eugene Pimenov <libc@mac.com> | |
Date: Sat Aug 29 18:11:19 2009 +0400 | |
Iconv: use read_pointer instead of read_int | |
diff --git a/lib/iconv.rb b/lib/iconv.rb | |
index afdb683..88342a4 100644 | |
--- a/lib/iconv.rb | |
+++ b/lib/iconv.rb |
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
commit 99d0688cfd454cfeb9b0fbcff7fe1514b054f279 | |
Author: Eugene Pimenov <libc@mac.com> | |
Date: Sat Aug 29 20:35:23 2009 +0400 | |
CAPI: cast 0 to VALUE in rb_rescue2 spec, because gcc on snow leopard thinks it's 32bit | |
diff --git a/spec/capi/ext/kernel_spec.c b/spec/capi/ext/kernel_spec.c | |
index 2959938..edb3c40 100644 | |
--- a/spec/capi/ext/kernel_spec.c | |
+++ b/spec/capi/ext/kernel_spec.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
diff --git a/ext/ed.cpp b/ext/ed.cpp | |
index 19fc4d4..c8b4307 100644 | |
--- a/ext/ed.cpp | |
+++ b/ext/ed.cpp | |
@@ -1538,6 +1538,8 @@ void DatagramDescriptor::Write() | |
assert (sd != INVALID_SOCKET); | |
LastActivity = MyEventMachine->GetCurrentTime(); | |
+ cerr << "DatagramDescriptor::Write(); sd " << sd << " OutboundPages.size() " << OutboundPages.size() << endl; | |
+ |
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
root = File.join(File.dirname(__FILE__), %w{ lib }) | |
if File.exist?(File.join(root, "eventmachine.rb")) | |
$:.unshift(root) | |
else | |
require 'rubygems' | |
end | |
# em-dns | |
require 'eventmachine' | |
require 'resolv' |
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/nokogiri/html_sax_parser_context.c b/ext/nokogiri/html_sax_parser_context.c | |
index be1ea23..f09b901 100644 | |
--- a/ext/nokogiri/html_sax_parser_context.c | |
+++ b/ext/nokogiri/html_sax_parser_context.c | |
@@ -25,9 +25,9 @@ static VALUE parse_memory(VALUE klass, VALUE data, VALUE encoding) | |
); | |
if(RTEST(encoding)) { | |
- xmlCharEncoding enc = xmlParseCharEncoding(StringValuePtr(encoding)); | |
- if(enc != XML_CHAR_ENCODING_ERROR) { |
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
def test_parse_force_encoding | |
@parser.parse_memory(<<-HTML, 'UTF-8') | |
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> | |
Информация | |
HTML | |
assert_equal("Информация", | |
@parser.document.data.join.strip) | |
end |
OlderNewer