Hello community, here is the log from the commit of package ghc-kawhi for openSUSE:Factory checked in at 2017-06-04 01:54:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-kawhi (Old) and /work/SRC/openSUSE:Factory/.ghc-kawhi.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-kawhi" Sun Jun 4 01:54:31 2017 rev:2 rq:494170 version:0.2.3 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-kawhi/ghc-kawhi.changes 2017-03-31 15:07:15.239330624 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-kawhi.new/ghc-kawhi.changes 2017-06-04 01:54:33.276909504 +0200 @@ -1,0 +2,10 @@ +Wed May 3 08:14:07 UTC 2017 - [email protected] + +- Update to version 0.2.3 with cabal2obs. + +------------------------------------------------------------------- +Mon Apr 24 12:26:33 UTC 2017 - [email protected] + +- Update to version 0.2.2 with cabal2obs. + +------------------------------------------------------------------- Old: ---- kawhi-0.2.1.tar.gz New: ---- kawhi-0.2.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-kawhi.spec ++++++ --- /var/tmp/diff_new_pack.BZ5KbA/_old 2017-06-04 01:54:34.120790280 +0200 +++ /var/tmp/diff_new_pack.BZ5KbA/_new 2017-06-04 01:54:34.124789715 +0200 @@ -19,7 +19,7 @@ %global pkg_name kawhi %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.2.1 +Version: 0.2.3 Release: 0 Summary: Stats.NBA.com library License: MIT ++++++ kawhi-0.2.1.tar.gz -> kawhi-0.2.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kawhi-0.2.1/README.md new/kawhi-0.2.3/README.md --- old/kawhi-0.2.1/README.md 2016-08-04 04:02:15.000000000 +0200 +++ new/kawhi-0.2.3/README.md 2017-04-20 05:53:21.000000000 +0200 @@ -1,6 +1,6 @@ # Kawhi : stats.NBA.com library 🏀 -[](https://hackage.haskell.org/package/kawhi) [](https://travis-ci.org/hamsterdam/kawhi) +[](https://hackage.haskell.org/package/kawhi) [](https://travis-ci.org/thunky-monk/kawhi) A Haskell library for working with [NBA Stats](http://stats.nba.com) data. NBA Stats contains rich data, but accessing it is difficult and tedious. Kawhi helps to automate the data retrieval, allowing users to focus on statistics. @@ -11,5 +11,5 @@ To get started: 1. [Get Haskell](https://haskell-lang.org/get-started). If you've never done any computer programming, this could be challenging. [Never give up!](https://www.instagram.com/p/BENA9hpN_wL/) -2. Read the [guide](https://github.com/hamsterdam/kawhi/blob/master/guide.md). -3. Check out the [example](https://github.com/hamsterdam/kawhi/tree/master/example). +2. Read the [guide](https://github.com/thunky-monk/kawhi/blob/master/guide.md). +3. Check out the [example](https://github.com/thunky-monk/kawhi/tree/master/example). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kawhi-0.2.1/changelog.md new/kawhi-0.2.3/changelog.md --- old/kawhi-0.2.1/changelog.md 2016-09-16 02:17:30.000000000 +0200 +++ new/kawhi-0.2.3/changelog.md 2017-04-24 01:04:24.000000000 +0200 @@ -1,5 +1,15 @@ # Changelog +## 0.2.3 + +Add HTTP `Referer` header to all requests. + +*This may not be added versions greater than `0.2.*`, because `0.3.0` allows users to independently retrieve data from NBA Stats.* + +## 0.2.2 + +Updated to add HTTP headers required by NBA Stats. + ## 0.2.1 Updated to support [aeson-1.0.0.0](https://hackage.haskell.org/package/aeson-1.0.0.0). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kawhi-0.2.1/kawhi.cabal new/kawhi-0.2.3/kawhi.cabal --- old/kawhi-0.2.1/kawhi.cabal 2016-09-16 02:17:30.000000000 +0200 +++ new/kawhi-0.2.3/kawhi.cabal 2017-04-24 01:04:22.000000000 +0200 @@ -1,8 +1,8 @@ name: kawhi -version: 0.2.1 +version: 0.2.3 synopsis: stats.NBA.com library description: Functions and types for interacting with stats.NBA.com -homepage: https://github.com/hamsterdam/kawhi +homepage: https://github.com/thunky-monk/kawhi license: MIT license-file: LICENSE author: Aaron Taylor @@ -63,4 +63,4 @@ source-repository head type: git - location: https://github.com/hamsterdam/kawhi + location: https://github.com/thunky-monk/kawhi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kawhi-0.2.1/library/Data/NBA/Stats.hs new/kawhi-0.2.3/library/Data/NBA/Stats.hs --- old/kawhi-0.2.1/library/Data/NBA/Stats.hs 2016-08-11 02:59:13.000000000 +0200 +++ new/kawhi-0.2.3/library/Data/NBA/Stats.hs 2017-04-24 01:04:24.000000000 +0200 @@ -49,6 +49,7 @@ import Data.Monoid ((<>)) import qualified Data.Text as Text import qualified Network.HTTP.Client as HTTP +import qualified Network.HTTP.Simple as HTTP import qualified Safe {- | @@ -248,14 +249,18 @@ get :: (MonadHttp.MonadHttp m, Catch.MonadThrow m) => StatsPath -> StatsParameters -> m (HTTP.Response LBS.ByteString) -get path params = do - request <- HTTP.parseRequest $ Char8.unpack $ "http://stats.nba.com/stats/" <> path - MonadHttp.performRequest $ HTTP.setQueryString params request +get path params = + modifyRequest <$> HTTP.parseRequest (Char8.unpack $ "http://stats.nba.com/stats/" <> path) + >>= MonadHttp.performRequest + where + modifyRequest = + HTTP.setRequestHeaders [("Accept-Language","en-us"), ("Accept", "application/json"), ("Referer", "stats.nba.com")] + . HTTP.setQueryString params {- $use The following is a working example of getting some "advanced statistics", split by month, for the San Antonio Spurs 2015-2016 regular season. - To learn how to find the NBA Stats values, like 'teamdashboardbygeneralsplits', for this example, read the <https://github.com/hamsterdam/kawhi/blob/master/guide.md guide>. + To learn how to find the NBA Stats values, like 'teamdashboardbygeneralsplits', for this example, read the <https://github.com/thunky-monk/kawhi/blob/master/guide.md guide>. @ import qualified Data.Aeson as Aeson diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kawhi-0.2.1/stack.yaml new/kawhi-0.2.3/stack.yaml --- old/kawhi-0.2.1/stack.yaml 2016-09-16 02:17:30.000000000 +0200 +++ new/kawhi-0.2.3/stack.yaml 2017-04-20 05:53:21.000000000 +0200 @@ -1,5 +1,5 @@ # Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2) -resolver: nightly-2016-09-15 +resolver: lts-8.10 # Packages to be built packages:
