README.md in refinements-5.2.0 vs README.md in refinements-6.0.0
- old
+ new
@@ -19,11 +19,10 @@
- [Using](#using)
- [Examples](#examples)
- [Array](#array)
- [Big Decimal](#big-decimal)
- [Hash](#hash)
- - [Object](#object)
- [String](#string)
- [Tests](#tests)
- [Versioning](#versioning)
- [Code of Conduct](#code-of-conduct)
- [Contributions](#contributions)
@@ -47,12 +46,10 @@
- `#symbolize_keys!` - Converts keys to symbols while modifying itself.
- `#deep_merge` - Merges deeply nested hashes together without modifying itself.
- `#deep_merge!` - Merges deeply nested hashes together while modifying itself.
- `#reverse_merge` - Merges calling hash into passed in hash without modifying calling hash.
- `#reverse_merge!` - Merges calling hash into passed in hash while modifying calling hash.
-- Provides Object refinements:
- - `#then` - Provides an alias to `yield_self` that is shorter to type.
- Provides String refinements:
- `#first` - Answers first character of a string or first set of characters if given a number.
- `#last` - Answers last character of a string or last set of characters if given a number.
- `#blank?` - Answers `true`/`false` based on whether string is blank or not (i.e. `<space>`,
`\n`, `\t`, `\r`).
@@ -64,12 +61,12 @@
- `#use` - Provides hash value computation, via a block, by using
only the keys as arguments to the block.
## Requirements
-0. [Ruby 2.5.x](https://www.ruby-lang.org).
-0. A solid understanding of [Ruby refinements and lexical scope](https://www.youtube.com/watch?v=qXC9Gk4dCEw).
+1. [Ruby 2.6.x](https://www.ruby-lang.org).
+1. A solid understanding of [Ruby refinements and lexical scope](https://www.youtube.com/watch?v=qXC9Gk4dCEw).
## Setup
Type the following to install:
@@ -169,16 +166,10 @@
example # => {a: 1, b: 2, c: 3}
example = {unit: "221B", street: "Baker Street", city: "London", country: "UK"}
example.use { |unit, street| "#{unit} #{street}" } # => "221B Baker Street"
-#### Object
-
- # Contrived for simplicity.
- example = "example"
- example.then(&:capitalize) # "Example"
-
#### String
"example".first # => "e"
"example".first 4 # => "exam"
@@ -198,10 +189,10 @@
bundle exec rake
## Versioning
-Read [Semantic Versioning](http://semver.org) for details. Briefly, it means:
+Read [Semantic Versioning](https://semver.org) for details. Briefly, it means:
- Major (X.y.z) - Incremented for any backwards incompatible public API changes.
- Minor (x.Y.z) - Incremented for new, backwards compatible, public API enhancements/fixes.
- Patch (x.y.Z) - Incremented for small, backwards compatible, bug fixes.