You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whimsical.apache.org by Sam Ruby <ru...@intertwingly.net> on 2016/03/19 14:51:21 UTC

Re: [whimsy.git] [1/1] Commit 1e101ba: Easier to read

On Sat, Mar 19, 2016 at 5:17 AM, Sebastian Bazley <se...@apache.org> wrote:
> Commit 1e101bab079f2cef778ddfe5099e494e21d4e0e9:
>     Easier to read

If you are going to go for pretty, consider:

https://github.com/rubys/wunderbar/blob/master/demo/envdump.rb

Changing to html from plain text would enable things like 'redacted'
to be in a different font (e.g. italicized).

- Sam Ruby

>
> Branch: refs/heads/master
> Author: Sebb <se...@apache.org>
> Committer: Sebb <se...@apache.org>
> Pusher: sebb <se...@apache.org>
>
> ------------------------------------------------------------
> www/board/test.cgi                                           | ++++++ -
> www/committers/test.cgi                                      | ++++++ -
> www/members/test.cgi                                         | ++++++ -
> www/test.cgi                                                 | ++++++ -
> ------------------------------------------------------------
> 28 changes: 24 additions, 4 deletions.
> ------------------------------------------------------------
>
>
> diff --git a/www/board/test.cgi b/www/board/test.cgi
> index 011c7f6..2116558 100755
> --- a/www/board/test.cgi
> +++ b/www/board/test.cgi
> @@ -2,4 +2,9 @@
>
>  print "Content-type: text/plain\r\n\r\n"
>
> -print ENV.inspect
> +#print ENV.inspect
> +
> +ENV.sort.each do |k,v|
> +  print "#{k} #{v}\n"
> +end
> +
> diff --git a/www/committers/test.cgi b/www/committers/test.cgi
> index 011c7f6..2116558 100755
> --- a/www/committers/test.cgi
> +++ b/www/committers/test.cgi
> @@ -2,4 +2,9 @@
>
>  print "Content-type: text/plain\r\n\r\n"
>
> -print ENV.inspect
> +#print ENV.inspect
> +
> +ENV.sort.each do |k,v|
> +  print "#{k} #{v}\n"
> +end
> +
> diff --git a/www/members/test.cgi b/www/members/test.cgi
> index 011c7f6..2116558 100755
> --- a/www/members/test.cgi
> +++ b/www/members/test.cgi
> @@ -2,4 +2,9 @@
>
>  print "Content-type: text/plain\r\n\r\n"
>
> -print ENV.inspect
> +#print ENV.inspect
> +
> +ENV.sort.each do |k,v|
> +  print "#{k} #{v}\n"
> +end
> +
> diff --git a/www/test.cgi b/www/test.cgi
> index 011c7f6..2116558 100755
> --- a/www/test.cgi
> +++ b/www/test.cgi
> @@ -2,4 +2,9 @@
>
>  print "Content-type: text/plain\r\n\r\n"
>
> -print ENV.inspect
> +#print ENV.inspect
> +
> +ENV.sort.each do |k,v|
> +  print "#{k} #{v}\n"
> +end
> +

Re: [whimsy.git] [1/1] Commit 1e101ba: Easier to read

Posted by sebb <se...@gmail.com>.
On 19 March 2016 at 13:51, Sam Ruby <ru...@intertwingly.net> wrote:
> On Sat, Mar 19, 2016 at 5:17 AM, Sebastian Bazley <se...@apache.org> wrote:
>> Commit 1e101bab079f2cef778ddfe5099e494e21d4e0e9:
>>     Easier to read
>
> If you are going to go for pretty, consider:
>
> https://github.com/rubys/wunderbar/blob/master/demo/envdump.rb
>
> Changing to html from plain text would enable things like 'redacted'
> to be in a different font (e.g. italicized).

Thanks, good to know

But if there is a problem with the PATH etc then wunderbar may not be available.
Also plain text is better for use with wget/cURL/diff

> - Sam Ruby
>
>>
>> Branch: refs/heads/master
>> Author: Sebb <se...@apache.org>
>> Committer: Sebb <se...@apache.org>
>> Pusher: sebb <se...@apache.org>
>>
>> ------------------------------------------------------------
>> www/board/test.cgi                                           | ++++++ -
>> www/committers/test.cgi                                      | ++++++ -
>> www/members/test.cgi                                         | ++++++ -
>> www/test.cgi                                                 | ++++++ -
>> ------------------------------------------------------------
>> 28 changes: 24 additions, 4 deletions.
>> ------------------------------------------------------------
>>
>>
>> diff --git a/www/board/test.cgi b/www/board/test.cgi
>> index 011c7f6..2116558 100755
>> --- a/www/board/test.cgi
>> +++ b/www/board/test.cgi
>> @@ -2,4 +2,9 @@
>>
>>  print "Content-type: text/plain\r\n\r\n"
>>
>> -print ENV.inspect
>> +#print ENV.inspect
>> +
>> +ENV.sort.each do |k,v|
>> +  print "#{k} #{v}\n"
>> +end
>> +
>> diff --git a/www/committers/test.cgi b/www/committers/test.cgi
>> index 011c7f6..2116558 100755
>> --- a/www/committers/test.cgi
>> +++ b/www/committers/test.cgi
>> @@ -2,4 +2,9 @@
>>
>>  print "Content-type: text/plain\r\n\r\n"
>>
>> -print ENV.inspect
>> +#print ENV.inspect
>> +
>> +ENV.sort.each do |k,v|
>> +  print "#{k} #{v}\n"
>> +end
>> +
>> diff --git a/www/members/test.cgi b/www/members/test.cgi
>> index 011c7f6..2116558 100755
>> --- a/www/members/test.cgi
>> +++ b/www/members/test.cgi
>> @@ -2,4 +2,9 @@
>>
>>  print "Content-type: text/plain\r\n\r\n"
>>
>> -print ENV.inspect
>> +#print ENV.inspect
>> +
>> +ENV.sort.each do |k,v|
>> +  print "#{k} #{v}\n"
>> +end
>> +
>> diff --git a/www/test.cgi b/www/test.cgi
>> index 011c7f6..2116558 100755
>> --- a/www/test.cgi
>> +++ b/www/test.cgi
>> @@ -2,4 +2,9 @@
>>
>>  print "Content-type: text/plain\r\n\r\n"
>>
>> -print ENV.inspect
>> +#print ENV.inspect
>> +
>> +ENV.sort.each do |k,v|
>> +  print "#{k} #{v}\n"
>> +end
>> +