Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: gentoo-haskell/gentoo-haskell
base: dc68405381
...
head fork: gentoo-haskell/gentoo-haskell
compare: dc3313f2a8
  • 3 commits
  • 7 files changed
  • 0 commit comments
  • 1 contributor
View
2  dev-haskell/tagstream-conduit/Manifest
@@ -1,3 +1,3 @@
DIST tagstream-conduit-0.3.0.tar.gz 6435 RMD160 b4260d868c8568cfcde03eb25e578df5815214e5 SHA1 cb788a3d3d83765444565421a5e0eb8d53e3c78c SHA256 d848c3c72d230c67e53335ea1b5c463d41e739d745d8fc2415fd06123c4a5536
-EBUILD tagstream-conduit-0.3.0.ebuild 721 RMD160 900a86a1f5d727f3e4632eb9ab3b9f71d64a2f2e SHA1 e303e059e369af71bd5b6b50f6826822bc3ffa98 SHA256 f7636562a1fd2b7813285e6737ac0be1da14f638ca24965a0c78e33c9d1dfafc
+EBUILD tagstream-conduit-0.3.0.ebuild 732 RMD160 51031358954ccd069f08a93953ff98ee25d91288 SHA1 114d6bdc4b19010fc786f51170031ad4309e6000 SHA256 72769ddea702ce5dd450ac074faf333162bb7bc55e5194700544be319499b91c
MISC metadata.xml 572 RMD160 818551c7c745180d3aa72e15c3b306b73d465fba SHA1 85f445f0bfd4a779f1d1883f67960679862f34b7 SHA256 8dacd525e58cdeb56767785ea549605dd1d358eef189cf2d1fd783db9ca2a304
View
2  dev-haskell/tagstream-conduit/tagstream-conduit-0.3.0.ebuild
@@ -6,7 +6,7 @@
EAPI=4
-CABAL_FEATURES="lib profile haddock hoogle hscolour"
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal
DESCRIPTION="streamlined html tag parser"
View
2  dev-haskell/xml2html/Manifest
@@ -1,3 +1,3 @@
DIST xml2html-0.1.2.1.tar.gz 2454 RMD160 0202a8e70d4f99244975d193bfd2e32c12629ecf SHA1 1bc5f1e0121289eb84bcd24cb1d5b75fded9c212 SHA256 bdb65d95af1abd80a333aac836a3a90d7b3bd31624129107b8703465215b7028
-EBUILD xml2html-0.1.2.1.ebuild 751 RMD160 2e36c57c5d957f447c9fd7654d00c7db3df319c0 SHA1 748966238dd522b9c37242ed997524acb7936e56 SHA256 aad83a1fc0deec9b937db26c7d858ea012c7933cc5d620dd25166fb98df7eb28
+EBUILD xml2html-0.1.2.1.ebuild 838 RMD160 3fb7e073749e007341b913fc8f62ac7ee55706f6 SHA1 0f4f9225302b8ff37a4218341944ca13d437b8e3 SHA256 a711966cfd5cb9ba87d6e2490262eeff5e6bae7bf6d06908032d20036492b1e7
MISC metadata.xml 310 RMD160 531a171c005bd957d54d8927dd55a61afd039d29 SHA1 62d6abdf3313fd5ff5e16a198b947a4eb246a54d SHA256 8b4fff7e13802691503ecbb55d4ea735ba707d71321649d0ae152bc47206f140
View
4 dev-haskell/xml2html/xml2html-0.1.2.1.ebuild
@@ -18,7 +18,9 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-RDEPEND="=dev-haskell/blaze-html-0.4*[profile?]
+RDEPEND="=dev-haskell/blaze-html-0.5*[profile?]
+ >=dev-haskell/blaze-markup-0.5.1[profile?]
+ <dev-haskell/blaze-markup-0.6[profile?]
>=dev-haskell/text-0.5[profile?]
<dev-haskell/text-1[profile?]
>=dev-haskell/xml-conduit-0.5[profile?]
View
5 dev-haskell/yesod-test/Manifest
@@ -1,3 +1,4 @@
-DIST yesod-test-0.2.0.tar.gz 10963 RMD160 77f69a4b74a84c01ed97102bb985303ac4d63714 SHA1 483f4d04fee211ec36044fa59407a5f0f12655af SHA256 3f5f446bdc122233f48715edd426a14593737b4e0cc79c4f41894653ebfda971
-EBUILD yesod-test-0.2.0.ebuild 1463 RMD160 2be3ea3aba466979e8188547dd27e1ff2b35d021 SHA1 3a940ec743622dcdf901288f28358acf270f2d30 SHA256 353f7a6862dfa996c46461720ad748beb970f2f8069e5aede6a9adfac9bb23c3
+AUX yesod-test-0.2.0.1/test/main.hs 2756 RMD160 35f4fb75544475c4ee1bca4deaa85fbb085155fd SHA1 536c38dc3de2895a6ce9a13fbe92ccf2b760c635 SHA256 e5dbc7cd52e50f5fc286803a5e9e658339fa3d82f663b3f4b616823ac8cc0f20
+DIST yesod-test-0.2.0.1.tar.gz 11094 RMD160 52d160e295f3fa045025146c26eff9b86662093e SHA1 572b8224f5bd8c9a4538ac753365287d53c4e20b SHA256 fdd67ff1b9fd8cafffc53fb5f9b67f2edbfba0dba6d3f4417867a732477d20f3
+EBUILD yesod-test-0.2.0.1.ebuild 1668 RMD160 8fdddf5f45b7ef6636f40f4f87183e84ea418627 SHA1 4b15776f2cfd405375fe54a9a77ef32a8786d23d SHA256 def941fdd650d70120719ddaeb157231646e164b18d367193e39804fa88a9133
MISC metadata.xml 329 RMD160 c3dc6ea86f8a1753495cb7995e2e2aa64f978b8d SHA1 cbd6b4f68324e111dff9721a58c9e22c9aec9fc5 SHA256 edeedffbb47abae85b7a1503f71f8c48b7403d07566342fc4446969206bdec72
View
61 dev-haskell/yesod-test/files/yesod-test-0.2.0.1/test/main.hs
@@ -0,0 +1,61 @@
+{-# LANGUAGE OverloadedStrings #-}
+import Test.HUnit hiding (Test)
+import Test.Hspec.Monadic
+import Test.Hspec.HUnit ()
+
+import Yesod.Test.CssQuery
+import Yesod.Test.TransversingCSS
+import Yesod.Test.HtmlParse
+import Text.XML
+
+import Data.ByteString.Lazy.Char8 ()
+
+parseQuery_ = either error id . parseQuery
+findBySelector_ x = either error id . findBySelector x
+parseHtml_ = either error id . parseHtml
+
+main :: IO ()
+main = hspecX $ do
+ describe "CSS selector parsing" $ do
+ it "elements" $ parseQuery_ "strong" @?= [[DeepChildren [ByTagName "strong"]]]
+ it "child elements" $ parseQuery_ "strong > i" @?= [[DeepChildren [ByTagName "strong"], DirectChildren [ByTagName "i"]]]
+ it "comma" $ parseQuery_ "strong.bar, #foo" @?= [[DeepChildren [ByTagName "strong", ByClass "bar"]], [DeepChildren [ById "foo"]]]
+ describe "find by selector" $ do
+ it "XHTML" $
+ let html = "<html><head><title>foo</title></head><body><p>Hello World</p></body></html>"
+ query = "body > p"
+ in findBySelector_ html query @?= ["<p>Hello World</p>"]
+ it "HTML" $
+ let html = "<html><head><title>foo</title></head><body><br><p>Hello World</p></body></html>"
+ query = "body > p"
+ in findBySelector_ html query @?= ["<p>Hello World</p>"]
+ describe "HTML parsing" $ do
+ it "XHTML" $
+ let html = "<html><head><title>foo</title></head><body><p>Hello World</p></body></html>"
+ doc = Document (Prologue [] Nothing []) root []
+ root = Element "html" []
+ [ NodeElement $ Element "head" []
+ [ NodeElement $ Element "title" []
+ [NodeContent "foo"]
+ ]
+ , NodeElement $ Element "body" []
+ [ NodeElement $ Element "p" []
+ [NodeContent "Hello World"]
+ ]
+ ]
+ in parseHtml_ html @?= doc
+ it "HTML" $
+ let html = "<html><head><title>foo</title></head><body><br><p>Hello World</p></body></html>"
+ doc = Document (Prologue [] Nothing []) root []
+ root = Element "html" []
+ [ NodeElement $ Element "head" []
+ [ NodeElement $ Element "title" []
+ [NodeContent "foo"]
+ ]
+ , NodeElement $ Element "body" []
+ [ NodeElement $ Element "br" [] []
+ , NodeElement $ Element "p" []
+ [NodeContent "Hello World"]
+ ]
+ ]
+ in parseHtml_ html @?= doc
View
11 ...askell/yesod-test/yesod-test-0.2.0.ebuild → ...kell/yesod-test/yesod-test-0.2.0.1.ebuild
@@ -6,7 +6,7 @@
EAPI=4
-CABAL_FEATURES="lib profile haddock hoogle hscolour"
+CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
inherit haskell-cabal
DESCRIPTION="integration testing for WAI/Yesod Applications"
@@ -19,7 +19,9 @@ KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="=dev-haskell/attoparsec-0.10*[profile?]
- =dev-haskell/blaze-html-0.4*[profile?]
+ =dev-haskell/blaze-html-0.5*[profile?]
+ >=dev-haskell/blaze-markup-0.5.1[profile?]
+ <dev-haskell/blaze-markup-0.6[profile?]
>=dev-haskell/case-insensitive-0.2[profile?]
=dev-haskell/conduit-0.4*[profile?]
>=dev-haskell/hspec-0.9[profile?]
@@ -44,3 +46,8 @@ RDEPEND="=dev-haskell/attoparsec-0.10*[profile?]
>=dev-lang/ghc-6.10.1"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.8"
+
+src_prepare() {
+ cp -pR "${FILESDIR}/${PN}-0.2.0.1/test" test \
+ || die "Could not copy missing tests"
+}

No commit comments for this range

Something went wrong with that request. Please try again.