Re: [Pharo-users] Pillar 1.1.0 released

2015-09-14 Thread Johan Brichau
Hi Cyril,

You are right. It’s better to just fix the version of Pillar for Pier and that 
works just fine for me now.
We will see what happens later if someone has the time to look at Pier.

cheers
Johan

> On 13 Sep 2015, at 12:22, Ferlicot Delbecque Cyril 
>  wrote:
> 
> Le 13/09/2015 10:28, Johan Brichau a écrit :
>> Hi,
>> 
>> I just noticed that in the most recent version of Pillar, the instvar 
>> #embedded was removed from PRReference
>> This breaks Pier… though right before this change I could make Pier3 work 
>> with Pillar just fine.
>> 
>> The embedded var is used to specify that component references are to be 
>> embedded in the page. There are more components than Figures in Pier.
>> 
> 
> Hi Johan,
> 
> We removed that because since Figures are not link anymore we do not
> need it. If the reference is a link, it is not embedded, else it is. We
> plan latter to have more embedded item than Figures, maybe we can just
> and a class between Reference and Figure (PREmbeddedReferences).
> With that we do not need the ivar.
> 
> But since Pier3 doesn't evolve anymore I proposed to someone to freeze
> the version of Pillar needed for the stable version of Pier3. But I
> didn't get an answer.
> 
> --
> Cyril
> 
>> I am just trying to use and work with Pier3 for Seaside book and website, so 
>> it would be great if you can consider adding the embedded variable again.
>> 
>> thanks guys!
>> Johan
>> 
>> ps: email me directly, since I might miss replies via the mailinglist.
>> 
>> 
> 
> 




[Pharo-users] [Survey] QualityAssistant experience mini-survey

2015-09-14 Thread Yuriy Tymchuk
Dear Pharoers,

I kindly ask you to participate in the QualityAssistant mini-survey: 
http://rio.inf.usi.ch/survey/index.php/818331 
.
It will take only a few minutes of your time (or less), and will give us a 
better understanding of how QualityAssistant is currently used and how to 
improve it.

Cheers!
Yuriy

Re: [Pharo-users] [Moose-dev] Pillar 2.0.0: Introduction of PetitPillar

2015-09-14 Thread Damien Cassou

Alexandre Bergel  writes:

> I use Pillar for AgileVisualization. One problem I have is that the
> book contains many code snippets. How can I run all the code snippet
> in order to spot error? Is there an easy way for that?

something like https://github.com/pillar-markup/pillar/issues/71 ?


-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill



Re: [Pharo-users] [Pharo-dev] [Survey] QualityAssistant experience mini-survey

2015-09-14 Thread Mariano Martinez Peck
OK Done.
Where I can see the answers now?  :)  I put I didn't know many of the
features (I use it 99% of the time in Nautilus) and I do want to know now!


On Mon, Sep 14, 2015 at 5:01 AM, Yuriy Tymchuk  wrote:

> Dear Pharoers,
>
> I kindly ask you to participate in the QualityAssistant mini-survey:
> http://rio.inf.usi.ch/survey/index.php/818331.
> It will take only a few minutes of your time (or less), and will give us a
> better understanding of how QualityAssistant is currently used and how to
> improve it.
>
> Cheers!
> Yuriy
>



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


[Pharo-users] Mocking ZnClient

2015-09-14 Thread Damien Cassou
Hi,

I need to write unit tests for code that fetches data on the web through
ZnClient. Is there a way to temporarily replace all creations of
ZnClient instances by instances of another class that will reply with
fixed results without fetching on the web?

I already wrote something like that for the Pharo launcher. I'm now
looking for something that already exists outside so I don't have to
extract this into a new library by myself.

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill



[Pharo-users] [ANN] Pharo Consortium New Bronze Member: Inspired.org

2015-09-14 Thread Marcus Denker
The Pharo Consortium is very happy to announce that Inspired.org
has joined the Consortium as a bronze Member.
  
Inspired is a highly experienced consultancy specialising in 
transformative business strategy integrated with executable
architecture (including business architecture) and empowering
methods to deliver meaningful and desirable change. Inspired
supports this activity with Enterprise Value Architect (EVA), an
innovative collaborative, cloud based enterprise modeling and
knowledge management toolset developed in Smalltalk.

 About
 - Inspired: http://inspired.org
 - Pharo Consortium: http://consortium.pharo.org

 The goal of the Pharo Consortium is to allow companies and institutions to
 support the ongoing development and future of Pharo.

 Individuals can support Pharo via the Pharo Association:

http://association.pharo.org



Re: [Pharo-users] Mocking ZnClient

2015-09-14 Thread Sven Van Caekenberghe
Damien,

