Hello community,

here is the log from the commit of package ghc-protobuf-simple for 
openSUSE:Factory checked in at 2017-04-20 20:55:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-protobuf-simple (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-protobuf-simple.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-protobuf-simple"

Thu Apr 20 20:55:53 2017 rev:3 rq:487961 version:0.1.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-protobuf-simple/ghc-protobuf-simple.changes  
2017-04-07 13:55:19.898316354 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-protobuf-simple.new/ghc-protobuf-simple.changes 
    2017-04-20 20:55:59.217228624 +0200
@@ -1,0 +2,5 @@
+Tue Apr  4 11:04:07 UTC 2017 - [email protected]
+
+- Update to version 0.1.0.3 with cabal2obs.
+
+-------------------------------------------------------------------

Old:
----
  protobuf-simple-0.1.0.2.tar.gz

New:
----
  protobuf-simple-0.1.0.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-protobuf-simple.spec ++++++
--- /var/tmp/diff_new_pack.Snklkz/_old  2017-04-20 20:56:02.140815185 +0200
+++ /var/tmp/diff_new_pack.Snklkz/_new  2017-04-20 20:56:02.140815185 +0200
@@ -19,7 +19,7 @@
 %global pkg_name protobuf-simple
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.1.0.2
+Version:        0.1.0.3
 Release:        0
 Summary:        Simple Protocol Buffers library (proto2)
 License:        MIT

++++++ protobuf-simple-0.1.0.2.tar.gz -> protobuf-simple-0.1.0.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/protobuf-simple-0.1.0.2/protobuf-simple.cabal 
new/protobuf-simple-0.1.0.3/protobuf-simple.cabal
--- old/protobuf-simple-0.1.0.2/protobuf-simple.cabal   2016-09-26 
10:41:50.000000000 +0200
+++ new/protobuf-simple-0.1.0.3/protobuf-simple.cabal   2017-03-30 
15:17:31.000000000 +0200
@@ -3,7 +3,7 @@
 
 name:                protobuf-simple
 synopsis:            Simple Protocol Buffers library (proto2)
-version:             0.1.0.2
+version:             0.1.0.3
 homepage:            https://github.com/sru-systems/protobuf-simple
 license:             MIT
 license-file:        LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/protobuf-simple-0.1.0.2/src/Parser/ProtoParser.hs 
new/protobuf-simple-0.1.0.3/src/Parser/ProtoParser.hs
--- old/protobuf-simple-0.1.0.2/src/Parser/ProtoParser.hs       2016-05-05 
15:37:14.000000000 +0200
+++ new/protobuf-simple-0.1.0.3/src/Parser/ProtoParser.hs       2017-03-30 
15:06:41.000000000 +0200
@@ -426,7 +426,13 @@
 
 
 int32 :: Parsec String u Int32
-int32 = read <$> lexeme (many1 digit)
+int32 = read <$> lexeme ((:) <$> char '0' <*> zeroStart
+                         <|> many1 digit)
+  where
+    zeroStart = choice [ (:) <$> oneOf "xX" <*> many1 hexDigit
+                       , (:) <$> oneOf "oO" <*> many1 octDigit
+                       , many digit
+                       ]
 
 
 keyword :: String -> Parsec String u String
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/protobuf-simple-0.1.0.2/test/Parser/ProtoParserSpec.hs 
new/protobuf-simple-0.1.0.3/test/Parser/ProtoParserSpec.hs
--- old/protobuf-simple-0.1.0.2/test/Parser/ProtoParserSpec.hs  2016-04-21 
17:28:52.000000000 +0200
+++ new/protobuf-simple-0.1.0.3/test/Parser/ProtoParserSpec.hs  2017-03-30 
15:09:10.000000000 +0200
@@ -133,15 +133,15 @@
             , "    optional fixed32 f04 = 4;"
             , "    optional fixed64 f05 = 5;"
             , "    optional float f06 = 6;"
-            , "    optional int32 f07 = 7;"
-            , "    optional int64 f08 = 8;"
+            , "    optional int32 f07 = 0o7;"
+            , "    optional int64 f08 = 0o10;"
             , "    optional sfixed32 f09 = 9;"
             , "    optional sfixed64 f10 = 10;"
             , "    optional sint32 f11 = 11;"
             , "    optional sint64 f12 = 12;"
             , "    optional string f13 = 13;"
-            , "    optional uint32 f14 = 14;"
-            , "    optional uint64 f15 = 15;"
+            , "    optional uint32 f14 = 0xe;"
+            , "    optional uint64 f15 = 0xF;"
             , "}"
             ])
         `shouldParse`
@@ -195,11 +195,11 @@
     it "parses a message with a enum field" $
         parseProto "Test.proto" (unlines
             [ "message EnumMessage {"
-            , "    optional EnumType value = 1;"
+            , "    optional EnumType value = 0x1;"
             , "}"
             , "enum EnumType {"
             , "    UNKNOWN = 0;"
-            , "    INIT = 1;"
+            , "    INIT = 0x1;"
             , "}"
             ])
         `shouldParse`


Reply via email to