Skip to content

Commit 0d9f04c

Browse files
authored
Merge pull request #97 from ararslan/aa/dates
Fix for Dates moving to stdlib
2 parents b05bf0c + 2462381 commit 0d9f04c

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

src/GitHub.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ __precompile__()
33
module GitHub
44

55
using Compat
6+
using Compat.Dates
7+
8+
if VERSION >= v"0.7.0-DEV.2338"
9+
using Base64
10+
end
611

712
##########
813
# import #

test/auth_tests.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using GitHub
2-
using MbedTLS
31
correct_jwt = replace("""
42
eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.
53
eyJleHAiOjE0NzM5NDgwNjAsImlhdCI6MTQ3Mzk0ODAwMCwiaXNzIjoxMjM0fQ.

test/event_tests.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
using GitHub
2-
using Base.Test
3-
41
include("commit_comment.jl")
52
event_request = create_event()
63
event_json = JSON.parse(String(event_request))

test/ghtype_tests.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
import JSON
2-
using GitHub, GitHub.name, GitHub.Branch
3-
import HTTP
4-
using Base.Test
5-
61
# This file tests various GitHubType constructors. To test for proper Nullable
72
# handling, most fields have been removed from the JSON samples used below.
83
# Sample fields were selected in order to cover the full range of type behavior,

test/read_only_api_tests.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
using GitHub, GitHub.name
2-
using Base.Test
3-
using MbedTLS
41
# The below tests are network-dependent, and actually make calls to GitHub's
52
# API. They're all read-only, meaning none of them require authentication.
63

test/runtests.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
using GitHub, JSON, HTTP, MbedTLS
2+
using Compat, Compat.Dates, Compat.Test
3+
using GitHub: Branch, name
4+
5+
if VERSION >= v"0.7.0-DEV.2338"
6+
using Base64
7+
end
8+
19
include("ghtype_tests.jl")
210
include("event_tests.jl")
311
include("read_only_api_tests.jl")

0 commit comments

Comments
 (0)