naturally 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71953ca154c0b7db095ccc5f8f877afed7142eb0bcf59a5118779ba2c8f79aa1
4
- data.tar.gz: 302ae86df325c4e526e1b8158dc669c497b27ae9b5ffe60d32bdcb206285eb46
3
+ metadata.gz: d6b9503d643f2bc2e137219f9572cff2e930a5565c55155d4204e2a77023f1b1
4
+ data.tar.gz: 8ba1b7379a6a5b13dc4487d8c2946e46484cc46853acf792ae0502e2debba830
5
5
  SHA512:
6
- metadata.gz: c7f607e695090c2d12a67b1410960312fbc4d9b7d046f1dea91513653fd00da13e01ebf92c1405efdb498a32029baae4733ddd022cee78becf67db7b4988bedd
7
- data.tar.gz: 3110d73168c9797628ad7490e1713785921abbce1651d54e9d8e1e2c6e2c65d9e5cbf77ad1c8b693ac49d2d4a7741ffb1198480f17a1f4b1fa9af2ca264d4c5f
6
+ metadata.gz: e7a58a43c54c821703e9eedc9455a37433d7c80cca3ccb1eeaafed11f43e5095a48e11cebb0d421d1bf36116f73a336b3ad78b5ce904895becb739e36d8655a4
7
+ data.tar.gz: a78a9c67ed7267bdb77eb2f7cb5fd5de79b22fe8297aaf634b2f30370ad00c401f22ea7ee4cc5949f3439995ea57aed86f69badfe7400731c78da27110005349
data/.travis.yml CHANGED
@@ -2,3 +2,5 @@ language: ruby
2
2
  rvm:
3
3
  - 2.4
4
4
  - 2.5
5
+ - 2.6
6
+ - 2.7
data/README.md CHANGED
@@ -1,9 +1,13 @@
1
1
  # Naturally
2
- [![Gem Version](https://badge.fury.io/rb/naturally.png)](http://badge.fury.io/rb/naturally) [![Build Status](https://travis-ci.org/public-law/naturally.png)](https://travis-ci.org/public-law/naturally)
3
- [![Maintainability](https://api.codeclimate.com/v1/badges/0ebf4ef97723f2622105/maintainability)](https://codeclimate.com/github/dogweather/naturally/maintainability)
2
+ [![Gem Version](https://badge.fury.io/rb/naturally.svg)](https://badge.fury.io/rb/naturally)
4
3
 
5
- Natural ("version number") sorting with support for **legal document numbering**, **college course codes**, and **Unicode**.
6
- See Jeff Atwood's [Sorting for Humans: Natural Sort Order](http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html) and the Public.Law post [Counting to 10 in Californian](https://blog.public.law/2012/08/07/counting-from-1-to-10-in-californian/).
4
+ Natural ("version number") sorting with support for:
5
+
6
+ * **legal document numbering**,
7
+ * **college course codes**, and
8
+ * **Unicode**.
9
+
10
+ See Jeff Atwood's [Sorting for Humans: Natural Sort Order](https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/) and my post [Counting to 10 in Californian](https://blog.public.law/2012/08/07/counting-from-1-to-10-in-californian/).
7
11
 
8
12
  ## Installation
9
13
 
@@ -41,7 +45,7 @@ releases = [
41
45
  ]
42
46
 
43
47
  # Sort by version number
44
- sorted = Naturally.sort releases, by: :version
48
+ sorted = Naturally.sort(releases, by: :version)
45
49
 
46
50
  # Check what we have
47
51
  expect(sorted.map(&:name)).to eq [
@@ -54,7 +58,7 @@ expect(sorted.map(&:name)).to eq [
54
58
  ]
55
59
  ```
56
60
 
57
- [More examples are in the specs](https://github.com/dogweather/naturally/blob/master/spec/naturally_spec.rb).
61
+ [More examples are in the specs](https://github.com/public-law/naturally/blob/master/spec/naturally_spec.rb).
58
62
 
59
63
 
60
64
  ## Implementation Notes
@@ -1,4 +1,4 @@
1
1
  module Naturally
2
2
  # Gem version
3
- VERSION = '2.2.1'
3
+ VERSION = '2.2.2'
4
4
  end
data/naturally.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.email = ["robb@public.law"]
11
11
  gem.summary = %q{Sorts numbers according to the way people are used to seeing them.}
12
12
  gem.description = %q{Natural Sorting with support for legal numbering, course numbers, and other number/letter mixes.}
13
- gem.homepage = "http://github.com/dogweather/naturally"
13
+ gem.homepage = "http://github.com/public-law/naturally"
14
14
  gem.required_ruby_version = '>= 2.0'
15
15
 
16
16
  gem.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: naturally
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-01-18 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: Natural Sorting with support for legal numbering, course numbers, and
14
13
  other number/letter mixes.
@@ -29,11 +28,10 @@ files:
29
28
  - lib/naturally/version.rb
30
29
  - naturally.gemspec
31
30
  - spec/naturally_spec.rb
32
- homepage: http://github.com/dogweather/naturally
31
+ homepage: http://github.com/public-law/naturally
33
32
  licenses:
34
33
  - MIT
35
34
  metadata: {}
36
- post_install_message:
37
35
  rdoc_options: []
38
36
  require_paths:
39
37
  - lib
@@ -48,8 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
48
46
  - !ruby/object:Gem::Version
49
47
  version: '0'
50
48
  requirements: []
51
- rubygems_version: 3.2.5
52
- signing_key:
49
+ rubygems_version: 3.6.9
53
50
  specification_version: 4
54
51
  summary: Sorts numbers according to the way people are used to seeing them.
55
52
  test_files: