max_amount 1.2.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 350f0cfbb9d43c276d77656c980744b9efaffc94d81f6148853c1ca2db8847c0
4
- data.tar.gz: d3794227bd0722cad8a04a1be6429d3e13c9b19b7ab701c0bc144b3da7ff96cd
3
+ metadata.gz: 5ad088e43f2abaff28748867298e90f66b1877f09689834a920ce73dab13ab51
4
+ data.tar.gz: 338e63e05fd35213fbb63fc9a7d9d023a5754e670d2b4b79e1c21160ddb6c05c
5
5
  SHA512:
6
- metadata.gz: 25748ccb9b6900974780d6ee5a00a66f866286392e60d94c3d4c530f476a9cca66c2bca7e1e716ca5783c5d5126eba1a33531e0abedefe5345bc704a61083405
7
- data.tar.gz: 5b284bada3aff0867af14f2ccd836f0c865321cd786f48fae30ba479641b149db28b797fc869ee2c9b5f67a096852c534729d0455ffc19618e85a38340d7d42b
6
+ metadata.gz: 94d9252d3ede9036c0dabe8e909ca982f3f794b80a2321e5c4ad029907e308da69f9882e2f9f58fcea8e442bc3751f05c28c3eae6997035d8ded58c483715b05
7
+ data.tar.gz: dbb54ff9747e2e1e4a020406d7fd4d5fd336aa1250b0545ca03908a66d7990fac431515d08e5471db5c5a12823e076ed4be688f21f394da00d83c2f48a7f7d14
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- max_amount (1.2.4)
4
+ max_amount (1.3.5)
5
5
  optparse
6
6
  securerandom
7
7
 
data/README.md CHANGED
@@ -1,4 +1,10 @@
1
- # max_amount
1
+ # `max_amount`
2
+
3
+ ![Gem](https://img.shields.io/gem/v/max_amount)
4
+ ![CI](https://github.com/ProfessorNemo/max_amount/actions/workflows/ci.yml/badge.svg)
5
+ [![Test Coverage](https://codecov.io/gh/ProfessorNemo/max_amount/graph/badge.svg)](https://codecov.io/gh/ProfessorNemo/max_amount)
6
+ ![Downloads total](https://img.shields.io/gem/dt/max_amount)
7
+ ###### Язык написания - Ruby
2
8
 
3
9
  ## Скрипт выполняется следующее:
4
10
  * читает из входящего потока текстовые данные;
@@ -71,10 +77,10 @@ $ ruby name_programm.rb --n 10 --l 300 --m 3
71
77
  7
72
78
  ```
73
79
 
74
- ## Помочь в разработке
80
+ ## Помочь в разработке:
75
81
 
76
82
  Шлите ваши пулреквесты в https://github.com/ProfessorNemo/max_amount.
77
83
 
78
- ## Лицензия
84
+ ## Лицензия:
79
85
 
80
- [MIT License](https://opensource.org/licenses/MIT)
86
+ [MIT License](https://opensource.org/licenses/MIT)
data/Rakefile CHANGED
@@ -1,15 +1,22 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'rake'
4
+
5
+ begin
6
+ require 'bundler/setup'
7
+ Bundler::GemHelper.install_tasks
8
+ rescue LoadError
9
+ puts 'although not required, bundler is recommened for running the tests'
10
+ end
11
+
12
+ task default: :spec
13
+
3
14
  require 'bundler/gem_tasks'
4
15
  require 'rspec/core/rake_task'
5
-
6
16
  RSpec::Core::RakeTask.new(:spec)
7
17
 
8
18
  require 'rubocop/rake_task'
9
-
10
19
  RuboCop::RakeTask.new do |task|
11
20
  task.requires << 'rubocop-performance'
12
21
  task.requires << 'rubocop-rspec'
13
22
  end
14
-
15
- task default: %i[spec rubocop]
data/lib/main.rb CHANGED
@@ -3,7 +3,6 @@
3
3
  require_relative 'max_amount/version'
4
4
  require 'optparse'
5
5
  require 'securerandom'
6
- require 'dotenv/load'
7
6
  require_relative 'max_amount/options'
8
7
  require_relative 'max_amount/cli'
9
8
  require_relative 'max_amount/errors'
@@ -2,8 +2,6 @@
2
2
 
3
3
  module MaxAmount
4
4
  module Cli
5
- extend MaxAmount::Options
6
-
7
5
  def self.call(user_string:)
8
6
  options = MaxAmount::Options.ask
9
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MaxAmount
4
- VERSION = '1.2.4'
4
+ VERSION = '1.3.5'
5
5
  end
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.2.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb V. Zhegilin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-01 00:00:00.000000000 Z
11
+ date: 2022-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: optparse