1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

File encoding is defaulted to utf-8 in Ruby >= 2.1

This commit is contained in:
Akira Matsuda 2015-09-18 17:05:05 +09:00
parent da737ba7b9
commit dcecbb4234
19 changed files with 0 additions and 29 deletions

View file

@ -1,5 +1,3 @@
# encoding: utf-8
module ActionDispatch
module Journey # :nodoc:
module NFA # :nodoc:

View file

@ -1,5 +1,3 @@
# encoding: utf-8
module ActionDispatch
module Journey # :nodoc:
class Format

View file

@ -1,5 +1,3 @@
# encoding: UTF-8
module ActionDispatch
# The routing module provides URL rewriting in native Ruby. It's a way to
# redirect incoming requests to controllers and actions. This replaces

View file

@ -1,4 +1,3 @@
# encoding: UTF-8
require 'abstract_unit'
module ActionDispatch

View file

@ -1,4 +1,3 @@
# encoding: utf-8
require "abstract_unit"
class NumberHelperTest < ActionView::TestCase

View file

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
require 'active_support/core_ext/array/conversions'
require 'active_support/core_ext/string/inflections'
require 'active_support/core_ext/object/deep_dup'

View file

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
module ActiveRecord
module NullRelation # :nodoc:
def exec_queries

View file

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
require "arel/collectors/bind"
module ActiveRecord

View file

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
require "cases/helper"
require 'support/schema_dumping_helper'

View file

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
require "cases/helper"
require 'models/post'
require 'models/author'

View file

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
require "cases/helper"
require 'models/owner'
require 'models/pet'

View file

@ -1,5 +1,3 @@
# encoding: utf-8
class Object
# An object is blank if it's false, empty, or a whitespace string.
# For example, +false+, '', ' ', +nil+, [], and {} are all blank.

View file

@ -1,5 +1,3 @@
# encoding: utf-8
require 'uri'
str = "\xE6\x97\xA5\xE6\x9C\xAC\xE8\xAA\x9E" # Ni-ho-nn-go in UTF-8, means Japanese.
parser = URI::Parser.new

View file

@ -1,5 +1,3 @@
# encoding: utf-8
require 'active_support/inflections'
module ActiveSupport

View file

@ -1,4 +1,3 @@
# encoding: utf-8
require 'active_support/core_ext/string/multibyte'
require 'active_support/i18n'

View file

@ -1,4 +1,3 @@
# encoding: utf-8
require 'active_support/json'
require 'active_support/core_ext/string/access'
require 'active_support/core_ext/string/behavior'

View file

@ -1,4 +1,3 @@
# encoding: utf-8
module ActiveSupport
module Multibyte
module Unicode

View file

@ -1,5 +1,3 @@
# encoding: utf-8
require 'redcarpet'
require 'nokogiri'
require 'rails_guides/markdown/renderer'

View file

@ -1,4 +1,3 @@
# coding:utf-8
require "isolation/abstract_unit"
require "active_support/core_ext/string/strip"