diff --git a/benchmark/encode.rb b/benchmark/encode.rb index 389e58f4..df303a5a 100644 --- a/benchmark/encode.rb +++ b/benchmark/encode.rb @@ -1,5 +1,6 @@ # encoding: UTF-8 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..') +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'benchmark' diff --git a/benchmark/encode_json_and_marshal.rb b/benchmark/encode_json_and_marshal.rb index cbd1d7fb..ae690d41 100644 --- a/benchmark/encode_json_and_marshal.rb +++ b/benchmark/encode_json_and_marshal.rb @@ -1,5 +1,6 @@ # encoding: UTF-8 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..') +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'benchmark' diff --git a/benchmark/encode_json_and_yaml.rb b/benchmark/encode_json_and_yaml.rb index 6c680f71..a041c94d 100644 --- a/benchmark/encode_json_and_yaml.rb +++ b/benchmark/encode_json_and_yaml.rb @@ -1,5 +1,6 @@ # encoding: UTF-8 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..') +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'benchmark' diff --git a/benchmark/http.rb b/benchmark/http.rb index ae4a6751..efedf9fd 100644 --- a/benchmark/http.rb +++ b/benchmark/http.rb @@ -1,5 +1,6 @@ # encoding: UTF-8 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..') +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'benchmark' diff --git a/benchmark/parse.rb b/benchmark/parse.rb index 9d6be4f0..a81ef316 100644 --- a/benchmark/parse.rb +++ b/benchmark/parse.rb @@ -1,5 +1,6 @@ # encoding: UTF-8 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..') +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'benchmark' diff --git a/benchmark/parse_json_and_marshal.rb b/benchmark/parse_json_and_marshal.rb index af556450..23c32ac8 100644 --- a/benchmark/parse_json_and_marshal.rb +++ b/benchmark/parse_json_and_marshal.rb @@ -1,5 +1,6 @@ # encoding: UTF-8 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..') +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'benchmark' diff --git a/benchmark/parse_json_and_yaml.rb b/benchmark/parse_json_and_yaml.rb index 3ced9b76..ac05d602 100644 --- a/benchmark/parse_json_and_yaml.rb +++ b/benchmark/parse_json_and_yaml.rb @@ -1,5 +1,6 @@ # encoding: UTF-8 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..') +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'benchmark' diff --git a/benchmark/parse_stream.rb b/benchmark/parse_stream.rb index f7088115..121631bb 100644 --- a/benchmark/parse_stream.rb +++ b/benchmark/parse_stream.rb @@ -1,5 +1,6 @@ # encoding: UTF-8 $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..') +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'benchmark' diff --git a/examples/encoding/chunked_encoding.rb b/examples/encoding/chunked_encoding.rb index 04e6469a..d86de429 100644 --- a/examples/encoding/chunked_encoding.rb +++ b/examples/encoding/chunked_encoding.rb @@ -1,4 +1,5 @@ # encoding: UTF-8 +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..') $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib') require 'yajl' diff --git a/examples/encoding/one_shot.rb b/examples/encoding/one_shot.rb index b235aeda..0a735897 100644 --- a/examples/encoding/one_shot.rb +++ b/examples/encoding/one_shot.rb @@ -1,4 +1,5 @@ # encoding: UTF-8 +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..') $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib') require 'yajl' diff --git a/examples/encoding/to_an_io.rb b/examples/encoding/to_an_io.rb index c38d4203..04fda8ee 100644 --- a/examples/encoding/to_an_io.rb +++ b/examples/encoding/to_an_io.rb @@ -1,4 +1,5 @@ # encoding: UTF-8 +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..') $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib') require 'yajl' diff --git a/examples/http/twitter_search_api.rb b/examples/http/twitter_search_api.rb index f7c76e56..b5b99076 100644 --- a/examples/http/twitter_search_api.rb +++ b/examples/http/twitter_search_api.rb @@ -1,4 +1,5 @@ # encoding: UTF-8 +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..') $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib') require 'yajl/http_stream' diff --git a/examples/http/twitter_stream_api.rb b/examples/http/twitter_stream_api.rb index 30727c7e..19363873 100644 --- a/examples/http/twitter_stream_api.rb +++ b/examples/http/twitter_stream_api.rb @@ -1,4 +1,5 @@ # encoding: UTF-8 +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..') $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib') require 'yajl/gzip' diff --git a/examples/parsing/from_file.rb b/examples/parsing/from_file.rb index 824c9f78..1cb55d2d 100644 --- a/examples/parsing/from_file.rb +++ b/examples/parsing/from_file.rb @@ -1,4 +1,5 @@ # encoding: UTF-8 +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..') $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib') require 'yajl' diff --git a/examples/parsing/from_stdin.rb b/examples/parsing/from_stdin.rb index c270538a..488fefd5 100644 --- a/examples/parsing/from_stdin.rb +++ b/examples/parsing/from_stdin.rb @@ -1,4 +1,5 @@ # encoding: UTF-8 +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..') $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib') require 'yajl' diff --git a/examples/parsing/from_string.rb b/examples/parsing/from_string.rb index b844b99a..893e4656 100644 --- a/examples/parsing/from_string.rb +++ b/examples/parsing/from_string.rb @@ -1,4 +1,5 @@ # encoding: UTF-8 +$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..') $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib') require 'yajl'