History

Use frozen_string_literal in all core filters

Thibaut Courouble committed 9 years ago

Commit f93ed261 parent 944702511 files · +22 −0Browse files

Unified · Split

11 files
  1. lib/docs/filters/core/attribution.rb +2 −0
  2. lib/docs/filters/core/clean_html.rb +2 −0
  3. lib/docs/filters/core/clean_local_urls.rb +2 −0
  4. lib/docs/filters/core/clean_text.rb +2 −0
  5. lib/docs/filters/core/container.rb +2 −0
  6. lib/docs/filters/core/entries.rb +2 −0
  7. lib/docs/filters/core/inner_html.rb +2 −0
  8. lib/docs/filters/core/internal_urls.rb +2 −0
  9. lib/docs/filters/core/normalize_paths.rb +2 −0
  10. lib/docs/filters/core/normalize_urls.rb +2 −0
  11. lib/docs/filters/core/title.rb +2 −0
lib/docs/filters/core/attribution.rb+2−0
@@ -1,3 +1,5 @@
1+# frozen_string_literal: true
2+
13 module Docs
24 class AttributionFilter < Filter
35 def call
lib/docs/filters/core/clean_html.rb+2−0
@@ -1,3 +1,5 @@
1+# frozen_string_literal: true
2+
13 module Docs
24 class CleanHtmlFilter < Filter
35 def call
lib/docs/filters/core/clean_local_urls.rb+2−0
@@ -1,3 +1,5 @@
1+# frozen_string_literal: true
2+
13 module Docs
24 class CleanLocalUrlsFilter < Filter
35 def call
lib/docs/filters/core/clean_text.rb+2−0
@@ -1,3 +1,5 @@
1+# frozen_string_literal: true
2+
13 module Docs
24 class CleanTextFilter < Filter
35 EMPTY_NODES_RGX = /<(?!td|th|iframe|mspace)(\w+)[^>]*>[[:space:]]*<\/\1>/
lib/docs/filters/core/container.rb+2−0
@@ -1,3 +1,5 @@
1+# frozen_string_literal: true
2+
13 module Docs
24 class ContainerFilter < Filter
35 class ContainerNotFound < StandardError; end
lib/docs/filters/core/entries.rb+2−0
@@ -1,3 +1,5 @@
1+# frozen_string_literal: true
2+
13 module Docs
24 class EntriesFilter < Filter
35 def call
lib/docs/filters/core/inner_html.rb+2−0
@@ -1,3 +1,5 @@
1+# frozen_string_literal: true
2+
13 module Docs
24 class InnerHtmlFilter < Filter
35 def call
lib/docs/filters/core/internal_urls.rb+2−0
@@ -1,3 +1,5 @@
1+# frozen_string_literal: true
2+
13 module Docs
24 class InternalUrlsFilter < Filter
35 def call
lib/docs/filters/core/normalize_paths.rb+2−0
@@ -1,3 +1,5 @@
1+# frozen_string_literal: true
2+
13 module Docs
24 class NormalizePathsFilter < Filter
35 def call
lib/docs/filters/core/normalize_urls.rb+2−0
@@ -1,3 +1,5 @@
1+# frozen_string_literal: true
2+
13 module Docs
24 class NormalizeUrlsFilter < Filter
35 ATTRIBUTES = { a: 'href', img: 'src', iframe: 'src' }
lib/docs/filters/core/title.rb+2−0
@@ -1,3 +1,5 @@
1+# frozen_string_literal: true
2+
13 module Docs
24 class TitleFilter < Filter
35 def call