README.md in safe_target_blank-1.0.1 vs README.md in safe_target_blank-1.0.2
- old
+ new
@@ -18,32 +18,35 @@
gem 'safe_target_blank'
Now each time you use the `link_to` helper with `target="_blank"`, `rel="noopener noreferrer"` will be added.
```ruby
-link_to 'Safe', 'safe.io', taget: :_blank
+link_to 'Safe', 'safe.io', target: :_blank
#=> '<a target="_blank" rel="noopener noreferrer" href="safe.io">Safe</a>'
```
You can opt out with `opener` and `referrer` options.
```ruby
-link_to 'Safe', 'safe.io', taget: :_blank, referrer: true
+link_to 'Safe', 'safe.io', target: :_blank, referrer: true
#=> '<a target="_blank" rel="noopener" href="safe.io">Safe</a>'
```
Or disable it globally.
```ruby
SafeTargetBlank.opener = true
-link_to 'Safe', 'safe.io', taget: :_blank
+link_to 'Safe', 'safe.io', target: :_blank
#=> '<a target="_blank" rel="noreferrer" href="safe.io">Safe</a>'
```
## Contributing
-After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
+After checking out the repo, run `bin/setup` to install dependencies.
+Then, run `rake` to run the tests.
-Bug reports and pull requests are welcome on GitHub at https://github.com/jvenezia/safe_target_blank. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
+You can also run `bin/console` for an interactive prompt that will allow you to experiment.
+
+Bug reports and pull requests are welcome on GitHub.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).