As far as I know this does not (yet) exist.

I know that Norbert did some work mocking actual connections, so that a client 
can directly connect to a server's handler without doing any networking, if I 
remember correctly, but I don't think that is what you are looking for.

Sven

> On 14 Sep 2015, at 15:31, Damien Cassou  wrote:
> 
> Hi,
> 
> I need to write unit tests for code that fetches data on the web through
> ZnClient. Is there a way to temporarily replace all creations of
> ZnClient instances by instances of another class that will reply with
> fixed results without fetching on the web?
> 
> I already wrote something like that for the Pharo launcher. I'm now
> looking for something that already exists outside so I don't have to
> extract this into a new library by myself.
> 
> -- 
> Damien Cassou
> http://damiencassou.seasidehosting.st
> 
> "Success is the ability to go from one failure to another without
> losing enthusiasm." --Winston Churchill
> 




Re: [Pharo-users] [Pharo-dev] [Survey] QualityAssistant experience mini-survey

2015-09-14 Thread Damien Cassou

Mariano Martinez Peck  writes:

> OK Done.
> Where I can see the answers now?  :)  I put I didn't know many of the
> features (I use it 99% of the time in Nautilus) and I do want to know now!

I agree, where can we get information about the not-so-visible features?

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill



Re: [Pharo-users] [Pharo-dev] [Survey] QualityAssistant experience mini-survey

2015-09-14 Thread Yuriy Tymchuk
Hi, they are described here:  https://github.com/Uko/QualityAssistant#actions 


Mariano also reported that on Pharo 4 some actions are missing. I am 
investigating that.

Yuriy


> On 14 Sep 2015, at 15:58, Damien Cassou  wrote:
> 
> 
> Mariano Martinez Peck  writes:
> 
>> OK Done.
>> Where I can see the answers now?  :)  I put I didn't know many of the
>> features (I use it 99% of the time in Nautilus) and I do want to know now!
> 
> I agree, where can we get information about the not-so-visible features?
> 
> -- 
> Damien Cassou
> http://damiencassou.seasidehosting.st
> 
> "Success is the ability to go from one failure to another without
> losing enthusiasm." --Winston Churchill
> 



Re: [Pharo-users] Mocking ZnClient

2015-09-14 Thread Christophe Demarey
It is very easy to do by using BabyMock2 for example

Le 14 sept. 2015 à 15:31, Damien Cassou a écrit :

> Hi,
> 
> I need to write unit tests for code that fetches data on the web through
> ZnClient. Is there a way to temporarily replace all creations of
> ZnClient instances by instances of another class that will reply with
> fixed results without fetching on the web?
> 
> I already wrote something like that for the Pharo launcher. I'm now
> looking for something that already exists outside so I don't have to
> extract this into a new library by myself.
> 
> -- 
> Damien Cassou
> http://damiencassou.seasidehosting.st
> 
> "Success is the ability to go from one failure to another without
> losing enthusiasm." --Winston Churchill
> 



smime.p7s
Description: S/MIME cryptographic signature


[Pharo-users] Ecstatic ETSite>>generateHtml file copy philosphy

2015-09-14 Thread Ben Coman
I am having a look into Ecstatic..

What is the philosophy behind the comment in ETSite>>generateHtml ...

"We copy all input files into the output directory to not make the
input dirty.
 We copy all because the site will need not only pillar files but
also other
 resources such as images or css files."

That is, what is it that makes the input dirty?

Also, ETSite>>configuration has the lines...

cocoon inputFiles: (self outputDirectory
allChildren select: [ :each | each extension = 'pillar' ]).

which seems strange to be taking input files from the output directory.

cheers -ben



Re: [Pharo-users] Ecstatic ETSite>>generateHtml file copy philosphy

2015-09-14 Thread Peter Uhnák
On Mon, Sep 14, 2015 at 6:31 PM, Ben Coman  wrote:

> I am having a look into Ecstatic..
>
> What is the philosophy behind the comment in ETSite>>generateHtml ...
>
> "We copy all input files into the output directory to not make the
> input dirty.
>  We copy all because the site will need not only pillar files but
> also other
>  resources such as images or css files."
>
> That is, what is it that makes the input dirty?
>

Pillar generates output files in the same folder as the input file, so it
mixes input and output.
I don't know if it is possible to configure build folder.

which seems strange to be taking input files from the output directory.
>

The answer is in your first question.
""We copy all input files into the output directory to not make the input
dirty."

So naturally it then needs to take the input files from the output
directory.

Peter


Re: [Pharo-users] Ecstatic ETSite>>generateHtml file copy philosphy

