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

Use frozen string literal in guides/

This commit is contained in:
Koichi ITO 2017-08-13 22:02:48 +09:00
parent 788f46d486
commit 1f37d846a9
22 changed files with 42 additions and 0 deletions

View file

@ -92,6 +92,7 @@ Style/FrozenStringLiteralComment:
- 'actionmailer/**/*'
- 'actionview/**/*'
- 'actionpack/**/*'
- 'guides/**/*'
Exclude:
- 'actionview/test/**/*.builder'
- 'actionview/test/**/*.ruby'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
namespace :guides do
desc 'Generate guides (for authors), use ONLY=foo to process just "foo.md"'
task generate: "generate:html"

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
begin
require "bundler/inline"
rescue LoadError => e

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
$:.unshift __dir__
as_lib = File.expand_path("../activesupport/lib", __dir__)

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "set"
require "fileutils"

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "yaml"
module RailsGuides

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "active_support/core_ext/object/blank"
require "active_support/core_ext/string/inflections"

View file

@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
require "kindlerb"
require "nokogiri"

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module RailsGuides
module Levenshtein
# This code is based directly on the Text gem implementation.

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "redcarpet"
require "nokogiri"
require "rails_guides/markdown/renderer"

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
module RailsGuides
class Markdown
class Renderer < Redcarpet::Render::HTML

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
# ---------------------------------------------------------------------------
#
# This script validates the generated guides against the W3C Validator.