README.md in redis-mutex-2.1.1 vs README.md in redis-mutex-3.0.0
- old
+ new
@@ -35,11 +35,17 @@
the lock will be automatically removed to avoid a deadlock situation in case your job is dead before releasing the lock. Also note
that you can configure any of these timing values, as explained later.
Or if you want to immediately receive `false` on an unsuccessful locking attempt, you can change the mutex mode to **non-blocking**.
-Changes in v2.0
----------------
+Changelog
+---------
+
+### v3.0
+
+* Ruby 2.0 or later is required.
+
+### v2.0
* **Exception-based control flow**: Added `lock!` and `unlock!`, which raises an exception when fails to acquire a lock. Raises `Redis::Mutex::LockError` and `Redis::Mutex::UnlockError` respectively.
* **INCOMPATIBLE CHANGE**: `#lock` no longer accepts a block. Use `#with_lock` instead, which uses `lock!` internally and returns the value of block.
* `unlock` returns boolean values for success / failure, for consistency with `lock`.