Skip to content

Commit

Permalink
v0.25.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian committed Feb 4, 2020
1 parent d534c09 commit 368b7a9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Genie"
uuid = "c43c736e-a2d1-11e8-161f-af95117fbd1e"
authors = ["Adrian Salceanu <[email protected]>"]
version = "0.25.3"
version = "0.25.4"

[deps]
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Core genie configuration / settings functionality.
"""
module Configuration

const GENIE_VERSION = v"0.25.3"
const GENIE_VERSION = v"0.25.4"

import Logging
import Genie
Expand Down
4 changes: 2 additions & 2 deletions src/Generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const JULIA_PATH = joinpath(Sys.BINDIR, "julia")
Generates a new Genie controller file and persists it to the resources folder.
"""
function newcontroller(resource_name::String; path::String = ".", pluralize::Bool = true, mvc_support::Bool = true) :: Nothing
function newcontroller(resource_name::String; path::Union{String,Nothing} = nothing, pluralize::Bool = true) :: Nothing
Genie.Inflector.is_singular(resource_name) && pluralize && (resource_name = Genie.Inflector.to_plural(resource_name))
resource_name = uppercasefirst(resource_name)

resource_path = mvc_support ? setup_resource_path(resource_name, path = path) : (ispath(path) ? path : mkpath(path))
resource_path = path === nothing ? setup_resource_path(resource_name, path = ".") : (ispath(path) ? path : mkpath(path))
cfn = controller_file_name(resource_name)
write_resource_file(resource_path, cfn, resource_name, :controller, pluralize = pluralize) &&
@info "New controller created at $(abspath(joinpath(resource_path, cfn)))"
Expand Down
4 changes: 2 additions & 2 deletions src/genie_module.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import REPL, REPL.Terminals
Creates a new `controller` file. If `pluralize` is `false`, the name of the controller is not automatically pluralized.
"""
function newcontroller(controller_name::Union{String,Symbol}; path::String = ".", pluralize::Bool = true, mvc_support::Bool = false) :: Nothing
Generator.newcontroller(string(controller_name), path = path, pluralize = pluralize, mvc_support = mvc_support)
function newcontroller(controller_name::Union{String,Symbol}; path::Union{String,Nothing} = nothing, pluralize::Bool = true) :: Nothing
Generator.newcontroller(string(controller_name), path = path, pluralize = pluralize)
load_resources()

nothing
Expand Down

2 comments on commit 368b7a9

@essenciary
Copy link
Member

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/8863

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 Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.25.4 -m "<description of version>" 368b7a9432b8ccba72229eb6e5f7536ba35f1af6
git push origin v0.25.4

Please sign in to comment.