-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/compiler_options
- Loading branch information
Showing
9 changed files
with
66 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: vicr | ||
version: 0.3.1 | ||
version: 0.4.0 | ||
|
||
authors: | ||
- Vitalii Elenhaupt <velenhaupt@gmail.com> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require "../spec_helper" | ||
|
||
module Vicr | ||
describe CarcIn do | ||
describe ".raw" do | ||
it "returns path to raw file on carc.in" do | ||
CarcIn.raw("https://carc.in/#/r/rlc") | ||
.should eq "https://carc.in/runs/rlc.cr" | ||
end | ||
|
||
it "returns nil if this is not carc.in path" do | ||
CarcIn.raw("https://github.com/test/test.cr").should be_nil | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require "../spec_helper" | ||
|
||
module Vicr | ||
describe Github do | ||
describe ".raw" do | ||
it "returns path to raw file on github" do | ||
Github.raw("https://github.com/user/repo/blob/master/file.cr") | ||
.should eq "https://raw.githubusercontent.com/user/repo/master/file.cr" | ||
end | ||
|
||
it "returns nil if this is not github path" do | ||
Github.raw("https://example.com/user/repo/blob/master/file.cr") | ||
.should eq nil | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
require "./spec_helper" | ||
|
||
describe Vicr do | ||
# TODO: Write tests | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Vicr | ||
module CarcIn | ||
extend self | ||
|
||
def raw(path : String) | ||
if md = path.match /carc.in\/.*\/.*\/(.*)/ | ||
"https://carc.in/runs/#{md[1]}.cr" | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Vicr | ||
VERSION = "0.3.1" | ||
VERSION = "0.4.0" | ||
end |