ZachBray / HashBang

A collection of libraries for building web and mobile applications. Leverages FunScript for seamless full-stack development in F#. Adheres to Google's standard for crawling ajax websites.
Apache License 2.0
21 stars 7 forks source link

HashBang Fails to Build on Mono < version 3.2.4 #2

Closed scitesy closed 11 years ago

scitesy commented 11 years ago

Line 140 of src/TypeInferred.HashBang.Core/Website.fs reads:

if metadata.CanCacheResponse then Some CompressionLevel.Optimal

Although this line is correct. Any Mono version below 3.2.4 has a System.IO.Compression.CompressionLevel enum of CompressionLevel.Optional instead of CompressionLevel.Optimal. This is fixed in Mono 3.2.4. The workaround for lower Mono versions is to change line 140 to:

if metadata.CanCacheResponse then Some CompressionLevel.Optional
ZachBray commented 11 years ago

See Issue #2.

scitesy commented 11 years ago

I'll see what I can do with pound if statements to determine behavior.

scitesy commented 11 years ago

Successfully tested.