README.md in tcr-0.0.4 vs README.md in tcr-0.0.5
- old
+ new
@@ -1,7 +1,14 @@
# TCR (TCP + VCR)
+[![Build Status](https://travis-ci.org/robforman/tcr.png?branch=master)](https://travis-ci.org/robforman/tcr)
+
+[ ![Codeship Status for SalesLoft/melody](https://www.codeship.io/projects/9fcbda40-6859-0132-9920-3ad5c353d440/status?branch=master)](https://www.codeship.io/projects/53337)
+
+
+
+
TCR is a *very* lightweight version of [VCR](https://github.com/vcr/vcr) for TCP sockets.
Currently used for recording 'net/smtp' interactions so only a few of the TCPSocket methods are recorded out.
## Installation
@@ -52,9 +59,17 @@
]
]
```
Run it again, and TCR will replay the interactions from json when the tcp request is made. This test is now fast (no real TCP requests are made anymore), deterministic and accurate.
+
+You can disable TCR hooking TCPSocket ports for a given block via `turned_off`:
+
+```ruby
+TCR.turned_off do
+ tcp_socket = TCPSocket.open("aspmx.l.google.com", 25)
+end
+```
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)