Skip to content

Commit

Permalink
Removed unnecessary require "digest/sha2" in docs
Browse files Browse the repository at this point in the history
* After removal of the `encryption_key_sha256` parameter in PR 1109, I found
   an unnecessary require "digest/sha2" statement that can be confusing.
* This PR will remove this line from samples and also remove it from an
    acceptance test.
  • Loading branch information
Frank Natividad committed Dec 20, 2016
1 parent 9f89bf3 commit bdd0188
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion google-cloud-storage/acceptance/storage/file_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

require "storage_helper"
require "net/http"
require "digest/sha2"

describe Google::Cloud::Storage::File, :storage do
let :bucket do
Expand Down
1 change: 0 additions & 1 deletion google-cloud-storage/lib/google/cloud/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ module Cloud
#
# ```ruby
# require "google/cloud/storage"
# require "digest/sha2"
#
# storage = Google::Cloud::Storage.new
# bucket = storage.bucket "my-todo-app"
Expand Down
1 change: 0 additions & 1 deletion google-cloud-storage/lib/google/cloud/storage/bucket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,6 @@ def file path, generation: nil, encryption_key: nil
#
# @example Providing a customer-supplied encryption key:
# require "google/cloud/storage"
# require "digest/sha2"
#
# storage = Google::Cloud::Storage.new
# bucket = storage.bucket "my-bucket"
Expand Down

0 comments on commit bdd0188

Please sign in to comment.