This file contains hidden or 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
| localhost.localdomain{hasimo-t}% ruby -Ilib test/test_httpclient.rb | |
| Loaded suite test/test_httpclient | |
| Started | |
| .....................E................................................could be a relative URI in location header which is not recommended | |
| 'The field value consists of a single absolute URI' in HTTP spec | |
| ..could be a relative URI in location header which is not recommended | |
| 'The field value consists of a single absolute URI' in HTTP spec | |
| .../home/hasimo-t/git/httpclient/lib/httpclient/http.rb:381: warning: variable $KCODE is no longer effective | |
| /home/hasimo-t/git/httpclient/lib/httpclient/http.rb:381: warning: variable $KCODE is no longer effective | |
| .......... |
This file contains hidden or 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
| localhost.localdomain{hasimo-t}% rake test | |
| Loaded suite /home/hasimo-t/.rvm/gems/ruby-1.9.2-p180/gems/rake-0.8.7/lib/rake/rake_test_loader | |
| Started | |
| E..EEEEEEEEEEEEEEEEEEEE..EEEEEEEEE.......................E..EE.....E.EE..EEEEEEEEEEEEE.EE......FEEEEEEEEEEEEEEEEEEE.EEE...EEEEEcould be a relative URI in location header which is not recommended | |
| 'The field value consists of a single absolute URI' in HTTP spec | |
| .Ecould be a relative URI in location header which is not recommended | |
| 'The field value consists of a single absolute URI' in HTTP spec | |
| EFF/home/hasimo-t/git/httpclient/lib/httpclient/http.rb:381: warning: variable $KCODE is no longer effective | |
| /home/hasimo-t/git/httpclient/lib/httpclient/http.rb:381: warning: variable $KCODE is no longer effective | |
| ......EEE.EE.EE |
This file contains hidden or 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 'rubygems' | |
| require 'kyotocabinet' | |
| db = KyotoCabinet::DB.new | |
| db.open('hoge.kch') | |
| db['hoge'] = 'foo' | |
| begin | |
| db.each do |key,value| | |
| raise StandardError | |
| end | |
| rescue => e |
This file contains hidden or 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
| unless RUBY_VERSION < '1.9' | |
| require 'mysql' | |
| class Mysql | |
| def quote_with_encode(value) | |
| quoted_value = quote_without_encode(value) | |
| String === quoted_value ? quoted_value.force_encoding('utf-8') : quoted_value | |
| end | |
| alias_method_chain :quote ,:encode | |
| end |
This file contains hidden or 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
| # encoding: utf-8 | |
| class ApplicationController < ActionController::Base | |
| before_filter :verify_encoding | |
| def verify_encoding | |
| block = lambda do |o| | |
| o.force_encoding(Encoding::UTF_8) if o.respond_to?(:force_encoding) && !o.frozen? | |
| ActiveSupport::Multibyte.verify!(o.to_s) | |
| end | |
| traverse = lambda do |object| |
This file contains hidden or 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
| sulky-no-macbook-3.local{sulky}% gem install ruby-debug19 -- --with-ruby-include=/Users/sulky/.rvm/src/ruby-1.9.2-head | |
| Building native extensions. This could take a while... | |
| Building native extensions. This could take a while... | |
| Successfully installed columnize-0.3.1 | |
| Successfully installed archive-tar-minitar-0.5.2 | |
| Successfully installed ruby_core_source-0.1.4 | |
| Successfully installed linecache19-0.5.11 | |
| Successfully installed ruby-debug-base19-0.11.23 | |
| Successfully installed ruby-debug19-0.11.6 | |
| 6 gems installed |