[logaling-commit] logaling/logalimacs [master] Fix method name to get response status

Back to archive index

null+****@clear***** null+****@clear*****
Thu Jun 7 12:17:22 JST 2012


yuta yamada	2012-06-07 12:17:22 +0900 (Thu, 07 Jun 2012)

  New Revision: ce83da2d09e14a19ec8e5de4529c5b36cd1d3d9b

  Log:
    Fix method name to get response status

  Modified files:
    Rakefile

  Modified: Rakefile (+1 -1)
===================================================================
--- Rakefile    2012-06-07 12:11:11 +0900 (9d3473e)
+++ Rakefile    2012-06-07 12:17:22 +0900 (faf8aba)
@@ -70,7 +70,7 @@ task :upload => :package do
   login_url = URI.parse("#{marmalade_api_base_url}/v1/users/login")
   response = Net::HTTP.post_form(login_url,
                                  {"name" => user, "password" => password})
-  if response.status != 200
+  if response.code != "200"
     raise "failed to login (#{user}): #{response.body}"
   end
   login_info = JSON.parse(response.body)




More information about the logaling-commit mailing list
Back to archive index