mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-02 07:26:18 +00:00
What is this, Lisp?
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -26,7 +26,7 @@ task :fetch_ace_modes do
|
|||||||
File.delete(ACE_FIXTURE_PATH) if File.exist?(ACE_FIXTURE_PATH)
|
File.delete(ACE_FIXTURE_PATH) if File.exist?(ACE_FIXTURE_PATH)
|
||||||
|
|
||||||
begin
|
begin
|
||||||
ace_github_modes = (open("https://api.github.com/repos/ajaxorg/ace/contents/lib/ace/mode").read)
|
ace_github_modes = open("https://api.github.com/repos/ajaxorg/ace/contents/lib/ace/mode").read
|
||||||
File.write(ACE_FIXTURE_PATH, ace_github_modes)
|
File.write(ACE_FIXTURE_PATH, ace_github_modes)
|
||||||
rescue OpenURI::HTTPError, SocketError
|
rescue OpenURI::HTTPError, SocketError
|
||||||
# no internet? no problem.
|
# no internet? no problem.
|
||||||
|
|||||||
Reference in New Issue
Block a user