Skip to content

Commit

Permalink
we only need the encoding header in files that use unicode chars
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmario committed Sep 14, 2011
1 parent 03d12b5 commit 7fffc41
Show file tree
Hide file tree
Showing 41 changed files with 0 additions and 44 deletions.
1 change: 0 additions & 1 deletion benchmark/encode.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')

Expand Down
1 change: 0 additions & 1 deletion benchmark/encode_json_and_marshal.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')

Expand Down
1 change: 0 additions & 1 deletion benchmark/encode_json_and_yaml.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')

Expand Down
1 change: 0 additions & 1 deletion benchmark/http.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')

Expand Down
1 change: 0 additions & 1 deletion benchmark/parse.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')

Expand Down
1 change: 0 additions & 1 deletion benchmark/parse_json_and_marshal.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')

Expand Down
1 change: 0 additions & 1 deletion benchmark/parse_json_and_yaml.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')

Expand Down
1 change: 0 additions & 1 deletion benchmark/parse_stream.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')

Expand Down
1 change: 0 additions & 1 deletion examples/encoding/chunked_encoding.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

Expand Down
1 change: 0 additions & 1 deletion examples/encoding/one_shot.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

Expand Down
1 change: 0 additions & 1 deletion examples/encoding/to_an_io.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

Expand Down
1 change: 0 additions & 1 deletion examples/http/twitter_search_api.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

Expand Down
1 change: 0 additions & 1 deletion examples/http/twitter_stream_api.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

Expand Down
1 change: 0 additions & 1 deletion examples/parsing/from_file.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

Expand Down
1 change: 0 additions & 1 deletion examples/parsing/from_stdin.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

Expand Down
1 change: 0 additions & 1 deletion examples/parsing/from_string.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

Expand Down
1 change: 0 additions & 1 deletion ext/yajl/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require 'mkmf'
require 'rbconfig'

Expand Down
1 change: 0 additions & 1 deletion lib/yajl.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require 'yajl/yajl'

# = Extras
Expand Down
2 changes: 0 additions & 2 deletions lib/yajl/bzip2.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# encoding: UTF-8

require 'yajl' unless defined?(Yajl::Parser)

begin
Expand Down
1 change: 0 additions & 1 deletion lib/yajl/bzip2/stream_reader.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
module Yajl
module Bzip2
# This is a wrapper around Bzip::Reader to allow it's #read method to adhere
Expand Down
1 change: 0 additions & 1 deletion lib/yajl/bzip2/stream_writer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
module Yajl
module Bzip2
# A wrapper around the Bzip2::Writer class for easier JSON stream encoding
Expand Down
2 changes: 0 additions & 2 deletions lib/yajl/deflate.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# encoding: UTF-8

require 'yajl' unless defined?(Yajl::Parser)
require 'zlib' unless defined?(Zlib)
require 'yajl/deflate/stream_reader.rb'
Expand Down
1 change: 0 additions & 1 deletion lib/yajl/deflate/stream_reader.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
module Yajl
module Deflate
# This is a wrapper around Zlib::Inflate, creating a #read method that adheres
Expand Down
1 change: 0 additions & 1 deletion lib/yajl/deflate/stream_writer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
module Yajl
module Deflate
# A wrapper around the Zlib::Deflate class for easier JSON stream parsing
Expand Down
2 changes: 0 additions & 2 deletions lib/yajl/gzip.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# encoding: UTF-8

require 'yajl' unless defined?(Yajl::Parser)
require 'zlib' unless defined?(Zlib)
require 'yajl/gzip/stream_reader.rb'
Expand Down
1 change: 0 additions & 1 deletion lib/yajl/gzip/stream_reader.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
module Yajl
module Gzip
# This is a wrapper around Zlib::GzipReader to allow it's #read method to adhere
Expand Down
1 change: 0 additions & 1 deletion lib/yajl/gzip/stream_writer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
module Yajl
module Gzip
# Wraper around the Zlib::GzipWriter class
Expand Down
1 change: 0 additions & 1 deletion lib/yajl/http_stream.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require 'socket'
require 'yajl'
require 'yajl/version' unless defined? Yajl::VERSION
Expand Down
1 change: 0 additions & 1 deletion lib/yajl/json_gem.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require 'yajl' unless defined?(Yajl::Parser)
require 'yajl/json_gem/parsing'
require 'yajl/json_gem/encoding'
Expand Down
1 change: 0 additions & 1 deletion lib/yajl/json_gem/encoding.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require 'yajl' unless defined?(Yajl::Parser)

# NOTE: this is probably temporary until I can split out the JSON compat C code into it's own
Expand Down
1 change: 0 additions & 1 deletion lib/yajl/json_gem/parsing.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require 'yajl' unless defined?(Yajl::Parser)

module JSON
Expand Down
1 change: 0 additions & 1 deletion spec/global/global_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')

describe "Yajl" do
Expand Down
1 change: 0 additions & 1 deletion spec/http/http_delete_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
begin
require 'yajl/bzip2'
Expand Down
1 change: 0 additions & 1 deletion spec/http/http_error_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
begin
require 'yajl/bzip2'
Expand Down
1 change: 0 additions & 1 deletion spec/http/http_get_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
begin
require 'yajl/bzip2'
Expand Down
1 change: 0 additions & 1 deletion spec/http/http_post_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
begin
require 'yajl/bzip2'
Expand Down
1 change: 0 additions & 1 deletion spec/http/http_put_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
begin
require 'yajl/bzip2'
Expand Down
1 change: 0 additions & 1 deletion spec/http/http_stream_options_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')
require 'yajl/http_stream'
require 'socket'
Expand Down
1 change: 0 additions & 1 deletion spec/parsing/chunked_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')

describe "Chunked parser" do
Expand Down
1 change: 0 additions & 1 deletion spec/parsing/fixtures_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper.rb')

describe "Parsing JSON Fixtures" do
Expand Down
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')

Expand Down

0 comments on commit 7fffc41

Please sign in to comment.