Skip to content

Commit

Permalink
fix Clock constructors, use Reexport
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Feb 24, 2021
1 parent a8e0990 commit abf22bb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"

[compat]
Reexport = "^1"
Suppressor = "^0.2.0"
julia = "^1"
4 changes: 2 additions & 2 deletions src/Clock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ begin
end

# for backwards compat
Clock(interval=1, fixed=false, start_running=false) = Clock(interval, fixed, start_running, nothing)

Clock(interval; kwargs...) = Clock(interval=interval; kwargs...)

Clock(interval, fixed, start_running=false) = Clock(interval, fixed, start_running, nothing)

function Base.show(io::IO, ::MIME"text/html", clock::Clock)
# We split the HTML string into multiple files, but you could also write all of this into a single (long) string 🎈
Expand Down
14 changes: 9 additions & 5 deletions src/PlutoUI.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,24 @@ module PlutoUI
import Base: show, get
import Markdown: htmlesc, withtag

using Reexport

const PKG_ROOT_DIR = normpath(joinpath(@__DIR__, ".."))

include("./Builtins.jl")
include("./Clock.jl")
include("./Resource.jl")
include("./Terminal.jl")
include("./TableOfContents.jl")
include("./RangeSlider.jl")
include("./DisplayTricks.jl")

module ScrubbableNotebook
@reexport module TableOfContentsNotebook
include("./TableOfContents.jl")
end
@reexport module ClockNotebook
include("./Clock.jl")
end
@reexport module ScrubbableNotebook
include("./Scrubbable.jl")
end
import .ScrubbableNotebook: Scrubbable
export Scrubbable

end

2 comments on commit abf22bb

@fonsp
Copy link
Member Author

@fonsp fonsp commented on abf22bb Feb 24, 2021

Choose a reason for hiding this comment

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

@JuliaRegistrator register()

@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 updated: JuliaRegistries/General/30770

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 v0.7.2 -m "<description of version>" abf22bb145894c70ef2e87f945754989b296e7c3
git push origin v0.7.2

Please sign in to comment.