lib/travis/cli/init.rb in travis-1.9.2.travis.1236.9 vs lib/travis/cli/init.rb in travis-1.9.2.travis.1254.9
- old
+ new
@@ -32,11 +32,11 @@
end
attr_writer :travis_config
def self.languages
- Dir[asset_path('init/*.yml')].map { |f| File.basename(f, '.yml') }.sort
+ asset_path('init/*.yml').map { |f| File.basename(f, '.yml') }.sort
end
def help
super("Available languages: #{self.class.languages.join(", ")}\n\n")
end
@@ -61,11 +61,11 @@
end
private
def template_name(language)
- asset_path "init/#{language}.yml"
+ asset_path("init/#{language}.yml").first
end
def template(language)
language = language.to_s.downcase
language = LANGUAGE_MAPPING[language] || language
@@ -77,6 +77,6 @@
def detect_language
repository.github_language || "Ruby"
end
end
end
-end
\ No newline at end of file
+end