Skip to content

Commit

Permalink
require only s3 from aws sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
wbotelhos authored and mattheworiordan committed Nov 2, 2017
1 parent 18eb0a0 commit 71ee66e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ Uploading screenshots to S3
--------------------------
You can configure capybara-screenshot to automatically save your screenshots to an AWS S3 bucket.

First, install the `aws-sdk` gem or add it to your Gemfile
First, install the `aws-sdk-s3` gem or add it to your Gemfile

```ruby
gem 'capybara-screenshot', :group => :test
gem 'aws-sdk', :group => :test
gem 'aws-sdk-s3', group: :test
gem 'capybara-screenshot', group: :test
```

Next, configure capybara-screenshot with your S3 credentials, the bucket to save to, and an optional region (default: `us-east-1`).
Expand Down
2 changes: 1 addition & 1 deletion capybara-screenshot.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'test-unit'
s.add_development_dependency 'spinach'
s.add_development_dependency 'minitest'
s.add_development_dependency 'aws-sdk'
s.add_development_dependency 'aws-sdk-s3'

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
Expand Down
2 changes: 1 addition & 1 deletion lib/capybara-screenshot/s3_saver.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'aws-sdk'
require 'aws-sdk-s3'

module Capybara
module Screenshot
Expand Down

0 comments on commit 71ee66e

Please sign in to comment.