Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ghc-hslua-module-version for
openSUSE:Factory checked in at 2022-02-11 23:09:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-hslua-module-version (Old)
and /work/SRC/openSUSE:Factory/.ghc-hslua-module-version.new.1956 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-hslua-module-version"
Fri Feb 11 23:09:08 2022 rev:2 rq:953479 version:1.0.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/ghc-hslua-module-version/ghc-hslua-module-version.changes
2021-11-11 21:37:52.644952340 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-hslua-module-version.new.1956/ghc-hslua-module-version.changes
2022-02-11 23:11:01.767227090 +0100
@@ -1,0 +2,9 @@
+Sun Jan 30 07:58:58 UTC 2022 - Peter Simons <[email protected]>
+
+- Update hslua-module-version to version 1.0.1 revision 1.
+ Upstream has edited the change log file since the last release in
+ a non-trivial way, i.e. they did more than just add a new entry
+ at the top. You can review the file at:
+
http://hackage.haskell.org/package/hslua-module-version-1.0.1/src/CHANGELOG.md
+
+-------------------------------------------------------------------
Old:
----
hslua-module-version-1.0.0.tar.gz
New:
----
hslua-module-version-1.0.1.tar.gz
hslua-module-version.cabal
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-hslua-module-version.spec ++++++
--- /var/tmp/diff_new_pack.c3ozsz/_old 2022-02-11 23:11:02.163228236 +0100
+++ /var/tmp/diff_new_pack.c3ozsz/_new 2022-02-11 23:11:02.171228259 +0100
@@ -1,7 +1,7 @@
#
# spec file for package ghc-hslua-module-version
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,15 +19,16 @@
%global pkg_name hslua-module-version
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 1.0.0
+Version: 1.0.1
Release: 0
Summary: Lua module to work with version specifiers
License: MIT
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-filepath-devel
-BuildRequires: ghc-hslua-devel
+BuildRequires: ghc-hslua-core-devel
BuildRequires: ghc-hslua-marshalling-devel
BuildRequires: ghc-hslua-packaging-devel
BuildRequires: ghc-rpm-macros
@@ -55,6 +56,7 @@
%prep
%autosetup -n %{pkg_name}-%{version}
+cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
++++++ hslua-module-version-1.0.0.tar.gz -> hslua-module-version-1.0.1.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hslua-module-version-1.0.0/CHANGELOG.md
new/hslua-module-version-1.0.1/CHANGELOG.md
--- old/hslua-module-version-1.0.0/CHANGELOG.md 2001-09-09 03:46:40.000000000
+0200
+++ new/hslua-module-version-1.0.1/CHANGELOG.md 2001-09-09 03:46:40.000000000
+0200
@@ -1,7 +1,24 @@
# Changelog
-`hslua-module-version` uses [PVP Versioning](https://pvp.haskell.org).
+`hslua-module-version` uses [PVP Versioning][].
-## 0.0.1
+## hslua-module-version-1.0.1
-Release pending
+- Relaxed upper bound of hslua-core, hslua-marshalling, and
+ hslua-packaging, allowing their respective version 2.1.
+
+- Version objects are now modifiable; setting a list index
+ modifies the Version object:
+
+ ``` lua
+ local v = Version '5.3.6'
+ v[2] = 2
+ v[3] = nil
+ assert(v == Version '5.2')
+ ```
+
+## hslua-module-version-1.0.0
+
+Released 2021-10-22.
+
+ [PVP Versioning]: https://pvp.haskell.org
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hslua-module-version-1.0.0/LICENSE
new/hslua-module-version-1.0.1/LICENSE
--- old/hslua-module-version-1.0.0/LICENSE 2001-09-09 03:46:40.000000000
+0200
+++ new/hslua-module-version-1.0.1/LICENSE 2001-09-09 03:46:40.000000000
+0200
@@ -1,7 +1,7 @@
Copyright ?? 1994-2020 Lua.org, PUC-Rio.
Copyright ?? 2007-2012 Gracjan Polak
Copyright ?? 2012-2015 ??mer Sinan A??acan
-Copyright ?? 2016-2021 Albert Krewinkel
+Copyright ?? 2016-2022 Albert Krewinkel
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hslua-module-version-1.0.0/README.md
new/hslua-module-version-1.0.1/README.md
--- old/hslua-module-version-1.0.0/README.md 2001-09-09 03:46:40.000000000
+0200
+++ new/hslua-module-version-1.0.1/README.md 2001-09-09 03:46:40.000000000
+0200
@@ -6,7 +6,7 @@
[![Stackage Nightly][Stackage Nightly
badge]](http://stackage.org/nightly/package/hslua-module-version)
[![MIT license][License badge]](LICENSE)
-[CI badge]:
https://github.com/hslua/hslua-module-version/workflows/CI/badge.svg
+[CI badge]:
https://img.shields.io/github/workflow/status/hslua/hslua/CI.svg?logo=github
[Hackage badge]:
https://img.shields.io/hackage/v/hslua-module-version.svg?logo=haskell
[Stackage Lts badge]:
http://stackage.org/package/hslua-module-version/badge/lts
[Stackage Nightly badge]:
http://stackage.org/package/hslua-module-version/badge/nightly
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/hslua-module-version-1.0.0/hslua-module-version.cabal
new/hslua-module-version-1.0.1/hslua-module-version.cabal
--- old/hslua-module-version-1.0.0/hslua-module-version.cabal 2001-09-09
03:46:40.000000000 +0200
+++ new/hslua-module-version-1.0.1/hslua-module-version.cabal 2001-09-09
03:46:40.000000000 +0200
@@ -1,15 +1,15 @@
cabal-version: 2.2
name: hslua-module-version
-version: 1.0.0
+version: 1.0.1
synopsis: Lua module to work with version specifiers.
description: Wrapper for the Data.Version.Version Haskell type.
-homepage: https://github.com/hslua/hslua-module-version
-bug-reports: https://github.com/hslua/hslua-module-version/issues
+homepage: https://hslua.org/
+bug-reports: https://github.com/hslua/hslua/issues
license: MIT
license-file: LICENSE
author: Albert Krewinkel
maintainer: Albert Krewinkel <[email protected]>
-copyright: ?? 2019-2021 Albert Krewinkel
+copyright: ?? 2019-2022 Albert Krewinkel
category: Foreign
build-type: Simple
extra-doc-files: README.md
@@ -20,20 +20,22 @@
, GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
- , GHC == 8.10.4
+ , GHC == 8.10.7
, GHC == 9.0.1
+ , GHC == 9.2.1
source-repository head
type: git
- location: https://github.com/hslua/hslua-module-version.git
+ location: https://github.com/hslua/hslua.git
+ subdir: hslua-module-version
common common-options
build-depends: base >= 4.9.1 && < 5
, filepath >= 1.4 && < 1.5
- , hslua >= 2.0 && < 2.1
- , hslua-marshalling >= 2.0 && < 2.1
- , hslua-packaging >= 2.0 && < 2.1
- , text >= 1.0 && < 1.3
+ , hslua-core >= 2.0 && < 2.2
+ , hslua-marshalling >= 2.0 && < 2.2
+ , hslua-packaging >= 2.1 && < 2.2
+ , text >= 1.2 && < 2.1
ghc-options: -Wall
-Wcompat
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/hslua-module-version-1.0.0/src/HsLua/Module/Version.hs
new/hslua-module-version-1.0.1/src/HsLua/Module/Version.hs
--- old/hslua-module-version-1.0.0/src/HsLua/Module/Version.hs 2001-09-09
03:46:40.000000000 +0200
+++ new/hslua-module-version-1.0.1/src/HsLua/Module/Version.hs 2001-09-09
03:46:40.000000000 +0200
@@ -3,7 +3,7 @@
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : HsLua.Module.Version
-Copyright : ?? 2019-2021 Albert Krewinkel
+Copyright : ?? 2019-2022 Albert Krewinkel
License : MIT
Maintainer : Albert Krewinkel <[email protected]>
@@ -33,7 +33,7 @@
( LuaError, Type (..) , call, dostring, error, ltype )
import HsLua.Marshalling
( Peeker, Pusher, failPeek, liftLua, peekIntegral, peekList, peekString
- , pushBool, pushIntegral, pushIterator, pushString, retrieving )
+ , pushIntegral, pushIterator, pushString, retrieving )
import HsLua.Packaging
import Text.ParserCombinators.ReadP (readP_to_S)
@@ -51,7 +51,7 @@
### liftPure2 (\_ v -> v)
<#> parameter (const $ pure ()) "table" "module table" "ignored"
<#> versionParam "version" "version-like object"
- =#> functionResult (pushUD typeVersion) "Version" "new Version object"
+ =#> udresult typeVersion "new Version object"
]
}
@@ -64,7 +64,7 @@
, operation Len $ lambda
### liftPure (length . versionBranch)
<#> versionParam "version" ""
- =#> functionResult pushIntegral "integer" "number of version components"
+ =#> integralResult "number of version components"
, operation Pairs $ lambda
### pushIterator (\(i, n) -> 2 <$ pushIntegral i <* pushIntegral n)
. zip [(1 :: Int) ..] . versionBranch
@@ -73,16 +73,17 @@
, operation Tostring $ lambda
### liftPure showVersion
<#> versionParam "version" ""
- =#> functionResult pushString "string" "stringified version"
+ =#> stringResult "stringified version"
]
[ method must_be_at_least ]
- (Just (versionBranch, pushIntegral))
+ (Just ( (pushIntegral, versionBranch)
+ , (peekIntegral, const makeVersion)))
where
versionComparison f descr = lambda
### liftPure2 f
<#> versionParam "v1" ""
<#> versionParam "v2" ""
- =#> functionResult pushBool "boolean" descr
+ =#> boolResult descr
-- | Push a @'Version'@ element to the Lua stack.
pushVersion :: LuaError e => Pusher e Version
@@ -149,7 +150,7 @@
error)
<#> versionParam "self" "version to check"
<#> versionParam "reference" "minimum version"
- <#> optionalParameter peekString "string" "msg" "alternative message"
+ <#> opt (stringParam "msg" "alternative message")
=?> mconcat [ "Returns no result, and throws an error if this "
, "version is older than `reference`."
]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/hslua-module-version-1.0.0/test/test-hslua-module-version.hs
new/hslua-module-version-1.0.1/test/test-hslua-module-version.hs
--- old/hslua-module-version-1.0.0/test/test-hslua-module-version.hs
2001-09-09 03:46:40.000000000 +0200
+++ new/hslua-module-version-1.0.1/test/test-hslua-module-version.hs
2001-09-09 03:46:40.000000000 +0200
@@ -2,7 +2,7 @@
{-# LANGUAGE TypeApplications #-}
{-|
Module : Main
-Copyright : ?? 2021 Albert Krewinkel
+Copyright : ?? 2021-2022 Albert Krewinkel
License : MIT
Maintainer : Albert Krewinkel <[email protected]>
@@ -11,20 +11,21 @@
module Main (main) where
import Control.Monad (void)
-import HsLua (Lua)
-import HsLua.Packaging.Module (preloadModule, preloadModuleWithName,
pushModule)
+import HsLua.Core (Lua, top)
+import HsLua.Packaging.Module
+ (preloadModule, preloadModuleWithName, pushModule, registerModule)
import HsLua.Module.Version (documentedModule)
import Test.Tasty (TestTree, defaultMain, testGroup)
import Test.Tasty.HUnit (assertEqual, testCase)
import Test.Tasty.Lua (translateResultsFromFile)
-import qualified HsLua as Lua
+import qualified HsLua.Core as Lua
main :: IO ()
main = do
luaTestResults <- Lua.run @Lua.Exception $ do
Lua.openlibs
- Lua.registerModule documentedModule
+ registerModule documentedModule
Lua.pop 1
translateResultsFromFile "test/test-version.lua"
defaultMain $ testGroup "hslua-module-version" [tests, luaTestResults]
@@ -39,7 +40,9 @@
Lua.openlibs
preloadModule documentedModule
assertEqual' "function not added to preloader" Lua.TypeFunction =<< do
- Lua.getglobal' "package.preload.Version"
+ void $ Lua.getglobal "package"
+ *> Lua.getfield top "preload"
+ *> Lua.getfield top "Version"
Lua.ltype (-1)
, testCase "version module can be loaded as hsversion" . Lua.run $ do
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/hslua-module-version-1.0.0/test/test-version.lua
new/hslua-module-version-1.0.1/test/test-version.lua
--- old/hslua-module-version-1.0.0/test/test-version.lua 2001-09-09
03:46:40.000000000 +0200
+++ new/hslua-module-version-1.0.1/test/test-version.lua 2001-09-09
03:46:40.000000000 +0200
@@ -105,6 +105,12 @@
assert.are_equal(#(Version '1.6'), 2)
assert.are_equal(#(Version '8.7.5'), 3)
assert.are_equal(#(Version '2.9.1.5'), 4)
+ end),
+ test('branches can be modified', function ()
+ local v = Version '5.3.6'
+ v[2] = 2
+ v[3] = nil
+ assert.are_equal(v, Version '5.2')
end)
}
}
++++++ hslua-module-version.cabal ++++++
cabal-version: 2.2
name: hslua-module-version
version: 1.0.1
x-revision: 1
synopsis: Lua module to work with version specifiers.
description: Wrapper for the Data.Version.Version Haskell type.
homepage: https://hslua.org/
bug-reports: https://github.com/hslua/hslua/issues
license: MIT
license-file: LICENSE
author: Albert Krewinkel
maintainer: Albert Krewinkel <[email protected]>
copyright: ?? 2019-2022 Albert Krewinkel
category: Foreign
build-type: Simple
extra-doc-files: README.md
CHANGELOG.md
extra-source-files: test/test-version.lua
tested-with: GHC == 8.0.2
, GHC == 8.2.2
, GHC == 8.4.4
, GHC == 8.6.5
, GHC == 8.8.4
, GHC == 8.10.7
, GHC == 9.0.1
, GHC == 9.2.1
source-repository head
type: git
location: https://github.com/hslua/hslua.git
subdir: hslua-module-version
common common-options
build-depends: base >= 4.9.1 && < 5
, filepath >= 1.4 && < 1.5
, hslua-core >= 2.1 && < 2.2
, hslua-marshalling >= 2.1 && < 2.2
, hslua-packaging >= 2.1 && < 2.2
, text >= 1.2 && < 2.1
ghc-options: -Wall
-Wcompat
-Widentities
-Wincomplete-uni-patterns
-Wincomplete-record-updates
if impl(ghc >= 8.0)
ghc-options: -Wredundant-constraints
if impl(ghc >= 8.2)
ghc-options: -fhide-source-paths
if impl(ghc >= 8.4)
ghc-options: -Wmissing-export-lists
-Wpartial-fields
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
default-language: Haskell2010
library
import: common-options
hs-source-dirs: src
exposed-modules: HsLua.Module.Version
test-suite hslua-module-version-test
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: test-hslua-module-version.hs
build-depends: base
, hslua-module-version
, tasty
, tasty-hunit
, tasty-lua >= 1.0 && < 1.1
ghc-options: -threaded
-rtsopts
-with-rtsopts=-N