total 0.4.0 → 0.4.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 +4 -4
- data/.rultor.yml +10 -14
- data/Rakefile +8 -0
- data/lib/total/version.rb +33 -0
- data/total.gemspec +5 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1544c84099426fc46d27ade2e50eaeec04fc7a77c93497bb1860d9f08c129c1c
|
|
4
|
+
data.tar.gz: a6a0e21d9f9bba86d4ba04cbb900253c39fa84c06b90393b7c3c7b91aa4a5115
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00d630bf7f7b4305a0e8040a69e001829e621306baac1e7850cdc31f0fb5ce17702b7448d7b56c2848c9c460427d9e58218d24bfa645ff51ac02231c1d34e780
|
|
7
|
+
data.tar.gz: 0f11604a32386733c6966c042a847b1a0e6d963b3e3a816df58b6021a0949bc26046997998263bf991dde2feac89918fb9f77c78ac0c3246ff22ea2bc65ca051
|
data/.rultor.yml
CHANGED
|
@@ -1,23 +1,19 @@
|
|
|
1
|
+
docker:
|
|
2
|
+
image: yegor256/rultor-image:1.9.1
|
|
1
3
|
assets:
|
|
2
4
|
rubygems.yml: yegor256/home#assets/rubygems.yml
|
|
3
|
-
install:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
bundle install
|
|
5
|
+
install: |
|
|
6
|
+
pdd -f /dev/null
|
|
7
|
+
sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
|
|
7
8
|
release:
|
|
8
9
|
script: |-
|
|
9
|
-
bundle exec rake
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
git
|
|
13
|
-
git commit -m "Version set to ${tag}"
|
|
10
|
+
bundle exec rake clean test rubocop copyright
|
|
11
|
+
sed -i "s/0\.0\.0/${tag}/g" lib/total/version.rb
|
|
12
|
+
git add lib/total/version.rb
|
|
13
|
+
git commit -m "version set to ${tag}"
|
|
14
14
|
gem build total.gemspec
|
|
15
15
|
chmod 0600 ../rubygems.yml
|
|
16
16
|
gem push *.gem --config-file ../rubygems.yml
|
|
17
17
|
merge:
|
|
18
18
|
script: |-
|
|
19
|
-
bundle exec rake
|
|
20
|
-
deploy:
|
|
21
|
-
script: |-
|
|
22
|
-
echo 'Nothing to deploy'
|
|
23
|
-
exit -1
|
|
19
|
+
bundle exec rake clean test rubocop copyright
|
data/Rakefile
CHANGED
|
@@ -57,3 +57,11 @@ RuboCop::RakeTask.new(:rubocop) do |task|
|
|
|
57
57
|
task.fail_on_error = true
|
|
58
58
|
task.requires << 'rubocop-rspec'
|
|
59
59
|
end
|
|
60
|
+
|
|
61
|
+
task :copyright do
|
|
62
|
+
sh "grep -q -r '2018-#{Date.today.strftime('%Y')}' \
|
|
63
|
+
--include '*.rb' \
|
|
64
|
+
--include '*.txt' \
|
|
65
|
+
--include 'Rakefile' \
|
|
66
|
+
."
|
|
67
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# (The MIT License)
|
|
4
|
+
#
|
|
5
|
+
# Copyright (c) 2018-2023 Yegor Bugayenko
|
|
6
|
+
#
|
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
# of this software and associated documentation files (the 'Software'), to deal
|
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
# furnished to do so, subject to the following conditions:
|
|
13
|
+
#
|
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
# copies or substantial portions of the Software.
|
|
16
|
+
#
|
|
17
|
+
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
# SOFTWARE.
|
|
24
|
+
|
|
25
|
+
# Version of it.
|
|
26
|
+
#
|
|
27
|
+
# Author:: Yegor Bugayenko (yegor256@gmail.com)
|
|
28
|
+
# Copyright:: Copyright (c) 2018-2023 Yegor Bugayenko
|
|
29
|
+
# License:: MIT
|
|
30
|
+
module Total
|
|
31
|
+
# Current version of the library.
|
|
32
|
+
VERSION = '0.4.1'
|
|
33
|
+
end
|
data/total.gemspec
CHANGED
|
@@ -23,11 +23,14 @@
|
|
|
23
23
|
# SOFTWARE.
|
|
24
24
|
|
|
25
25
|
require 'English'
|
|
26
|
+
lib = File.expand_path('lib', __dir__)
|
|
27
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
28
|
+
require_relative 'lib/total/version'
|
|
26
29
|
Gem::Specification.new do |s|
|
|
27
30
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
|
28
|
-
s.required_ruby_version = '>=2.3'
|
|
31
|
+
s.required_ruby_version = '>= 2.3'
|
|
29
32
|
s.name = 'total'
|
|
30
|
-
s.version =
|
|
33
|
+
s.version = Total::VERSION
|
|
31
34
|
s.license = 'MIT'
|
|
32
35
|
s.summary = 'Total memory calculator in Ruby'
|
|
33
36
|
s.description = 'Get total memory size of the system'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: total
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yegor Bugayenko
|
|
@@ -118,6 +118,7 @@ files:
|
|
|
118
118
|
- lib/total/freebsd.rb
|
|
119
119
|
- lib/total/linux.rb
|
|
120
120
|
- lib/total/osx.rb
|
|
121
|
+
- lib/total/version.rb
|
|
121
122
|
- logo.svg
|
|
122
123
|
- test/test__helper.rb
|
|
123
124
|
- test/test_total.rb
|
|
@@ -146,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
146
147
|
- !ruby/object:Gem::Version
|
|
147
148
|
version: '0'
|
|
148
149
|
requirements: []
|
|
149
|
-
rubygems_version: 3.2
|
|
150
|
+
rubygems_version: 3.1.2
|
|
150
151
|
signing_key:
|
|
151
152
|
specification_version: 4
|
|
152
153
|
summary: Total memory calculator in Ruby
|