README.md in defi-1.1.5 vs README.md in defi-2.0.0
- old
+ new
@@ -1,12 +1,12 @@
# Defi
-[![Build Status](https://travis-ci.org/fixrb/defi.svg?branch=master)][travis]
+[![Build Status](https://api.travis-ci.org/fixrb/defi.svg?branch=master)][travis]
[![Code Climate](https://codeclimate.com/github/fixrb/defi/badges/gpa.svg)][codeclimate]
[![Gem Version](https://badge.fury.io/rb/defi.svg)][gem]
-[![Inline docs](http://inch-ci.org/github/fixrb/defi.svg?branch=master)][inchpages]
-[![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
+[![Inline docs](https://inch-ci.org/github/fixrb/defi.svg?branch=master)][inchpages]
+[![Documentation](https://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
> Challenge library.
## Contact
@@ -14,12 +14,12 @@
* Bugs/issues: https://github.com/fixrb/defi/issues
## Rubies
* [MRI](https://www.ruby-lang.org/)
-* [Rubinius](http://rubini.us/)
-* [JRuby](http://jruby.org/)
+* [Rubinius](https://rubinius.com/)
+* [JRuby](https://www.jruby.org/)
## Installation
Add this line to your application's Gemfile:
@@ -35,22 +35,30 @@
$ gem install defi
## Usage
-Let's challenge `6` to be multiplied by seven:
+Let's multiply by `7` the number `6`:
```ruby
-Defi.send(:*, 7).to(6) # => 42
+Defi.send(:*, 7).to(6).call # => 42
```
-Now, let's challenge `"foo"` to respond to a `boom` method:
+Now, let's challenge "`foo`" with `boom` method:
```ruby
-Defi.send(:boom).to('foo') # NoMethodError: undefined method `boom' for "foo":String
+Defi.send(:boom).to('foo').call # NoMethodError: undefined method `boom' for "foo":String
```
+Let's challenge "`hello world`" with `gsub!` in isolation:
+
+```ruby
+some_text = 'hello world'
+Defi.send(:gsub!, 'world', 'Alice').to!(some_text).call # => "hello Alice"
+some_text # => "hello world"
+```
+
## Security
As a basic form of security __Defi__ provides a set of SHA512 checksums for
every Gem release. These checksums can be found in the `checksum/` directory.
Although these checksums do not prevent malicious users from tampering with a
@@ -62,11 +70,11 @@
$ sha512sum pkg/defi-1.0.0.gem
c30380a253c932bbff42a36611466f2b7d59e6a1d9578a4989e7b2cfd4078cf9d64e452b0eaa055c5ab88be4816d3f366d7aa705d29bb54e2db9f75d21f36cf7 pkg/defi-1.0.0.gem
## Versioning
-__Defi__ follows [Semantic Versioning 2.0](http://semver.org/).
+__Defi__ follows [Semantic Versioning 2.0](https://semver.org/).
## Contributing
1. [Fork it](https://github.com/fixrb/defi/fork)
2. Create your feature branch (`git checkout -b my-new-feature`)
@@ -79,14 +87,17 @@
See `LICENSE.md` file.
[gem]: https://rubygems.org/gems/defi
[travis]: https://travis-ci.org/fixrb/defi
[codeclimate]: https://codeclimate.com/github/fixrb/defi
-[gemnasium]: https://gemnasium.com/fixrb/defi
-[inchpages]: http://inch-ci.org/github/fixrb/defi
-[rubydoc]: http://rubydoc.info/gems/defi/frames
+[inchpages]: https://inch-ci.org/github/fixrb/defi
+[rubydoc]: https://rubydoc.info/gems/defi/frames
***
-This project is sponsored by:
+<p>
+ This project is sponsored by:
-[![Sashite](https://sashite.com/img/sashite.png)](https://sashite.com/)
+ <a href="https://sashite.com/"><img
+ src="https://github.com/fixrb/defi/raw/bdf560d73e7ff2306f6f4a071ced36b383cbf35d/img/sashite.png"
+ alt="Sashite" /></a>
+</p>