On Sun, Jan 8, 2012 at 1:30 PM, St�phane Ducasse <stephane.ducasse@inria.fr> wrote:
Mariano

should not we get some fixes for FS?


fixes fixes fixes there is just only one, and it was the one of #next: I reported in http://forum.world.st/Bug-in-FileSystem-td4272729.html
I can provide such fix.

Then for Fuel I also needed #next:into: which is not implemented. I can added, but I am waiting our stream guru Henry/Nicolas approbal ;)

As soon as they appear, I will submit them.


Stef

On Jan 7, 2012, at 11:25 PM, Mariano Martinez Peck wrote:

> Hi guys. Now you can use FileSystem streams for Fuel. Fuel only needs one small package 'FuelFileSystem' which has just 3 extension methods, and that's all ;)
> There is also 'FuelFileSystemTests' which let's you run all fuel tests using FS. If you want to do that, change FLSerializationTest >> setUp to send #useFileSystemFileStream �rather than #useStandardFileStream and that's all.
> To install:
>
> Gofer new
> � � squeaksource: 'MetacelloRepository';
> � � package: 'ConfigurationOfFuel';
> load.
>
> (ConfigurationOfFuel project version: #bleedingEdge) load: 'withFS'.
>
> An example:
>
> � � | sourceArray loadedArray serializer stream materializer |
> � � sourceArray :=
> � � � � Array
> � � � � � � with: 'a string'
> � � � � � � with: Transcript
> � � � � � � with: [ Transcript show: 'a string' ].
> � � "Create a file and serialize on it"
> � � stream := (FSLocator imageDirectory / 'example.fuel') writeStream.
> � � serializer := FLSerializer newDefault.
> � � serializer serialize: sourceArray on: stream.
> � � stream close.
> � � "Load from the file"
> � � stream := (FSLocator imageDirectory / 'example.fuel') readStream.
> � � materializer := FLMaterializer newDefault.
> � � loadedArray := (materializer materializeFrom: stream) root.
>
> Cheers
>
> --
> Mariano
> http://marianopeck.wordpress.com
>





--
Mariano
http://marianopeck.wordpress.com