Butcher whitespace to appease tab-hating heretics

This commit is contained in:
Alhadis
2016-09-07 00:23:31 +10:00
parent 09612ae42e
commit 2a4150b104

View File

@@ -4,7 +4,6 @@ require "linguist"
require "json" require "json"
require "yaml" require "yaml"
class GrammarList class GrammarList
ROOT = File.expand_path "../../", __FILE__ ROOT = File.expand_path "../../", __FILE__
@@ -15,7 +14,6 @@ class GrammarList
@language_names = load_languages() @language_names = load_languages()
end end
# Load .gitmodules # Load .gitmodules
def load_submodules def load_submodules
submodules = {} submodules = {}
@@ -32,7 +30,6 @@ class GrammarList
submodules submodules
end end
# Grab the name of each language, sorted case-insensitively # Grab the name of each language, sorted case-insensitively
def load_languages def load_languages
Linguist::Language.all.map(&:name).sort do |a, b| Linguist::Language.all.map(&:name).sort do |a, b|
@@ -40,7 +37,6 @@ class GrammarList
end end
end end
# Load grammars.yml # Load grammars.yml
def load_sources def load_sources
sources = {} sources = {}
@@ -51,7 +47,6 @@ class GrammarList
sources sources
end end
# Shorten a repository URL # Shorten a repository URL
def shorten(url) def shorten(url)
if url =~ /^https?:\/\/(?:www\.)?github\.com\/([^\/]+\/[^\/]+)/i if url =~ /^https?:\/\/(?:www\.)?github\.com\/([^\/]+\/[^\/]+)/i
@@ -63,7 +58,6 @@ class GrammarList
end end
end end
# Markdown: Generate grammar list # Markdown: Generate grammar list
def to_markdown def to_markdown
markdown = "" markdown = ""
@@ -94,7 +88,6 @@ class GrammarList
markdown markdown
end end
# Update the file displaying the reader-friendly list of grammar repos # Update the file displaying the reader-friendly list of grammar repos
def update_readme def update_readme
readme = "#{ROOT}/vendor/README.md" readme = "#{ROOT}/vendor/README.md"
@@ -104,6 +97,5 @@ class GrammarList
end end
end end
list = GrammarList.new list = GrammarList.new
puts list.update_readme() puts list.update_readme()