public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/ag-web:master commit in: /
@ 2015-02-22  0:30 Alex Legler
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Legler @ 2015-02-22  0:30 UTC (permalink / raw
  To: gentoo-commits

commit:     8aaf89df9fbe64113864059d45c0c36a29d3b77b
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 00:30:40 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:30:40 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=8aaf89df

less redirection magic

---
 ag-web.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ag-web.rb b/ag-web.rb
index 182d269..63d194f 100644
--- a/ag-web.rb
+++ b/ag-web.rb
@@ -107,7 +107,7 @@ get '/:list/threads/:year-:month/:page?' do
     max_pages = (result['hits']['total'].to_f / PER_PAGE).ceil
 
     if result['hits']['total'] == 0
-      redirect to("/%s/messages/%s-%s?no_threads=1" % [params[:list], params[:year], params[:month]])
+      redirect "/%s/messages/%s-%s?no_threads=1" % [params[:list], params[:year], params[:month]]
       return
     end
 


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: /
@ 2015-02-25 11:02 Alex Legler
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Legler @ 2015-02-25 11:02 UTC (permalink / raw
  To: gentoo-commits

commit:     5c1d6630e4e14e7c467d0fa975c560a9a546de90
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Wed Feb 25 10:59:55 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Wed Feb 25 10:59:55 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=5c1d6630

Remove debugging output

---
 ag-web.rb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ag-web.rb b/ag-web.rb
index bdac32b..df6b838 100644
--- a/ag-web.rb
+++ b/ag-web.rb
@@ -92,7 +92,6 @@ get '/:list/' do
     result = get_month_listing(params[:list])
     @title = params[:list]
     current_monthint = to_monthint(Date.today.year, Date.today.month)
-    puts current_monthint
 
     erb :listindex, locals: { results: result, list: params[:list], current_monthint: current_monthint }
   rescue => e


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: /
@ 2015-02-22  0:48 Alex Legler
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Legler @ 2015-02-22  0:48 UTC (permalink / raw
  To: gentoo-commits

commit:     fd64b3e0ee9c92ea18e77190ff6d9bf0e404572c
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 00:48:28 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:48:28 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=fd64b3e0

and a slash

---
 ag-web.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ag-web.rb b/ag-web.rb
index 63d194f..ef326c8 100644
--- a/ag-web.rb
+++ b/ag-web.rb
@@ -107,7 +107,7 @@ get '/:list/threads/:year-:month/:page?' do
     max_pages = (result['hits']['total'].to_f / PER_PAGE).ceil
 
     if result['hits']['total'] == 0
-      redirect "/%s/messages/%s-%s?no_threads=1" % [params[:list], params[:year], params[:month]]
+      redirect "/%s/messages/%s-%s/?no_threads=1" % [params[:list], params[:year], params[:month]]
       return
     end
 


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: /
@ 2015-02-22  0:29 Alex Legler
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Legler @ 2015-02-22  0:29 UTC (permalink / raw
  To: gentoo-commits

commit:     7123639511ce9d1cc012d2effcdd792b88d5b315
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sun Feb 22 00:24:29 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:24:29 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=71236395

generify captcha error message

---
 ag-web.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ag-web.rb b/ag-web.rb
index f53e94f..b178b71 100644
--- a/ag-web.rb
+++ b/ag-web.rb
@@ -71,7 +71,7 @@ post '/report' do
       )
       msg = 'Thanks for your report.'
     else
-      msg = 'No, Larry does not make that sound (Invalid CAPTCHA). Report not sent.'
+      msg = 'Invalid CAPTCHA. Report not sent.'
     end
 
     erb :reportsent, locals: { message: result_data, list: params[:list], msg: msg }


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: /
@ 2015-02-22  0:19 Robin H. Johnson
  0 siblings, 0 replies; 6+ messages in thread
From: Robin H. Johnson @ 2015-02-22  0:19 UTC (permalink / raw
  To: gentoo-commits

commit:     d7e70b636ba47429d51a515c7038eba37fc20c15
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 21 23:52:54 2015 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Feb 22 00:16:44 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=d7e70b63

Remove old variable.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

---
 ag-web.rb | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/ag-web.rb b/ag-web.rb
index d07a18a..f53e94f 100644
--- a/ag-web.rb
+++ b/ag-web.rb
@@ -24,8 +24,6 @@ $es.transport.reload_connections!
 
 $config = YAML.load_file('config.yml')
 
-$valid_lists = %w[www-redesign gentoo-alt gentoo-dev gentoo-amd64]
-
 get '/:list/report/:msgid' do
   return unless list_check
 
@@ -157,4 +155,4 @@ end
 
 get '/' do
   erb :index
-end
\ No newline at end of file
+end


^ permalink raw reply related	[flat|nested] 6+ messages in thread
* [gentoo-commits] proj/ag-web:master commit in: /
@ 2015-02-21 15:50 Alex Legler
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Legler @ 2015-02-21 15:50 UTC (permalink / raw
  To: gentoo-commits

commit:     7bc2d5aa2fe90fa41f17a7693aed647870f5f633
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Sat Feb 21 15:50:19 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 15:50:19 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=7bc2d5aa

Internal Server Error is 500, not 503

---
 ag-web.rb | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/ag-web.rb b/ag-web.rb
index 850d1db..d07a18a 100644
--- a/ag-web.rb
+++ b/ag-web.rb
@@ -44,7 +44,7 @@ get '/:list/report/:msgid' do
     erb :report, locals: { message: result_data, list: params[:list] }
   rescue Exception => e
     $stderr.puts e.to_s
-    status 503
+    status 500
   end
 end
 
@@ -79,7 +79,7 @@ post '/report' do
     erb :reportsent, locals: { message: result_data, list: params[:list], msg: msg }
   rescue Exception => e
     $stderr.puts e.to_s
-    status 503
+    status 500
   end
 end
 
@@ -95,7 +95,7 @@ get '/:list/' do
     erb :listindex, locals: { results: result, list: params[:list], current_monthint: current_monthint }
   rescue => e
     $stderr.puts e.to_s
-    status 503
+    status 500
   end
 end
 
@@ -111,7 +111,7 @@ get '/:list/threads/:year-:month/:page?' do
     erb :listmonth, locals: { results: result, list: params[:list], current_page: current_page, max_pages: max_pages, mode: :threads }
   rescue => e
     $stderr.puts e.to_s
-    status 503
+    status 500
   end
 end
 
@@ -127,7 +127,7 @@ get '/:list/messages/:year-:month/:page?' do
     erb :listmonth, locals: { results: result, list: params[:list], current_page: current_page, max_pages: max_pages, mode: :messages }
   rescue => e
     $stderr.puts e.to_s
-    status 503
+    status 500
   end
 end
 
@@ -151,7 +151,7 @@ get '/:list/message/:msgid' do
     erb :message, locals: { message: result_data, list: params[:list], parent: parent_data, children: child_data }
   rescue Exception => e
     $stderr.puts e.to_s
-    status 503
+    status 500
   end
 end
 


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-02-25 11:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-22  0:30 [gentoo-commits] proj/ag-web:master commit in: / Alex Legler
  -- strict thread matches above, loose matches on Subject: below --
2015-02-25 11:02 Alex Legler
2015-02-22  0:48 Alex Legler
2015-02-22  0:29 Alex Legler
2015-02-22  0:19 Robin H. Johnson
2015-02-21 15:50 Alex Legler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox