Skip to content

Commit

Permalink
Enable warnings and fix some violations
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Apr 14, 2014
1 parent 0151fc8 commit aa132e2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .rspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
--color
--format documentation
--backtrace
--default_path spec
--order random
--warnings
1 change: 0 additions & 1 deletion lib/rbnacl/hash.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def self.sha512(data)
#
# @return [String] The blake2b hash as raw bytes (Or encoded as per the second argument)
def self.blake2b(data, options = {})
key = options[:key]
Blake2b.new(options).digest(data)
end
end
Expand Down
1 change: 0 additions & 1 deletion lib/rbnacl/self_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ def box_common_test(box)
passed = false
corrupt_ct = ciphertext.dup
corrupt_ct[23] = ' '
corrupt_ct
box.decrypt(nonce, corrupt_ct)
rescue CryptoError
passed = true
Expand Down
2 changes: 0 additions & 2 deletions spec/shared/box.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# encoding: binary

require 'spec_helper'

shared_examples "box" do
let(:nonce) { vector :box_nonce }
let(:invalid_nonce) { nonce[0,12] } # too short!
Expand Down

0 comments on commit aa132e2

Please sign in to comment.