max_amount 1.3.6 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -17
- data/README.md +10 -6
- data/lib/main.rb +1 -1
- data/lib/max_amount/version.rb +1 -1
- data/lib/max_amount.rb +1 -1
- metadata +4 -5
- data/CHANGELOG.md +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4da563c638b6e9c4fbe39cf60fead32d2077420aa70a0b9568bbbf5bf5b9ac39
|
4
|
+
data.tar.gz: 51d6711a540607f0d52529574a81750c03abcbb2c4f33f11ac18b96d9dc03cd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88aca81550699c9cc1b6b6928c660a864215466c6985a84fb1e1075b24dffb48cc79cf8f9dc1deca9b4d7dc78aa77392ce5c879b5bac1c148d95917a6ddf23ac
|
7
|
+
data.tar.gz: d61956a0e98fbbb095643ec6571b60c9d94163ec346c744f163506352f5f33cf7e0811c7c839f74243672c248768d5c288d6a99c5920db10141f6dd0dd1a5267
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
max_amount (1.3.
|
4
|
+
max_amount (1.3.8)
|
5
5
|
optparse
|
6
6
|
securerandom
|
7
7
|
|
@@ -14,7 +14,7 @@ GEM
|
|
14
14
|
simplecov (>= 0.15, < 0.22)
|
15
15
|
diff-lcs (1.5.0)
|
16
16
|
docile (1.4.0)
|
17
|
-
fileutils (1.
|
17
|
+
fileutils (1.6.0)
|
18
18
|
json (2.6.2)
|
19
19
|
optparse (0.2.0)
|
20
20
|
parallel (1.22.1)
|
@@ -24,35 +24,35 @@ GEM
|
|
24
24
|
rake (13.0.6)
|
25
25
|
regexp_parser (2.6.0)
|
26
26
|
rexml (3.2.5)
|
27
|
-
rspec (3.
|
28
|
-
rspec-core (~> 3.
|
29
|
-
rspec-expectations (~> 3.
|
30
|
-
rspec-mocks (~> 3.
|
31
|
-
rspec-core (3.
|
32
|
-
rspec-support (~> 3.
|
33
|
-
rspec-expectations (3.
|
27
|
+
rspec (3.12.0)
|
28
|
+
rspec-core (~> 3.12.0)
|
29
|
+
rspec-expectations (~> 3.12.0)
|
30
|
+
rspec-mocks (~> 3.12.0)
|
31
|
+
rspec-core (3.12.0)
|
32
|
+
rspec-support (~> 3.12.0)
|
33
|
+
rspec-expectations (3.12.0)
|
34
34
|
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
-
rspec-support (~> 3.
|
36
|
-
rspec-mocks (3.
|
35
|
+
rspec-support (~> 3.12.0)
|
36
|
+
rspec-mocks (3.12.0)
|
37
37
|
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
-
rspec-support (~> 3.
|
39
|
-
rspec-support (3.
|
40
|
-
rubocop (1.
|
38
|
+
rspec-support (~> 3.12.0)
|
39
|
+
rspec-support (3.12.0)
|
40
|
+
rubocop (1.38.0)
|
41
41
|
json (~> 2.3)
|
42
42
|
parallel (~> 1.10)
|
43
43
|
parser (>= 3.1.2.1)
|
44
44
|
rainbow (>= 2.2.2, < 4.0)
|
45
45
|
regexp_parser (>= 1.8, < 3.0)
|
46
46
|
rexml (>= 3.2.5, < 4.0)
|
47
|
-
rubocop-ast (>= 1.
|
47
|
+
rubocop-ast (>= 1.23.0, < 2.0)
|
48
48
|
ruby-progressbar (~> 1.7)
|
49
49
|
unicode-display_width (>= 1.4.0, < 3.0)
|
50
|
-
rubocop-ast (1.
|
50
|
+
rubocop-ast (1.23.0)
|
51
51
|
parser (>= 3.1.1.0)
|
52
52
|
rubocop-performance (1.15.0)
|
53
53
|
rubocop (>= 1.7.0, < 2.0)
|
54
54
|
rubocop-ast (>= 0.4.0)
|
55
|
-
rubocop-rspec (2.
|
55
|
+
rubocop-rspec (2.15.0)
|
56
56
|
rubocop (~> 1.33)
|
57
57
|
ruby-progressbar (1.11.0)
|
58
58
|
securerandom (0.2.0)
|
data/README.md
CHANGED
@@ -1,12 +1,18 @@
|
|
1
1
|
# `max_amount`
|
2
2
|
|
3
|
-
![Gem](https://img.shields.io/gem/
|
4
|
-
![
|
3
|
+
[![Gem Version](https://img.shields.io/gem/dt/max_amount.svg)][gem]
|
4
|
+
[![Gem](https://img.shields.io/gem/v/max_amount)][gem]
|
5
|
+
[![Build Status](https://github.com/ProfessorNemo/max_amount/actions/workflows/ci.yml/badge.svg)][actions]
|
5
6
|
[![Test Coverage](https://codecov.io/gh/ProfessorNemo/max_amount/graph/badge.svg)](https://codecov.io/gh/ProfessorNemo/max_amount)
|
6
|
-
![
|
7
|
+
[![Depfu](https://img.shields.io/depfu/ProfessorNemo/max_amount?style=flat-square)](https://depfu.com/repos/github/ProfessorNemo/max_amount)
|
8
|
+
|
9
|
+
[gem]: https://rubygems.org/gems/max_amount
|
10
|
+
[gem]: https://rubygems.org/gems/max_amount
|
11
|
+
[actions]: https://github.com/ProfessorNemo/max_amount/actions
|
12
|
+
[coveralls]: https://coveralls.io/r/ProfessorNemo/max_amount
|
7
13
|
###### Язык написания - Ruby
|
8
14
|
|
9
|
-
## Скрипт
|
15
|
+
## Скрипт выполняет следующее:
|
10
16
|
* читает из входящего потока текстовые данные;
|
11
17
|
* по завершении ввода выводит n самых больших целых чисел, встретившихся в
|
12
18
|
полученных текстовых данных.
|
@@ -14,8 +20,6 @@
|
|
14
20
|
* числом считается любая непрерывная последовательность цифр в тексте;
|
15
21
|
* чисел длиннее 1000 цифр во входных данных нет;
|
16
22
|
* числа n,l и m - консольные параметры;
|
17
|
-
* код покрыт тестами;
|
18
|
-
* код оформлен в виде гема.
|
19
23
|
|
20
24
|
## Установка:
|
21
25
|
|
data/lib/main.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative 'max_amount/version'
|
4
3
|
require 'optparse'
|
5
4
|
require 'securerandom'
|
5
|
+
require_relative 'max_amount/version'
|
6
6
|
require_relative 'max_amount/options'
|
7
7
|
require_relative 'max_amount/cli'
|
8
8
|
require_relative 'max_amount/errors'
|
data/lib/max_amount/version.rb
CHANGED
data/lib/max_amount.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: max_amount
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Gleb V.
|
7
|
+
- Gleb V. Zhegulin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: optparse
|
@@ -50,7 +50,6 @@ extra_rdoc_files:
|
|
50
50
|
files:
|
51
51
|
- ".rspec"
|
52
52
|
- ".rubocop.yml"
|
53
|
-
- CHANGELOG.md
|
54
53
|
- Gemfile
|
55
54
|
- Gemfile.lock
|
56
55
|
- LICENSE.txt
|
@@ -86,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
85
|
- !ruby/object:Gem::Version
|
87
86
|
version: '0'
|
88
87
|
requirements: []
|
89
|
-
rubygems_version: 3.3.
|
88
|
+
rubygems_version: 3.3.26
|
90
89
|
signing_key:
|
91
90
|
specification_version: 4
|
92
91
|
summary: Reading text data and outputting the n largest integers encountered in the
|