Skip to content

Commit

Permalink
Rename package from GitRepl.jl to GitREPL.jl (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Mar 25, 2021
1 parent 7dad4ea commit 68bce3f
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 34 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ jobs:
- run: |
julia --project=docs -e '
using Documenter: DocMeta, doctest
using GitRepl
DocMeta.setdocmeta!(GitRepl, :DocTestSetup, :(using GitRepl); recursive=true)
doctest(GitRepl)'
using GitREPL
DocMeta.setdocmeta!(GitREPL, :DocTestSetup, :(using GitREPL); recursive=true)
doctest(GitREPL)'
- run: julia --project=docs docs/make.jl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "GitRepl"
name = "GitREPL"
uuid = "86bc0129-654e-4751-9b96-b173469afcbd"
authors = ["Dilum Aluthge", "contributors"]
version = "1.0.0"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# GitRepl
# GitREPL

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaVersionControl.github.io/GitRepl.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaVersionControl.github.io/GitRepl.jl/dev)
[![Build Status](https://github.com/JuliaVersionControl/GitRepl.jl/workflows/CI/badge.svg)](https://github.com/JuliaVersionControl/GitRepl.jl/actions)
[![Coverage](https://codecov.io/gh/JuliaVersionControl/GitRepl.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/JuliaVersionControl/GitRepl.jl)
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://JuliaVersionControl.github.io/GitREPL.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://JuliaVersionControl.github.io/GitREPL.jl/dev)
[![Build Status](https://github.com/JuliaVersionControl/GitREPL.jl/workflows/CI/badge.svg)](https://github.com/JuliaVersionControl/GitREPL.jl/actions)
[![Coverage](https://codecov.io/gh/JuliaVersionControl/GitREPL.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/JuliaVersionControl/GitREPL.jl)

## Git REPL mode

```julia
julia> using GitRepl
julia> using GitREPL

# Press , to enter the Git REPL mode

Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
GitRepl = "86bc0129-654e-4751-9b96-b173469afcbd"
GitREPL = "86bc0129-654e-4751-9b96-b173469afcbd"
14 changes: 7 additions & 7 deletions docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
using GitRepl
using GitREPL
using Documenter

DocMeta.setdocmeta!(GitRepl, :DocTestSetup, :(using GitRepl); recursive=true)
DocMeta.setdocmeta!(GitREPL, :DocTestSetup, :(using GitREPL); recursive=true)

makedocs(;
modules=[GitRepl],
modules=[GitREPL],
authors="Dilum Aluthge and contributors",
repo="https://github.com/JuliaVersionControl/GitRepl.jl/blob/{commit}{path}#{line}",
sitename="GitRepl.jl",
repo="https://github.com/JuliaVersionControl/GitREPL.jl/blob/{commit}{path}#{line}",
sitename="GitREPL.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://JuliaVersionControl.github.io/GitRepl.jl",
canonical="https://JuliaVersionControl.github.io/GitREPL.jl",
assets=String[],
),
pages=[
Expand All @@ -20,6 +20,6 @@ makedocs(;
)

deploydocs(;
repo="github.com/JuliaVersionControl/GitRepl.jl",
repo="github.com/JuliaVersionControl/GitREPL.jl",
devbranch="main",
)
8 changes: 4 additions & 4 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
```@meta
CurrentModule = GitRepl
CurrentModule = GitREPL
```

# GitRepl
# GitREPL

Documentation for [GitRepl](https://github.com/JuliaVersionControl/GitRepl.jl).
Documentation for [GitREPL](https://github.com/JuliaVersionControl/GitREPL.jl).

```@index
```

```@autodocs
Modules = [GitRepl]
Modules = [GitREPL]
```
6 changes: 3 additions & 3 deletions src/GitRepl.jl → src/GitREPL.jl
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
module GitRepl
module GitREPL

import Git
import ReplMaker

export gitrepl

const GIT_REPL_MODE_NAME = "GitRepl.jl Git REPL mode"
const GIT_REPL_MODE_NAME = "GitREPL.jl Git REPL mode"
const GIT_REPL_MODE_PROMPT_TEXT = "git> "
const GIT_REPL_MODE_START_KEY = ','

function _gitrepl_parser(repl_input::AbstractString)
return quote
repl_input = $(Expr(:quote, repl_input))
run(`$(GitRepl.Git.git()) $(split(repl_input))`)
run(`$(GitREPL.Git.git()) $(split(repl_input))`)
return nothing
end
end
Expand Down
18 changes: 9 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GitRepl
using GitREPL
using Test

function withtempdir(f::Function)
Expand All @@ -10,16 +10,16 @@ function withtempdir(f::Function)
return nothing
end

@testset "GitRepl.jl" begin
@testset "GitREPL.jl" begin
withtempdir() do tmp_dir
@test !isdir("GitRepl.jl")
@test !isfile(joinpath("GitRepl.jl", "Project.toml"))
expr = GitRepl._gitrepl_parser("clone https://github.com/JuliaVersionControl/GitRepl.jl")
@test !isdir("GitREPL.jl")
@test !isfile(joinpath("GitREPL.jl", "Project.toml"))
expr = GitREPL._gitrepl_parser("clone https://github.com/JuliaVersionControl/GitREPL.jl")
@test expr isa Expr
@test !isdir("GitRepl.jl")
@test !isfile(joinpath("GitRepl.jl", "Project.toml"))
@test !isdir("GitREPL.jl")
@test !isfile(joinpath("GitREPL.jl", "Project.toml"))
@eval $(expr)
@test isdir("GitRepl.jl")
@test isfile(joinpath("GitRepl.jl", "Project.toml"))
@test isdir("GitREPL.jl")
@test isfile(joinpath("GitREPL.jl", "Project.toml"))
end
end

2 comments on commit 68bce3f

@DilumAluthge
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/32839

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.0 -m "<description of version>" 68bce3ffded2fc4470180aa8ed8114c3cf15dd9f
git push origin v1.0.0

Please sign in to comment.