Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/twine.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Celis <sebastian@sebastiancelis.com>2016-12-15 02:13:25 +0300
committerGitHub <noreply@github.com>2016-12-15 02:13:25 +0300
commitfdda09ca3cb74f0aa358631e16c0417c83cce63e (patch)
treed5af19f6ae25cb5eacbb0d1a70d3385708cf91be /lib/twine/formatters/jquery.rb
parent9fc741c26122d90f99c42c8241e6de2ba265a102 (diff)
parent47e95e6db71303040946383329f0d2ec461cab27 (diff)
Merge pull request #178 from sebastianludwig/can-handle-directory-default-and-formatting
Minor improvements and a little cleanup
Diffstat (limited to 'lib/twine/formatters/jquery.rb')
-rw-r--r--lib/twine/formatters/jquery.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/twine/formatters/jquery.rb b/lib/twine/formatters/jquery.rb
index bfe8d4c..658b4d2 100644
--- a/lib/twine/formatters/jquery.rb
+++ b/lib/twine/formatters/jquery.rb
@@ -9,12 +9,8 @@ module Twine
'.json'
end
- def can_handle_directory?(path)
- Dir.entries(path).any? { |item| /^.+\.json$/.match(item) }
- end
-
def default_file_name
- return 'localize.json'
+ 'localize.json'
end
def determine_language_given_path(path)