groups_by 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9f28904725eec72b0357363797953cb4a3b8445a
4
+ data.tar.gz: afadd8777ad851fff079af13724a013c212f5d6e
5
+ SHA512:
6
+ metadata.gz: '0483d2eb03687589d708de912edaed59e85c8c7dea0d82b8d4aa4d50902e91991f6a6196d50e275be54d84f0dc28c28a2c85d0ee8518209b6ec39894c994689a'
7
+ data.tar.gz: 40f60d4bee8460a739584ef98f4650c0a4f36b2ada65cad3a29ca486b52f758b9016fe803b348493fd07e5190cb1f494770aa4a0553a8cb1cc61fde623e72f4c
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.3
5
+ before_install: gem install bundler -v 1.15.3
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at karol.zygmunt.blaszczyk@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ gemspec
6
+
7
+ group :development, :test do
8
+ gem 'awesome_print'
9
+ gem 'colorize'
10
+ gem 'faker'
11
+ gem 'pry'
12
+ end
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Karol Błaszczyk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,141 @@
1
+ # GroupsBy
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'groups_by'
9
+ ```
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install groups_by
18
+
19
+ ## Usage
20
+
21
+ There are several ways of using groups_by.
22
+
23
+ ### Base
24
+ The first way is to go through the `GroupsBy` class itself.
25
+
26
+ ```ruby
27
+ require 'groups_by'
28
+
29
+ # @param source [Array<Hash>]
30
+ # @option [Array<String,Symbol,Proc>] :group_by_rules
31
+ # @option [Proc] :summarizer
32
+ GroupsBy.new.groups_by(
33
+ source,
34
+ group_by_rules: grouping_rules,
35
+ summarizer: summarizer)
36
+ ```
37
+ ### CoreExt
38
+ The second way is to modify the Array class by including core extension.
39
+ ```ruby
40
+ require 'groups_by/core_ext/array' # extends only Array
41
+
42
+ data = [
43
+ { value1: 10, value2: 100, name: 'Stanton', company: 'Smith Inc', id: '-one-' },
44
+ { value1: 20, value2: 200, name: 'Stanton', company: 'Fisher LLC', id: '-three-' },
45
+ { value1: 50, value2: 500, name: 'Darrel', company: 'Smith Inc', id: '-three-' }
46
+ ]
47
+
48
+ result = data.groups_by(:name, :company, ->(el) { el[:id][/\w+/]})
49
+ # => {"Stanton"=>{"Smith Inc"=>{"one"=>[{:value1=>10, :value2=>100, :name=>"Stanton", :company=>"Smith Inc", :id=>"-one-"}]}, "Fisher LLC"=>{"three"=>[{:value1=>20, :value2=>200, :name=>"Stanton", :company=>"Fisher LLC", :id=>"-three-"}]}}, "Darrel"=>{"Smith Inc"=>{"three"=>[{:value1=>50, :value2=>500, :name=>"Darrel", :company=>"Smith Inc", :id=>"-three-"}]}}}
50
+
51
+ GroupsBy.pritify result
52
+ # =>
53
+ # Stanton
54
+ # Smith Inc
55
+ # one
56
+ # value1 value2 name company id
57
+ # 10 100 Stanton Smith Inc -one-
58
+ # Fisher LLC
59
+ # three
60
+ # value1 value2 name company id
61
+ # 20 200 Stanton Fisher LLC -three-
62
+ # Darrel
63
+ # Smith Inc
64
+ # three
65
+ # value1 value2 name company id
66
+ # 50 500 Darrel Smith Inc -three-
67
+ ```
68
+
69
+ ### Summarizer
70
+ You can pass summarize logic into grouper to summarize desirable values
71
+ ```ruby
72
+ data = [
73
+ { value1: 10, value2: 100, name: 'Stanton', company: 'Smith Inc', id: '-one-' },
74
+ { value1: 20, value2: 200, name: 'Stanton', company: 'Fisher LLC', id: '-three-' },
75
+ { value1: 50, value2: 500, name: 'Darrel', company: 'Smith Inc', id: '-three-' }
76
+ ]
77
+
78
+ grouping_rules = [:name, :company, ->(el) { el[:id][/\w+/]}]
79
+
80
+ summarizer = lambda do |elements|
81
+ {
82
+ value1_sum: elements.map { |m| m[:value1].to_f }.reduce(&:+),
83
+ value2_sum: elements.map { |m| m[:value2].to_f }.reduce(&:+)
84
+ }
85
+ end
86
+
87
+ result = GroupsBy.new.groups_by(
88
+ data,
89
+ group_by_rules: grouping_rules,
90
+ summarizer: summarizer)
91
+ # => {"Stanton"=>{"Smith Inc"=>{"one"=>{:values=>[{:value1=>10, :value2=>100, :name=>"Stanton", :company=>"Smith Inc", :id=>"-one-"}]}, :totals=>{:value1_sum=>10.0, :value2_sum=>100.0}}, "Fisher LLC"=>{"three"=>{:values=>[{:value1=>20, :value2=>200, :name=>"Stanton", :company=>"Fisher LLC", :id=>"-three-"}]}, :totals=>{:value1_sum=>20.0, :value2_sum=>200.0}}, :totals=>{:value1_sum=>30.0, :value2_sum=>300.0}}, "Darrel"=>{"Smith Inc"=>{"three"=>{:values=>[{:value1=>50, :value2=>500, :name=>"Darrel", :company=>"Smith Inc", :id=>"-three-"}]}, :totals=>{:value1_sum=>50.0, :value2_sum=>500.0}}, :totals=>{:value1_sum=>50.0, :value2_sum=>500.0}}, :totals=>{:value1_sum=>80.0, :value2_sum=>800.0}}
92
+
93
+ GroupsBy.pritify result
94
+ # =>
95
+ # Stanton
96
+ # Smith Inc
97
+ # one
98
+ # value1 value2 name company id
99
+ # 10 100 Stanton Smith Inc -one-
100
+ # value1_sum value2_sum
101
+ # 10.0 100.0
102
+ # Fisher LLC
103
+ # three
104
+ # value1 value2 name company id
105
+ # 20 200 Stanton Fisher LLC -three-
106
+ # value1_sum value2_sum
107
+ # 20.0 200.0
108
+ # value1_sum value2_sum
109
+ # 30.0 300.0
110
+ # Darrel
111
+ # Smith Inc
112
+ # three
113
+ # value1 value2 name company id
114
+ # 50 500 Darrel Smith Inc -three-
115
+ # value1_sum value2_sum
116
+ # 50.0 500.0
117
+ # value1_sum value2_sum
118
+ # 50.0 500.0
119
+ # value1_sum value2_sum
120
+ # 80.0 800.0
121
+ ```
122
+ ### Pritify
123
+ Display grouped array in prettified way
124
+
125
+ ## Development
126
+
127
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
128
+
129
+ To install this gem onto your local machine, run `bundle exec rake install`.
130
+
131
+ ## Contributing
132
+
133
+ Bug reports and pull requests are welcome on GitHub at https://github.com/karol-blaszczyk/groups_by. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
134
+
135
+ ## License
136
+
137
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
138
+
139
+ ## Code of Conduct
140
+
141
+ Everyone interacting in the GroupsBy project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/groups_by/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'groups_by'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/groups_by.gemspec ADDED
@@ -0,0 +1,27 @@
1
+
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'groups_by/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'groups_by'
8
+ spec.version = GroupsBy::VERSION
9
+ spec.authors = ['Karol Błaszczyk']
10
+ spec.email = ['karol.zygmunt.blaszczyk@gmail.com']
11
+
12
+ spec.summary = 'groups_by'
13
+ spec.description = '#group_by with multiple grouping rules.'
14
+ spec.homepage = 'https://github.com/karol-blaszczyk/groups_by'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = 'exe'
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ['lib']
23
+
24
+ spec.add_development_dependency 'bundler', '~> 1.15'
25
+ spec.add_development_dependency 'rake', '~> 10.0'
26
+ spec.add_development_dependency 'rspec', '~> 3.0'
27
+ end
data/lib/groups_by.rb ADDED
@@ -0,0 +1,30 @@
1
+ %w[
2
+ groups_by/version
3
+ colorize
4
+ groups_by/pritifier
5
+ groups_by/core_grouper
6
+ pry
7
+ ].each do |lib|
8
+ require lib
9
+ end
10
+
11
+ class GroupsBy
12
+ include CoreGrouper
13
+
14
+ class << self
15
+ include Pritifier
16
+ end
17
+
18
+ # GroupsBy.new.groups_by(
19
+ # source: DATA,
20
+ # group_by_rules: [:age_range, :age_range_state, :ad_group_state, :is_negative],
21
+ # summarizer: nil
22
+ # )
23
+ attr_accessor :source_arr, :group_by_rules, :summarizer
24
+ def groups_by(source_arr, group_by_rules: [], summarizer: nil)
25
+ @source_arr = source_arr
26
+ @group_by_rules = group_by_rules
27
+ @summarizer = summarizer
28
+ group(source_arr, group_by_rules)
29
+ end
30
+ end
@@ -0,0 +1,7 @@
1
+ require 'groups_by'
2
+
3
+ class Array
4
+ def groups_by(*grouping_rules)
5
+ GroupsBy.new.groups_by(self, group_by_rules: grouping_rules)
6
+ end
7
+ end
@@ -0,0 +1,47 @@
1
+ module CoreGrouper
2
+ UNDEFINED_GROUP_NAME = '_unknown_group_'.freeze
3
+
4
+ class InvalidGrouping < StandardError; end
5
+
6
+ # @param source [Array<Hash>]
7
+ # @param group_by_rules [Array<String,Symbol,Proc>]
8
+ def group(source, group_by_rules)
9
+ groups = source.group_by { |el| group_proc(group_by_rules.first).call(el) || UNDEFINED_GROUP_NAME }
10
+ return groups.merge(groups) { |_group, elements| group_merger(elements, group_by_rules) } unless summarizer
11
+ # Summarizer present
12
+ groups.merge! totals_hash(groups.values.flatten)
13
+ groups.merge(groups.reject { |k, _v| k == :totals }) do |_group, elements|
14
+ group_merger(elements, group_by_rules)
15
+ end
16
+ end
17
+
18
+ private
19
+
20
+ def group_merger(elements, group_by_rules)
21
+ return group(elements, group_by_rules.drop(1)) unless group_by_rules.count == 1
22
+ return elements unless summarizer
23
+ # Summarizer present
24
+ { values: elements }.tap do |hsh|
25
+ # totals only if more than 1 element
26
+ hsh.merge!(totals_hash(elements)) if elements.count > 1
27
+ end
28
+ end
29
+
30
+ def totals_hash(elements)
31
+ { totals: summarizer.call(elements) }
32
+ end
33
+
34
+ # @param grouping_by [Proc,String,Symbol]
35
+ # @return [Proc]
36
+ def group_proc(grouping_by)
37
+ case grouping_by
38
+ when Symbol, String
39
+ # prevent grouping_by to be out of lambda scope
40
+ instance_exec { ->(el) { el[grouping_by] } }
41
+ when Proc
42
+ grouping_by
43
+ else
44
+ raise InvalidGrouping
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,48 @@
1
+ module Pritifier
2
+ require 'colorize'
3
+ INDENT = "\t".freeze
4
+
5
+ # @param table [Hash, Array] initialy source_arr
6
+ # @param indent [Integer]
7
+ def pritify(table, indent = 0)
8
+ indent += 1
9
+ return pritty_table(table, indent, 'blue') if table.is_a?(Array)
10
+ table.each do |k, v|
11
+ # indent = 0 unless i == 0
12
+ if k == :values
13
+ pritty_table(v, indent, 'green')
14
+ elsif k == :totals
15
+ pritty_table([v], indent, 'blue')
16
+ else
17
+ print "\n" + INDENT * indent + k.to_s.underline.red
18
+ pritify(v, indent)
19
+ end
20
+ end
21
+ end
22
+
23
+ private
24
+
25
+ def metrics_table_headers(keys, cell_size)
26
+ keys.map { |key| key.to_s + ' ' * (cell_size - key.to_s.length) }
27
+ end
28
+
29
+ # Metrics table, or totals table, with values
30
+ def pritty_table(array, indent, color = 'green')
31
+ vmax = array.flat_map(&:values).map(&:to_s).map(&:length).max # find max value might be slow
32
+ kmax = array.first.keys.map(&:to_s).map(&:length).max
33
+ cell_size = (vmax > kmax ? vmax : kmax) + 1
34
+
35
+ # Print keys from first item in array
36
+ keys_to_print = metrics_table_headers(array.first.keys, cell_size)
37
+
38
+ left_indent = INDENT * indent # ' ' * cell_size * indent
39
+ print ("\n" + left_indent + keys_to_print.join('')).send(color)
40
+
41
+ array.each do |row|
42
+ values_to_print = row.values.map do |value|
43
+ (value.to_s + ' ' * (cell_size - value.to_s.length)).send(color)
44
+ end
45
+ print ("\n" + INDENT * indent + values_to_print.join('')).send("light_#{color}")
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,3 @@
1
+ class GroupsBy
2
+ VERSION = '0.1.1'.freeze
3
+ end
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: groups_by
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Karol Błaszczyk
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-03-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: "#group_by with multiple grouping rules."
56
+ email:
57
+ - karol.zygmunt.blaszczyk@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".travis.yml"
65
+ - CODE_OF_CONDUCT.md
66
+ - Gemfile
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - bin/console
71
+ - bin/setup
72
+ - groups_by.gemspec
73
+ - lib/groups_by.rb
74
+ - lib/groups_by/core_ext/array.rb
75
+ - lib/groups_by/core_grouper.rb
76
+ - lib/groups_by/pritifier.rb
77
+ - lib/groups_by/version.rb
78
+ homepage: https://github.com/karol-blaszczyk/groups_by
79
+ licenses:
80
+ - MIT
81
+ metadata: {}
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirements: []
97
+ rubyforge_project:
98
+ rubygems_version: 2.6.10
99
+ signing_key:
100
+ specification_version: 4
101
+ summary: groups_by
102
+ test_files: []