Skip to content

Commit

Permalink
v0.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Salceanu committed Sep 25, 2019
1 parent df1226e commit f914f75
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 34 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.18.1 - 2019-09-25

* fixes an issue with parsing JSON payloads
* deps updates

## v0.18.0 - 2019-09-20

* pluralized some of the folders for consistent naming: sessions, tasks, and tests
Expand Down
8 changes: 4 additions & 4 deletions Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ version = "0.21.0"

[[JuliaInterpreter]]
deps = ["CodeTracking", "InteractiveUtils", "Random", "UUIDs"]
git-tree-sha1 = "5020abc08c5c9f7d47ec7e861309bc79ed74aec7"
git-tree-sha1 = "5450b881f1adaec498cd7facf05abdf57722618b"
uuid = "aa1ae85d-cabe-5617-a682-6adf51b2e16a"
version = "0.7.2"
version = "0.7.3"

[[LibGit2]]
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
Expand Down Expand Up @@ -185,9 +185,9 @@ version = "0.2.0"

[[Revise]]
deps = ["CodeTracking", "Distributed", "FileWatching", "JuliaInterpreter", "LibGit2", "LoweredCodeUtils", "OrderedCollections", "Pkg", "REPL", "UUIDs", "Unicode"]
git-tree-sha1 = "3ea49472d265bc250bb14100ba54090fcf11e9e6"
git-tree-sha1 = "2e5e1ec94098cd4866ba157be54f7e166f1c56d5"
uuid = "295af30f-e4ad-537b-8983-00126c2a3abe"
version = "2.1.10"
version = "2.2.0"

[[SHA]]
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
Expand Down
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.18.0"
version = "0.18.1"

[deps]
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
Expand Down
14 changes: 0 additions & 14 deletions docs/src/helpers.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/src/loggers.md

This file was deleted.

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.18.0"
const GENIE_VERSION = v"0.18.1"

using Logging
using YAML
Expand Down
19 changes: 15 additions & 4 deletions src/Requests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,27 @@ export infilespayload, download, filename, payload, read


"""
jsonpayload() :: Dict{String,Any}
jsonpayload()
Processes an `application/json` `POST` request attempting to convert the payload into a `Dict`.
If it fails to successfully parse the `JSON` data this returns `nothing`. The original payload can still be accessed invoking `rawpayload()`
Processes an `application/json` `POST` request.
If it fails to successfully parse the `JSON` data it returns `nothing`. The original payload can still be accessed invoking `rawpayload()`
"""
@inline function jsonpayload() :: Dict{String,Any}
@inline function jsonpayload()
@params(Genie.PARAMS_JSON_PAYLOAD)
end


"""
jsonpayload(::Type{T}) where {T}
Processes an `application/json` `POST` request attempting to convert the payload into a value of type `T`.
If it fails to successfully parse and convert the `JSON` data, it throws an exception. The original payload can still be accessed invoking `rawpayload()`
"""
@inline function jsonpayload(::Type{T}) where {T}
@params(Genie.PARAMS_JSON_PAYLOAD)::T
end


"""
rawpayload() :: String
Expand Down

2 comments on commit f914f75

@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/3818

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

Please sign in to comment.