Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Oct 19, 2024
1 parent ac7acb5 commit ab74cd8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
fail-fast: true
matrix:
ruby:
- 2.7
- 3.0
- 3.1
- 3.2
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.3.0 - 2024-10-20

* Remove `NaturalSort::Kernel` module.
* Drop support for Ruby 2.7 and prior.
* Add Github Actions and remove Travis CI.

## 1.2.0 - 2013-10-10
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ NaturalSort is a simple library which implements a natural, human-friendly alpha
## Examples

```ruby
%w(a1 a11 a12 a2 a21).natural_sort #=> %w(a1 a2 a11 a12 a21)
%w(a b c A B C).natural_sort #=> %w(A a B b C c)
%w(x__2 x_1).natural_sort #=> %w(x_1 x__2)
%w(x2-y08 x2-g8 x2-y7 x8-y8).natural_sort #=> %w(x2-g8 x2-y7 x2-y08 x8-y8)
%w(x02-y08 x02-g8 x2-y7 x8-y8).natural_sort #=> %w(x02-g8 x2-y7 x02-y08 x8-y8)
%w[a1 a11 a12 a2 a21].natural_sort #=> %w[a1 a2 a11 a12 a21]
%w[a b c A B C].natural_sort #=> %w[A a B b C c]
%w[x__2 x_1].natural_sort #=> %w[x_1 x__2]
%w[x2-y08 x2-g8 x2-y7 x8-y8].natural_sort #=> %w[x2-g8 x2-y7 x2-y08 x8-y8]
%w[x02-y08 x02-g8 x2-y7 x8-y8].natural_sort #=> %w[x02-g8 x2-y7 x02-y08 x8-y8]
```

## Features
Expand Down Expand Up @@ -72,7 +72,7 @@ Adds `natural_sort` methods to Ruby native enumerable objects (Array, Hash, etc.

[person_1, person_2, person_3].sort{|a,b| NaturalSort.comparator(a.name, b.name)} #=> [person_3, person_2, person_1]

sorted = %w[a b c A B C].natural_sort
%w[a b c A B C].natural_sort
```

#### Include into your own objects
Expand All @@ -89,7 +89,7 @@ Can be used to add `#natural_sort` method to on any enumerable object or any obj
todo_list << 'Water plants'
todo_list << 'Feed dog'

todo_list.natural_sort #=> ['Feed dog', 'Wash car', 'Water plants']
todo_list.natural_sort #=> ['Feed dog', 'Wash car', 'Water plants']
```

## Authors
Expand Down

0 comments on commit ab74cd8

Please sign in to comment.