Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use 'encoding: ' consistently, not coding:.

  • Loading branch information...
commit 764471e25d66b6eb2ce37a45d8ad7a2472856555 1 parent b6e1dc9
@brixen brixen authored
Showing with 69 additions and 69 deletions.
  1. +1 −1  command_line/dash_upper_e_spec.rb
  2. +1 −1  core/array/fixtures/encoded_strings.rb
  3. +1 −1  core/array/shared/index.rb
  4. +1 −1  core/encoding/converter/primitive_errinfo_spec.rb
  5. +1 −1  core/encoding/converter/putback_spec.rb
  6. +1 −1  core/encoding/invalid_byte_sequence_error/error_bytes_spec.rb
  7. +1 −1  core/file/expand_path_spec.rb
  8. +1 −1  core/io/binwrite_spec.rb
  9. +1 −1  core/io/inspect_spec.rb
  10. +1 −1  core/io/write_spec.rb
  11. +1 −1  core/marshal/dump_spec.rb
  12. +1 −1  core/module/fixtures/classes19.rb
  13. +1 −1  core/nil/to_h_spec.rb
  14. +1 −1  core/random/bytes_spec.rb
  15. +1 −1  core/string/count_spec.rb
  16. +1 −1  core/string/delete_spec.rb
  17. +1 −1  core/string/encoding_spec.rb
  18. +1 −1  core/string/shared/succ.rb
  19. +1 −1  core/string/squeeze_spec.rb
  20. +1 −1  core/symbol/casecmp_spec.rb
  21. +1 −1  core/symbol/element_reference_spec.rb
  22. +1 −1  core/symbol/fixtures/classes.rb
  23. +1 −1  core/symbol/shared/slice.rb
  24. +1 −1  core/symbol/slice_spec.rb
  25. +1 −1  core/thread/initialize_spec.rb
  26. +1 −1  core/time/_dump_spec.rb
  27. +1 −1  language/constants_spec.rb
  28. +3 −3 language/encoding_spec.rb
  29. +1 −1  language/fixtures/coding_us_ascii.rb
  30. +1 −1  language/fixtures/coding_utf_8.rb
  31. +1 −1  language/fixtures/constant_visibility.rb
  32. +6 −6 language/magic_comment_spec.rb
  33. +1 −1  language/regexp/encoding_spec.rb
  34. +1 −1  language/regexp/escapes_spec.rb
  35. +1 −1  library/digest/md5/shared/constants.rb
  36. +1 −1  library/digest/sha1/shared/constants.rb
  37. +1 −1  library/digest/sha256/shared/constants.rb
  38. +1 −1  library/digest/sha384/shared/constants.rb
  39. +1 −1  library/digest/sha512/shared/constants.rb
  40. +1 −1  library/matrix/eigenvalue_decomposition/eigenvalue_matrix_spec.rb
  41. +1 −1  library/matrix/eigenvalue_decomposition/eigenvalues_spec.rb
  42. +1 −1  library/matrix/eigenvalue_decomposition/eigenvector_matrix_spec.rb
  43. +1 −1  library/matrix/eigenvalue_decomposition/eigenvectors_spec.rb
  44. +1 −1  library/matrix/eigenvalue_decomposition/initialize_spec.rb
  45. +1 −1  library/matrix/eigenvalue_decomposition/to_a_spec.rb
  46. +1 −1  library/matrix/fixtures/classes.rb
  47. +1 −1  library/matrix/lup_decomposition/initialize_spec.rb
  48. +1 −1  library/matrix/lup_decomposition/l_spec.rb
  49. +1 −1  library/matrix/lup_decomposition/to_a_spec.rb
  50. +1 −1  library/matrix/lup_decomposition/u_spec.rb
  51. +1 −1  library/matrix/round_spec.rb
  52. +1 −1  library/openssl/shared/constants.rb
  53. +1 −1  library/openssl/x509/name/parse_spec.rb
  54. +1 −1  library/socket/basicsocket/recv_spec.rb
  55. +1 −1  library/socket/socket/gethostbyname_spec.rb
  56. +1 −1  library/stringio/external_encoding.rb
  57. +1 −1  library/stringio/internal_encoding.rb
  58. +1 −1  library/stringio/set_encoding.rb
  59. +1 −1  library/zlib/deflate/deflate_spec.rb
  60. +1 −1  library/zlib/deflate/set_dictionary_spec.rb
  61. +1 −1  library/zlib/inflate/append_spec.rb
  62. +1 −1  library/zlib/inflate/inflate_spec.rb
