Clean up syntax
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -50,6 +50,7 @@ namespace :litmus do
|
|||||||
desc "Run litmus test suite"
|
desc "Run litmus test suite"
|
||||||
task :run => :configure do
|
task :run => :configure do
|
||||||
sh "cd spec/dummy/ && rails server -d"
|
sh "cd spec/dummy/ && rails server -d"
|
||||||
|
sleep 1
|
||||||
puma_pid = `cat spec/dummy/tmp/pids/server.pid`
|
puma_pid = `cat spec/dummy/tmp/pids/server.pid`
|
||||||
exit_code = 0
|
exit_code = 0
|
||||||
|
|
||||||
@@ -60,7 +61,6 @@ namespace :litmus do
|
|||||||
puts "!!!!! Failure encountered during litmus test suite !!!!!"
|
puts "!!!!! Failure encountered during litmus test suite !!!!!"
|
||||||
end
|
end
|
||||||
|
|
||||||
sleep 1
|
|
||||||
sh "kill #{puma_pid}"
|
sh "kill #{puma_pid}"
|
||||||
exit exit_code
|
exit exit_code
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ module Calligraphy::Rails
|
|||||||
end
|
end
|
||||||
|
|
||||||
if conditions[:etag]
|
if conditions[:etag]
|
||||||
validators = [@resource.etag, ""]
|
validators = [@resource.etag, '']
|
||||||
conditions_met = false unless validate_etag validators, conditions[:etag]
|
conditions_met = false unless validate_etag validators, conditions[:etag]
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -149,7 +149,7 @@ module Calligraphy::Rails
|
|||||||
end
|
end
|
||||||
|
|
||||||
def get_client_nonce
|
def get_client_nonce
|
||||||
auth_header = request.headers["HTTP_AUTHORIZATION"]
|
auth_header = request.headers['HTTP_AUTHORIZATION']
|
||||||
|
|
||||||
auth = ::ActionController::HttpAuthentication::Digest.decode_credentials auth_header
|
auth = ::ActionController::HttpAuthentication::Digest.decode_credentials auth_header
|
||||||
auth[:cnonce]
|
auth[:cnonce]
|
||||||
|
|||||||
Reference in New Issue
Block a user