packages feed

iridium 0.1.5.3 → 0.1.5.4

raw patch · 4 files changed

+11/−7 lines, 4 filesdep −unsafePVP ok

version bump matches the API change (PVP)

Dependencies removed: unsafe

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for iridium +## 0.1.5.4  -- 2016-05-21++  * Fix git branch parsing issue+ ## 0.1.5.3  -- 2016-04-22    * Include `cabal update` invocation by default
iridium.cabal view
@@ -1,5 +1,5 @@ name:                iridium-version:             0.1.5.3+version:             0.1.5.4 synopsis:            Automated Testing and Package Uploading license:             BSD3 license-file:        LICENSE@@ -75,7 +75,6 @@     , turtle                 >=1.2.5    && <1.3     , text                   >=1.2.2.0  && <1.3     , containers             >=0.5.5.1  && <0.6-    , unsafe                 >=0.0      && <0.1     , transformers           >=0.3.0.0  && <0.5     , system-filepath        >=0.4.13.4 && <0.5     , unordered-containers   >=0.2.5.1  && <0.3
src/Development/Iridium/Repo/Git.hs view
@@ -32,12 +32,14 @@ instance Repo GitImpl where   repo_retrieveInfo = do     branchStringRaw <- runCommandStdOut "git" ["branch"]-    case branchStringRaw of-      ('*':' ':branchName) ->-        return $ GitImpl $ takeWhile (`notElem` "\n\r") branchName-      _ -> do+    let branchNamePred ('*':' ':branchName) = Just branchName+        branchNamePred _ = Nothing+    case firstJust branchNamePred $ lines branchStringRaw of+      Nothing -> do         pushLog LogLevelError "Could not parse current git branch name."         mzero+      Just branchName ->+        return $ GitImpl $ branchName   repo_runChecks _git = withStack "[git]" $ do     pushLog LogLevelPrint "[git]"     withIndentation $ do
src/Development/Iridium/UI/Console.hs view
@@ -16,7 +16,6 @@   -import qualified System.Unsafe as Unsafe import           Data.IORef import           Control.Monad import           Control.Monad.IO.Class