From 2feb76632284109b45aba5cdcedf377541acf7ef Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Tue, 16 Jul 2013 18:54:25 +0200 Subject: comments removed --- lib/opentox-client.rb | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib') diff --git a/lib/opentox-client.rb b/lib/opentox-client.rb index 8683d0f..7c48d9c 100644 --- a/lib/opentox-client.rb +++ b/lib/opentox-client.rb @@ -53,17 +53,5 @@ FALSE_REGEXP = /^(false|inactive|0|0.0|low tox|deactivating|non-carcinogen|non-m if defined?($aa) and $aa[:uri] OpenTox::RestClientWrapper.subjectid = OpenTox::Authorization.authenticate($aa[:user],$aa[:password]) unauthorized_error "Failed to authenticate user \"#{$aa[:user]}\"." unless OpenTox::Authorization.is_token_valid(OpenTox::RestClientWrapper.subjectid) -#else - #@@subjectid = nil end -=begin -module OpenTox - if defined?($aa) and $aa[:uri] - SUBJECTID = OpenTox::Authorization.authenticate($aa[:user],$aa[:password]) - unauthorized_error "Failed to authenticate user \"#{$aa[:user]}\"." unless OpenTox::Authorization.is_token_valid(SUBJECTID) - else - SUBJECTID = nil - end -end -=end -- cgit v1.2.3