Skip to content

Commit ba986cd

Browse files
committed
Change APITools -> ModuleInterfaceTools
1 parent da7f0de commit ba986cd

File tree

7 files changed

+19
-19
lines changed

7 files changed

+19
-19
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ git:
2727

2828
## uncomment the following lines to override the default test script
2929
script:
30-
- julia -e 'VERSION < v"0.7.0-DEV" || (using Pkg); Pkg.clone(pwd()); Pkg.test("APITools"; coverage=true)'
30+
- julia -e 'VERSION < v"0.7.0-DEV" || (using Pkg); Pkg.clone(pwd()); Pkg.test("ModuleInterfaceTools"; coverage=true)'
3131
after_success:
3232
# push coverage results to Coveralls
33-
- julia -e 'VERSION < v"0.7.0-DEV" || (using Pkg); cd(Pkg.dir("APITools")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
33+
- julia -e 'VERSION < v"0.7.0-DEV" || (using Pkg); cd(Pkg.dir("ModuleInterfaceTools")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
3434
# push coverage results to Codecov
35-
- julia -e 'VERSION < v"0.7.0-DEV" || (using Pkg); cd(Pkg.dir("APITools")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
35+
- julia -e 'VERSION < v"0.7.0-DEV" || (using Pkg); cd(Pkg.dir("ModuleInterfaceTools")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The APITools.jl package is licensed under the MIT "Expat" License:
1+
The ModuleInterfaceTools.jl package is licensed under the MIT "Expat" License:
22

33
Copyright (c) 2018: Gandalf Software, Inc. (Scott Paul Jones)
44

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# APITools
1+
# ModuleInterfaceTools
22

3-
[![Build Status](https://travis-ci.org/JuliaString/APITools.jl.svg?branch=master)](https://travis-ci.org/JuliaString/APITools.jl)
3+
[![Build Status](https://travis-ci.org/JuliaString/ModuleInterfaceTools.jl.svg?branch=master)](https://travis-ci.org/JuliaString/ModuleInterfaceTools.jl)
44

5-
[![Coverage Status](https://coveralls.io/repos/github/JuliaString/APITools.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaString/APITools.jl?branch=master)
5+
[![Coverage Status](https://coveralls.io/repos/github/JuliaString/ModuleInterfaceTools.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaString/ModuleInterfaceTools.jl?branch=master)
66

7-
[![codecov.io](http://codecov.io/github/JuliaString/APITools.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaString/APITools.jl?branch=master)
7+
[![codecov.io](http://codecov.io/github/JuliaString/ModuleInterfaceTools.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaString/ModuleInterfaceTools.jl?branch=master)
88

9-
The `APITools` package is now working on both the release version (v0.6.2) and the latest master (v0.7.0-DEV).
9+
The `ModuleInterfaceTools` package is now working on both the release version (v0.6.2) and the latest master (v0.7.0-DEV).
1010

1111
This provides a way of having different lists of names that you want to be part of a public API,
1212
as well as being part of a development API (i.e. functions that are not normally needed by users of a package, but *are* needed by a developer writing a package that depends on it).

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ build_script:
4141
# Need to convert from shallow to complete for Pkg.clone to work
4242
- IF EXIST .git\shallow (git fetch --unshallow)
4343
- C:\projects\julia\bin\julia -e "versioninfo();
44-
Pkg.clone(pwd(), \"APITools\"); Pkg.build(\"APITools\")"
44+
Pkg.clone(pwd(), \"ModuleInterfaceTools\"); Pkg.build(\"ModuleInterfaceTools\")"
4545

4646
test_script:
47-
- C:\projects\julia\bin\julia -e "Pkg.test(\"APITools\")"
47+
- C:\projects\julia\bin\julia -e "Pkg.test(\"ModuleInterfaceTools\")"

src/APITools.jl

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Licensed under MIT License, see LICENSE.md
88
99
(@def macro "stolen" from DiffEqBase.jl/src/util.jl :-) )
1010
"""
11-
module APITools
11+
module ModuleInterfaceTools
1212

1313
const debug = Ref(false)
1414

@@ -60,7 +60,7 @@ API(api::TMP_API) =
6060
SymList(api.public!), SymList(api.develop!), SymList(api.modules))
6161

6262
function Base.show(io::IO, api::AbstractAPI)
63-
println(io, "APITools.API: ", api.mod)
63+
println(io, "ModuleInterfaceTools.API: ", api.mod)
6464
for fld in (:base, :public, :develop, :public!, :develop!, :modules)
6565
syms = getfield(api, fld)
6666
isempty(syms) || println(fld, ": ", syms)
@@ -108,7 +108,7 @@ _api_display(mod, nam) =
108108
_api_list(mod::Module) = (_api_display(mod, :__api__) ; _api_display(mod, :__tmp_api__))
109109

110110
function _api_freeze(mod::Module)
111-
ex = :( global const __api__ = APITools.API(__tmp_api__) ; __tmp_api__ = nothing )
111+
ex = :( global const __api__ = ModuleInterfaceTools.API(__tmp_api__) ; __tmp_api__ = nothing )
112112
isdefined(mod, :__tmp_api__) && m_eval(mod, :( __tmp_api__ !== nothing ) ) && m_eval(mod, ex)
113113
nothing
114114
end
@@ -145,7 +145,7 @@ function _add_symbols(curmod, grp, exprs)
145145
isdefined(curmod, :__tmp_api__) && print(" => ", m_eval(curmod, :__tmp_api__))
146146
println()
147147
end
148-
ex = :( export @api, APITools ; global __tmp_api__ = APITools.TMP_API($curmod) )
148+
ex = :( export @api, ModuleInterfaceTools ; global __tmp_api__ = ModuleInterfaceTools.TMP_API($curmod) )
149149
isdefined(curmod, :__tmp_api__) || m_eval(curmod, ex)
150150
if grp == :base!
151151
for ex in exprs
@@ -292,7 +292,7 @@ function _do_list(curmod, cmd, api, mod, grp)
292292
try
293293
m_eval(curmod, exp)
294294
catch ex
295-
println("APITools: Error evaluating $exp")
295+
println("ModuleInterfaceTools: Error evaluating $exp")
296296
dump(exp)
297297
println(sprint(showerror, ex, catch_backtrace()))
298298
end
@@ -303,4 +303,4 @@ macro api(cmd::Symbol, exprs...)
303303
@static V6_COMPAT ? _api(current_module(), cmd, exprs) : _api(__module__, cmd, exprs)
304304
end
305305

306-
end # module APITools
306+
end # module ModuleInterfaceTools

test/APITest.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module APITest
2-
using APITools
2+
using ModuleInterfaceTools
33

44
@api base nextind, getindex, setindex!
55

test/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright 2018 Gandalf Software, Inc., Scott P. Jones
22
# Licensed under MIT License, see LICENSE.md
33

4-
using APITools
4+
using ModuleInterfaceTools
55

66
@static V6_COMPAT ? (using Base.Test) : (using Test)
77

0 commit comments

Comments
 (0)