[Hiki-cvs 1449] [996] raise RuntimeError when call some methods

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 8月 24日 (月) 00:02:07 JST


Revision: 996
          http://sourceforge.jp/projects/hiki/svn/view?view=rev&revision=996
Author:   okkez
Date:     2009-08-24 00:02:07 +0900 (Mon, 24 Aug 2009)

Log Message:
-----------
raise RuntimeError when call some methods

Modified Paths:
--------------
    hiki/branches/rack/hiki/request.rb

Modified: hiki/branches/rack/hiki/request.rb
===================================================================
--- hiki/branches/rack/hiki/request.rb	2009-08-23 15:02:03 UTC (rev 995)
+++ hiki/branches/rack/hiki/request.rb	2009-08-23 15:02:07 UTC (rev 996)
@@ -63,12 +63,15 @@
       end
 
       def xhr?
+        raise 'not implemented'
       end
 
       def accept_encoding
+        raise 'not implemented'
       end
 
       def body
+        raise 'not implemented'
       end
 
       def content_charset
@@ -104,21 +107,27 @@
       end
 
       def form_data?
+        raise 'not implemented'
       end
 
       def fullpath
+        raise 'not implemented'
       end
 
       def host
+        raise 'not implemented'
       end
 
       def ip
+        raise 'not implemented'
       end
 
       def media_type
+        raise 'not implemented'
       end
 
       def media_type_params
+        raise 'not implemented'
       end
 
       def openid_request
@@ -130,43 +139,58 @@
       end
 
       def parseable_data?
+        raise 'not implemented'
       end
 
       def path
+        raise 'not implemented'
       end
 
       def path_info
+        raise 'not implemented'
       end
 
       def path_info=(s)
+        raise 'not implemented'
       end
 
       def port
+        raise 'not implemented'
       end
 
       def query_string
+        raise 'not implemented'
       end
 
       def referer
+        raise 'not implemented'
       end
       alias referrer referer
 
       def schema
+        raise 'not implemented'
       end
 
       def script_name
+        raise 'not implemented'
       end
 
       def session_options
+        raise 'not implemented'
       end
 
       def url
+        raise 'not implemented'
       end
 
       def values_at(*keys)
+        raise 'not implemented'
       end
     end
   else
     Request = ::Rack::Request
+    class ::Rack::Request
+      alias remote_addr ip
+    end
   end
 end




Hiki-cvs メーリングリストの案内
Back to archive index