summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES8
-rw-r--r--hledger-api.12
-rw-r--r--hledger-api.cabal21
-rw-r--r--hledger-api.hs6
-rw-r--r--hledger-api.info8
-rw-r--r--hledger-api.txt2
6 files changed, 28 insertions, 19 deletions
diff --git a/CHANGES b/CHANGES
index 0f42197..3f66626 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,10 @@
-User-visible changes in hledger-api. See also hledger, hledger-lib.
+User-visible changes in hledger-api.
+See also the hledger changelog.
+
+
+# 1.12 (2018/12/02)
+
+* use hledger 1.12
# 1.11.1 (2018/10/06)
diff --git a/hledger-api.1 b/hledger-api.1
index e9b9cf5..c75b24f 100644
--- a/hledger-api.1
+++ b/hledger-api.1
@@ -1,5 +1,5 @@
-.TH "hledger\-api" "1" "September 2018" "hledger\-api 1.11.1" "hledger User Manuals"
+.TH "hledger\-api" "1" "December 2018" "hledger\-api 1.12" "hledger User Manuals"
diff --git a/hledger-api.cabal b/hledger-api.cabal
index 1c0f7e0..5201312 100644
--- a/hledger-api.cabal
+++ b/hledger-api.cabal
@@ -1,11 +1,13 @@
--- This file has been generated from package.yaml by hpack version 0.28.2.
+cabal-version: 1.12
+
+-- This file has been generated from package.yaml by hpack version 0.31.0.
--
-- see: https://github.com/sol/hpack
--
--- hash: 10c56cc5ba020c666fc59a3e6ba0603b1b16b61e6c68786a06bb8572b1b87624
+-- hash: 2568034d40718576decaeee8d4cc375ed16568df787da9eef3ed8664bd3184ad
name: hledger-api
-version: 1.11.1
+version: 1.12
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.
@@ -26,15 +28,14 @@ license: GPL-3
license-file: LICENSE
tested-with: GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.3
build-type: Simple
-cabal-version: >= 1.10
extra-source-files:
CHANGES
+ README
examples/01.html
examples/02.html
hledger-api.1
- hledger-api.info
hledger-api.txt
- README
+ hledger-api.info
source-repository head
type: git
@@ -45,18 +46,18 @@ executable hledger-api
other-modules:
Paths_hledger_api
ghc-options: -threaded
- cpp-options: -DVERSION="1.11.1"
+ cpp-options: -DVERSION="1.12"
build-depends:
Decimal
, aeson
- , base >=4.8 && <4.12
+ , base >=4.8 && <4.13
, bytestring
, containers
, data-default >=0.5
, docopt
, either
- , hledger >=1.11.1 && <1.12
- , hledger-lib >=1.11.1 && <1.12
+ , hledger >=1.12 && <1.13
+ , hledger-lib >=1.12 && <1.13
, microlens >=0.4
, microlens-platform >=0.2.3.1
, safe
diff --git a/hledger-api.hs b/hledger-api.hs
index 0158331..1f4a1d1 100644
--- a/hledger-api.hs
+++ b/hledger-api.hs
@@ -37,12 +37,12 @@ import Text.Printf
import Hledger.Query
import Hledger.Cli hiding (Reader, version)
-hledgerApiVersion="1.11.1"
+hledgerApiVersion="1.12"
-- https://github.com/docopt/docopt.hs#readme
doc :: Docopt
doc = [docopt|
-hledger-api 1.11.1
+hledger-api 1.12
Serves hledger data and reports as a JSON web API.
@@ -170,6 +170,7 @@ instance ToJSON AmountStyle where toJSON = genericToJSON defaultOptions
instance ToJSON Side where toJSON = genericToJSON defaultOptions
instance ToJSON DigitGroupStyle where toJSON = genericToJSON defaultOptions
instance ToJSON MixedAmount where toJSON = genericToJSON defaultOptions
+instance ToJSON BalanceAssertion where toJSON = genericToJSON defaultOptions
instance ToJSON Price where toJSON = genericToJSON defaultOptions
instance ToJSON MarketPrice where toJSON = genericToJSON defaultOptions
instance ToJSON PostingType where toJSON = genericToJSON defaultOptions
@@ -213,6 +214,7 @@ instance ToSchema AmountStyle
instance ToSchema Side
instance ToSchema DigitGroupStyle
instance ToSchema MixedAmount
+instance ToSchema BalanceAssertion
instance ToSchema Price
#if MIN_VERSION_swagger2(2,1,5)
where declareNamedSchema = genericDeclareNamedSchemaUnrestricted defaultSchemaOptions
diff --git a/hledger-api.info b/hledger-api.info
index 08dcbc5..118e2ba 100644
--- a/hledger-api.info
+++ b/hledger-api.info
@@ -3,8 +3,8 @@ This is hledger-api.info, produced by makeinfo version 6.5 from stdin.

File: hledger-api.info, Node: Top, Next: OPTIONS, Up: (dir)
-hledger-api(1) hledger-api 1.11.1
-*********************************
+hledger-api(1) hledger-api 1.12
+*******************************
hledger-api is a simple web API server, intended to support client-side
web apps operating on hledger data. It comes with a series of simple
@@ -80,7 +80,7 @@ options as shown above.

Tag Table:
Node: Top72
-Node: OPTIONS1664
-Ref: #options1749
+Node: OPTIONS1660
+Ref: #options1745

End Tag Table
diff --git a/hledger-api.txt b/hledger-api.txt
index ab0e64d..fbe7a27 100644
--- a/hledger-api.txt
+++ b/hledger-api.txt
@@ -117,4 +117,4 @@ SEE ALSO
-hledger-api 1.11.1 September 2018 hledger-api(1)
+hledger-api 1.12 December 2018 hledger-api(1)