packages feed

google-drive 0.3.0 → 0.3.1

raw patch · 3 files changed

+8/−4 lines, 3 filesdep +hspec-expectations-lifteddep +timerepPVP ok

version bump matches the API change (PVP)

Dependencies added: hspec-expectations-lifted, timerep

API changes (from Hackage documentation)

+ Network.Google.Drive.File: folderMimeType :: Text
+ Network.Google.Drive.Search: instance QueryValue UTCTime

Files

google-drive.cabal view
@@ -1,5 +1,5 @@ Name:                   google-drive-Version:                0.3.0+Version:                0.3.1 Author:                 Pat Brisbin <pbrisbin@gmail.com> Maintainer:             Pat Brisbin <pbrisbin@gmail.com> License:                MIT@@ -37,6 +37,7 @@                       , resourcet                       , text                       , time+                      , timerep  Test-Suite spec   Type:                 exitcode-stdio-1.0@@ -46,6 +47,7 @@   Main-Is:              Spec.hs   Build-Depends:        base                       , hspec+                      , hspec-expectations-lifted                       , google-drive                       , google-oauth2                       , bytestring
src/Network/Google/Drive/File.hs view
@@ -34,6 +34,7 @@     , isFolder     , isDownloadable     , localPath+    , folderMimeType     ) where  import Network.Google.Api
src/Network/Google/Drive/Search.hs view
@@ -37,6 +37,8 @@ import Data.Monoid ((<>)) import Data.Text (Text) import Data.Text.Encoding (encodeUtf8)+import Data.Time (UTCTime, utc, utcToZonedTime)+import Data.Time.RFC3339 (showRFC3339)  import qualified Data.Text as T @@ -70,9 +72,8 @@     escapeValue True = "true"     escapeValue False = "false" --- TODO--- instance QueryValue UTCTime where--- RFC 3339 format, default timezone is UTC, e.g., 2012-06-04T12:00:00-08:00.+instance QueryValue UTCTime where+    escapeValue = T.pack . showRFC3339 . utcToZonedTime utc  newtype Items = Items [File]