merginator 0.2.2 → 0.2.3.1
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 +4 -4
- data/CHANGELOG.md +11 -0
- data/Gemfile +16 -6
- data/Gemfile.lock +45 -28
- data/lib/merginator/pattern_merge.rb +1 -1
- data/lib/merginator/version.rb +1 -1
- data/rbs_collection.lock.yaml +8 -10
- data/rbs_collection.yaml +2 -0
- metadata +2 -3
- data/merginator.gemspec +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 321415b27631c9ff9994aab44bb722b36f958968987955da56239570f891f574
|
4
|
+
data.tar.gz: e2d178068865787f7bb9f9591a96849dcb50b1e94a9ce6536e2aef613008b819
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69217b847c087900d958850dca6a47c75b39eb77cd2d88c0469a0e5529b6d6b38008465a33a09e21413f760146345c40d8a99f2a297472b714ef683c6c7cc858
|
7
|
+
data.tar.gz: 6cc3e942612bce94f9e58893b68a975c3ff180e50916293ee5ab4dafd9bc79719686c490fc520eaa5ac3273dcc5cd16d008b4a0ef55427fdd4e5d6d55cd75767
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
## [0.2.3.1] - 2024-03-12
|
2
|
+
|
3
|
+
- Dependency updates
|
4
|
+
- GitHub actions updates
|
5
|
+
- Testing on more Ruby versions
|
6
|
+
- Development (RBS, Steep) configuration
|
7
|
+
|
8
|
+
## [0.2.3] - 2023-06-30
|
9
|
+
|
10
|
+
- Fixing issue where array of arrays would be flattened completely unexpectedly
|
11
|
+
|
1
12
|
## [0.2.2] - 2023-06-30
|
2
13
|
|
3
14
|
- Updating ignore total behavior to actually ignore total when validating
|
data/Gemfile
CHANGED
@@ -7,9 +7,19 @@ gemspec
|
|
7
7
|
|
8
8
|
gem 'rake'
|
9
9
|
|
10
|
-
|
11
|
-
gem '
|
12
|
-
gem 'rubocop
|
13
|
-
gem 'rubocop-
|
14
|
-
gem '
|
15
|
-
|
10
|
+
group :development do
|
11
|
+
gem 'bundler-audit', require: false
|
12
|
+
gem 'rubocop', require: false
|
13
|
+
gem 'rubocop-minitest', require: false
|
14
|
+
gem 'rubocop-rake', require: false
|
15
|
+
end
|
16
|
+
|
17
|
+
group :test do
|
18
|
+
gem 'minitest', require: false
|
19
|
+
gem 'simplecov', require: false
|
20
|
+
end
|
21
|
+
|
22
|
+
group :development, :test do
|
23
|
+
gem 'rbs', '~> 3.1', '>= 3.1.3', require: false
|
24
|
+
gem 'steep', '~> 1.5', '>= 1.5.3', require: false
|
25
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,45 +1,59 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
merginator (0.2.
|
4
|
+
merginator (0.2.3.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
activesupport (7.
|
9
|
+
activesupport (7.1.3.2)
|
10
|
+
base64
|
11
|
+
bigdecimal
|
10
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
+
connection_pool (>= 2.2.5)
|
14
|
+
drb
|
11
15
|
i18n (>= 1.6, < 2)
|
12
16
|
minitest (>= 5.1)
|
17
|
+
mutex_m
|
13
18
|
tzinfo (~> 2.0)
|
14
19
|
ast (2.4.2)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
20
|
+
base64 (0.1.1)
|
21
|
+
bigdecimal (3.1.6)
|
22
|
+
bundler-audit (0.9.1)
|
23
|
+
bundler (>= 1.2.0, < 3)
|
24
|
+
thor (~> 1.0)
|
25
|
+
concurrent-ruby (1.2.3)
|
26
|
+
connection_pool (2.4.1)
|
27
|
+
csv (3.2.8)
|
28
|
+
docile (1.4.0)
|
29
|
+
drb (2.2.1)
|
30
|
+
ffi (1.16.3)
|
31
|
+
fileutils (1.7.2)
|
32
|
+
i18n (1.14.4)
|
21
33
|
concurrent-ruby (~> 1.0)
|
22
|
-
json (2.
|
34
|
+
json (2.7.1)
|
23
35
|
language_server-protocol (3.17.0.3)
|
24
|
-
listen (3.
|
36
|
+
listen (3.9.0)
|
25
37
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
26
38
|
rb-inotify (~> 0.9, >= 0.9.10)
|
27
|
-
logger (1.
|
28
|
-
minitest (5.
|
39
|
+
logger (1.6.0)
|
40
|
+
minitest (5.22.2)
|
41
|
+
mutex_m (0.2.0)
|
29
42
|
parallel (1.23.0)
|
30
|
-
parser (3.
|
43
|
+
parser (3.3.0.5)
|
31
44
|
ast (~> 2.4.1)
|
32
45
|
racc
|
33
|
-
racc (1.7.
|
46
|
+
racc (1.7.3)
|
34
47
|
rainbow (3.1.1)
|
35
48
|
rake (13.0.6)
|
36
49
|
rb-fsevent (0.11.2)
|
37
50
|
rb-inotify (0.10.1)
|
38
51
|
ffi (~> 1.0)
|
39
|
-
rbs (3.1.
|
52
|
+
rbs (3.1.3)
|
40
53
|
regexp_parser (2.8.1)
|
41
|
-
rexml (3.2.
|
42
|
-
rubocop (1.
|
54
|
+
rexml (3.2.6)
|
55
|
+
rubocop (1.56.3)
|
56
|
+
base64 (~> 0.1.1)
|
43
57
|
json (~> 2.3)
|
44
58
|
language_server-protocol (>= 3.17.0)
|
45
59
|
parallel (~> 1.10)
|
@@ -47,7 +61,7 @@ GEM
|
|
47
61
|
rainbow (>= 2.2.2, < 4.0)
|
48
62
|
regexp_parser (>= 1.8, < 3.0)
|
49
63
|
rexml (>= 3.2.5, < 4.0)
|
50
|
-
rubocop-ast (>= 1.28.
|
64
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
51
65
|
ruby-progressbar (~> 1.7)
|
52
66
|
unicode-display_width (>= 2.4.0, < 3.0)
|
53
67
|
rubocop-ast (1.29.0)
|
@@ -57,16 +71,16 @@ GEM
|
|
57
71
|
rubocop-rake (0.6.0)
|
58
72
|
rubocop (~> 1.0)
|
59
73
|
ruby-progressbar (1.13.0)
|
60
|
-
securerandom (0.
|
61
|
-
simplecov (0.
|
74
|
+
securerandom (0.3.1)
|
75
|
+
simplecov (0.22.0)
|
62
76
|
docile (~> 1.1)
|
63
77
|
simplecov-html (~> 0.11)
|
64
78
|
simplecov_json_formatter (~> 0.1)
|
65
79
|
simplecov-html (0.12.3)
|
66
|
-
simplecov_json_formatter (0.1.
|
67
|
-
steep (1.
|
80
|
+
simplecov_json_formatter (0.1.4)
|
81
|
+
steep (1.5.3)
|
68
82
|
activesupport (>= 5.1)
|
69
|
-
concurrent-ruby (>= 1.
|
83
|
+
concurrent-ruby (>= 1.1.10)
|
70
84
|
csv (>= 3.0.9)
|
71
85
|
fileutils (>= 1.1.0)
|
72
86
|
json (>= 2.1.0)
|
@@ -75,29 +89,32 @@ GEM
|
|
75
89
|
logger (>= 1.3.0)
|
76
90
|
parser (>= 3.1)
|
77
91
|
rainbow (>= 2.2.2, < 4.0)
|
78
|
-
rbs (>=
|
92
|
+
rbs (>= 3.1.0)
|
79
93
|
securerandom (>= 0.1)
|
80
94
|
strscan (>= 1.0.0)
|
81
95
|
terminal-table (>= 2, < 4)
|
82
|
-
strscan (3.0
|
96
|
+
strscan (3.1.0)
|
83
97
|
terminal-table (3.0.2)
|
84
98
|
unicode-display_width (>= 1.1.1, < 3)
|
99
|
+
thor (1.3.1)
|
85
100
|
tzinfo (2.0.6)
|
86
101
|
concurrent-ruby (~> 1.0)
|
87
|
-
unicode-display_width (2.
|
102
|
+
unicode-display_width (2.5.0)
|
88
103
|
|
89
104
|
PLATFORMS
|
90
105
|
ruby
|
91
106
|
|
92
107
|
DEPENDENCIES
|
108
|
+
bundler-audit
|
93
109
|
merginator!
|
94
110
|
minitest
|
95
111
|
rake
|
112
|
+
rbs (~> 3.1, >= 3.1.3)
|
96
113
|
rubocop
|
97
114
|
rubocop-minitest
|
98
115
|
rubocop-rake
|
99
116
|
simplecov
|
100
|
-
steep
|
117
|
+
steep (~> 1.5, >= 1.5.3)
|
101
118
|
|
102
119
|
BUNDLED WITH
|
103
|
-
2.
|
120
|
+
2.4.22
|
@@ -67,7 +67,7 @@ module Merginator
|
|
67
67
|
|
68
68
|
def merge_collections_into_wrapper(slices_for_collections, wrapper:, total:)
|
69
69
|
slices_for_collections.map(&:size).max.to_i.times.each_with_object(wrapper) do |index, wrapper_obj|
|
70
|
-
wrapper_obj.concat
|
70
|
+
wrapper_obj.concat(slices_for_collections.map { |slices| slices[index] || [] }.flatten(1))
|
71
71
|
break(wrapper_obj) if wrapper_obj.size >= total
|
72
72
|
end
|
73
73
|
|
data/lib/merginator/version.rb
CHANGED
data/rbs_collection.lock.yaml
CHANGED
@@ -1,18 +1,16 @@
|
|
1
1
|
---
|
2
|
-
sources:
|
3
|
-
- type: git
|
4
|
-
name: ruby/gem_rbs_collection
|
5
|
-
revision: 87fba082504c606c03edf724cdf2e119bcd46c8c
|
6
|
-
remote: https://github.com/ruby/gem_rbs_collection.git
|
7
|
-
repo_dir: gems
|
8
2
|
path: ".gem_rbs_collection"
|
9
3
|
gems:
|
10
|
-
- name:
|
4
|
+
- name: fileutils
|
11
5
|
version: '0'
|
12
6
|
source:
|
13
7
|
type: stdlib
|
14
|
-
- name:
|
15
|
-
version: '0'
|
8
|
+
- name: rake
|
9
|
+
version: '13.0'
|
16
10
|
source:
|
17
|
-
type:
|
11
|
+
type: git
|
12
|
+
name: ruby/gem_rbs_collection
|
13
|
+
revision: 372c833bb52be1bc34aef5e2793ab47c35c0dba9
|
14
|
+
remote: https://github.com/ruby/gem_rbs_collection.git
|
15
|
+
repo_dir: gems
|
18
16
|
gemfile_lock_path: Gemfile.lock
|
data/rbs_collection.yaml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merginator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Verhey
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Merge 2 or more collections based on a repeating pattern.
|
14
14
|
email:
|
@@ -30,7 +30,6 @@ files:
|
|
30
30
|
- lib/merginator.rb
|
31
31
|
- lib/merginator/pattern_merge.rb
|
32
32
|
- lib/merginator/version.rb
|
33
|
-
- merginator.gemspec
|
34
33
|
- rbs_collection.lock.yaml
|
35
34
|
- rbs_collection.yaml
|
36
35
|
- sig/merginator.rbs
|
data/merginator.gemspec
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'lib/merginator/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'merginator'
|
7
|
-
spec.version = Merginator::VERSION
|
8
|
-
spec.authors = ['Ryan Verhey']
|
9
|
-
spec.email = ['ryan@ryanverhey.com']
|
10
|
-
|
11
|
-
spec.summary = 'Merging collections based on a pattern.'
|
12
|
-
spec.description = 'Merge 2 or more collections based on a repeating pattern.'
|
13
|
-
spec.homepage = 'https://github.com/RyanVerhey/merginator'
|
14
|
-
spec.license = 'MIT'
|
15
|
-
spec.required_ruby_version = '>= 2.7.8'
|
16
|
-
|
17
|
-
spec.metadata['homepage_uri'] = spec.homepage
|
18
|
-
spec.metadata['source_code_uri'] = 'https://github.com/RyanVerhey/merginator'
|
19
|
-
spec.metadata['changelog_uri'] = 'https://github.com/RyanVerhey/merginator/blob/main/CHANGELOG.md'
|
20
|
-
|
21
|
-
# Specify which files should be added to the gem when it is released.
|
22
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
-
spec.files = Dir.chdir(__dir__) do
|
24
|
-
`git ls-files -z`.split("\x0").reject do |f|
|
25
|
-
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|circleci)|appveyor)})
|
26
|
-
end
|
27
|
-
end
|
28
|
-
spec.bindir = 'exe'
|
29
|
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
30
|
-
spec.require_paths = ['lib']
|
31
|
-
|
32
|
-
# Uncomment to register a new dependency of your gem
|
33
|
-
# spec.add_dependency "example-gem", "~> 1.0"
|
34
|
-
|
35
|
-
# For more information and examples about making a new gem, check out our
|
36
|
-
# guide at: https://bundler.io/guides/creating_gem.html
|
37
|
-
spec.metadata['rubygems_mfa_required'] = 'true'
|
38
|
-
end
|