dino_management 0.1.0
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 +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +14 -0
- data/.rubocop_todo.yml +154 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +12 -0
- data/lib/dino_management/version.rb +5 -0
- data/lib/dino_management.rb +59 -0
- data/refactor_me.rb +107 -0
- data/sig/dino_management.rbs +4 -0
- metadata +155 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9392b2316d3e652fbb469328225aebd3cc2ec13fc402090d218853f5ebec96b3
|
4
|
+
data.tar.gz: 881521a817923cf6bd35189fa1dad91716624b715a9eb9bf76af2a8357bb15e3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 07425b76d5e2b5c8d20dc8953133d19ee7f6e9d6b5d7d89edc530f196a6639958dab7104cf1cbce74ad86dd6121e00090795c970bcab2fdee0431841bfb930f1
|
7
|
+
data.tar.gz: 65f70755a6f1b2ab9454b7295f55e11e542fc5948ba65f176a9eb914f0ba9b1803627694419f265fab47ebb7274088bfc7b53922aa1c7e95018c9c764bf98c1f
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,154 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2025-04-14 21:09:16 UTC using RuboCop version 1.75.2.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# This cop supports safe autocorrection (--autocorrect).
|
11
|
+
Layout/BlockEndNewline:
|
12
|
+
Exclude:
|
13
|
+
- 'refactor_me.rb'
|
14
|
+
|
15
|
+
# Offense count: 1
|
16
|
+
# This cop supports safe autocorrection (--autocorrect).
|
17
|
+
Layout/EmptyLines:
|
18
|
+
Exclude:
|
19
|
+
- 'refactor_me.rb'
|
20
|
+
|
21
|
+
# Offense count: 2
|
22
|
+
# This cop supports safe autocorrection (--autocorrect).
|
23
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
24
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
25
|
+
Layout/FirstArrayElementIndentation:
|
26
|
+
Exclude:
|
27
|
+
- 'refactor_me.rb'
|
28
|
+
|
29
|
+
# Offense count: 1
|
30
|
+
# This cop supports safe autocorrection (--autocorrect).
|
31
|
+
Layout/MultilineBlockLayout:
|
32
|
+
Exclude:
|
33
|
+
- 'refactor_me.rb'
|
34
|
+
|
35
|
+
# Offense count: 20
|
36
|
+
# This cop supports safe autocorrection (--autocorrect).
|
37
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
|
38
|
+
# SupportedStylesForExponentOperator: space, no_space
|
39
|
+
# SupportedStylesForRationalLiterals: space, no_space
|
40
|
+
Layout/SpaceAroundOperators:
|
41
|
+
Exclude:
|
42
|
+
- 'refactor_me.rb'
|
43
|
+
|
44
|
+
# Offense count: 1
|
45
|
+
# This cop supports safe autocorrection (--autocorrect).
|
46
|
+
# Configuration parameters: EnforcedStyle.
|
47
|
+
# SupportedStyles: final_newline, final_blank_line
|
48
|
+
Layout/TrailingEmptyLines:
|
49
|
+
Exclude:
|
50
|
+
- 'refactor_me.rb'
|
51
|
+
|
52
|
+
# Offense count: 1
|
53
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
54
|
+
Metrics/AbcSize:
|
55
|
+
Max: 53
|
56
|
+
|
57
|
+
# Offense count: 1
|
58
|
+
# Configuration parameters: CountBlocks, CountModifierForms.
|
59
|
+
Metrics/BlockNesting:
|
60
|
+
Max: 4
|
61
|
+
|
62
|
+
# Offense count: 1
|
63
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
64
|
+
Metrics/CyclomaticComplexity:
|
65
|
+
Max: 16
|
66
|
+
|
67
|
+
# Offense count: 1
|
68
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
69
|
+
Metrics/MethodLength:
|
70
|
+
Max: 39
|
71
|
+
|
72
|
+
# Offense count: 1
|
73
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
74
|
+
Metrics/PerceivedComplexity:
|
75
|
+
Max: 21
|
76
|
+
|
77
|
+
# Offense count: 4
|
78
|
+
# Configuration parameters: AllowedGroups.
|
79
|
+
RSpec/NestedGroups:
|
80
|
+
Max: 4
|
81
|
+
|
82
|
+
# Offense count: 1
|
83
|
+
# This cop supports safe autocorrection (--autocorrect).
|
84
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, AllowedMethods, AllowedPatterns, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
85
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
86
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
87
|
+
# FunctionalMethods: let, let!, subject, watch
|
88
|
+
# AllowedMethods: lambda, proc, it
|
89
|
+
Style/BlockDelimiters:
|
90
|
+
Exclude:
|
91
|
+
- 'refactor_me.rb'
|
92
|
+
|
93
|
+
# Offense count: 1
|
94
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
95
|
+
Style/CombinableLoops:
|
96
|
+
Exclude:
|
97
|
+
- 'refactor_me.rb'
|
98
|
+
|
99
|
+
# Offense count: 2
|
100
|
+
# This cop supports safe autocorrection (--autocorrect).
|
101
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
102
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
103
|
+
Style/ConditionalAssignment:
|
104
|
+
Exclude:
|
105
|
+
- 'refactor_me.rb'
|
106
|
+
|
107
|
+
# Offense count: 1
|
108
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
109
|
+
# Configuration parameters: EnforcedStyle.
|
110
|
+
# SupportedStyles: always, always_true, never
|
111
|
+
Style/FrozenStringLiteralComment:
|
112
|
+
Exclude:
|
113
|
+
- '**/*.arb'
|
114
|
+
- 'refactor_me.rb'
|
115
|
+
|
116
|
+
# Offense count: 1
|
117
|
+
# This cop supports safe autocorrection (--autocorrect).
|
118
|
+
# Configuration parameters: AllowIfModifier.
|
119
|
+
Style/IfInsideElse:
|
120
|
+
Exclude:
|
121
|
+
- 'refactor_me.rb'
|
122
|
+
|
123
|
+
# Offense count: 3
|
124
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
125
|
+
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
126
|
+
# SupportedStyles: predicate, comparison
|
127
|
+
Style/NumericPredicate:
|
128
|
+
Exclude:
|
129
|
+
- 'spec/**/*'
|
130
|
+
- 'refactor_me.rb'
|
131
|
+
|
132
|
+
# Offense count: 1
|
133
|
+
# This cop supports safe autocorrection (--autocorrect).
|
134
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
135
|
+
Style/RedundantReturn:
|
136
|
+
Exclude:
|
137
|
+
- 'refactor_me.rb'
|
138
|
+
|
139
|
+
# Offense count: 55
|
140
|
+
# This cop supports safe autocorrection (--autocorrect).
|
141
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
142
|
+
# SupportedStyles: single_quotes, double_quotes
|
143
|
+
Style/StringLiterals:
|
144
|
+
Exclude:
|
145
|
+
- 'Rakefile'
|
146
|
+
- 'bin/console'
|
147
|
+
- 'lib/dino_management/version.rb'
|
148
|
+
- 'refactor_me.rb'
|
149
|
+
|
150
|
+
# Offense count: 1
|
151
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
152
|
+
Style/ZeroLengthPredicate:
|
153
|
+
Exclude:
|
154
|
+
- 'refactor_me.rb'
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.3.7
|
data/CHANGELOG.md
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2025 Jose C Fernandez
|
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,39 @@
|
|
1
|
+
# DinoManagement
|
2
|
+
|
3
|
+
TODO: Delete this and the text below, and describe your gem
|
4
|
+
|
5
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/dino_management`. To experiment with that code, run `bin/console` for an interactive prompt.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
10
|
+
|
11
|
+
Install the gem and add to the application's Gemfile by executing:
|
12
|
+
|
13
|
+
```bash
|
14
|
+
bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
15
|
+
```
|
16
|
+
|
17
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
18
|
+
|
19
|
+
```bash
|
20
|
+
gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
|
21
|
+
```
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
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.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/dino_management.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'dino_management/version'
|
4
|
+
|
5
|
+
# Dino Management
|
6
|
+
module DinoManagement
|
7
|
+
class Error < StandardError; end
|
8
|
+
|
9
|
+
def self.run(dinos)
|
10
|
+
return { 'dinos' => [], 'summary' => {} } if dinos.empty? || dinos.nil?
|
11
|
+
|
12
|
+
dinos.each do |dino|
|
13
|
+
dino['health'] = calculate_health(dino)
|
14
|
+
dino['comment'] = determine_status(dino['health'])
|
15
|
+
dino['age_metrics'] = calculate_age_metrics(dino)
|
16
|
+
end
|
17
|
+
|
18
|
+
categories = category_summary(dinos) if dinos&.length&.positive?
|
19
|
+
|
20
|
+
{
|
21
|
+
'dinos' => dinos,
|
22
|
+
'summary' => format_summary(categories)
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.calculate_health(dino)
|
27
|
+
return 0 unless dino['age'].nil? || dino['age'].positive?
|
28
|
+
|
29
|
+
return (100 - dino['age']) / 2 if dino['category'] == 'herbivore'
|
30
|
+
|
31
|
+
(100 - dino['age']) if dino['category'] == 'carnivore'
|
32
|
+
end
|
33
|
+
|
34
|
+
def self.determine_status(health)
|
35
|
+
health.positive? ? 'Alive' : 'Dead'
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.calculate_age_metrics(dino)
|
39
|
+
dino['age'] = dino['age'].to_i if dino['age'].is_a?(String)
|
40
|
+
|
41
|
+
return (dino['age'] / 2).to_i if dino['comment'] == 'Alive' && dino['age'] > 1
|
42
|
+
|
43
|
+
0
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.category_summary(dinos)
|
47
|
+
dinos.group_by { |dino| dino['category'] }.map do |category, dino_list|
|
48
|
+
{ category: category, count: dino_list.count }
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def self.format_summary(categories)
|
53
|
+
summary = {}
|
54
|
+
categories.each do |category_metrics|
|
55
|
+
summary[category_metrics[:category]] = category_metrics[:count]
|
56
|
+
end
|
57
|
+
summary
|
58
|
+
end
|
59
|
+
end
|
data/refactor_me.rb
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
# This is a poorly written code for the management of dinos.
|
2
|
+
# The purpose of this code is to serve as a refactor test for
|
3
|
+
# candidates applying for a software engineer position at our company.
|
4
|
+
# We expect you to refactor it and turn it into an efficient
|
5
|
+
# and maintainable code, following best practices. Fill in the Rspect test as well, modify it to your liking,
|
6
|
+
# we do want to see some decent testing.
|
7
|
+
# Please don't spend too much time on this, we know your time is valuable and we want to
|
8
|
+
# make this fun but also allow you to show off your ruby skills :)
|
9
|
+
#
|
10
|
+
# Existing data: [
|
11
|
+
# { "name"=>"DinoA", "category"=>"herbivore", "period"=>"Cretaceous", "diet"=>"plants", "age"=>100 },
|
12
|
+
# { "name"=>"DinoB", "category"=>"carnivore", "period"=>"Jurassic", "diet"=>"meat", "age"=>80 }
|
13
|
+
# ]
|
14
|
+
#
|
15
|
+
|
16
|
+
def run(dinos)
|
17
|
+
dinos.each do |d|
|
18
|
+
if d['age'] > 0
|
19
|
+
if d['category'] == 'herbivore'
|
20
|
+
d['health'] = d['diet'] == 'plants' ? (100 - d['age']) : (100 - d['age']) / 2
|
21
|
+
else
|
22
|
+
if d['category'] == 'carnivore'
|
23
|
+
d['health'] = d['diet'] == 'meat' ? (100 - d['age']) : (100 - d['age']) / 2
|
24
|
+
end
|
25
|
+
end
|
26
|
+
else
|
27
|
+
d['health'] = 0
|
28
|
+
end
|
29
|
+
|
30
|
+
if d['health'] > 0
|
31
|
+
d['comment'] = 'Alive'
|
32
|
+
else
|
33
|
+
d['comment'] = 'Dead'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
dinos.each do |d|
|
38
|
+
if d['comment'] == 'Alive'
|
39
|
+
if d['age'] > 1
|
40
|
+
d['age_metrics'] = (d['age'] / 2).to_i
|
41
|
+
else
|
42
|
+
d['age_metrics'] = 0
|
43
|
+
end
|
44
|
+
else
|
45
|
+
d['age_metrics'] = 0
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
if dinos && dinos.length > 0
|
50
|
+
a = dinos.group_by { |d| d['category'] }.map do |category, dino_list|
|
51
|
+
{ category: category, count: dino_list.count }
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
f = {}
|
56
|
+
a.each do |category_metrics|
|
57
|
+
f[category_metrics[:category]] = category_metrics[:count]
|
58
|
+
end
|
59
|
+
|
60
|
+
return { dinos: dinos, summary: f }
|
61
|
+
end
|
62
|
+
|
63
|
+
dinfo = run([
|
64
|
+
{ "name"=>"DinoA", "category"=>"herbivore", "period"=>"Cretaceous", "diet"=>"plants", "age"=>100 },
|
65
|
+
{ "name"=>"DinoB", "category"=>"carnivore", "period"=>"Jurassic", "diet"=>"meat", "age"=>80 }
|
66
|
+
])
|
67
|
+
|
68
|
+
puts dinfo
|
69
|
+
|
70
|
+
|
71
|
+
require_relative "dino_management"
|
72
|
+
require "rspec"
|
73
|
+
|
74
|
+
describe "Dino Management" do
|
75
|
+
let(:dino_data) { [
|
76
|
+
{ "name"=>"DinoA", "category"=>"herbivore", "period"=>"Cretaceous", "diet"=>"plants", "age"=>100 },
|
77
|
+
{ "name"=>"DinoB", "category"=>"carnivore", "period"=>"Jurassic", "diet"=>"meat", "age"=>80 }
|
78
|
+
] }
|
79
|
+
|
80
|
+
context "when using the long and unoptimized method" do
|
81
|
+
describe "dino health calculation" do
|
82
|
+
it "calculates dino health using age, category and diet" do
|
83
|
+
# Fill in expectations here
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
describe "dino comment setting" do
|
88
|
+
it "assigns appropriate comment based on health" do
|
89
|
+
# Fill in expectations here
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
describe "dino age metric calculation" do
|
94
|
+
it "computes age_metrics based on age and comment" do
|
95
|
+
# Fill in expectations here
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
describe "dino category summary" do
|
100
|
+
it "counts dinos by categories" do
|
101
|
+
# Fill in expectations here
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
|
metadata
ADDED
@@ -0,0 +1,155 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dino_management
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jose C Fernandez
|
8
|
+
bindir: exe
|
9
|
+
cert_chain: []
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: pry
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - ">="
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '0'
|
19
|
+
type: :development
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - ">="
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0'
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: pry-byebug
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: rspec
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '3.2'
|
47
|
+
type: :development
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '3.2'
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: rubocop
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.73'
|
61
|
+
type: :development
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.73'
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: rubocop-rake
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0.7'
|
75
|
+
type: :development
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0.7'
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: rubocop-rspec
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '3.5'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '3.5'
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: simplecov
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
description: This gem provides functionalities to manage and manipulate dinosaur-related
|
111
|
+
data, including information retrieval and data processing.
|
112
|
+
email:
|
113
|
+
- josefernandez@joseworks.org
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".rspec"
|
119
|
+
- ".rubocop.yml"
|
120
|
+
- ".rubocop_todo.yml"
|
121
|
+
- ".ruby-version"
|
122
|
+
- CHANGELOG.md
|
123
|
+
- LICENSE.txt
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- lib/dino_management.rb
|
127
|
+
- lib/dino_management/version.rb
|
128
|
+
- refactor_me.rb
|
129
|
+
- sig/dino_management.rbs
|
130
|
+
homepage: https://github.com/Joseworks/dino_management
|
131
|
+
licenses:
|
132
|
+
- MIT
|
133
|
+
metadata:
|
134
|
+
allowed_push_host: https://rubygems.org
|
135
|
+
homepage_uri: https://github.com/Joseworks/dino_management
|
136
|
+
source_code_uri: https://github.com/Joseworks/dino_management
|
137
|
+
changelog_uri: https://github.com/Joseworks/dino_management/blob/main/CHANGELOG.md
|
138
|
+
rdoc_options: []
|
139
|
+
require_paths:
|
140
|
+
- lib
|
141
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 3.3.7
|
146
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
requirements: []
|
152
|
+
rubygems_version: 3.6.8
|
153
|
+
specification_version: 4
|
154
|
+
summary: A Ruby gem for managing dinosaur data and operations
|
155
|
+
test_files: []
|