View
2  command_line/dash_upper_e_spec.rb
@@ -6,4 +6,4 @@
:args => '2>&1').should =~ /RuntimeError/
end
end
-end
+end
View
2  core/array/fixtures/encoded_strings.rb
@@ -66,4 +66,4 @@ def self.array_with_usascii_and_ascii8bit_strings
"\xFF".force_encoding('ASCII-8BIT')
]
end
-end
+end
View
2  core/array/shared/index.rb
@@ -27,4 +27,4 @@ def x.==(obj) 3 == obj; end
[4, 2, 1, 5, 1, 3].send(@method, 5) {|x| x < 2}.should == 3
end
end
-end
+end
View
2  core/encoding/converter/primitive_errinfo_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
with_feature :encoding do
View
2  core/encoding/converter/putback_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
with_feature :encoding do
View
2  core/encoding/invalid_byte_sequence_error/error_bytes_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../fixtures/classes', __FILE__)
with_feature :encoding do
View
2  core/file/expand_path_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/common', __FILE__)
View
2  core/io/binwrite_spec.rb
@@ -7,4 +7,4 @@
it "needs to be reviewed for spec completeness"
end
-end
+end
View
2  core/io/inspect_spec.rb
@@ -22,4 +22,4 @@
end
end
end
-end
+end
View
2  core/io/write_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
require File.expand_path('../shared/write', __FILE__)
View
2  core/marshal/dump_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/marshal_data', __FILE__)
View
2  core/module/fixtures/classes19.rb
@@ -4,4 +4,4 @@ module PrivConstModule
private_constant :PRIVATE_CONSTANT
PUBLIC_CONSTANT = 2
end
-end
+end
View
2  core/nil/to_h_spec.rb
@@ -7,4 +7,4 @@
nil.to_h.default.should == nil
end
end
-end
+end
View
2  core/random/bytes_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
ruby_version_is "1.9" do
View
2  core/string/count_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes.rb', __FILE__)
View
2  core/string/delete_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes.rb', __FILE__)
View
2  core/string/encoding_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/iso-8859-9-encoding', __FILE__)
View
2  core/string/shared/succ.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
describe :string_succ, :shared => true do
it "returns an empty string for empty strings" do
"".send(@method).should == ""
View
2  core/string/squeeze_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes.rb', __FILE__)
View
2  core/symbol/casecmp_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
ruby_version_is "1.9" do
View
2  core/symbol/element_reference_spec.rb
@@ -5,4 +5,4 @@
describe "Symbol#[]" do
it_behaves_like(:symbol_slice, :[])
end
-end
+end
View
2  core/symbol/fixtures/classes.rb
@@ -1,3 +1,3 @@
module SymbolSpecs
class MyRange < Range; end
-end
+end
View
2  core/symbol/shared/slice.rb
@@ -259,4 +259,4 @@
:symbol.send(@method, "foo").should be_nil
end
end
-end
+end
View
2  core/symbol/slice_spec.rb
@@ -5,4 +5,4 @@
describe "Symbol#slice" do
it_behaves_like(:symbol_slice, :slice)
end
-end
+end
View
2  core/thread/initialize_spec.rb
@@ -1,2 +1,2 @@
require File.expand_path('../../../spec_helper', __FILE__)
-require File.expand_path('../fixtures/classes', __FILE__)
+require File.expand_path('../fixtures/classes', __FILE__)
View
2  core/time/_dump_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/methods', __FILE__)
View
2  language/constants_spec.rb
@@ -554,4 +554,4 @@ class ConstantVisibility::PrivConstClass::PRIVATE_CONSTANT_CLASS; end
end
end
-end
+end
View
6 language/encoding_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../spec_helper', __FILE__)
require File.expand_path('../fixtures/coding_us_ascii', __FILE__)
require File.expand_path('../fixtures/coding_utf_8', __FILE__)
@@ -19,10 +19,10 @@
end
it "is the encoding specified by a magic comment inside an eval" do
- code = "# coding: ASCII-8BIT\n__ENCODING__".force_encoding("US-ASCII")
+ code = "# encoding: ASCII-8BIT\n__ENCODING__".force_encoding("US-ASCII")
eval(code).should == Encoding::ASCII_8BIT
- code = "# coding: US-ASCII\n__ENCODING__".force_encoding("ASCII-8BIT")
+ code = "# encoding: US-ASCII\n__ENCODING__".force_encoding("ASCII-8BIT")
eval(code).should == Encoding::US_ASCII
end
View
2  language/fixtures/coding_us_ascii.rb
@@ -1,4 +1,4 @@
-# coding: US-ASCII
+# encoding: US-ASCII
module CodingUS_ASCII
def self.encoding
View
2  language/fixtures/coding_utf_8.rb
@@ -1,4 +1,4 @@
-# coding: UTF-8
+# encoding: UTF-8
module CodingUTF_8
def self.encoding
View
2  language/fixtures/constant_visibility.rb
@@ -75,4 +75,4 @@ def self.reset_private_constants
class Object
PRIVATE_CONSTANT_IN_OBJECT = true
private_constant :PRIVATE_CONSTANT_IN_OBJECT
-end
+end
View
12 language/magic_comment_spec.rb
@@ -8,7 +8,7 @@
it "determines __ENCODING__" do
eval(<<EOS.force_encoding("US-ASCII")).should == Encoding::ASCII_8BIT
-# coding: ASCII-8BIT
+# encoding: ASCII-8BIT
__ENCODING__
EOS
end
@@ -23,18 +23,18 @@
it "must be at the first line" do
eval(<<EOS.force_encoding("US-ASCII")).should == Encoding::US_ASCII
-# coding: ASCII-8BIT
+# encoding: ASCII-8BIT
__ENCODING__
EOS
end
it "must be the first token of the line" do
eval(<<EOS.force_encoding("US-ASCII")).should == Encoding::US_ASCII
-1+1 # coding: ASCII-8BIT
+1+1 # encoding: ASCII-8BIT
__ENCODING__
EOS
eval(<<EOS.force_encoding("US-ASCII")).should == Encoding::ASCII_8BIT
- # coding: ASCII-8BIT
+ # encoding: ASCII-8BIT
__ENCODING__
EOS
end
@@ -42,14 +42,14 @@
it "can be after the shebang" do
eval(<<EOS.force_encoding("US-ASCII")).should == Encoding::ASCII_8BIT
#!/usr/bin/ruby -Ku
-# coding: ASCII-8BIT
+# encoding: ASCII-8BIT
__ENCODING__
EOS
end
it "can take Emacs style" do
eval(<<EOS.force_encoding("US-ASCII")).should == Encoding::ASCII_8BIT
-# -*- coding: ascii-8bit -*-
+# -*- encoding: ascii-8bit -*-
__ENCODING__
EOS
end
View
2  language/regexp/encoding_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)
View
2  language/regexp/escapes_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)
View
2  library/digest/md5/shared/constants.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require 'digest/md5'
module MD5Constants
View
2  library/digest/sha1/shared/constants.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require 'digest/sha1'
module SHA1Constants
View
2  library/digest/sha256/shared/constants.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require 'digest/sha2'
module SHA256Constants
View
2  library/digest/sha384/shared/constants.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require 'digest/sha2'
module SHA384Constants
View
2  library/digest/sha512/shared/constants.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require 'digest/sha2'
module SHA512Constants
View
2  library/matrix/eigenvalue_decomposition/eigenvalue_matrix_spec.rb
@@ -8,4 +8,4 @@
Matrix[[1, 1], [-1, 1]].eigensystem.eigenvalue_matrix.should == Matrix[[Complex(1,1), 0],[0, Complex(1,-1)]]
end
end
-end
+end
View
2  library/matrix/eigenvalue_decomposition/eigenvalues_spec.rb
@@ -21,4 +21,4 @@
[ 2, 6 ]
end
end
-end
+end
View
2  library/matrix/eigenvalue_decomposition/eigenvector_matrix_spec.rb
@@ -19,4 +19,4 @@
[-0.7071067811865475, 0.7071067811865475]]
end
end
-end
+end
View
2  library/matrix/eigenvalue_decomposition/eigenvectors_spec.rb
@@ -21,4 +21,4 @@
]
end
end
-end
+end
View
2  library/matrix/eigenvalue_decomposition/initialize_spec.rb
@@ -18,4 +18,4 @@
}.should raise_error(Matrix::ErrDimensionMismatch)
end
end
-end
+end
View
2  library/matrix/eigenvalue_decomposition/to_a_spec.rb
@@ -17,4 +17,4 @@
(v * d * v_inv).map{|e| e.round(10)}.should == @a
end
end
-end
+end
View
2  library/matrix/fixtures/classes.rb
@@ -4,4 +4,4 @@ class MatrixSub < Matrix
def self.ins
rows([[1, 0], [0, 1]])
end
-end
+end
View
2  library/matrix/lup_decomposition/initialize_spec.rb
@@ -12,4 +12,4 @@
}.should raise_error(TypeError)
end
end
-end
+end
View
2  library/matrix/lup_decomposition/l_spec.rb
@@ -17,4 +17,4 @@
@l.lower_triangular?.should be_true
end
end
-end
+end
View
2  library/matrix/lup_decomposition/to_a_spec.rb
@@ -22,4 +22,4 @@
it "has other properties implied by the specs of #l, #u and #p"
end
-end
+end
View
2  library/matrix/lup_decomposition/u_spec.rb
@@ -17,4 +17,4 @@
@u.upper_triangular?.should be_true
end
end
-end
+end
View
2  library/matrix/round_spec.rb
@@ -22,4 +22,4 @@
end
end
end
-end
+end
View
2  library/openssl/shared/constants.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
module HMACConstants
Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \nIt has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \nIt was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
View
2  library/openssl/x509/name/parse_spec.rb
@@ -45,4 +45,4 @@
OpenSSL::X509::Name.parse("hello=goodbye")
end.should raise_error(OpenSSL::X509::NameError)
end
-end
+end
View
2  library/socket/basicsocket/recv_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)
View
2  library/socket/socket/gethostbyname_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)
View
2  library/stringio/external_encoding.rb
@@ -9,4 +9,4 @@
io.external_encoding.should == Encoding::UTF8
end
end
-end
+end
View
2  library/stringio/internal_encoding.rb
@@ -9,4 +9,4 @@
io.internal_encoding.should == nil
end
end
-end
+end
View
2  library/stringio/set_encoding.rb
@@ -9,4 +9,4 @@
io.string.encoding.should == Encoding::UTF8
end
end
-end
+end
View
2  library/zlib/deflate/deflate_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require 'zlib'
require File.expand_path('../../../../spec_helper', __FILE__)
View
2  library/zlib/deflate/set_dictionary_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
require 'zlib'
View
2  library/zlib/inflate/append_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
require 'zlib'
View
2  library/zlib/inflate/inflate_spec.rb
@@ -1,4 +1,4 @@
-# -*- coding: US-ASCII -*-
+# -*- encoding: US-ASCII -*-
require 'zlib'
require File.expand_path('../../../../spec_helper', __FILE__)
Please sign in to comment.
Something went wrong with that request. Please try again.