Skip to content

Commit

Permalink
bug fixes in env interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
aviaviavi committed Apr 16, 2018
1 parent d22d651 commit d77324d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions curl-runnings.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
--
-- see: https://github.com/sol/hpack
--
-- hash: 7a965c82a62329701b5df6f6c7db403b6958043edbe4ce08a6a84475e833e697
-- hash: 249e734681fdb8d0a482590af67f1d55c84e5704eb1725392aeef2e446c107ba

name: curl-runnings
version: 0.5.3
version: 0.5.4
synopsis: A framework for declaratively writing curl based API tests
description: Please see the README on Github at <https://github.com/aviaviavi/curl-runnings#readme>
category: Testing
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: curl-runnings
version: 0.5.3
version: 0.5.4
github: aviaviavi/curl-runnings
license: MIT
author: Avi Press
Expand Down
2 changes: 1 addition & 1 deletion src/Testing/CurlRunnings.hs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ runReplacements _ s@(String "") = Right s
runReplacements state (String s) =
case parseQuery s of
Right [LiteralText t] -> Right $ String t
Right [q@(InterpolatedQuery _ _)] -> getValueForQuery state q
Right [q@(InterpolatedQuery _ _)] -> getStringValueForQuery state q >>= (Right . String)
Right [q@(NonInterpolatedQuery _)] -> getValueForQuery state q
Right _ -> mapRight String $ interpolateQueryString state s
Left parseErr -> Left parseErr
Expand Down

0 comments on commit d77324d

Please sign in to comment.