Skip to content

Commit

Permalink
README.md Spacing Fixes
Browse files Browse the repository at this point in the history
Noticed there was some odd indentation in the README, quick patch to normalize that.
  • Loading branch information
baweaver authored May 18, 2023
1 parent 833291d commit 89c4361
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,24 @@ Supported Ruby Interpreters
## Installation

```bash
gem install webmock
gem install webmock
```
or alternatively:

```ruby
# add to your Gemfile
group :test do
gem "webmock"
end
# add to your Gemfile
group :test do
gem "webmock"
end
```

### or to install the latest development version from github master

git clone http://github.com/bblimke/webmock.git
cd webmock
rake install
```bash
git clone http://github.com/bblimke/webmock.git
cd webmock
rake install
```

## Upgrading from v1.x to v2.x

Expand Down Expand Up @@ -383,7 +385,8 @@ RestClient.post('www.example.net', 'abc') # ===> "abc\n"

### Dynamically evaluated raw responses recorded with `curl -is`

`curl -is www.example.com > /tmp/www.example.com.txt`
`curl -is www.example.com > /tmp/www.example.com.txt`

```ruby
stub_request(:get, "www.example.com").
to_return(lambda { |request| File.new("/tmp/#{request.uri.host.to_s}.txt") })
Expand Down

0 comments on commit 89c4361

Please sign in to comment.