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:
parent
788f46d486
commit
1f37d846a9
22 changed files with 42 additions and 0 deletions
|
@ -92,6 +92,7 @@ Style/FrozenStringLiteralComment:
|
|||
- 'actionmailer/**/*'
|
||||
- 'actionview/**/*'
|
||||
- 'actionpack/**/*'
|
||||
- 'guides/**/*'
|
||||
Exclude:
|
||||
- 'actionview/test/**/*.builder'
|
||||
- 'actionview/test/**/*.ruby'
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require "bundler/inline"
|
||||
rescue LoadError => e
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require "bundler/inline"
|
||||
rescue LoadError => e
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require "bundler/inline"
|
||||
rescue LoadError => e
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require "bundler/inline"
|
||||
rescue LoadError => e
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require "bundler/inline"
|
||||
rescue LoadError => e
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require "bundler/inline"
|
||||
rescue LoadError => e
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require "bundler/inline"
|
||||
rescue LoadError => e
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require "bundler/inline"
|
||||
rescue LoadError => e
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require "bundler/inline"
|
||||
rescue LoadError => e
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require "bundler/inline"
|
||||
rescue LoadError => e
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
begin
|
||||
require "bundler/inline"
|
||||
rescue LoadError => e
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
$:.unshift __dir__
|
||||
|
||||
as_lib = File.expand_path("../activesupport/lib", __dir__)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "set"
|
||||
require "fileutils"
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "yaml"
|
||||
|
||||
module RailsGuides
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "active_support/core_ext/object/blank"
|
||||
require "active_support/core_ext/string/inflections"
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "kindlerb"
|
||||
require "nokogiri"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RailsGuides
|
||||
module Levenshtein
|
||||
# This code is based directly on the Text gem implementation.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "redcarpet"
|
||||
require "nokogiri"
|
||||
require "rails_guides/markdown/renderer"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module RailsGuides
|
||||
class Markdown
|
||||
class Renderer < Redcarpet::Render::HTML
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
#
|
||||
# This script validates the generated guides against the W3C Validator.
|
||||
|
|
Loading…
Reference in a new issue