README.md in deepl-rb-1.0.0 vs README.md in deepl-rb-1.0.1
- old
+ new
@@ -14,11 +14,11 @@
```
Or add it to your Gemfile:
```rb
-gem 'deepl-rb'
+gem 'deepl-rb', require: 'deepl'
```
## Usage
Setup an environment variable named `DEEPL_AUTH_KEY` with your authentication key:
@@ -91,14 +91,13 @@
| `PL` | Polish
You can also use custom query parameters, like `tag_handling`:
```rb
-texts = ['Sample text',ยก]
translation = DeepL.translate '<p>A sample</p>', 'EN', 'ES', tag_handling: true
puts translation.text
-# => ""
+# => "<p>Una muestra</p>"
```
### Handle exceptions
You can capture and process exceptions that may be raised during API calls. These are all the possible exceptions: