Re: Scoping of variables in _whimsy

2020-06-23 Thread Sam Ruby
A quick scan of your last commit: + USER_AFFIRMATION_FILE = signerfile if stem == USERID The above line attempts to modify a constant. That will fail. + SIGNERS[stem] = signerfile unless stem == 'template' The above line is OK... modifying the contents of a hash doesn't change the value of S

Re: Scoping of variables in _whimsy

2020-06-23 Thread Craig Russell
Thanks for all the help. I'm now able to test everything with the coi.cgi application.I've added an application password to gmail that allows me to access my gmail account from the ruby mail tool via the password in ~/.whimsy.I've changed the group and access rights for the local ~/.whimsy file to

Re: Scoping of variables in _whimsy

2020-06-23 Thread Craig Russell
> On Jun 23, 2020, at 3:10 AM, Sam Ruby wrote: > > On Tue, Jun 23, 2020 at 5:16 AM sebb wrote: >> >> I use Python to run a local mail debugger: >> >> $ python -m smtpd -n -c DebuggingServer localhost:1025 >> >> :sendmail: >> address: localhost >> port: 1025 >> delivery_method: smtp > >

Re: Scoping of variables in _whimsy

2020-06-23 Thread Sam Ruby
On Tue, Jun 23, 2020 at 5:16 AM sebb wrote: > > I use Python to run a local mail debugger: > > $ python -m smtpd -n -c DebuggingServer localhost:1025 > > :sendmail: > address: localhost > port: 1025 > delivery_method: smtp Cool! This should be added to one of the markdown files in the whim

Re: Scoping of variables in _whimsy

2020-06-23 Thread sebb
I use Python to run a local mail debugger: $ python -m smtpd -n -c DebuggingServer localhost:1025 :sendmail: address: localhost port: 1025 delivery_method: smtp On Tue, 23 Jun 2020 at 03:53, Craig Russell wrote: > > I ran > [MacBook-Pro-10:~/apache/git/whimsy] clr% ruby tools/testmail.rb

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