2015-09-14 Thread Ben Coman
On Tue, Sep 15, 2015 at 12:49 AM, Peter Uhnák  wrote:
>
>
> On Mon, Sep 14, 2015 at 6:31 PM, Ben Coman  wrote:
>>
>> I am having a look into Ecstatic..
>>
>> What is the philosophy behind the comment in ETSite>>generateHtml ...
>>
>> "We copy all input files into the output directory to not make the
>> input dirty.
>>  We copy all because the site will need not only pillar files but
>> also other
>>  resources such as images or css files."
>>
>> That is, what is it that makes the input dirty?
>
>
> Pillar generates output files in the same folder as the input file, so it
> mixes input and output.
> I don't know if it is possible to configure build folder.

Thanks Peter.

It would be nice if Pillar was more flexible in this regard. For
background, I am looking into Ecstatic to generate a static web site
from Pillar files hosted on GitHub Pages.  This is constrained to
serve html files out of the base directory of the branch tagged
"gh-pages".  So I want to generate html files into the root folder,
from pillar files in a subdirectory "_sitesrc".

I have got as far as getting interested in this line...
PrExportPhase>>writeAll:using:
... outputFile := (file relativeTo: self configuration
baseDirectory) withExtension: aWriter fileExtension.

[1] https://help.github.com/articles/user-organization-and-project-pages/

cheers -ben



Re: [Pharo-users] Ecstatic ETSite>>generateHtml file copy philosphy

2015-09-14 Thread Ferlicot D. Cyril
Le 14/09/2015 19:24, Ben Coman a écrit :
> 
> Thanks Peter.
> 
> It would be nice if Pillar was more flexible in this regard. For
Hi :)

With the version 1.0.0 of Pillar you have the possibility to use
"outputDirectory" and the "support" parameters.
The first will will generate the files into a new folder and the second
will copy a list of files if the outputDirectory ~= baseDirectory.

You can take a look at the documentation of EnterprisePharo (don't
forget to take the last version for Pillar 1.0.0 or later:
https://ci.inria.fr/pharo-contribution/view/Books/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-result/PillarChap/Pillar.html).

You can also check the configuration of Enterprise Pharo or PharoMooc to
get a concrete example.
(https://github.com/SquareBracketAssociates/EnterprisePharo/blob/master/pillar.conf
--
https://github.com/SquareBracketAssociates/PharoMooc/blob/master/pillar.conf)


Ecstatic doesn't use that for now because we don't have the time to
update it but Pillar can do it.

> background, I am looking into Ecstatic to generate a static web site
> from Pillar files hosted on GitHub Pages.  This is constrained to
> serve html files out of the base directory of the branch tagged
> "gh-pages".  So I want to generate html files into the root folder,
> from pillar files in a subdirectory "_sitesrc".
> 
> I have got as far as getting interested in this line...
> PrExportPhase>>writeAll:using:
> ... outputFile := (file relativeTo: self configuration
> baseDirectory) withExtension: aWriter fileExtension.
> 
> [1] https://help.github.com/articles/user-organization-and-project-pages/
> 
> cheers -ben
> 


-- 
Cheers
Cyril



signature.asc
Description: OpenPGP digital signature


Re: [Pharo-users] Ecstatic ETSite>>generateHtml file copy philosphy

2015-09-14 Thread Peter Uhnák
>
> I am looking into Ecstatic to generate a static web site from Pillar
> files hosted on GitHub Pages.


This is rather easy as Ecstatic was built just for that, so there is no
need to change Pillar for it.

this https://guillep.github.io/ecstatic/install.html
and this https://gist.github.com/cobyism/4730490

should be all you need to get it up & running on GH pages.

Peter


Re: [Pharo-users] Ecstatic ETSite>>generateHtml file copy philosphy

2015-09-14 Thread Ben Coman
On Tue, Sep 15, 2015 at 2:28 AM, Peter Uhnák  wrote:
>> I am looking into Ecstatic to generate a static web site from Pillar files
>> hosted on GitHub Pages.
>
>
> This is rather easy as Ecstatic was built just for that, so there is no need
> to change Pillar for it.
>
> this https://guillep.github.io/ecstatic/install.html
> and this https://gist.github.com/cobyism/4730490
>
> should be all you need to get it up & running on GH pages.

I've successfully used "git subtree push", but I find it messes with
the history graph.  The architecture I'm trying is git top-level
folder containing:
  * generated html files;
  * _srcsite folder containing pillar files
  * _ecstatic folder containing all scripts and executables

that requires only...
$ git checkout gh-pages
# Modify pillar files in folder _srcsite
$ _ecstatic/generate
$ git add -A
$ git commit
$ git push

I temporarily broke the side menu, but I updated Guille's
documentation so you can see where I'm headed...
http://bencoman.github.io/ecstatic/install.html

cheers -ben