hledger-api 1.2 → 1.3
raw patch · 6 files changed
+19/−13 lines, 6 filesdep ~hledgerdep ~hledger-lib
Dependency ranges changed: hledger, hledger-lib
Files
- CHANGES +8/−2
- doc/hledger-api.1 +1/−1
- doc/hledger-api.1.info +1/−1
- doc/hledger-api.1.txt +1/−1
- hledger-api.cabal +4/−4
- hledger-api.hs +4/−4
CHANGES view
@@ -2,14 +2,20 @@ See also the hledger and the project change logs. -# 1.2 (2016/3/31)+# 1.3 (2017/6/30) +Depends on hledger[-lib] 1.3, see related changelogs.+++# 1.2 (2017/3/31)+ see project changes at http://hledger.org/release-notes + # 1.1 (2016/12/31) - serves on 127.0.0.1 by default, --host option added (#432)- + Consistent with hledger-web: serves only local requests by default, use --host=IPADDR to change this.
doc/hledger-api.1 view
@@ -1,5 +1,5 @@ -.TH "hledger\-api" "1" "March 2017" "hledger\-api 1.2" "hledger User Manuals"+.TH "hledger\-api" "1" "June 2017" "hledger\-api 1.3" "hledger User Manuals"
doc/hledger-api.1.info view
@@ -3,7 +3,7 @@ File: hledger-api.1.info, Node: Top, Next: OPTIONS, Up: (dir) -hledger-api(1) hledger-api 1.2+hledger-api(1) hledger-api 1.3 ****************************** hledger-api is a simple web API server, intended to support client-side
doc/hledger-api.1.txt view
@@ -107,4 +107,4 @@ -hledger-api 1.2 March 2017 hledger-api(1)+hledger-api 1.3 June 2017 hledger-api(1)
hledger-api.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: hledger-api-version: 1.2+version: 1.3 synopsis: Web API server for the hledger accounting tool description: This is a simple web API server for hledger data. It comes with a series of simple client-side web app examples.@@ -44,10 +44,10 @@ executable hledger-api main-is: hledger-api.hs ghc-options: -threaded- cpp-options: -DVERSION="1.2"+ cpp-options: -DVERSION="1.3" build-depends:- hledger-lib >= 1.2 && < 1.3- , hledger >= 1.2 && < 1.3+ hledger-lib >= 1.3+ , hledger >= 1.3 , base >=4.8 && <5 , aeson , bytestring
hledger-api.hs view
@@ -35,12 +35,12 @@ import Hledger.Query import Hledger.Cli hiding (Reader, version) -hledgerApiVersion="1.2"+hledgerApiVersion="1.3" -- https://github.com/docopt/docopt.hs#readme doc :: Docopt doc = [docopt|-hledger-api 1.2+hledger-api 1.3 Serves hledger data and reports as a JSON web API. @@ -165,7 +165,7 @@ thisacctq = Acct $ accountNameToAccountRegex a -- includes subs return $ accountTransactionsReport ropts j q thisacctq -instance ToJSON ClearedStatus where toJSON = genericToJSON defaultOptions -- avoiding https://github.com/bos/aeson/issues/290+instance ToJSON Status where toJSON = genericToJSON defaultOptions -- avoiding https://github.com/bos/aeson/issues/290 instance ToJSON GenericSourcePos where toJSON = genericToJSON defaultOptions instance ToJSON Decimal where toJSON = toJSON . show@@ -203,7 +203,7 @@ ,"aparentname" .= toJSON (maybe "" aname $ aparent a) ,"asubs" .= toJSON (map toJSON $ asubs a) ]-instance ToSchema ClearedStatus+instance ToSchema Status instance ToSchema GenericSourcePos instance ToSchema Decimal where