Re: Scoping of variables in _whimsy

2020-06-22 Thread Craig Russell
I ran [MacBook-Pro-10:~/apache/git/whimsy] clr% ruby tools/testmail.rb Date: Mon, 22 Jun 2020 19:40:56 -0700 From: Craig L Russell To: Craig L Russell Message-ID: <5ef16bb8f87f_15238258-...@macbook-pro-10.local.mail> Subject: test mail Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 C

Re: Scoping of variables in _whimsy

2020-06-22 Thread Craig Russell
I was having problems with my local ~/.whimsy so I reactivated it and now I cannot get past require 'whimsy/asf' If I remove .whimsy it works until the mail.deliver! line. ls -l ~/.whimsy -rw--- 1 clr staff 518 Jun 22 19:18 /Users/clr/.whimsy What should the permissions on this file be

Re: Scoping of variables in _whimsy

2020-06-22 Thread Sam Ruby
On Mon, Jun 22, 2020 at 7:13 PM Craig Russell wrote: > > What credentials do I need for the mail application? Testing locally, running > in the infra/whimsy environment? See https://github.com/apache/whimsy/blob/master/MACOSX.md#configure-sending-of-mail Getting this to work will require you t

Re: Scoping of variables in _whimsy

2020-06-22 Thread Shane Curcuru
Craig Russell wrote on 6/22/20 7:13 PM: > What credentials do I need for the mail application? Testing locally, running > in the infra/whimsy environment? Simple example: https://github.com/apache/whimsy/blob/master/tools/testmail.rb Complex example: https://github.com/apache/whimsy/blob/master/

Re: Scoping of variables in _whimsy

2020-06-22 Thread Craig Russell
What credentials do I need for the mail application? Testing locally, running in the infra/whimsy environment? mail = Mail.new do to "#{user.public_name}<#{user.mail.first}>" # cc "secret...@apache.org" from "#{user.mail.first}" subject "Conflict of Interest affirmation

Re: Scoping of variables in _whimsy

2020-06-22 Thread Craig Russell
Another couple of questions: 1. What's the best way to --dryrun the commit until I have the rest of the application working? I know there are a couple of ways to do it, from putting --dryrun into some of the svn commands to using a keyboard entry to do it. Is it click on the keyboard? 2. What

Re: Scoping of variables in _whimsy

2020-06-22 Thread Sam Ruby
On Mon, Jun 22, 2020 at 5:20 PM Craig Russell wrote: > > I've pushed a work in progress to branch coi. It currently does what I want > it to do for "get", which is to calculate who is required to affirm the coi. > > But when I submit the "post" it gives an error > # > /srv/whimsy/www/officers/c

Scoping of variables in _whimsy

2020-06-22 Thread Craig Russell
I've pushed a work in progress to branch coi. It currently does what I want it to do for "get", which is to calculate who is required to affirm the coi. But when I submit the "post" it gives an error # /srv/whimsy/www/officers/coi.cgi:146:in `emit_post' /srv/whimsy/www/officers/coi.cgi:130:i