range_compressor 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile +7 -0
- data/README.md +1 -1
- data/lib/range_compressor/version.rb +1 -1
- data/lib/range_compressor.rb +1 -0
- data/range_compressor.gemspec +0 -7
- metadata +4 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76bb69e9cee7120d43ba333dca4ae67b699eba91893bc963b9bb6d904eec57aa
|
4
|
+
data.tar.gz: a32ac8091770ede579ae03238a1774b370609bff5521875a7aca19cdfd1c0ab2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fce2b59dad8f9a70ea85000dae4cb64cee60baafa27751b063107deba93d06636d564ca61fd14bcd3c8fbbdfead982c839dfbf84d46564ce1e36a7fcd41860ad
|
7
|
+
data.tar.gz: cd1f5fb41e3d0b014b10b3f31a3482ebbff5179736c284bfb0e7fe408e614375df2a1931e1d145ee2879bdcd68030537140877e93a765318de91b7b4ecc85ce4
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [1.1.1]
|
8
|
+
|
9
|
+
### Fixed
|
10
|
+
|
11
|
+
- fixed unnecessary double sorting when given RBTree instances as input
|
12
|
+
|
7
13
|
## [1.1.0]
|
8
14
|
|
9
15
|
### Added
|
data/Gemfile
CHANGED
@@ -4,3 +4,10 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in range_compressor.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
gem 'rake', '~> 13.0'
|
9
|
+
gem 'rspec', '~> 3.8'
|
10
|
+
# SortedSet was moved to a gem in Ruby 3.
|
11
|
+
if RUBY_VERSION.to_f >= 3.0 && !RUBY_PLATFORM[/java/i]
|
12
|
+
gem 'sorted_set', '~> 1.0'
|
13
|
+
end
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ A micro-gem that compresses enumerables into Ranges.
|
|
8
8
|
| Input | Output |
|
9
9
|
|----------------------------|----------------------|
|
10
10
|
| [1, 2, 3, 4, 6, 8, 9, 10] | [1..4, 6..6, 8..10] |
|
11
|
-
| %w[a b c e g h]
|
11
|
+
| %w[a b c e f g h] | ['a'..'c', 'e'..'h'] |
|
12
12
|
| [1..5, 3..8] | [1..8] |
|
13
13
|
| [Set[1, 2], 3..6, [9, 10]] | [1..6, 9..10] |
|
14
14
|
|
data/lib/range_compressor.rb
CHANGED
data/range_compressor.gemspec
CHANGED
@@ -18,11 +18,4 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.require_paths = ['lib']
|
19
19
|
|
20
20
|
s.required_ruby_version = '>= 1.9.3'
|
21
|
-
|
22
|
-
s.add_development_dependency 'rake', '~> 13.0'
|
23
|
-
s.add_development_dependency 'rspec', '~> 3.8'
|
24
|
-
# SortedSet was moved to a gem in Ruby 3.
|
25
|
-
if RUBY_VERSION.to_f >= 3.0 && !RUBY_PLATFORM[/java/i]
|
26
|
-
s.add_development_dependency 'sorted_set', '~> 1.0'
|
27
|
-
end
|
28
21
|
end
|
metadata
CHANGED
@@ -1,57 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: range_compressor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janosch Müller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: rake
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '13.0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '13.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rspec
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '3.8'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '3.8'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: sorted_set
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.0'
|
11
|
+
date: 2022-02-08 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
55
13
|
description:
|
56
14
|
email:
|
57
15
|
- janosch84@gmail.com
|
@@ -91,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
49
|
- !ruby/object:Gem::Version
|
92
50
|
version: '0'
|
93
51
|
requirements: []
|
94
|
-
rubygems_version: 3.
|
52
|
+
rubygems_version: 3.3.3
|
95
53
|
signing_key:
|
96
54
|
specification_version: 4
|
97
55
|
summary: Compresses Arrays of Objects to Arrays of Ranges.
|