find_n_biggest_numbers_in_text 0.1.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5832d03cfc8d0cb326f0cc6bbabbdca50608e9a627f2820ef1cfd9fb329c182e
4
- data.tar.gz: 2ee942f38174b1ebb0042d8f860d9f39e2ed8ef7e5afbb63f43fe0b40fd28626
3
+ metadata.gz: 282dd78f0b27c133c93ecf2a28faa814de5df26a96065f07735a949e1908ed71
4
+ data.tar.gz: 4cb859d0f39bba4e9ca15a0553546ca246f1c3eca39e6e3174474a9f484250c6
5
5
  SHA512:
6
- metadata.gz: 27901d354f4f6994a525e0b2c44213582b768c05f51586daecd86a0584b5d6c278c1ef913fb9644703a453f728392cb63bcb73860a2b5213f8cf8619c2b6a9d7
7
- data.tar.gz: d662f5252d8492bf25655738ce7d090d6b0ea8e1d4a03e36a9bdc4fc64d6db606c32a8cadb2aa287e317671d7858656ba3b8259f8f1efca74bec9ecd0763b511
6
+ metadata.gz: 61264a90db2d42c8e40a410ede55a64d4e51380c0eddf41da4731f0c76ddf9654f56492c2b7361fbad407eabe2d824b43ace14f7fcfb0bd88226cf35810fa9be
7
+ data.tar.gz: dd17dbadcdc80afb85611bf2ff6d7a29c80d454116f34195107d1a297d9bb59663edcd46ea4f7187ecb05ba8de1f24e8582c6ac088dd92e432d80ee55ae3cd0e
data/.coveralls.yml ADDED
@@ -0,0 +1,2 @@
1
+
2
+ service_name: travis-ci
data/.gitignore CHANGED
@@ -6,3 +6,55 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+
10
+
11
+ *.gem
12
+ *.rbc
13
+ /.config
14
+ /coverage/
15
+ /InstalledFiles
16
+ /pkg/
17
+ /spec/reports/
18
+ /spec/examples.txt
19
+ /test/tmp/
20
+ /test/version_tmp/
21
+ /tmp/
22
+
23
+ # Used by dotenv library to load environment variables.
24
+ # .env
25
+
26
+ ## Specific to RubyMotion:
27
+ .dat*
28
+ .repl_history
29
+ build/
30
+ *.bridgesupport
31
+ build-iPhoneOS/
32
+ build-iPhoneSimulator/
33
+
34
+ ## Specific to RubyMotion (use of CocoaPods):
35
+ #
36
+ # We recommend against adding the Pods directory to your .gitignore. However
37
+ # you should judge for yourself, the pros and cons are mentioned at:
38
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
39
+ #
40
+ # vendor/Pods/
41
+
42
+ ## Documentation cache and generated files:
43
+ /.yardoc/
44
+ /_yardoc/
45
+ /doc/
46
+ /rdoc/
47
+
48
+ ## Environment normalization:
49
+ /.bundle/
50
+ /vendor/bundle
51
+ /lib/bundler/man/
52
+
53
+ # for a library or gem, you might want to ignore these files since the code is
54
+ # intended to run in multiple environments; otherwise, check them in:
55
+ # Gemfile.lock
56
+ # .ruby-version
57
+ # .ruby-gemset
58
+
59
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
60
+ .rvmrc
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.0
4
+ before_install:
5
+ - gem update --system
6
+ - gem install bundler
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ CHANGELOG
2
+ =========
3
+
4
+ # 23 September 2019
5
+
6
+ First version.
data/Gemfile CHANGED
@@ -2,3 +2,8 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in find_n_biggest_numbers_in_text.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem 'minitest'
8
+ gem 'coveralls', require: false
9
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,40 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ find_n_biggest_numbers_in_text (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ coveralls (0.8.23)
10
+ json (>= 1.8, < 3)
11
+ simplecov (~> 0.16.1)
12
+ term-ansicolor (~> 1.3)
13
+ thor (>= 0.19.4, < 2.0)
14
+ tins (~> 1.6)
15
+ docile (1.3.2)
16
+ json (2.2.0)
17
+ minitest (5.12.0)
18
+ rake (10.5.0)
19
+ simplecov (0.16.1)
20
+ docile (~> 1.1)
21
+ json (>= 1.8, < 3)
22
+ simplecov-html (~> 0.10.0)
23
+ simplecov-html (0.10.2)
24
+ term-ansicolor (1.7.1)
25
+ tins (~> 1.0)
26
+ thor (0.20.3)
27
+ tins (1.21.1)
28
+
29
+ PLATFORMS
30
+ ruby
31
+
32
+ DEPENDENCIES
33
+ bundler (~> 2.0)
34
+ coveralls
35
+ find_n_biggest_numbers_in_text!
36
+ minitest
37
+ rake (~> 10.0)
38
+
39
+ BUNDLED WITH
40
+ 2.0.2
data/README.md CHANGED
@@ -1,4 +1,8 @@
1
- # FindNBiggestNumbersInText
1
+ FindNBiggestNumbersInText
2
+ =========================
3
+
4
+ [![Build Status](https://travis-ci.org/logrusorgru/find_n_biggest_numbers_in_text.svg?branch=master)](https://travis-ci.org/logrusorgru/find_n_biggest_numbers_in_text)
5
+ [![Coverage Status](https://coveralls.io/repos/github/logrusorgru/find_n_biggest_numbers_in_text/badge.svg?branch=master)](https://coveralls.io/github/logrusorgru/find_n_biggest_numbers_in_text?branch=master)
2
6
 
3
7
  Find set of biggest numbers in a stdin. It looks for decimal integers
4
8
  numbers only regardless a sign.
@@ -54,7 +58,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
54
58
 
55
59
  ## Contributing
56
60
 
57
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/find_n_biggest_numbers_in_text. 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.
61
+ Bug reports and pull requests are welcome on GitHub at https://github.com/logrusorgru/find_n_biggest_numbers_in_text. 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.
58
62
 
59
63
  ## License
60
64
 
@@ -62,4 +66,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
62
66
 
63
67
  ## Code of Conduct
64
68
 
65
- Everyone interacting in the FindNBiggestNumbersInText project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/find_n_biggest_numbers_in_text/blob/master/CODE_OF_CONDUCT.md).
69
+ Everyone interacting in the FindNBiggestNumbersInText project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/logrusorgru/find_n_biggest_numbers_in_text/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'find_n_biggest_numbers_in_text'
4
+
5
+ if ARGV.length == 0 then
6
+ STDERR.puts "missing required command line argument"
7
+ exit 1
8
+ end
9
+
10
+ n = ARGV[0].to_i
11
+
12
+ if n == 0 then
13
+ STDERR.puts "invalid arguemnt: '#{ARGV[0]}', expected positive decimal number"
14
+ exit 1
15
+ end
16
+
17
+ finder = FindNBiggestNumbersInText::Finder.new
18
+ list = finder.find STDIN, n
19
+
20
+ list.each { |x| puts x }
@@ -1,3 +1,3 @@
1
1
  module FindNBiggestNumbersInText
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: find_n_biggest_numbers_in_text
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Ivanov
@@ -43,17 +43,23 @@ email:
43
43
  - kostyarin.ivanov@gmail.com
44
44
  executables:
45
45
  - console
46
+ - find_n_biggest_numbers_in_text
46
47
  - setup
47
48
  extensions: []
48
49
  extra_rdoc_files: []
49
50
  files:
51
+ - ".coveralls.yml"
50
52
  - ".gitignore"
53
+ - ".travis.yml"
54
+ - CHANGELOG.md
51
55
  - CODE_OF_CONDUCT.md
52
56
  - Gemfile
57
+ - Gemfile.lock
53
58
  - LICENSE.txt
54
59
  - README.md
55
60
  - Rakefile
56
61
  - bin/console
62
+ - bin/find_n_biggest_numbers_in_text
57
63
  - bin/setup
58
64
  - find_n_biggest_numbers_in_text.gemspec
59
65
  - lib/find_n_biggest_numbers_in_text.rb