Skip to content

Commit affcb77

Browse files
committed
updated to Julia v1.6 and fixed #1
1 parent 3934ca9 commit affcb77

File tree

9 files changed

+21
-6
lines changed

9 files changed

+21
-6
lines changed

appveyor.yml renamed to .appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ environment:
55
- julia_version: 1.2
66
- julia_Version: 1.3
77
- julia_version: 1.4
8+
- julia_Version: 1.5
9+
- julia_version: 1.6
810
- julia_version: nightly
911

1012
platform:

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ julia:
99
- 1.2
1010
- 1.3
1111
- 1.4
12+
- 1.5
13+
- 1.6
1214
- nightly
1315
notifications:
1416
email: false

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "VerTeX"
22
uuid = "cc48e778-429c-5593-b60f-2bcf41d5649c"
33
authors = ["Michael Reed"]
4-
version = "0.1.0"
4+
version = "0.1.1"
55

66
[deps]
77
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
@@ -15,7 +15,7 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
1515
[compat]
1616
julia = "1"
1717
Requires = "1"
18-
TerminalMenus = "0"
18+
TerminalMenus = "0.1"
1919

2020
[extras]
2121
LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
*Typeset scattered graph data rewriter based on LaTeX nodes*
44

5+
[![DOI](https://zenodo.org/badge/124144717.svg)](https://zenodo.org/badge/latestdoi/124144717)
56
[![Build Status](https://travis-ci.org/chakravala/VerTeX.jl.svg?branch=master)](https://travis-ci.org/chakravala/VerTeX.jl)
67
[![Build status](https://ci.appveyor.com/api/projects/status/8poc90nqimq5903s/branch/master?svg=true)](https://ci.appveyor.com/project/chakravala/vertex-jl/branch/master)
78
[![Coverage Status](https://coveralls.io/repos/chakravala/VerTeX.jl/badge.svg?branch=master&service=github)](https://coveralls.io/github/chakravala/VerTeX.jl?branch=master)
@@ -15,6 +16,7 @@ This enables research collaborators to maintain databases of LaTeX nodes. The `V
1516
This system can also generate graph diagrams depicting the inter-relationships and dependencies of definitions, theorems, calculations, references, and results.
1617

1718
For convenience, the `vtx>` REPL can be used by pressing the `,` key with commands such as `help,vim,pdf,status,dictionary,ranger,preview,search,cd,cdpkg`.
19+
The REPL code was adapted and modifed from the REPL code of [Pkg.jl](https://github.com/JuliaLang/Pkg.jl) using their [MIT](https://julialang.org/license) Julia license.
1820

1921
#### Requirements
2022

src/VerTeX.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function tex2dict(tex::String,data=nothing,disp=false,sav::Array=[])
113113
occursin(Regex(prereg),pre) && (pre = match(Regex("(?:"*prereg*")\\X+"),pre).match)
114114
pre = replace(pre,r"\n+$"=>"")
115115
## date check
116-
docre = rsplit(doc,"%rev:";limit=2)
116+
docre = isempty(doc) ? [SubString(doc)] : rsplit(doc,"%rev:";limit=2)
117117
if (length(docre) == 1)
118118
docdc = tim
119119
elseif occursin(r"%vtx:",docre[2])
@@ -362,12 +362,12 @@ function __init__()
362362
end
363363
end
364364
#@require GraphPlot="a2cc645c-3eea-5389-862e-a155d0052231"
365-
@require Compose="a81c6b42-2e10-5240-aca2-a61377ecd94b" begin
365+
#=@require Compose="a81c6b42-2e10-5240-aca2-a61377ecd94b" begin
366366
import LightGraphs, Cairo, GraphPlot
367367
function drawgraph(name="/tmp/vtx-data.pdf",manifest=manifest,dictionary=dictionary,index=collect(keys(dictionary)))
368368
Compose.draw(Compose.PDF(name,32Compose.cm,32Compose.cm),GraphPlot.gplot(makegraph(manifest,dictionary,index),nodelabel=index,layout=GraphPlot.circular_layout))
369369
end
370-
end
370+
end=#
371371
end
372372

373373
end # module

src/cmd.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This file is part of VerTeX.jl. It is licensed under the MIT license
33
# Copyright (C) 2019 Michael Reed
44

5+
# This file is adapted from Julia. License is MIT: https://julialang.org/license
6+
57
command_declarations = [
68
"package" => CommandDeclaration[
79
[ :kind => CMD_VIM,

src/completions.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
# This file is adapted from Julia. License is MIT: https://julialang.org/license
3+
14
function complete_local_path(s, i1, i2)
25
cmp = REPL.REPLCompletions.complete_path(s, i2)
36
completions = filter!(isdir, [REPL.REPLCompletions.completion_text(p) for p in cmp[1]])

src/repl.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ module REPLMode
33
# This file is part of VerTeX.jl. It is licensed under the MIT license
44
# Copyright (C) 2019 Michael Reed
55

6+
# This file is adapted from Julia. License is MIT: https://julialang.org/license
7+
68
using Markdown
79
using UUIDs, Pkg
810

911
import REPL
1012
import REPL: LineEdit, REPLCompletions
1113

12-
using Pkg.Types, Pkg.Display, Pkg.Operations
14+
using Pkg.Types, Pkg.Operations #, Pkg.Display
1315

1416
vtxerror(msg::String...) = throw(PkgError(join(msg)))
1517

src/specs.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# This file is part of VerTeX.jl. It is licensed under the MIT license
33
# Copyright (C) 2019 Michael Reed
44

5+
# This file is adapted from Julia. License is MIT: https://julialang.org/license
6+
57
#---------#
68
# Options #
79
#---------#

0 commit comments

Comments
 (0)